sag_components 2.0.0-beta227 → 2.0.0-beta229

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/index.js CHANGED
@@ -39322,6 +39322,25 @@ const StatusCellCircle = styled__default["default"].div`
39322
39322
  border: 1px solid white;
39323
39323
  background-color: ${props => props.backgroundColor};
39324
39324
  `;
39325
+ const DotIndicatorWrapper = styled__default["default"].div`
39326
+ display: inline-flex;
39327
+ align-items: center;
39328
+ justify-content: center;
39329
+ width: 100%;
39330
+ height: 100%;
39331
+ position: relative;
39332
+
39333
+ ${tooltipStyles$1}
39334
+
39335
+ /* Override tooltip position */
39336
+ &[data-tooltip]:hover::before {
39337
+ top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) + 20px);
39338
+ }
39339
+
39340
+ &[data-tooltip]:hover::after {
39341
+ top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) + var(--tooltip-height, 50px) + 20px);
39342
+ }
39343
+ `;
39325
39344
 
39326
39345
  // NEW TAG STYLES
39327
39346
  const TagContainer = styled__default["default"].div`
@@ -40553,14 +40572,40 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40553
40572
  if (!value || typeof value !== 'object') return null;
40554
40573
  const {
40555
40574
  show,
40556
- color
40575
+ color,
40576
+ tooltip
40557
40577
  } = value;
40558
40578
 
40559
40579
  // Only show the dot if show is true
40560
40580
  if (!show) return null;
40561
- return /*#__PURE__*/React__default["default"].createElement(StatusCellCircle, {
40581
+ return /*#__PURE__*/React__default["default"].createElement(DotIndicatorWrapper, {
40582
+ ref: el => {
40583
+ if (el && tooltip && tooltip.trim() !== "") {
40584
+ try {
40585
+ const rect = el.getBoundingClientRect();
40586
+ if (rect.width > 0 && rect.height > 0) {
40587
+ const tooltipInfo = calculateTooltipOffset(tooltip);
40588
+ if (tooltipInfo) {
40589
+ const {
40590
+ offset,
40591
+ height
40592
+ } = tooltipInfo;
40593
+ el.style.setProperty("--tooltip-top", `${rect.top}px`);
40594
+ el.style.setProperty("--tooltip-left", `${rect.left}px`);
40595
+ el.style.setProperty("--tooltip-width", `${rect.width}px`);
40596
+ el.style.setProperty("--tooltip-offset", `${offset}px`);
40597
+ el.style.setProperty("--tooltip-height", `${height}px`);
40598
+ el.setAttribute("data-tooltip", tooltip);
40599
+ }
40600
+ }
40601
+ } catch (e) {
40602
+ console.warn("Error applying dotIndicator tooltip:", e);
40603
+ }
40604
+ }
40605
+ }
40606
+ }, /*#__PURE__*/React__default["default"].createElement(StatusCellCircle, {
40562
40607
  backgroundColor: color
40563
- });
40608
+ }));
40564
40609
  } catch (e) {
40565
40610
  console.warn('Error formatting dotIndicator:', e);
40566
40611
  return null;
@@ -40572,7 +40617,7 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40572
40617
  style: {
40573
40618
  color: isDefine ? "#8B8989" : "inherit"
40574
40619
  }
40575
- }, value ?? "Define"), /*#__PURE__*/React__default["default"].createElement(PencilButton, {
40620
+ }, value ? `$${value}` : "Define"), /*#__PURE__*/React__default["default"].createElement(PencilButton, {
40576
40621
  onClick: e => {
40577
40622
  e.stopPropagation();
40578
40623
  handleEditableClick(row, column.key, value, rowIndex);