@cloudtower/eagle 0.28.0-alpha.0 → 0.28.0-dry

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
@@ -2592,7 +2592,7 @@
2592
2592
  }
2593
2593
  return target;
2594
2594
  };
2595
- const _exp$5 = () => antd.InputNumber;
2595
+ const _exp$6 = () => antd.InputNumber;
2596
2596
  const _exp2$2 = () => props => props.controls ? "initial" : "none";
2597
2597
  const _exp3$1 = () => props => `"${props.suffix ? props.suffix : ""}"`;
2598
2598
  const _exp4$1 = () => ({
@@ -2602,7 +2602,7 @@
2602
2602
  const _exp6$1 = () => ({
2603
2603
  prefix
2604
2604
  }) => prefix ? "flex" : "none";
2605
- const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$5())({
2605
+ const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$6())({
2606
2606
  name: "AntdInputNumberStyled",
2607
2607
  class: "a6dbbkm",
2608
2608
  propsAsIs: true,
@@ -2859,7 +2859,7 @@
2859
2859
  }
2860
2860
  return target;
2861
2861
  };
2862
- const _exp$4 = () => antd.InputNumber;
2862
+ const _exp$5 = () => antd.InputNumber;
2863
2863
  const _exp2$1 = () => props => props.controls ? "initial" : "none";
2864
2864
  const _exp3 = () => props => `"${props.suffix ? props.suffix : ""}"`;
2865
2865
  const _exp4 = () => ({
@@ -2869,7 +2869,7 @@
2869
2869
  const _exp6 = () => ({
2870
2870
  prefix
2871
2871
  }) => prefix ? "flex" : "none";
2872
- const AntdIntStyled = /*#__PURE__*/react.styled(_exp$4())({
2872
+ const AntdIntStyled = /*#__PURE__*/react.styled(_exp$5())({
2873
2873
  name: "AntdIntStyled",
2874
2874
  class: "at4ovwe",
2875
2875
  propsAsIs: true,
@@ -5329,8 +5329,8 @@
5329
5329
  class: "c14wcxf0",
5330
5330
  propsAsIs: false
5331
5331
  });
5332
- const _exp$3 = () => ChartTooltipRow;
5333
- const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp$3())({
5332
+ const _exp$4 = () => ChartTooltipRow;
5333
+ const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp$4())({
5334
5334
  name: "ChartTooltipTitle",
5335
5335
  class: "coy29mj",
5336
5336
  propsAsIs: true
@@ -5691,13 +5691,13 @@
5691
5691
  class: "t93e4cf",
5692
5692
  propsAsIs: false
5693
5693
  });
5694
- const _exp$2 = () => props => props.width;
5694
+ const _exp$3 = () => props => props.width;
5695
5695
  const RowLabel = /*#__PURE__*/react.styled('label')({
5696
5696
  name: "RowLabel",
5697
5697
  class: "rhz2uv5",
5698
5698
  propsAsIs: false,
5699
5699
  vars: {
5700
- "rhz2uv5-0": [_exp$2()]
5700
+ "rhz2uv5-0": [_exp$3()]
5701
5701
  }
5702
5702
  });
5703
5703
  const SummaryTableRow = props => {
@@ -6154,8 +6154,8 @@
6154
6154
  }, className)
6155
6155
  }, otherProps), children);
6156
6156
  });
6157
- const _exp$1 = () => Wrapper;
6158
- const CardWrapper = /*#__PURE__*/react.styled(_exp$1())({
6157
+ const _exp$2 = () => Wrapper;
6158
+ const CardWrapper = /*#__PURE__*/react.styled(_exp$2())({
6159
6159
  name: "CardWrapper",
6160
6160
  class: "cav4gt6",
6161
6161
  propsAsIs: true
@@ -6566,8 +6566,8 @@
6566
6566
  }));
6567
6567
  };
6568
6568
 
6569
- const _exp = () => antd.Input.Group;
6570
- const InputGroup = /*#__PURE__*/react.styled(_exp())({
6569
+ const _exp$1 = () => antd.Input.Group;
6570
+ const InputGroup = /*#__PURE__*/react.styled(_exp$1())({
6571
6571
  name: "InputGroup",
6572
6572
  class: "iiqau4c",
6573
6573
  propsAsIs: true
@@ -7296,17 +7296,29 @@
7296
7296
  };
7297
7297
  var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
7298
7298
  const OverflowText = "o8ocss1";
7299
- const NoWrap = "n17syc35";
7299
+ const SingleLineStyle = "s17syc35";
7300
+ const _exp = () => ({
7301
+ lineClamp = 2
7302
+ }) => lineClamp;
7303
+ const MultipleLine = /*#__PURE__*/react.styled('div')({
7304
+ name: "MultipleLine",
7305
+ class: "m1rk4s1l",
7306
+ propsAsIs: false,
7307
+ vars: {
7308
+ "m1rk4s1l-0": [_exp()]
7309
+ }
7310
+ });
7300
7311
  const OverflowTooltip = props => {
7301
7312
  const {
7302
7313
  content,
7303
7314
  className,
7304
7315
  onClick,
7305
- isMultiLine
7316
+ multiLines
7306
7317
  } = props;
7307
7318
  const tooltip = props.tooltip || content;
7308
7319
  const [ellipsis, setEllipsis] = React.useState(false);
7309
7320
  const textRef = React.useRef(null);
7321
+ const isMultiLine = multiLines && multiLines > 1;
7310
7322
  React.useEffect(() => {
7311
7323
  const ele = textRef.current;
7312
7324
  let observer;
@@ -7329,9 +7341,16 @@
7329
7341
  visible: false
7330
7342
  }), {
7331
7343
  title: tooltip
7332
- }), /* @__PURE__ */React__namespace.default.createElement("div", {
7344
+ }), isMultiLine ? /* @__PURE__ */React__namespace.default.createElement(MultipleLine, {
7345
+ ref: textRef,
7346
+ className: core.cx(OverflowText, className),
7347
+ lineClamp: multiLines,
7348
+ onClick: () => {
7349
+ onClick && onClick();
7350
+ }
7351
+ }, /* @__PURE__ */React__namespace.default.createElement("span", null, content)) : /* @__PURE__ */React__namespace.default.createElement("div", {
7333
7352
  ref: textRef,
7334
- className: core.cx(OverflowText, !isMultiLine && NoWrap, className),
7353
+ className: core.cx(OverflowText, SingleLineStyle, className),
7335
7354
  onClick: () => {
7336
7355
  onClick && onClick();
7337
7356
  }