@cloudtower/eagle 0.27.65 → 0.27.69
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/DeprecatedProgress/index.js +29 -0
- package/dist/cjs/core/Progress/components.js +111 -0
- package/dist/cjs/core/Progress/index.js +125 -13
- package/dist/cjs/core/Progress/progress.const.js +12 -0
- package/dist/cjs/core/Progress/progress.style.js +11 -0
- package/dist/cjs/core/Progress/progress.widgets.js +135 -0
- package/dist/cjs/core/antd.js +2 -2
- package/dist/cjs/index.js +26 -19
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/styles/token/animation.js +7 -0
- package/dist/cjs/styles/token/color.js +3 -0
- package/dist/cjs/utils/isStringArr.js +7 -0
- package/dist/components.css +1903 -1805
- package/dist/esm/core/DeprecatedProgress/index.js +23 -0
- package/dist/esm/core/Progress/components.js +102 -0
- package/dist/esm/core/Progress/index.js +125 -13
- package/dist/esm/core/Progress/progress.const.js +10 -0
- package/dist/esm/core/Progress/progress.style.js +6 -0
- package/dist/esm/core/Progress/progress.widgets.js +128 -0
- package/dist/esm/core/antd.js +2 -2
- package/dist/esm/index.js +3 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/styles/token/animation.js +5 -0
- package/dist/esm/styles/token/color.js +3 -0
- package/dist/esm/utils/isStringArr.js +5 -0
- package/dist/src/core/DeprecatedProgress/index.d.ts +4 -0
- package/dist/src/core/Progress/components.d.ts +10 -0
- package/dist/src/core/Progress/index.d.ts +3 -3
- package/dist/src/core/Progress/progress.const.d.ts +6 -0
- package/dist/src/core/Progress/progress.style.d.ts +4 -0
- package/dist/src/core/Progress/progress.type.d.ts +84 -0
- package/dist/src/core/Progress/progress.widgets.d.ts +4 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/spec/base.d.ts +9 -9
- package/dist/src/spec/type.d.ts +9 -0
- package/dist/src/styles/token/animation.d.ts +3 -0
- package/dist/src/styles/token/color.d.ts +3 -0
- package/dist/src/styles/token/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/isStringArr.d.ts +1 -0
- package/dist/stories/docs/core/InputInteger.stories.d.ts +28 -0
- package/dist/stories/docs/core/Progress/Progress.stories.d.ts +24 -0
- package/dist/stories/docs/core/Progress/Progress.widgets.stories.d.ts +24 -0
- package/dist/stories/docs/core/Progress/RichProgress.stories.d.ts +37 -0
- package/dist/stories/docs/core/Progress/SimpleProgress.stories.d.ts +15 -0
- package/dist/style.css +1884 -1793
- package/package.json +5 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconFieldProps, InfoProps } from "../../core/Progress/progress.type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const StatusIconMap: {
|
|
4
|
+
success: JSX.Element;
|
|
5
|
+
failed: JSX.Element;
|
|
6
|
+
paused: JSX.Element;
|
|
7
|
+
active: JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export declare const IconField: React.FC<IconFieldProps>;
|
|
10
|
+
export declare const Info: React.FC<InfoProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { ProgressProps } from "../../core/Progress/progress.type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const Progress: React.FC<ProgressProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DescriptionStyle: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const FlexFullContentStyle: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const BaseProgressStyle: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const ProgressStyle: import("@linaria/core").LinariaClassName;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SrcType } from "../../core/BaseIcon";
|
|
3
|
+
import type { LinkProps, TagProps } from "../../spec";
|
|
4
|
+
export type ComponentType = "tag" | "title" | "description" | "link" | "iconField";
|
|
5
|
+
export type TitleAreaProps = {
|
|
6
|
+
title: string;
|
|
7
|
+
tag?: TagProps;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
};
|
|
10
|
+
export type AreaProps = {
|
|
11
|
+
/**
|
|
12
|
+
* 组件间的间距
|
|
13
|
+
*/
|
|
14
|
+
gap?: number;
|
|
15
|
+
/**
|
|
16
|
+
* 组件分割符
|
|
17
|
+
*/
|
|
18
|
+
split?: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 需要连接在一起的组件,支持配置 ComponentType 类型的组件
|
|
22
|
+
*/
|
|
23
|
+
items: Items;
|
|
24
|
+
};
|
|
25
|
+
export type InfoProps = {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
type: "title" | "description";
|
|
28
|
+
multiLines: number;
|
|
29
|
+
};
|
|
30
|
+
export type IconFieldProps = {
|
|
31
|
+
className?: string;
|
|
32
|
+
status?: "success" | "failed" | "paused" | "active";
|
|
33
|
+
src: SrcType;
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export type Items = ({
|
|
37
|
+
type: ComponentType;
|
|
38
|
+
} & ComponentPropsMap[ComponentType])[];
|
|
39
|
+
export type ComponentPropsMap = {
|
|
40
|
+
tag: TagProps;
|
|
41
|
+
title: InfoProps;
|
|
42
|
+
description: InfoProps;
|
|
43
|
+
iconField: IconFieldProps;
|
|
44
|
+
link: Omit<LinkProps, "type"> & {
|
|
45
|
+
linkType: LinkProps["type"];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type ProgressProps = {
|
|
49
|
+
/**
|
|
50
|
+
* progress 的类型,分为基础进度条、简单进度条和富格式进度条
|
|
51
|
+
*/
|
|
52
|
+
type?: "base" | "simple" | "rich";
|
|
53
|
+
/**
|
|
54
|
+
* 进度条的状态
|
|
55
|
+
*/
|
|
56
|
+
status?: "success" | "failed" | "paused" | "active";
|
|
57
|
+
/**
|
|
58
|
+
* indeterminate 指定为 true 时,进度条仅表示加载状态,无具体进度。用于不确定任务花费多长时间,一般配合加载完成时,进度条消失的场景使用
|
|
59
|
+
*/
|
|
60
|
+
indeterminate?: boolean;
|
|
61
|
+
className?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 进度
|
|
64
|
+
*/
|
|
65
|
+
percent?: number;
|
|
66
|
+
/**
|
|
67
|
+
* 进度条左上方区域
|
|
68
|
+
*/
|
|
69
|
+
leftTop?: React.ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* 进度条左下方区域
|
|
72
|
+
*/
|
|
73
|
+
leftBottom?: React.ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* 进度条右上方区域
|
|
76
|
+
*/
|
|
77
|
+
rightTop?: React.ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* 进度条右下方区域
|
|
80
|
+
*/
|
|
81
|
+
rightBottom?: React.ReactNode;
|
|
82
|
+
size?: "small" | "large";
|
|
83
|
+
style?: React.CSSProperties;
|
|
84
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export * from "./core/Cascader/cascader.type";
|
|
|
6
6
|
export * from "./core/Cascader/cascader.widget";
|
|
7
7
|
export { RenderMenuItem } from "./core/DropdownMenu";
|
|
8
8
|
export { default as DropdownMenu } from "./core/DropdownMenu";
|
|
9
|
+
export { Progress } from "./core/Progress";
|
|
10
|
+
export * from "./core/Progress/progress.type";
|
|
11
|
+
export * from "./core/Progress/progress.widgets";
|
|
9
12
|
export * from "./core/TableForm/types";
|
|
10
13
|
export * from "./core/Tooltip/tooltip.type";
|
|
11
14
|
export * from "./coreX";
|
package/dist/src/spec/base.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { MenuItemProps } from "antd/lib/menu/MenuItem";
|
|
|
34
34
|
import { SubMenuProps } from "antd/lib/menu/SubMenu";
|
|
35
35
|
import { ModalProps as AntdModalProps } from "antd/lib/modal";
|
|
36
36
|
import { PopoverProps } from "antd/lib/popover";
|
|
37
|
-
import { ProgressProps } from "antd/lib/progress";
|
|
37
|
+
import { ProgressProps as AntdProgressProps } from "antd/lib/progress";
|
|
38
38
|
import { RadioGroupProps as AntdRadioGroupProps, RadioProps as AntdRadioProps } from "antd/lib/radio";
|
|
39
39
|
import { RadioButtonProps as AntdRadioButtonProps } from "antd/lib/radio/radioButton";
|
|
40
40
|
import { RowProps } from "antd/lib/row";
|
|
@@ -46,7 +46,7 @@ import { SwitchProps as AntdSwitchProps } from "antd/lib/switch";
|
|
|
46
46
|
import { ColumnsType, ColumnType, TableProps as AntdTableProps } from "antd/lib/table";
|
|
47
47
|
import { TableRowSelection } from "antd/lib/table/interface";
|
|
48
48
|
import { TabPaneProps, TabsProps } from "antd/lib/tabs";
|
|
49
|
-
import { TagProps } from "antd/lib/tag";
|
|
49
|
+
import { TagProps as AntdTagProps } from "antd/lib/tag";
|
|
50
50
|
import { TimePickerProps } from "antd/lib/time-picker";
|
|
51
51
|
import { TimeLineItemProps, TimelineProps } from "antd/lib/timeline";
|
|
52
52
|
import { TreeProps as AntdTreeProps } from "antd/lib/tree";
|
|
@@ -444,7 +444,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
|
444
444
|
radioGroup: React.FC<AntdRadioGroupProps>;
|
|
445
445
|
radioButton: React.FC<RadioButtonProps>;
|
|
446
446
|
tree: React.FC<AntdTreeProps>;
|
|
447
|
-
|
|
447
|
+
DeprecatedProgress: React.FC<AntdProgressProps>;
|
|
448
448
|
divider: React.FC<AntdDividerProps>;
|
|
449
449
|
skeleton: React.FC<AntdSkeletonProps>;
|
|
450
450
|
skeletonButton: {
|
|
@@ -561,7 +561,6 @@ export type OptionComponentType = React.FC<OptionProps> & {
|
|
|
561
561
|
export type BadgeComponentType = React.FC<BadgeProps & {
|
|
562
562
|
type?: BadgeTypeProps;
|
|
563
563
|
}>;
|
|
564
|
-
export type ProgressComponentType = React.FC<ProgressProps>;
|
|
565
564
|
export type InputGroupComponentType = StyledMeta & React.FC<GroupProps>;
|
|
566
565
|
export type AlertComponentType = React.FunctionComponent<Omit<AlertProps, "type"> & {
|
|
567
566
|
type?: AlertProps["type"] | "normal";
|
|
@@ -580,7 +579,7 @@ export type EnumProps<V = any, T extends HTMLElement = HTMLElement> = {
|
|
|
580
579
|
} & BaseEnumProps;
|
|
581
580
|
export type TableFormPropsType = React.ForwardRefExoticComponent<TableFormProps & React.RefAttributes<TableFormHandle>>;
|
|
582
581
|
export type TagColor = "red" | "yellow" | "green" | "blue" | "purple" | "gray" | "red-ontint" | "green-ontint" | "error" | "warning" | "processing" | "default" | "success";
|
|
583
|
-
export type SplitTagComponentType = React.FC<Omit<
|
|
582
|
+
export type SplitTagComponentType = React.FC<Omit<AntdTagProps, "closable" | "closeIcon" | "onClose" | "visible"> & {
|
|
584
583
|
color?: "red" | "yellow" | "green" | "blue" | "purple" | "gray";
|
|
585
584
|
size?: "small" | "medium";
|
|
586
585
|
primaryContent: React.ReactNode;
|
|
@@ -590,16 +589,17 @@ export interface NameTagType extends Omit<React.HTMLAttributes<HTMLSpanElement>,
|
|
|
590
589
|
className?: string;
|
|
591
590
|
style?: React.CSSProperties;
|
|
592
591
|
}
|
|
593
|
-
export type
|
|
592
|
+
export type TagProps = Omit<AntdTagProps, "closable" | "closeIcon" | "onClose"> & {
|
|
594
593
|
color?: TagColor;
|
|
595
594
|
size?: "small" | "medium";
|
|
596
595
|
hoverable?: boolean;
|
|
597
|
-
}
|
|
596
|
+
};
|
|
597
|
+
export type TagComponentType = React.FC<TagProps> & {
|
|
598
598
|
SplitTag: SplitTagComponentType;
|
|
599
599
|
NameTag: React.FC<NameTagType>;
|
|
600
600
|
};
|
|
601
601
|
export type StatusCapsuleColor = "red" | "yellow" | "green" | "blue" | "gray" | "success" | "danger" | "warning";
|
|
602
|
-
export type StatusCapsuleComponentType = React.FC<Omit<
|
|
602
|
+
export type StatusCapsuleComponentType = React.FC<Omit<AntdTagProps, "closable" | "closeIcon" | "onClose" | "icon" | "size"> & {
|
|
603
603
|
color?: StatusCapsuleColor;
|
|
604
604
|
loading?: boolean;
|
|
605
605
|
hoverable?: boolean;
|
|
@@ -607,7 +607,7 @@ export type StatusCapsuleComponentType = React.FC<Omit<TagProps, "closable" | "c
|
|
|
607
607
|
number?: number;
|
|
608
608
|
}>;
|
|
609
609
|
export type TokenColor = "red" | "yellow" | "green" | "blue" | "gray" | "purple";
|
|
610
|
-
export type TokenType = Omit<
|
|
610
|
+
export type TokenType = Omit<AntdTagProps, "closeIcon"> & {
|
|
611
611
|
color?: TokenColor;
|
|
612
612
|
size?: "small" | "medium" | "large";
|
|
613
613
|
checked?: boolean;
|
package/dist/src/spec/type.d.ts
CHANGED
|
@@ -7,8 +7,17 @@ export declare enum Architecture {
|
|
|
7
7
|
X86_64 = "X86_64"
|
|
8
8
|
}
|
|
9
9
|
export interface AdditionOptions {
|
|
10
|
+
/**
|
|
11
|
+
* 使用变量控制是否显示 error 效果
|
|
12
|
+
*/
|
|
10
13
|
error?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 是否显示箭头按钮,用于加减数值
|
|
16
|
+
*/
|
|
11
17
|
controls?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 开启 control 后,不会显示 suffix
|
|
20
|
+
*/
|
|
12
21
|
suffix?: string;
|
|
13
22
|
}
|
|
14
23
|
export type SizeType = "small" | "middle" | "large";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isStringArray(arr: unknown): arr is string[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import InputInteger from "../../../src/core/InputInteger";
|
|
3
|
+
import { StoryObj } from "@storybook/react";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: import("react").FC<import("antd/lib/input-number").InputNumberProps & import("../../../src").AdditionOptions>;
|
|
6
|
+
title: "Core/InputInteger | 整数输入";
|
|
7
|
+
parameters: {
|
|
8
|
+
design: {
|
|
9
|
+
type: string;
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof InputInteger>;
|
|
16
|
+
export declare const MiddleSize: Story;
|
|
17
|
+
export declare const SmallSize: Story;
|
|
18
|
+
export declare const LargeSize: Story;
|
|
19
|
+
/**
|
|
20
|
+
* Control 默认值为 false。
|
|
21
|
+
* 默认不使用箭头按钮。
|
|
22
|
+
*/
|
|
23
|
+
export declare const ShowControl: Story;
|
|
24
|
+
/**
|
|
25
|
+
* 在输入框的末尾显示文字。
|
|
26
|
+
* 如果开启 control,则不会显示
|
|
27
|
+
*/
|
|
28
|
+
export declare const Suffix: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ProgressProps } from "../../../../src/core/Progress/progress.type";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
type Story = StoryObj<React.FC<ProgressProps>>;
|
|
5
|
+
/**
|
|
6
|
+
* 进度条,表明事物正在加载的状态与进度,用于渲染或加载数据时间较长的场景。
|
|
7
|
+
*
|
|
8
|
+
* 基础(type='base')进度条宽度默认为 220px
|
|
9
|
+
*
|
|
10
|
+
* 简单进度条和富格式进度条宽度随容器宽度变化
|
|
11
|
+
*/
|
|
12
|
+
declare const meta: Meta<React.FC<ProgressProps>>;
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const Basic: Story;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* 当指定 indeterminate 为 true 时,表示进度不明确,此时没有具体进度,仅表示事物正在加载
|
|
18
|
+
*
|
|
19
|
+
* 设置 indeterminate 后,status、percent 等参数均会失效
|
|
20
|
+
*
|
|
21
|
+
* 参考[Loading Progress Indicator](https://www.figma.com/file/xfGf2oCgsi1s2EvFPNyJd8/Pattern%EF%BC%9A%E5%8A%A0%E8%BD%BD%E7%8A%B6%E6%80%81?node-id=788%3A22232&mode=dev)
|
|
22
|
+
*/
|
|
23
|
+
export declare const Indeterminate: Story;
|
|
24
|
+
export declare const Variants: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Area, TitleArea } from "../../../../src/core/Progress/progress.widgets";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
/**
|
|
4
|
+
* Progress 提供了两种小部件,用于传递给 Progress 的上下左右四个可定制区域
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Area>;
|
|
7
|
+
export default meta;
|
|
8
|
+
/**
|
|
9
|
+
* TitleArea 一般用于传递给 Progress 的 leftTop 属性,它由 Tag(可选)、title(必须)、subtitle(可选)组成
|
|
10
|
+
*
|
|
11
|
+
* 如果只需要 title,请考虑直接传递给 leftTop 字符串
|
|
12
|
+
*/
|
|
13
|
+
export declare const TitleAreaWidget: StoryObj<typeof TitleArea>;
|
|
14
|
+
/**
|
|
15
|
+
* Area 可以通过配置拼接对应类型的组件,用于展示 Progress 的其它区域
|
|
16
|
+
*
|
|
17
|
+
* Area 提供五种类型的组件分别是 "tag"、"title"、"description"、"link"、"iconField"
|
|
18
|
+
*
|
|
19
|
+
* 需要注意 link 和 iconField 的区别,前者对应 [Link](http://localhost:6006/?path=/docs/core-link-%E6%96%87%E6%9C%AC%E9%93%BE%E6%8E%A5--docs) 组件,行为与 Link 组件一致。后者 text 是只读文本,无 hover 样式
|
|
20
|
+
*
|
|
21
|
+
* 其中 iconFiled 类型的组件内置了四种预置的效果与 progress 状态匹配,直接传递相应的 status 即可。也可以通过 src 来实现自定义的 icon
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare const AreaWidget: StoryObj<typeof Area>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ProgressProps } from "../../../../src/core/Progress/progress.type";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
type Story = StoryObj<React.FC<ProgressProps>>;
|
|
5
|
+
/**
|
|
6
|
+
* 富格式进度条支持四个可定制的区域,用于描述更丰富的进度信息
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<React.FC<ProgressProps>>;
|
|
9
|
+
export default meta;
|
|
10
|
+
/**
|
|
11
|
+
* Rich Progress 由 Base Progress 和上下左右四个可定制部分组成,它们分别是:
|
|
12
|
+
*
|
|
13
|
+
* - leftTop:展示 Title 相关的内容,Title 是必须的,如果需要 Tag+Title+Subtitle 的组合,可以使用 TitleArea 组件,参考 Widgets 部分
|
|
14
|
+
*
|
|
15
|
+
* - rightTop:展示 Status 相关的内容,表明状态的 status 部分是必须的,由 icon + text 组成,如果不需要 icon,可以直接传递 string 给 rightTop,如果需要配置 icon 请使用 Widgets 提供的 iconFiled
|
|
16
|
+
*
|
|
17
|
+
* - leftBottom:通常用于展示一些描述信息,直接传递字符串数组会通过 「·」 进行连接,可以满足大部分场景。也支持通过 Area 或者自己定制
|
|
18
|
+
*
|
|
19
|
+
* - rightBottom:通常展示一些操作相关的内容,支持通过 Area 或者自己定制
|
|
20
|
+
*
|
|
21
|
+
* 需要特别注意设计稿上 Icon 后跟的是 Link 文本(有 hover 样式)还是只读文本,前者对应 Widgets 中的 Link 组件,后者对应 IconField 组件
|
|
22
|
+
*/
|
|
23
|
+
export declare const Basic: Story;
|
|
24
|
+
/**
|
|
25
|
+
* 空间不足时,leftTop 区域会按**Title 占剩余空间的 2/3,Subtitle 占 1/3**的方式截断打点(…);
|
|
26
|
+
*
|
|
27
|
+
* Hover 被截断的对象,在 Tooltip 内显示完整文案。
|
|
28
|
+
*/
|
|
29
|
+
export declare const TruncateTitle: Story;
|
|
30
|
+
/**
|
|
31
|
+
* 空间不足时,leftBottom 区域也会进行溢出截断,如果 rightBottom 有内容,则超出一行溢出,如果 rightBottom 无内容,则超出两行溢出
|
|
32
|
+
*/
|
|
33
|
+
export declare const TruncateDescription: Story;
|
|
34
|
+
/**
|
|
35
|
+
* 各变体内部,均支持上述 optional 的构成元素。以下列出常见情况:
|
|
36
|
+
*/
|
|
37
|
+
export declare const Variants: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ProgressProps } from "../../../../src/core/Progress/progress.type";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
type Story = StoryObj<React.FC<ProgressProps>>;
|
|
5
|
+
declare const meta: Meta<React.FC<ProgressProps>>;
|
|
6
|
+
export default meta;
|
|
7
|
+
/**
|
|
8
|
+
* 简单进度条有 Single Row 和 Double Rows 两种布局情况
|
|
9
|
+
*/
|
|
10
|
+
export declare const Basic: Story;
|
|
11
|
+
/**
|
|
12
|
+
* 容器宽度不足时,Step name 截断打点(…);Hover 显示 Tooltip,在 Tooltip 内展示完整 Step name。
|
|
13
|
+
*/
|
|
14
|
+
export declare const Simple: Story;
|
|
15
|
+
export declare const Variants: Story;
|