@cloudtower/eagle 490.0.7 → 490.0.9
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/AccordionCard/index.js +4 -1
- package/dist/cjs/core/Alert/index.js +4 -2
- package/dist/cjs/core/Arch/index.js +5 -3
- package/dist/cjs/core/Avatar/index.js +3 -1
- package/dist/cjs/core/Banner/index.js +16 -3
- package/dist/cjs/core/BasicCTError/index.js +25 -12
- package/dist/cjs/core/Bit/index.js +4 -3
- package/dist/cjs/core/BitPerSecond/index.js +4 -3
- package/dist/cjs/core/BlankState/index.js +14 -12
- package/dist/cjs/core/Bps/index.js +4 -3
- package/dist/cjs/core/Breadcrumb/index.js +4 -1
- package/dist/cjs/core/ButtonGroup/index.js +3 -1
- package/dist/cjs/core/Byte/index.js +6 -5
- package/dist/cjs/core/BytePerSecond/index.js +4 -3
- package/dist/cjs/core/Card/index.js +7 -3
- package/dist/cjs/core/Checkbox/index.js +1 -1
- package/dist/cjs/core/ConfigProvider/index.js +1 -1
- package/dist/cjs/core/DetailCard/index.js +7 -3
- package/dist/cjs/core/DonutChart/index.js +3 -1
- package/dist/cjs/core/DropdownMenu/index.js +9 -4
- package/dist/cjs/core/Duration/index.js +7 -6
- package/dist/cjs/core/Empty/index.js +6 -3
- package/dist/cjs/core/Error/index.js +4 -1
- package/dist/cjs/core/FailedLoad/index.js +4 -1
- package/dist/cjs/core/Fields/FieldsBoolean/index.js +11 -2
- package/dist/cjs/core/Fields/FieldsDateTime/index.js +5 -1
- package/dist/cjs/core/Fields/FieldsDateTimeRange/index.js +6 -3
- package/dist/cjs/core/Fields/FieldsEnum/index.js +5 -3
- package/dist/cjs/core/Fields/FieldsFloat/index.js +6 -3
- package/dist/cjs/core/Fields/FieldsInt/index.js +6 -3
- package/dist/cjs/core/Fields/FieldsInteger/index.js +6 -3
- package/dist/cjs/core/Fields/FieldsString/index.js +14 -4
- package/dist/cjs/core/Fields/FieldsTextArea/index.js +6 -3
- package/dist/cjs/core/Fields/FieldsTimePicker/index.js +7 -4
- package/dist/cjs/core/FormItem/index.js +15 -1
- package/dist/cjs/core/Frequency/index.js +4 -3
- package/dist/cjs/core/ImmersiveDialog/index.js +15 -4
- package/dist/cjs/core/Input/index.js +15 -3
- package/dist/cjs/core/InputInteger/index.js +15 -3
- package/dist/cjs/core/InputNumber/index.js +15 -3
- package/dist/cjs/core/InputPassword/index.js +15 -3
- package/dist/cjs/core/LegacySelect/index.js +18 -4
- package/dist/cjs/core/LineChart/index.js +2 -0
- package/dist/cjs/core/LocalUpload/LocalUpload.js +45 -32
- package/dist/cjs/core/Metric/index.js +3 -1
- package/dist/cjs/core/Nav/index.js +5 -2
- package/dist/cjs/core/Pagination/index.js +7 -1
- package/dist/cjs/core/Percent/index.js +4 -3
- package/dist/cjs/core/Progress/index.js +5 -3
- package/dist/cjs/core/Radio/index.js +15 -7
- package/dist/cjs/core/Second/index.js +4 -2
- package/dist/cjs/core/SimplePagination/index.js +7 -1
- package/dist/cjs/core/SmallDialog/SmallDialog.js +10 -4
- package/dist/cjs/core/SmallDialog/SmallDialog.widget.js +1 -1
- package/dist/cjs/core/Speed/index.js +4 -3
- package/dist/cjs/core/StepProgress/index.js +3 -1
- package/dist/cjs/core/Switch/index.js +5 -3
- package/dist/cjs/core/Tab/Tab.js +8 -3
- package/dist/cjs/core/Table/index.js +4 -2
- package/dist/cjs/core/TextArea/index.js +21 -3
- package/dist/cjs/core/Time/index.js +9 -8
- package/dist/cjs/core/TimePicker/index.js +1 -9
- package/dist/cjs/core/TimeZoneSelect/index.js +3 -1
- package/dist/cjs/core/Timeline/index.js +74 -59
- package/dist/cjs/core/Truncate/index.js +3 -1
- package/dist/cjs/core/WizardDialog/index.js +9 -4
- package/dist/cjs/coreX/BarChart/index.js +2 -2
- package/dist/cjs/coreX/CheckPointList/index.js +2 -2
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +1 -1
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +1 -1
- package/dist/cjs/hooks/useAntdPatchEnLocales.js +1 -1
- package/dist/cjs/hooks/useCTErrorMsg.js +3 -3
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3811 -3751
- package/dist/esm/core/AccordionCard/index.js +4 -1
- package/dist/esm/core/Alert/index.js +4 -2
- package/dist/esm/core/Arch/index.js +5 -3
- package/dist/esm/core/Avatar/index.js +3 -1
- package/dist/esm/core/Banner/index.js +16 -3
- package/dist/esm/core/BasicCTError/index.js +25 -12
- package/dist/esm/core/Bit/index.js +4 -3
- package/dist/esm/core/BitPerSecond/index.js +4 -3
- package/dist/esm/core/BlankState/index.js +14 -12
- package/dist/esm/core/Bps/index.js +4 -3
- package/dist/esm/core/Breadcrumb/index.js +4 -1
- package/dist/esm/core/ButtonGroup/index.js +3 -1
- package/dist/esm/core/Byte/index.js +6 -5
- package/dist/esm/core/BytePerSecond/index.js +4 -3
- package/dist/esm/core/Card/index.js +7 -3
- package/dist/esm/core/Checkbox/index.js +1 -1
- package/dist/esm/core/ConfigProvider/index.js +1 -1
- package/dist/esm/core/DetailCard/index.js +7 -3
- package/dist/esm/core/DonutChart/index.js +3 -1
- package/dist/esm/core/DropdownMenu/index.js +9 -4
- package/dist/esm/core/Duration/index.js +7 -6
- package/dist/esm/core/Empty/index.js +6 -3
- package/dist/esm/core/Error/index.js +4 -1
- package/dist/esm/core/FailedLoad/index.js +4 -1
- package/dist/esm/core/Fields/FieldsBoolean/index.js +11 -2
- package/dist/esm/core/Fields/FieldsDateTime/index.js +5 -1
- package/dist/esm/core/Fields/FieldsDateTimeRange/index.js +6 -3
- package/dist/esm/core/Fields/FieldsEnum/index.js +5 -3
- package/dist/esm/core/Fields/FieldsFloat/index.js +6 -3
- package/dist/esm/core/Fields/FieldsInt/index.js +6 -3
- package/dist/esm/core/Fields/FieldsInteger/index.js +6 -3
- package/dist/esm/core/Fields/FieldsString/index.js +14 -4
- package/dist/esm/core/Fields/FieldsTextArea/index.js +6 -3
- package/dist/esm/core/Fields/FieldsTimePicker/index.js +7 -4
- package/dist/esm/core/FormItem/index.js +15 -1
- package/dist/esm/core/Frequency/index.js +4 -3
- package/dist/esm/core/ImmersiveDialog/index.js +17 -6
- package/dist/esm/core/Input/index.js +15 -3
- package/dist/esm/core/InputInteger/index.js +15 -3
- package/dist/esm/core/InputNumber/index.js +15 -3
- package/dist/esm/core/InputPassword/index.js +15 -3
- package/dist/esm/core/LegacySelect/index.js +18 -4
- package/dist/esm/core/LineChart/index.js +2 -0
- package/dist/esm/core/LocalUpload/LocalUpload.js +45 -32
- package/dist/esm/core/Metric/index.js +3 -1
- package/dist/esm/core/Nav/index.js +5 -2
- package/dist/esm/core/Pagination/index.js +7 -1
- package/dist/esm/core/Percent/index.js +4 -3
- package/dist/esm/core/Progress/index.js +5 -3
- package/dist/esm/core/Radio/index.js +15 -7
- package/dist/esm/core/Second/index.js +4 -2
- package/dist/esm/core/SimplePagination/index.js +7 -1
- package/dist/esm/core/SmallDialog/SmallDialog.js +10 -4
- package/dist/esm/core/SmallDialog/SmallDialog.widget.js +1 -1
- package/dist/esm/core/Speed/index.js +4 -3
- package/dist/esm/core/StepProgress/index.js +3 -1
- package/dist/esm/core/Switch/index.js +5 -3
- package/dist/esm/core/Tab/Tab.js +8 -3
- package/dist/esm/core/Table/index.js +4 -2
- package/dist/esm/core/TextArea/index.js +21 -3
- package/dist/esm/core/Time/index.js +9 -8
- package/dist/esm/core/TimePicker/index.js +1 -9
- package/dist/esm/core/TimeZoneSelect/index.js +3 -1
- package/dist/esm/core/Timeline/index.js +74 -59
- package/dist/esm/core/Truncate/index.js +3 -1
- package/dist/esm/core/WizardDialog/index.js +9 -4
- package/dist/esm/coreX/BarChart/index.js +1 -1
- package/dist/esm/coreX/CheckPointList/index.js +1 -1
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +1 -1
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +1 -1
- package/dist/esm/hooks/useAntdPatchEnLocales.js +1 -1
- package/dist/esm/hooks/useCTErrorMsg.js +3 -3
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +4581 -4578
- package/dist/src/core/AccordionCard/accordionCard.type.d.ts +1 -0
- package/dist/src/core/Alert/alert.type.d.ts +1 -0
- package/dist/src/core/Antd5Flex/index.d.ts +1 -1
- package/dist/src/core/Arch/arch.type.d.ts +1 -0
- package/dist/src/core/AutoComplete/AutoComplete.d.ts +4 -1
- package/dist/src/core/Avatar/avatar.type.d.ts +1 -0
- package/dist/src/core/Banner/banner.types.d.ts +2 -1
- package/dist/src/core/BasicCTError/BasicCTError.type.d.ts +8 -2
- package/dist/src/core/BlankState/index.d.ts +1 -1
- package/dist/src/core/BlankState/type.d.ts +1 -0
- package/dist/src/core/Breadcrumb/breadcrumb.type.d.ts +2 -0
- package/dist/src/core/Button/button.type.d.ts +1 -0
- package/dist/src/core/Card/index.d.ts +8 -0
- package/dist/src/core/Cascader/cascader.type.d.ts +2 -0
- package/dist/src/core/Checkbox/index.d.ts +1 -1
- package/dist/src/core/DetailCard/detailCard.type.d.ts +1 -0
- package/dist/src/core/DonutChart/index.d.ts +1 -0
- package/dist/src/core/DropdownMenu/dropdownMenu.type.d.ts +2 -0
- package/dist/src/core/DropdownMenu/index.d.ts +1 -0
- package/dist/src/core/Duration/duration.type.d.ts +11 -3
- package/dist/src/core/Empty/index.d.ts +2 -1
- package/dist/src/core/Error/index.d.ts +2 -1
- package/dist/src/core/FailedLoad/index.d.ts +1 -0
- package/dist/src/core/Fields/FieldsBoolean/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsDateTime/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsEnum/fieldsEnum.type.d.ts +1 -0
- package/dist/src/core/Fields/FieldsEnum/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsFloat/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsInt/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsInteger/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsString/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsTextArea/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsTimePicker/index.d.ts +1 -1
- package/dist/src/core/Fields/__test__/data-testid.test.d.ts +1 -0
- package/dist/src/core/Fields/fields.type.d.ts +2 -1
- package/dist/src/core/Fields/index.d.ts +13 -9
- package/dist/src/core/FormItem/index.d.ts +3 -1
- package/dist/src/core/ImmersiveDialog/type.d.ts +5 -0
- package/dist/src/core/Input/input.type.d.ts +5 -0
- package/dist/src/core/InputPassword/index.d.ts +7 -2
- package/dist/src/core/LegacySelect/select.type.d.ts +1 -0
- package/dist/src/core/Legend/legend.type.d.ts +2 -0
- package/dist/src/core/LineChart/type.d.ts +4 -0
- package/dist/src/core/LocalUpload/LocalUpload.type.d.ts +4 -0
- package/dist/src/core/Metric/index.d.ts +1 -0
- package/dist/src/core/Nav/nav.type.d.ts +2 -0
- package/dist/src/core/Pagination/pagination.type.d.ts +1 -0
- package/dist/src/core/Progress/progress.type.d.ts +4 -0
- package/dist/src/core/Radio/index.d.ts +3 -1
- package/dist/src/core/Radio/radio.type.d.ts +2 -0
- package/dist/src/core/SearchInput/SearchInput.type.d.ts +4 -0
- package/dist/src/core/SegmentControl/segmentControl.type.d.ts +2 -0
- package/dist/src/core/SimplePagination/simplePagination.type.d.ts +1 -0
- package/dist/src/core/SmallDialog/SmallDialog.type.d.ts +5 -0
- package/dist/src/core/SmallDialog/index.d.ts +1 -1
- package/dist/src/core/StepProgress/stepProgress.type.d.ts +1 -0
- package/dist/src/core/Steps/steps.type.d.ts +1 -0
- package/dist/src/core/Styled/index.d.ts +6 -0
- package/dist/src/core/Switch/switch.type.d.ts +1 -0
- package/dist/src/core/Tab/Tab.type.d.ts +4 -0
- package/dist/src/core/Table/table.type.d.ts +165 -7
- package/dist/src/core/TextArea/textArea.type.d.ts +1 -0
- package/dist/src/core/Time/index.d.ts +1 -1
- package/dist/src/core/Time/time.type.d.ts +5 -0
- package/dist/src/core/TimePicker/index.d.ts +2 -0
- package/dist/src/core/TimeZoneSelect/timeZoneSelect.type.d.ts +1 -0
- package/dist/src/core/Timeline/Timeline.type.d.ts +2 -0
- package/dist/src/core/Timeline/index.d.ts +1 -1
- package/dist/src/core/Truncate/index.d.ts +1 -0
- package/dist/src/core/Units/units.type.d.ts +10 -0
- package/dist/src/core/WizardDialog/type.d.ts +2 -0
- package/dist/src/core/__test__/data-testid.test.d.ts +1 -0
- package/dist/src/coreX/CheckPointList/checkpointlist.type.d.ts +1 -1
- package/dist/src/coreX/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/stories/docs/core/Alert.stories.d.ts +1 -0
- package/dist/stories/docs/core/Arch.stories.d.ts +3 -0
- package/dist/stories/docs/core/AutoComplete.stories.d.ts +3 -1
- package/dist/stories/docs/core/Banner.stories.d.ts +2 -2
- package/dist/stories/docs/core/BasicCTError.stories.d.ts +1 -1
- package/dist/stories/docs/core/Bit.stories.d.ts +3 -0
- package/dist/stories/docs/core/BitPerSecond.stories.d.ts +3 -0
- package/dist/stories/docs/core/BlankState.stories.d.ts +1 -1
- package/dist/stories/docs/core/Bps.stories.d.ts +3 -0
- package/dist/stories/docs/core/Byte.stories.d.ts +3 -0
- package/dist/stories/docs/core/BytePerSecond.stories.d.ts +3 -0
- package/dist/stories/docs/core/Card.stories.d.ts +1 -0
- package/dist/stories/docs/core/FieldsBoolean.stories.d.ts +2 -0
- package/dist/stories/docs/core/FieldsString.stories.d.ts +4 -0
- package/dist/stories/docs/core/FieldsTimePicker.stories.d.ts +2 -0
- package/dist/stories/docs/core/Frequency.stories.d.ts +3 -0
- package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +1 -0
- package/dist/stories/docs/core/InputPassword.stories.d.ts +1 -3
- package/dist/stories/docs/core/Percent.stories.d.ts +5 -0
- package/dist/stories/docs/core/Speed.stories.d.ts +3 -0
- package/dist/stories/docs/core/Table.stories.d.ts +31 -42
- package/dist/stories/docs/core/Timeline.stories.d.ts +1 -1
- package/dist/stories/docs/core/WizardDialog.stories.d.ts +2 -0
- package/dist/stories/docs/coreX/KubeConfigModal.stories.d.ts +1 -1
- package/dist/style.css +3811 -3751
- package/docs/core/Table/guide.md +199 -0
- package/docs/llms.txt +1 -1
- package/package.json +4 -4
|
@@ -19,6 +19,12 @@ export declare const TagSpan: import("@linaria/react").StyledComponent<import("r
|
|
|
19
19
|
export declare const FullView: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
20
20
|
export declare const NameTag: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
21
21
|
export declare const FormItemDiv: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
22
|
+
/**
|
|
23
|
+
* FieldTitle 组件
|
|
24
|
+
* 使用场景:用于表单字段的标题展示
|
|
25
|
+
* 使用地方:主要在 Modal 等表单容器中使用
|
|
26
|
+
* 注意:默认字体大小为 12px,可通过 --field-title-font-size CSS 变量覆盖
|
|
27
|
+
*/
|
|
22
28
|
export declare const FieldTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
23
29
|
export declare const ExpandArrow: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown>>;
|
|
24
30
|
export declare const WarningAlert: import("@linaria/core").LinariaClassName;
|
|
@@ -11,6 +11,8 @@ export type TabItem = {
|
|
|
11
11
|
}) => React.ReactNode);
|
|
12
12
|
/** Tab 的内容 */
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
+
/** 测试标识,挂在 tab 标题的点击目标上 */
|
|
15
|
+
"data-testid"?: string;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* Tab 组件的属性
|
|
@@ -18,6 +20,8 @@ export type TabItem = {
|
|
|
18
20
|
export type TabProps = {
|
|
19
21
|
/** 外层容器的类名 */
|
|
20
22
|
className?: string;
|
|
23
|
+
/** 测试标识 */
|
|
24
|
+
"data-testid"?: string;
|
|
21
25
|
/** 内容区域的类名 */
|
|
22
26
|
contentClassName?: string;
|
|
23
27
|
/** 当前选中的 Tab 的 key */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ColumnsType, ColumnType, TableProps as AntdTableProps } from "antd/lib/table";
|
|
3
|
-
import {
|
|
2
|
+
import { ExpandableConfig, TableRowSelection } from "antd/lib/table/interface";
|
|
3
|
+
import React from "react";
|
|
4
4
|
import { ITableSkeletonProps } from "./TableSkeleton";
|
|
5
5
|
interface IdObject {
|
|
6
6
|
id: string;
|
|
@@ -12,39 +12,155 @@ type Columns<T> = ColumnsType<T>[0];
|
|
|
12
12
|
export interface RequiredColumnProps<T> extends Omit<Columns<T>, "onHeaderCell" | "onCell" | "title"> {
|
|
13
13
|
key: Exclude<Columns<T>["key"], undefined | number>;
|
|
14
14
|
dataIndex: Exclude<ColumnType<T>["dataIndex"], undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* 是否支持排序。设置为 true 时,点击表头可触发排序。
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
15
19
|
sortable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 列宽度。支持数字(像素)或字符串(如 "20%")。
|
|
22
|
+
*/
|
|
16
23
|
width?: number | string;
|
|
17
24
|
onHeaderCell?: (column: ColumnType<T>) => any;
|
|
18
25
|
onCell?: (column: T) => any;
|
|
19
26
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* which cannot access the header params
|
|
27
|
+
* 列标题。支持 React 节点或返回 React 节点的函数。
|
|
28
|
+
* 注意:函数形式不接收参数,与 antd 原生 title 函数签名不同。
|
|
23
29
|
*/
|
|
24
30
|
title: React.ReactNode | (() => React.ReactNode);
|
|
31
|
+
/**
|
|
32
|
+
* 是否允许用户自定义该列。用于列配置功能。
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
25
35
|
customizable?: boolean;
|
|
26
36
|
}
|
|
27
37
|
export type SorterOrder = "descend" | "ascend" | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* 表格组件,基于 antd Table 二次封装,提供统一的 CloudTower 表格样式。
|
|
40
|
+
*
|
|
41
|
+
* @description
|
|
42
|
+
* 用于展示结构化数据列表,支持排序、行选择、展开行、加载状态、错误状态等功能。
|
|
43
|
+
* 数据源要求每条记录包含 id 字段作为唯一标识。
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* // 基础用法
|
|
47
|
+
* import { Table } from "@cloudtower/eagle";
|
|
48
|
+
*
|
|
49
|
+
* interface VMData {
|
|
50
|
+
* id: string;
|
|
51
|
+
* name: string;
|
|
52
|
+
* status: string;
|
|
53
|
+
* cpu: number;
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* const columns = [
|
|
57
|
+
* { key: "name", title: "名称", dataIndex: "name" },
|
|
58
|
+
* { key: "status", title: "状态", dataIndex: "status" },
|
|
59
|
+
* { key: "cpu", title: "CPU", dataIndex: "cpu" },
|
|
60
|
+
* ];
|
|
61
|
+
*
|
|
62
|
+
* <Table<VMData> columns={columns} dataSource={vms} />
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* // 带行选择
|
|
66
|
+
* import { Table } from "@cloudtower/eagle";
|
|
67
|
+
* import { useState } from "react";
|
|
68
|
+
*
|
|
69
|
+
* const [selectedKeys, setSelectedKeys] = useState<string[]>([]);
|
|
70
|
+
*
|
|
71
|
+
* <Table<VMData>
|
|
72
|
+
* columns={columns}
|
|
73
|
+
* dataSource={vms}
|
|
74
|
+
* rowSelection={{
|
|
75
|
+
* selectedRowKeys: selectedKeys,
|
|
76
|
+
* onChange: (keys) => setSelectedKeys(keys as string[]),
|
|
77
|
+
* }}
|
|
78
|
+
* />
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* // 带排序和加载状态
|
|
82
|
+
* import { Table } from "@cloudtower/eagle";
|
|
83
|
+
*
|
|
84
|
+
* <Table<VMData>
|
|
85
|
+
* columns={columns}
|
|
86
|
+
* dataSource={vms}
|
|
87
|
+
* loading={isLoading}
|
|
88
|
+
* onSorterChange={(order, key) => {
|
|
89
|
+
* console.log("排序:", order, key);
|
|
90
|
+
* }}
|
|
91
|
+
* />
|
|
92
|
+
*
|
|
93
|
+
* @see TableForm - 表格表单,用于行内编辑场景
|
|
94
|
+
* @see SummaryTable - 摘要表格,用于键值对信息展示
|
|
95
|
+
* @see BatchOperation - 批量操作工具栏,配合行选择使用
|
|
96
|
+
*/
|
|
28
97
|
export interface TableProps<T extends {
|
|
29
98
|
id: string;
|
|
30
99
|
}> {
|
|
100
|
+
/**
|
|
101
|
+
* 是否显示边框。
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
31
104
|
bordered?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* 是否显示加载状态。为 true 时显示骨架屏加载动画。
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
32
109
|
loading?: boolean;
|
|
33
110
|
/**
|
|
34
|
-
*
|
|
111
|
+
* 错误状态内容。传入后将覆盖 dataSource,显示错误信息而非数据。
|
|
35
112
|
*/
|
|
36
113
|
error?: React.ReactNode | string;
|
|
114
|
+
/**
|
|
115
|
+
* 数据源数组。每条记录必须包含 id 字段作为唯一标识。
|
|
116
|
+
*/
|
|
37
117
|
dataSource: T[] | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* 列配置数组。定义表格的列结构。
|
|
120
|
+
*/
|
|
38
121
|
columns: RequiredColumnProps<T>[];
|
|
122
|
+
/**
|
|
123
|
+
* 排序变化回调。当用户点击可排序列的表头时触发。
|
|
124
|
+
* @param order - 排序方向:"descend"(降序)、"ascend"(升序)、null(取消排序)
|
|
125
|
+
* @param key - 排序列的 key
|
|
126
|
+
*/
|
|
39
127
|
onSorterChange?: (order: SorterOrder | null, key?: string | number) => void;
|
|
128
|
+
/**
|
|
129
|
+
* 行点击回调。
|
|
130
|
+
* @deprecated 请使用 onRow 替代
|
|
131
|
+
* @param record - 点击行的数据记录
|
|
132
|
+
* @param index - 行索引
|
|
133
|
+
* @param evt - 鼠标事件
|
|
134
|
+
*/
|
|
40
135
|
onRowClick?: (record: T, index: number, evt: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
136
|
+
/**
|
|
137
|
+
* 行样式类名函数。根据行数据和索引返回自定义类名。
|
|
138
|
+
*/
|
|
41
139
|
rowClassName?: (record: T, index: number) => string;
|
|
140
|
+
/**
|
|
141
|
+
* 表格滚动配置。
|
|
142
|
+
* @example
|
|
143
|
+
* // 固定表头,内容区滚动
|
|
144
|
+
* scroll={{ y: 400 }}
|
|
145
|
+
* // 水平滚动
|
|
146
|
+
* scroll={{ x: 1200 }}
|
|
147
|
+
*/
|
|
42
148
|
scroll?: {
|
|
43
149
|
x?: number | string | true;
|
|
44
150
|
y?: number | string;
|
|
45
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* 列宽调整回调。启用 resizable 后,用户拖拽调整列宽时触发。
|
|
154
|
+
*/
|
|
46
155
|
onResize?: (column: RequiredColumnProps<T>[]) => void;
|
|
156
|
+
/**
|
|
157
|
+
* 是否允许调整列宽。
|
|
158
|
+
* @default false
|
|
159
|
+
*/
|
|
47
160
|
resizable?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* 自定义表格组件。用于覆盖默认的 table/thead/tbody 渲染。
|
|
163
|
+
*/
|
|
48
164
|
components?: {
|
|
49
165
|
table?: (props: any) => any;
|
|
50
166
|
header?: {
|
|
@@ -58,25 +174,67 @@ export interface TableProps<T extends {
|
|
|
58
174
|
cell?: (props: any) => any;
|
|
59
175
|
};
|
|
60
176
|
};
|
|
177
|
+
/**
|
|
178
|
+
* 行操作菜单组件。在每行末尾渲染操作按钮或菜单。
|
|
179
|
+
*/
|
|
61
180
|
RowMenu?: React.FC<{
|
|
62
181
|
record: T;
|
|
63
182
|
index: number;
|
|
64
183
|
}>;
|
|
184
|
+
/**
|
|
185
|
+
* 行选择配置。启用后显示复选框列,支持单选或多选。
|
|
186
|
+
* @see https://ant.design/components/table-cn#rowSelection
|
|
187
|
+
*/
|
|
65
188
|
rowSelection?: TableRowSelection<T>;
|
|
189
|
+
/**
|
|
190
|
+
* 空数据时的显示内容。
|
|
191
|
+
*/
|
|
66
192
|
empty?: string | React.ReactNode;
|
|
193
|
+
/**
|
|
194
|
+
* 表格布局方式。
|
|
195
|
+
* - "fixed":固定布局,列宽由第一行决定
|
|
196
|
+
* - "auto":自动布局,列宽由内容决定
|
|
197
|
+
* @default "fixed"
|
|
198
|
+
*/
|
|
67
199
|
tableLayout?: "fixed" | "auto";
|
|
68
200
|
/**
|
|
69
|
-
*
|
|
201
|
+
* 初始化加载状态。
|
|
202
|
+
* @deprecated 请使用 loading 替代
|
|
70
203
|
*/
|
|
71
204
|
initLoading?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* 行的唯一标识字段。支持字符串或函数。
|
|
207
|
+
* @default "id"
|
|
208
|
+
*/
|
|
72
209
|
rowKey?: AntdTableProps<T>["rowKey"];
|
|
210
|
+
/**
|
|
211
|
+
* 表格容器引用。用于获取表格尺寸信息。
|
|
212
|
+
*/
|
|
73
213
|
wrapper?: React.MutableRefObject<HTMLDivElement | null>;
|
|
214
|
+
/**
|
|
215
|
+
* 分页配置。传入后将启用前端分页,通常用于骨架屏行数计算。
|
|
216
|
+
*/
|
|
74
217
|
pagination?: {
|
|
75
218
|
current: number;
|
|
76
219
|
pageSize: number;
|
|
77
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* 行属性配置。用于设置行事件(如 onClick、onMouseEnter 等)。
|
|
223
|
+
* @see https://ant.design/components/table-cn#onRow
|
|
224
|
+
*/
|
|
78
225
|
onRow?: AntdTableProps<T>["onRow"];
|
|
226
|
+
/**
|
|
227
|
+
* 骨架屏配置。自定义加载状态下的骨架屏样式。
|
|
228
|
+
*/
|
|
79
229
|
skeletonProps?: ITableSkeletonProps;
|
|
230
|
+
/**
|
|
231
|
+
* 展开行配置。用于渲染可展开的行内容。
|
|
232
|
+
* @see https://ant.design/components/table-cn#expandable
|
|
233
|
+
*/
|
|
80
234
|
expandable?: ExpandableConfig<T>;
|
|
235
|
+
/**
|
|
236
|
+
* 用于测试的标识符,会传递到表格根容器元素。
|
|
237
|
+
*/
|
|
238
|
+
"data-testid"?: string;
|
|
81
239
|
}
|
|
82
240
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ITimeProps } from "./time.type";
|
|
3
|
-
declare const Time: (
|
|
3
|
+
declare const Time: ({ className, date, dateTemplate, timeTemplate, plainText, "data-testid": dataTestId, }: ITimeProps) => React.JSX.Element;
|
|
4
4
|
export default Time;
|
|
5
5
|
export * from "./time.type";
|
|
@@ -10,5 +10,5 @@ import { TimelineProps } from "./Timeline.type";
|
|
|
10
10
|
* @param props - 组件属性
|
|
11
11
|
* @returns React 组件
|
|
12
12
|
*/
|
|
13
|
-
export declare const Timeline: ({ items, emptyText, emptyRender, compact, timelineContainerClassName, emptyTextClassName, }: TimelineProps) => ReactElement;
|
|
13
|
+
export declare const Timeline: ({ items, emptyText, emptyRender, compact, timelineContainerClassName, emptyTextClassName, "data-testid": dataTestId, }: TimelineProps) => ReactElement;
|
|
14
14
|
export * from "./Timeline.type";
|
|
@@ -69,6 +69,11 @@ export type PercentFn = React.FC<RawValue & {
|
|
|
69
69
|
* @type {IEmptyProps}
|
|
70
70
|
*/
|
|
71
71
|
emptyProps?: IEmptyProps;
|
|
72
|
+
/**
|
|
73
|
+
* 数据测试 id
|
|
74
|
+
* @type {string}
|
|
75
|
+
*/
|
|
76
|
+
"data-testid"?: string;
|
|
72
77
|
}>;
|
|
73
78
|
/**
|
|
74
79
|
* 通用单位展示组件的属性类型
|
|
@@ -80,4 +85,9 @@ export type UnitFn = React.FC<RawValue & {
|
|
|
80
85
|
* @type {IEmptyProps}
|
|
81
86
|
*/
|
|
82
87
|
emptyProps?: IEmptyProps;
|
|
88
|
+
/**
|
|
89
|
+
* 数据测试 id
|
|
90
|
+
* @type {string}
|
|
91
|
+
*/
|
|
92
|
+
"data-testid"?: string;
|
|
83
93
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AlertProps } from "../../core/Alert";
|
|
2
2
|
import { ButtonProps } from "../../core/Button";
|
|
3
3
|
import { IconProps } from "../../core/Icon";
|
|
4
|
-
import { TagProps } from "../../core/Tag";
|
|
5
4
|
import { LinkProps } from "../../core/Link";
|
|
5
|
+
import { TagProps } from "../../core/Tag";
|
|
6
6
|
import React from "react";
|
|
7
7
|
/**
|
|
8
8
|
* 检查点项的属性
|
|
@@ -25,8 +25,8 @@ export * from "./SortableList";
|
|
|
25
25
|
export * from "./SummaryTable";
|
|
26
26
|
export * from "./SwitchWithText";
|
|
27
27
|
export * from "./TabMenu";
|
|
28
|
-
export * from "./UnitWithChart";
|
|
29
28
|
export * from "./UnderlineTootip";
|
|
29
|
+
export * from "./UnitWithChart";
|
|
30
30
|
export { default as BarChart } from "./BarChart";
|
|
31
31
|
export { default as BatchOperation } from "./BatchOperation";
|
|
32
32
|
export { default as ChartWithTooltip } from "./ChartWithTooltip";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from "./compute";
|
|
2
2
|
export * from "./constants";
|
|
3
3
|
export * from "./cron-time";
|
|
4
|
+
export * from "./cterror";
|
|
4
5
|
export * from "./dom";
|
|
6
|
+
export * from "./formatDuration";
|
|
5
7
|
export * from "./formatValue";
|
|
6
8
|
export * from "./icon";
|
|
7
9
|
export * from "./isStringArr";
|
|
8
10
|
export * from "./time";
|
|
9
|
-
export * from "./cterror";
|
|
10
|
-
export * from "./formatDuration";
|
|
@@ -4,6 +4,7 @@ import React from "react";
|
|
|
4
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("antd/lib/alert").AlertProps, "type"> & {
|
|
5
5
|
type?: "normal" | "success" | "info" | "warning" | "error" | undefined;
|
|
6
6
|
action?: React.ReactNode;
|
|
7
|
+
"data-testid"?: string | undefined;
|
|
7
8
|
} & {
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
}>;
|
|
@@ -2,17 +2,20 @@ import { Architecture } from "../../../src/core/Arch";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
4
4
|
architecture?: Architecture | undefined;
|
|
5
|
+
"data-testid"?: string | undefined;
|
|
5
6
|
} & {
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
}>;
|
|
8
9
|
export default _default;
|
|
9
10
|
export declare const Aarch64: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
10
11
|
architecture?: Architecture | undefined;
|
|
12
|
+
"data-testid"?: string | undefined;
|
|
11
13
|
} & {
|
|
12
14
|
children?: React.ReactNode;
|
|
13
15
|
}>;
|
|
14
16
|
export declare const X86_64: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
15
17
|
architecture?: Architecture | undefined;
|
|
18
|
+
"data-testid"?: string | undefined;
|
|
16
19
|
} & {
|
|
17
20
|
children?: React.ReactNode;
|
|
18
21
|
}>;
|
|
@@ -19,7 +19,9 @@ import React from "react";
|
|
|
19
19
|
* 更多属性请参考 antd AutoComplete 组件文档
|
|
20
20
|
*/
|
|
21
21
|
declare const meta: {
|
|
22
|
-
component: React.FC<import("antd5").AutoCompleteProps<any, import("antd5/es/select").DefaultOptionType
|
|
22
|
+
component: React.FC<import("antd5").AutoCompleteProps<any, import("antd5/es/select").DefaultOptionType> & {
|
|
23
|
+
"data-testid"?: string | undefined;
|
|
24
|
+
}>;
|
|
23
25
|
title: "Core/AutoComplete | 自动完成";
|
|
24
26
|
args: {
|
|
25
27
|
placeholder: string;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
3
3
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
} & {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
}>;
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
9
10
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
11
|
+
"data-testid"?: string | undefined;
|
|
10
12
|
} & {
|
|
11
13
|
children?: React.ReactNode;
|
|
12
14
|
}>;
|
|
13
15
|
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
14
16
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
17
|
+
"data-testid"?: string | undefined;
|
|
15
18
|
} & {
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
}>;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
3
3
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
} & {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
}>;
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
9
10
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
11
|
+
"data-testid"?: string | undefined;
|
|
10
12
|
} & {
|
|
11
13
|
children?: React.ReactNode;
|
|
12
14
|
}>;
|
|
13
15
|
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
14
16
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
17
|
+
"data-testid"?: string | undefined;
|
|
15
18
|
} & {
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
}>;
|
|
@@ -2,7 +2,7 @@ import BlankState from "../../../src/core/BlankState";
|
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
3
|
import React from "react";
|
|
4
4
|
declare const meta: {
|
|
5
|
-
component: (
|
|
5
|
+
component: ({ className, style, width, height, title, description, action, backgroundColor, size, "data-testid": dataTestId, }: import("../../../src/core/BlankState/type").IBlankStateProps) => React.JSX.Element;
|
|
6
6
|
title: "Core/BlankState | 空白状态";
|
|
7
7
|
parameters: {
|
|
8
8
|
design: {
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
3
3
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
} & {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
}>;
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
9
10
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
11
|
+
"data-testid"?: string | undefined;
|
|
10
12
|
} & {
|
|
11
13
|
children?: React.ReactNode;
|
|
12
14
|
}>;
|
|
13
15
|
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
14
16
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
17
|
+
"data-testid"?: string | undefined;
|
|
15
18
|
} & {
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
}>;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
3
3
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
} & {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
}>;
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
9
10
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
11
|
+
"data-testid"?: string | undefined;
|
|
10
12
|
} & {
|
|
11
13
|
children?: React.ReactNode;
|
|
12
14
|
}>;
|
|
13
15
|
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
14
16
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
17
|
+
"data-testid"?: string | undefined;
|
|
15
18
|
} & {
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
}>;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
3
3
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
} & {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
}>;
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
9
10
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
11
|
+
"data-testid"?: string | undefined;
|
|
10
12
|
} & {
|
|
11
13
|
children?: React.ReactNode;
|
|
12
14
|
}>;
|
|
13
15
|
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
|
|
14
16
|
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
17
|
+
"data-testid"?: string | undefined;
|
|
15
18
|
} & {
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
}>;
|
|
@@ -10,6 +10,7 @@ declare const meta: {
|
|
|
10
10
|
className?: string | undefined;
|
|
11
11
|
hoverable?: boolean | undefined;
|
|
12
12
|
shadow?: boolean | undefined;
|
|
13
|
+
"data-testid"?: string | undefined;
|
|
13
14
|
} & React.DOMAttributes<HTMLDivElement> & {
|
|
14
15
|
children?: React.ReactNode;
|
|
15
16
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").FieldRenderProps<any, HTMLElement> & {
|
|
2
2
|
disabled?: boolean | undefined;
|
|
3
3
|
className?: string | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
}>;
|
|
5
6
|
export default _default;
|
|
6
7
|
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").FieldRenderProps<any, HTMLElement> & {
|
|
7
8
|
disabled?: boolean | undefined;
|
|
8
9
|
className?: string | undefined;
|
|
10
|
+
"data-testid"?: string | undefined;
|
|
9
11
|
}>;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").FieldRenderProps<any, HTMLElement> & {
|
|
2
2
|
disabled?: boolean | undefined;
|
|
3
3
|
className?: string | undefined;
|
|
4
|
+
"data-testid"?: string | undefined;
|
|
4
5
|
} & import("../../../src/core/Fields/FieldsString").StringProps>;
|
|
5
6
|
export default _default;
|
|
6
7
|
export declare const WithoutTags: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").FieldRenderProps<any, HTMLElement> & {
|
|
7
8
|
disabled?: boolean | undefined;
|
|
8
9
|
className?: string | undefined;
|
|
10
|
+
"data-testid"?: string | undefined;
|
|
9
11
|
} & import("../../../src/core/Fields/FieldsString").StringProps>;
|
|
10
12
|
export declare const WithOneTag: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").FieldRenderProps<any, HTMLElement> & {
|
|
11
13
|
disabled?: boolean | undefined;
|
|
12
14
|
className?: string | undefined;
|
|
15
|
+
"data-testid"?: string | undefined;
|
|
13
16
|
} & import("../../../src/core/Fields/FieldsString").StringProps>;
|
|
14
17
|
export declare const WithTags: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").FieldRenderProps<any, HTMLElement> & {
|
|
15
18
|
disabled?: boolean | undefined;
|
|
16
19
|
className?: string | undefined;
|
|
20
|
+
"data-testid"?: string | undefined;
|
|
17
21
|
} & import("../../../src/core/Fields/FieldsString").StringProps>;
|