@x-plat/design-system 0.5.38 → 0.5.39

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.
@@ -634,8 +634,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
634
634
  let left = x + TOOLTIP_OFFSET;
635
635
  let top = y - h - TOOLTIP_OFFSET;
636
636
  if (left + w > containerWidth) left = x - w - TOOLTIP_OFFSET;
637
- if (top < 0) top = y + TOOLTIP_OFFSET;
638
637
  if (left < 0) left = 0;
638
+ if (top < 0) top = y + TOOLTIP_OFFSET;
639
+ if (top + h > containerHeight) top = containerHeight - h;
639
640
  setPos({ left, top });
640
641
  }, [x, y, containerWidth, containerHeight]);
641
642
  const content = typeof children === "string" ? children : "";
@@ -598,8 +598,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
598
598
  let left = x + TOOLTIP_OFFSET;
599
599
  let top = y - h - TOOLTIP_OFFSET;
600
600
  if (left + w > containerWidth) left = x - w - TOOLTIP_OFFSET;
601
- if (top < 0) top = y + TOOLTIP_OFFSET;
602
601
  if (left < 0) left = 0;
602
+ if (top < 0) top = y + TOOLTIP_OFFSET;
603
+ if (top + h > containerHeight) top = containerHeight - h;
603
604
  setPos({ left, top });
604
605
  }, [x, y, containerWidth, containerHeight]);
605
606
  const content = typeof children === "string" ? children : "";
@@ -2828,8 +2828,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
2828
2828
  let left = x + TOOLTIP_OFFSET;
2829
2829
  let top = y - h - TOOLTIP_OFFSET;
2830
2830
  if (left + w > containerWidth) left = x - w - TOOLTIP_OFFSET;
2831
- if (top < 0) top = y + TOOLTIP_OFFSET;
2832
2831
  if (left < 0) left = 0;
2832
+ if (top < 0) top = y + TOOLTIP_OFFSET;
2833
+ if (top + h > containerHeight) top = containerHeight - h;
2833
2834
  setPos({ left, top });
2834
2835
  }, [x, y, containerWidth, containerHeight]);
2835
2836
  const content = typeof children === "string" ? children : "";
@@ -2738,8 +2738,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
2738
2738
  let left = x + TOOLTIP_OFFSET;
2739
2739
  let top = y - h - TOOLTIP_OFFSET;
2740
2740
  if (left + w > containerWidth) left = x - w - TOOLTIP_OFFSET;
2741
- if (top < 0) top = y + TOOLTIP_OFFSET;
2742
2741
  if (left < 0) left = 0;
2742
+ if (top < 0) top = y + TOOLTIP_OFFSET;
2743
+ if (top + h > containerHeight) top = containerHeight - h;
2743
2744
  setPos({ left, top });
2744
2745
  }, [x, y, containerWidth, containerHeight]);
2745
2746
  const content = typeof children === "string" ? children : "";
package/dist/index.cjs CHANGED
@@ -7227,8 +7227,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
7227
7227
  let left = x + TOOLTIP_OFFSET;
7228
7228
  let top = y - h - TOOLTIP_OFFSET;
7229
7229
  if (left + w > containerWidth) left = x - w - TOOLTIP_OFFSET;
7230
- if (top < 0) top = y + TOOLTIP_OFFSET;
7231
7230
  if (left < 0) left = 0;
7231
+ if (top < 0) top = y + TOOLTIP_OFFSET;
7232
+ if (top + h > containerHeight) top = containerHeight - h;
7232
7233
  setPos({ left, top });
7233
7234
  }, [x, y, containerWidth, containerHeight]);
7234
7235
  const content = typeof children === "string" ? children : "";
package/dist/index.js CHANGED
@@ -6828,8 +6828,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
6828
6828
  let left = x + TOOLTIP_OFFSET;
6829
6829
  let top = y - h - TOOLTIP_OFFSET;
6830
6830
  if (left + w > containerWidth) left = x - w - TOOLTIP_OFFSET;
6831
- if (top < 0) top = y + TOOLTIP_OFFSET;
6832
6831
  if (left < 0) left = 0;
6832
+ if (top < 0) top = y + TOOLTIP_OFFSET;
6833
+ if (top + h > containerHeight) top = containerHeight - h;
6833
6834
  setPos({ left, top });
6834
6835
  }, [x, y, containerWidth, containerHeight]);
6835
6836
  const content = typeof children === "string" ? children : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-plat/design-system",
3
- "version": "0.5.38",
3
+ "version": "0.5.39",
4
4
  "description": "XPLAT UI Design System",
5
5
  "author": "XPLAT WOONG",
6
6
  "main": "dist/index.cjs",