@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/umd/index.js CHANGED
@@ -2590,7 +2590,7 @@
2590
2590
  }
2591
2591
  return target;
2592
2592
  };
2593
- const _exp$5 = () => antd.InputNumber;
2593
+ const _exp$6 = () => antd.InputNumber;
2594
2594
  const _exp2$2 = () => props => props.controls ? "initial" : "none";
2595
2595
  const _exp3$1 = () => props => `"${props.suffix ? props.suffix : ""}"`;
2596
2596
  const _exp4$1 = () => ({
@@ -2600,7 +2600,7 @@
2600
2600
  const _exp6$1 = () => ({
2601
2601
  prefix
2602
2602
  }) => prefix ? "flex" : "none";
2603
- const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$5())({
2603
+ const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$6())({
2604
2604
  name: "AntdInputNumberStyled",
2605
2605
  class: "a6dbbkm",
2606
2606
  propsAsIs: true,
@@ -2857,7 +2857,7 @@
2857
2857
  }
2858
2858
  return target;
2859
2859
  };
2860
- const _exp$4 = () => antd.InputNumber;
2860
+ const _exp$5 = () => antd.InputNumber;
2861
2861
  const _exp2$1 = () => props => props.controls ? "initial" : "none";
2862
2862
  const _exp3 = () => props => `"${props.suffix ? props.suffix : ""}"`;
2863
2863
  const _exp4 = () => ({
@@ -2867,7 +2867,7 @@
2867
2867
  const _exp6 = () => ({
2868
2868
  prefix
2869
2869
  }) => prefix ? "flex" : "none";
2870
- const AntdIntStyled = /*#__PURE__*/react.styled(_exp$4())({
2870
+ const AntdIntStyled = /*#__PURE__*/react.styled(_exp$5())({
2871
2871
  name: "AntdIntStyled",
2872
2872
  class: "at4ovwe",
2873
2873
  propsAsIs: true,
@@ -5327,8 +5327,8 @@
5327
5327
  class: "c14wcxf0",
5328
5328
  propsAsIs: false
5329
5329
  });
5330
- const _exp$3 = () => ChartTooltipRow;
5331
- const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp$3())({
5330
+ const _exp$4 = () => ChartTooltipRow;
5331
+ const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp$4())({
5332
5332
  name: "ChartTooltipTitle",
5333
5333
  class: "coy29mj",
5334
5334
  propsAsIs: true
@@ -5689,13 +5689,13 @@
5689
5689
  class: "t93e4cf",
5690
5690
  propsAsIs: false
5691
5691
  });
5692
- const _exp$2 = () => props => props.width;
5692
+ const _exp$3 = () => props => props.width;
5693
5693
  const RowLabel = /*#__PURE__*/react.styled('label')({
5694
5694
  name: "RowLabel",
5695
5695
  class: "rhz2uv5",
5696
5696
  propsAsIs: false,
5697
5697
  vars: {
5698
- "rhz2uv5-0": [_exp$2()]
5698
+ "rhz2uv5-0": [_exp$3()]
5699
5699
  }
5700
5700
  });
5701
5701
  const SummaryTableRow = props => {
@@ -6152,8 +6152,8 @@
6152
6152
  }, className)
6153
6153
  }, otherProps), children);
6154
6154
  });
6155
- const _exp$1 = () => Wrapper;
6156
- const CardWrapper = /*#__PURE__*/react.styled(_exp$1())({
6155
+ const _exp$2 = () => Wrapper;
6156
+ const CardWrapper = /*#__PURE__*/react.styled(_exp$2())({
6157
6157
  name: "CardWrapper",
6158
6158
  class: "cav4gt6",
6159
6159
  propsAsIs: true
@@ -6832,8 +6832,8 @@
6832
6832
  }));
6833
6833
  };
6834
6834
 
6835
- const _exp = () => antd.Input.Group;
6836
- const InputGroup = /*#__PURE__*/react.styled(_exp())({
6835
+ const _exp$1 = () => antd.Input.Group;
6836
+ const InputGroup = /*#__PURE__*/react.styled(_exp$1())({
6837
6837
  name: "InputGroup",
6838
6838
  class: "iiqau4c",
6839
6839
  propsAsIs: true
@@ -7514,17 +7514,29 @@
7514
7514
  };
7515
7515
  var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
7516
7516
  const OverflowText = "o8ocss1";
7517
- const NoWrap = "n17syc35";
7517
+ const SingleLineStyle = "s17syc35";
7518
+ const _exp = () => ({
7519
+ lineClamp = 2
7520
+ }) => lineClamp;
7521
+ const MultipleLine = /*#__PURE__*/react.styled('div')({
7522
+ name: "MultipleLine",
7523
+ class: "m1rk4s1l",
7524
+ propsAsIs: false,
7525
+ vars: {
7526
+ "m1rk4s1l-0": [_exp()]
7527
+ }
7528
+ });
7518
7529
  const OverflowTooltip = props => {
7519
7530
  const {
7520
7531
  content,
7521
7532
  className,
7522
7533
  onClick,
7523
- isMultiLine
7534
+ multiLines
7524
7535
  } = props;
7525
7536
  const tooltip = props.tooltip || content;
7526
7537
  const [ellipsis, setEllipsis] = React.useState(false);
7527
7538
  const textRef = React.useRef(null);
7539
+ const isMultiLine = multiLines && multiLines > 1;
7528
7540
  React.useEffect(() => {
7529
7541
  const ele = textRef.current;
7530
7542
  let observer;
@@ -7547,9 +7559,16 @@
7547
7559
  visible: false
7548
7560
  }), {
7549
7561
  title: tooltip
7550
- }), /* @__PURE__ */React__namespace.default.createElement("div", {
7562
+ }), isMultiLine ? /* @__PURE__ */React__namespace.default.createElement(MultipleLine, {
7563
+ ref: textRef,
7564
+ className: core.cx(OverflowText, className),
7565
+ lineClamp: multiLines,
7566
+ onClick: () => {
7567
+ onClick && onClick();
7568
+ }
7569
+ }, /* @__PURE__ */React__namespace.default.createElement("span", null, content)) : /* @__PURE__ */React__namespace.default.createElement("div", {
7551
7570
  ref: textRef,
7552
- className: core.cx(OverflowText, !isMultiLine && NoWrap, className),
7571
+ className: core.cx(OverflowText, SingleLineStyle, className),
7553
7572
  onClick: () => {
7554
7573
  onClick && onClick();
7555
7574
  }