@cloudtower/eagle 0.27.62 → 0.27.63
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/Tooltip/index.js +2 -4
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3014 -3014
- package/dist/esm/core/Tooltip/index.js +2 -4
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Tooltip/index.d.ts +1 -1
- package/dist/src/core/Tooltip/tooltip.type.d.ts +7 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/spec/base.d.ts +1 -4
- package/dist/stories/docs/core/Tooltip.stories.d.ts +32 -5
- package/dist/style.css +2637 -2637
- package/package.json +5 -5
package/dist/src/index.d.ts
CHANGED
|
@@ -7,9 +7,10 @@ export * from "./core/Cascader/cascader.widget";
|
|
|
7
7
|
export { RenderMenuItem } from "./core/DropdownMenu";
|
|
8
8
|
export { default as DropdownMenu } from "./core/DropdownMenu";
|
|
9
9
|
export * from "./core/TableForm/types";
|
|
10
|
+
export * from "./core/Tooltip/tooltip.type";
|
|
10
11
|
export * from "./coreX";
|
|
11
12
|
export { useElementsSize } from "./hooks";
|
|
12
|
-
export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, SummaryTableItem, TableProps, TagColor, TextAreaProps,
|
|
13
|
+
export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, SummaryTableItem, TableProps, TagColor, TextAreaProps, WizardSteps, } from "./spec";
|
|
13
14
|
export * from "./spec/type";
|
|
14
15
|
export type { CloseCb, GetModalProps, IModalProps, KitRootState, ModalType, } from "./store";
|
|
15
16
|
export { closeModal, ModalActions, popModal, pushModal, UIKitStore, } from "./store";
|
package/dist/src/spec/base.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CardProps } from "../core/Card";
|
|
|
3
3
|
import { IEmptyProps } from "../core/Empty";
|
|
4
4
|
import { MessageApi } from "../core/message";
|
|
5
5
|
import { TableFormHandle, TableFormProps } from "../core/TableForm/types";
|
|
6
|
+
import { TooltipProps } from "../core/Tooltip/tooltip.type";
|
|
6
7
|
import { TruncatePropTypes } from "../core/Truncate";
|
|
7
8
|
import type { OverflowTooltipProps } from "../coreX/OverflowTooltip/overflowTooltip.type";
|
|
8
9
|
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
@@ -48,7 +49,6 @@ import { TabPaneProps, TabsProps } from "antd/lib/tabs";
|
|
|
48
49
|
import { TagProps } from "antd/lib/tag";
|
|
49
50
|
import { TimePickerProps } from "antd/lib/time-picker";
|
|
50
51
|
import { TimeLineItemProps, TimelineProps } from "antd/lib/timeline";
|
|
51
|
-
import { TooltipProps as AntdTooltipProps } from "antd/lib/tooltip";
|
|
52
52
|
import { TreeProps as AntdTreeProps } from "antd/lib/tree";
|
|
53
53
|
import type TreeSelect from "antd/lib/tree-select";
|
|
54
54
|
import { TextProps } from "antd/lib/typography/Text";
|
|
@@ -265,9 +265,6 @@ export interface FloatProps {
|
|
|
265
265
|
size?: InputSize;
|
|
266
266
|
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
267
267
|
}
|
|
268
|
-
export type TooltipProps = AntdTooltipProps & {
|
|
269
|
-
followMouse?: boolean;
|
|
270
|
-
};
|
|
271
268
|
export type FieldBaseProps<V = any, T extends HTMLElement = HTMLElement> = FieldRenderProps<V, T> & {
|
|
272
269
|
disabled?: boolean;
|
|
273
270
|
className?: string;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Tooltip from "../../../src/core/Tooltip";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
2
3
|
import React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* * antd4 组件
|
|
6
|
+
* * 更多 props 请参考:https://4x-ant-design.antgroup.com/components/tooltip-cn/#API
|
|
7
|
+
* * 自定义 props 已在表格进行说明
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
declare const meta: {
|
|
11
|
+
component: React.FunctionComponent<import("../../../src").TooltipProps>;
|
|
12
|
+
title: "Core/Tooltip | 悬浮提示";
|
|
13
|
+
parameters: {
|
|
14
|
+
design: {
|
|
15
|
+
type: string;
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof Tooltip>;
|
|
22
|
+
/**
|
|
23
|
+
* Tooltip 与 按钮组件结合
|
|
24
|
+
*/
|
|
25
|
+
export declare const TooltipWithButton: Story;
|
|
26
|
+
/**
|
|
27
|
+
* 自定义 tooltip 放置位置
|
|
28
|
+
*/
|
|
29
|
+
export declare const Placement: Story;
|
|
30
|
+
/**
|
|
31
|
+
* 自定义悬浮提示 overlay 部分样式
|
|
32
|
+
*/
|
|
33
|
+
export declare const CustomOverlay: Story;
|