@cloudtower/eagle 0.27.37 → 0.27.38
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/components.css +2536 -2529
- package/dist/esm/index.js +35 -16
- package/dist/esm/stats1.html +1 -1
- package/dist/src/spec/base.d.ts +1 -1
- package/dist/stories/OverflowTooltip.stories.d.ts +15 -0
- package/dist/style.css +3211 -3204
- package/dist/umd/index.js +35 -16
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
- package/dist/src/components/OverflowTooltip/OverflowTooltip.stories.d.ts +0 -17
package/dist/esm/index.js
CHANGED
|
@@ -2583,7 +2583,7 @@ var __objRest$u = (source, exclude) => {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
return target;
|
|
2585
2585
|
};
|
|
2586
|
-
const _exp$
|
|
2586
|
+
const _exp$6 = () => InputNumber$1;
|
|
2587
2587
|
const _exp2$2 = () => props => props.controls ? "initial" : "none";
|
|
2588
2588
|
const _exp3$1 = () => props => `"${props.suffix ? props.suffix : ""}"`;
|
|
2589
2589
|
const _exp4$1 = () => ({
|
|
@@ -2593,7 +2593,7 @@ const _exp5$1 = () => props => `"${props.prefix ? props.prefix : ""}"`;
|
|
|
2593
2593
|
const _exp6$1 = () => ({
|
|
2594
2594
|
prefix
|
|
2595
2595
|
}) => prefix ? "flex" : "none";
|
|
2596
|
-
const AntdInputNumberStyled = /*#__PURE__*/styled(_exp$
|
|
2596
|
+
const AntdInputNumberStyled = /*#__PURE__*/styled(_exp$6())({
|
|
2597
2597
|
name: "AntdInputNumberStyled",
|
|
2598
2598
|
class: "a6dbbkm",
|
|
2599
2599
|
propsAsIs: true,
|
|
@@ -2850,7 +2850,7 @@ var __objRest$q = (source, exclude) => {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
return target;
|
|
2852
2852
|
};
|
|
2853
|
-
const _exp$
|
|
2853
|
+
const _exp$5 = () => InputNumber$1;
|
|
2854
2854
|
const _exp2$1 = () => props => props.controls ? "initial" : "none";
|
|
2855
2855
|
const _exp3 = () => props => `"${props.suffix ? props.suffix : ""}"`;
|
|
2856
2856
|
const _exp4 = () => ({
|
|
@@ -2860,7 +2860,7 @@ const _exp5 = () => props => `"${props.prefix ? props.prefix : ""}"`;
|
|
|
2860
2860
|
const _exp6 = () => ({
|
|
2861
2861
|
prefix
|
|
2862
2862
|
}) => prefix ? "flex" : "none";
|
|
2863
|
-
const AntdIntStyled = /*#__PURE__*/styled(_exp$
|
|
2863
|
+
const AntdIntStyled = /*#__PURE__*/styled(_exp$5())({
|
|
2864
2864
|
name: "AntdIntStyled",
|
|
2865
2865
|
class: "at4ovwe",
|
|
2866
2866
|
propsAsIs: true,
|
|
@@ -5320,8 +5320,8 @@ const ChartTooltipRow = /*#__PURE__*/styled('div')({
|
|
|
5320
5320
|
class: "c14wcxf0",
|
|
5321
5321
|
propsAsIs: false
|
|
5322
5322
|
});
|
|
5323
|
-
const _exp$
|
|
5324
|
-
const ChartTooltipTitle = /*#__PURE__*/styled(_exp$
|
|
5323
|
+
const _exp$4 = () => ChartTooltipRow;
|
|
5324
|
+
const ChartTooltipTitle = /*#__PURE__*/styled(_exp$4())({
|
|
5325
5325
|
name: "ChartTooltipTitle",
|
|
5326
5326
|
class: "coy29mj",
|
|
5327
5327
|
propsAsIs: true
|
|
@@ -5682,13 +5682,13 @@ const TableRow = /*#__PURE__*/styled('div')({
|
|
|
5682
5682
|
class: "t93e4cf",
|
|
5683
5683
|
propsAsIs: false
|
|
5684
5684
|
});
|
|
5685
|
-
const _exp$
|
|
5685
|
+
const _exp$3 = () => props => props.width;
|
|
5686
5686
|
const RowLabel = /*#__PURE__*/styled('label')({
|
|
5687
5687
|
name: "RowLabel",
|
|
5688
5688
|
class: "rhz2uv5",
|
|
5689
5689
|
propsAsIs: false,
|
|
5690
5690
|
vars: {
|
|
5691
|
-
"rhz2uv5-0": [_exp$
|
|
5691
|
+
"rhz2uv5-0": [_exp$3()]
|
|
5692
5692
|
}
|
|
5693
5693
|
});
|
|
5694
5694
|
const SummaryTableRow = props => {
|
|
@@ -6145,8 +6145,8 @@ const Wrapper = forwardRef(props => {
|
|
|
6145
6145
|
}, className)
|
|
6146
6146
|
}, otherProps), children);
|
|
6147
6147
|
});
|
|
6148
|
-
const _exp$
|
|
6149
|
-
const CardWrapper = /*#__PURE__*/styled(_exp$
|
|
6148
|
+
const _exp$2 = () => Wrapper;
|
|
6149
|
+
const CardWrapper = /*#__PURE__*/styled(_exp$2())({
|
|
6150
6150
|
name: "CardWrapper",
|
|
6151
6151
|
class: "cav4gt6",
|
|
6152
6152
|
propsAsIs: true
|
|
@@ -6825,8 +6825,8 @@ const I18nNameTag = props => {
|
|
|
6825
6825
|
}));
|
|
6826
6826
|
};
|
|
6827
6827
|
|
|
6828
|
-
const _exp = () => Input$1.Group;
|
|
6829
|
-
const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
6828
|
+
const _exp$1 = () => Input$1.Group;
|
|
6829
|
+
const InputGroup = /*#__PURE__*/styled(_exp$1())({
|
|
6830
6830
|
name: "InputGroup",
|
|
6831
6831
|
class: "iiqau4c",
|
|
6832
6832
|
propsAsIs: true
|
|
@@ -7507,17 +7507,29 @@ var __spreadValues$d = (a, b) => {
|
|
|
7507
7507
|
};
|
|
7508
7508
|
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
7509
7509
|
const OverflowText = "o8ocss1";
|
|
7510
|
-
const
|
|
7510
|
+
const SingleLineStyle = "s17syc35";
|
|
7511
|
+
const _exp = () => ({
|
|
7512
|
+
lineClamp = 2
|
|
7513
|
+
}) => lineClamp;
|
|
7514
|
+
const MultipleLine = /*#__PURE__*/styled('div')({
|
|
7515
|
+
name: "MultipleLine",
|
|
7516
|
+
class: "m1rk4s1l",
|
|
7517
|
+
propsAsIs: false,
|
|
7518
|
+
vars: {
|
|
7519
|
+
"m1rk4s1l-0": [_exp()]
|
|
7520
|
+
}
|
|
7521
|
+
});
|
|
7511
7522
|
const OverflowTooltip = props => {
|
|
7512
7523
|
const {
|
|
7513
7524
|
content,
|
|
7514
7525
|
className,
|
|
7515
7526
|
onClick,
|
|
7516
|
-
|
|
7527
|
+
multiLines
|
|
7517
7528
|
} = props;
|
|
7518
7529
|
const tooltip = props.tooltip || content;
|
|
7519
7530
|
const [ellipsis, setEllipsis] = useState(false);
|
|
7520
7531
|
const textRef = useRef(null);
|
|
7532
|
+
const isMultiLine = multiLines && multiLines > 1;
|
|
7521
7533
|
useEffect(() => {
|
|
7522
7534
|
const ele = textRef.current;
|
|
7523
7535
|
let observer;
|
|
@@ -7540,9 +7552,16 @@ const OverflowTooltip = props => {
|
|
|
7540
7552
|
visible: false
|
|
7541
7553
|
}), {
|
|
7542
7554
|
title: tooltip
|
|
7543
|
-
}), /* @__PURE__ */React__default.createElement(
|
|
7555
|
+
}), isMultiLine ? /* @__PURE__ */React__default.createElement(MultipleLine, {
|
|
7556
|
+
ref: textRef,
|
|
7557
|
+
className: cx(OverflowText, className),
|
|
7558
|
+
lineClamp: multiLines,
|
|
7559
|
+
onClick: () => {
|
|
7560
|
+
onClick && onClick();
|
|
7561
|
+
}
|
|
7562
|
+
}, /* @__PURE__ */React__default.createElement("span", null, content)) : /* @__PURE__ */React__default.createElement("div", {
|
|
7544
7563
|
ref: textRef,
|
|
7545
|
-
className: cx(OverflowText,
|
|
7564
|
+
className: cx(OverflowText, SingleLineStyle, className),
|
|
7546
7565
|
onClick: () => {
|
|
7547
7566
|
onClick && onClick();
|
|
7548
7567
|
}
|