@cloudtower/eagle 0.34.7 → 0.34.8

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,43 @@
1
+ import type { TooltipProps } from "../../core";
2
+ import type { Property } from "csstype";
3
+ import React from "react";
4
+ export type UnderlineTooltipProps = TooltipProps & {
5
+ /**
6
+ * 设置在 tooltip 触发元素下显示下划线的属性
7
+ */
8
+ /**
9
+ * 设置下划线类型
10
+ * @default dashed
11
+ */
12
+ style?: Property.BorderBottomStyle;
13
+ /**
14
+ * 设置下划线颜色
15
+ * @default rgba(107, 128, 167, 0.6)
16
+ */
17
+ color?: Property.BorderBottomColor;
18
+ /**
19
+ * 设置下划线宽度,如果类型为 number 时单位为 px
20
+ * @default 1px
21
+ */
22
+ width?: Property.BorderBottomWidth;
23
+ /**
24
+ * 设置内容文字颜色
25
+ *
26
+ */
27
+ contentColor?: "black" | "gray";
28
+ /**
29
+ * 用于设定用户自定义颜色,与 color 冲突,同时设置的情况下 color 不生效
30
+ */
31
+ customContentColor?: string;
32
+ /**
33
+ * 下划线内容元素样式
34
+ */
35
+ underlineContentClassName?: string;
36
+ /**
37
+ * 是否为链接
38
+ */
39
+ link?: boolean;
40
+ };
41
+ export declare const UnderlineTooltipStyle: import("@linaria/core").LinariaClassName;
42
+ declare const UnderlineTooltip: React.FC<UnderlineTooltipProps>;
43
+ export default UnderlineTooltip;
@@ -14,6 +14,7 @@ export * from "./DropdownTransition";
14
14
  export * from "./GoBackButton";
15
15
  export * from "./I18nNameTag";
16
16
  export * from "./InfoRowList";
17
+ export * from "./KubeConfigModal";
17
18
  export * from "./NamesTooltip";
18
19
  export * from "./OverflowTooltip";
19
20
  export * from "./Show";
@@ -24,7 +25,7 @@ export * from "./SummaryTable";
24
25
  export * from "./SwitchWithText";
25
26
  export * from "./TabMenu";
26
27
  export * from "./UnitWithChart";
27
- export * from "./KubeConfigModal";
28
+ export * from "./UnderlineTootip";
28
29
  export { default as BarChart } from "./BarChart";
29
30
  export { default as BatchOperation } from "./BatchOperation";
30
31
  export { default as ChartWithTooltip } from "./ChartWithTooltip";
@@ -37,6 +38,7 @@ export { default as DeprecatedDonutChart } from "./DeprecatedDonutChart";
37
38
  export { default as DropdownTransition } from "./DropdownTransition";
38
39
  export { default as GoBackButton } from "./GoBackButton";
39
40
  export { default as I18nNameTag } from "./I18nNameTag";
41
+ export { default as KubeConfigModal } from "./KubeConfigModal";
40
42
  export { default as NamesTooltip } from "./NamesTooltip";
41
43
  export { default as OverflowTooltip } from "./OverflowTooltip";
42
44
  export { default as SidebarSubtitle } from "./SidebarSubtitle";
@@ -45,5 +47,5 @@ export { default as SortableList } from "./SortableList";
45
47
  export { default as SummaryTable } from "./SummaryTable";
46
48
  export { default as SwitchWithText } from "./SwitchWithText";
47
49
  export { default as TabMenu } from "./TabMenu";
50
+ export { default as UnderlineTooltip } from "./UnderlineTootip";
48
51
  export { default as UnitWithChart } from "./UnitWithChart";
49
- export { default as KubeConfigModal } from "./KubeConfigModal";
@@ -0,0 +1,11 @@
1
+ import { UnderlineTooltipProps } from "../../../src/coreX/UnderlineTootip";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ import React from "react";
4
+ /**
5
+ *
6
+ * UnderlineTooltip 带可配置下划线的文字,悬停显示 tooltip 提示。
7
+ *
8
+ */
9
+ declare const meta: Meta<React.FC<UnderlineTooltipProps>>;
10
+ export default meta;
11
+ export declare const Default: StoryObj<UnderlineTooltipProps>;