sag_components 2.0.0-beta322 → 2.0.0-beta323
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.esm.js
CHANGED
|
@@ -47808,6 +47808,49 @@ const CustomTooltip$1 = styled$1(Tooltip$2)`
|
|
|
47808
47808
|
}
|
|
47809
47809
|
}
|
|
47810
47810
|
`;
|
|
47811
|
+
const FixedPositionTooltip = ({
|
|
47812
|
+
children,
|
|
47813
|
+
content,
|
|
47814
|
+
topFactor = -1,
|
|
47815
|
+
direction = "top",
|
|
47816
|
+
delay = 400,
|
|
47817
|
+
className
|
|
47818
|
+
}) => {
|
|
47819
|
+
const handleMouseEnter = e => {
|
|
47820
|
+
const r = e.currentTarget.getBoundingClientRect();
|
|
47821
|
+
e.currentTarget.style.setProperty("--tt-top", `${r.top + 40 * topFactor}px`);
|
|
47822
|
+
e.currentTarget.style.setProperty("--tt-left", `${r.left + r.width / 2}px`);
|
|
47823
|
+
};
|
|
47824
|
+
return /*#__PURE__*/React$1.createElement("span", {
|
|
47825
|
+
onMouseEnter: handleMouseEnter,
|
|
47826
|
+
style: {
|
|
47827
|
+
display: "block",
|
|
47828
|
+
width: "100%"
|
|
47829
|
+
}
|
|
47830
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
47831
|
+
content,
|
|
47832
|
+
direction,
|
|
47833
|
+
topFactor,
|
|
47834
|
+
delay,
|
|
47835
|
+
className
|
|
47836
|
+
}, children));
|
|
47837
|
+
};
|
|
47838
|
+
const TextTooltip = styled$1(FixedPositionTooltip)`
|
|
47839
|
+
--tooltip-arrow-size: 8px;
|
|
47840
|
+
.tooltip-wrapper {
|
|
47841
|
+
display: block !important;
|
|
47842
|
+
width: 100%;
|
|
47843
|
+
text-align: left;
|
|
47844
|
+
}
|
|
47845
|
+
.controls.top {
|
|
47846
|
+
position: fixed !important;
|
|
47847
|
+
top: var(--tt-top) !important;
|
|
47848
|
+
left: var(--tt-left) !important;
|
|
47849
|
+
transform: translateX(-50%) !important;
|
|
47850
|
+
padding: 5px 11px;
|
|
47851
|
+
pointer-events: none;
|
|
47852
|
+
}
|
|
47853
|
+
`;
|
|
47811
47854
|
const TooltipContent$1 = styled$1.span`
|
|
47812
47855
|
color: #212121;
|
|
47813
47856
|
font-family: Poppins;
|
|
@@ -48523,9 +48566,10 @@ const NewSubitemList = props => {
|
|
|
48523
48566
|
onClick: e => {
|
|
48524
48567
|
handleEditExistingPackage(item);
|
|
48525
48568
|
}
|
|
48526
|
-
}, item.brands && /*#__PURE__*/React$1.createElement(
|
|
48527
|
-
|
|
48528
|
-
|
|
48569
|
+
}, item.brands && /*#__PURE__*/React$1.createElement(TextTooltip, {
|
|
48570
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent, null, item.brands),
|
|
48571
|
+
topFactor: -1
|
|
48572
|
+
}, /*#__PURE__*/React$1.createElement(Title$6, null, item.brands)), item.component && /*#__PURE__*/React$1.createElement(ComponentContainer, null, item.component[0]), /*#__PURE__*/React$1.createElement(Chevron, null, /*#__PURE__*/React$1.createElement(ArrowRightFullIcon, null))), item.status && Number(item.status) > 1 ? /*#__PURE__*/React$1.createElement(CustomTooltip, {
|
|
48529
48573
|
hideTooltip: trashIsHovered,
|
|
48530
48574
|
content: /*#__PURE__*/React$1.createElement(TooltipContent, {
|
|
48531
48575
|
dangerouslySetInnerHTML: {
|
|
@@ -57776,9 +57820,10 @@ const ItemManagerPanel = _ref => {
|
|
|
57776
57820
|
onClick: e => {
|
|
57777
57821
|
handleVendorClick(item);
|
|
57778
57822
|
}
|
|
57779
|
-
}, /*#__PURE__*/React$1.createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React$1.createElement(
|
|
57780
|
-
|
|
57781
|
-
|
|
57823
|
+
}, /*#__PURE__*/React$1.createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React$1.createElement(TextTooltip, {
|
|
57824
|
+
content: /*#__PURE__*/React$1.createElement(TooltipContent$1, null, item.name),
|
|
57825
|
+
topFactor: -1
|
|
57826
|
+
}, /*#__PURE__*/React$1.createElement(VendorName$2, null, item.name)), packagesLength === 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, {
|
|
57782
57827
|
color: SubTitleColor
|
|
57783
57828
|
}, (() => {
|
|
57784
57829
|
const noPackagesSent = sentPackagesLength === 0;
|