react-better-html 1.1.116 → 1.1.118
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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7725,10 +7725,10 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7725
7725
|
isSmall,
|
|
7726
7726
|
backgroundColor,
|
|
7727
7727
|
asContextMenu,
|
|
7728
|
+
isTabAccessed,
|
|
7728
7729
|
onOpen,
|
|
7729
7730
|
onClose,
|
|
7730
|
-
children
|
|
7731
|
-
...props
|
|
7731
|
+
children
|
|
7732
7732
|
}, ref) {
|
|
7733
7733
|
const theme2 = useTheme();
|
|
7734
7734
|
const triggerHolderRef = useRef6(null);
|
|
@@ -7815,7 +7815,7 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7815
7815
|
[isOpen, openTooltip, closeTooltip]
|
|
7816
7816
|
);
|
|
7817
7817
|
return /* @__PURE__ */ jsxs17(Div_default, { position: "relative", onClick: onClickHolder, onMouseEnter, onMouseLeave, children: [
|
|
7818
|
-
/* @__PURE__ */ jsx21(Div_default, { width: "100%", ref: triggerHolderRef, children }),
|
|
7818
|
+
/* @__PURE__ */ jsx21(Div_default, { width: "100%", isTabAccessed, ref: triggerHolderRef, children }),
|
|
7819
7819
|
/* @__PURE__ */ jsx21(
|
|
7820
7820
|
TooltipContainer,
|
|
7821
7821
|
{
|
|
@@ -7840,7 +7840,6 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7840
7840
|
paddingBlock: isSmall ? theme2.styles.gap / 2 : theme2.styles.gap,
|
|
7841
7841
|
paddingInline: asContextMenu ? 0 : isSmall ? theme2.styles.space / 2 : theme2.styles.space,
|
|
7842
7842
|
overflow: asContextMenu ? "hidden" : void 0,
|
|
7843
|
-
...props,
|
|
7844
7843
|
children: content
|
|
7845
7844
|
}
|
|
7846
7845
|
),
|
|
@@ -7853,7 +7852,9 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7853
7852
|
top: position === "top" ? "100%" : position === "bottom" ? void 0 : 0,
|
|
7854
7853
|
bottom: position === "bottom" ? "100%" : position === "top" ? void 0 : 0,
|
|
7855
7854
|
left: position === "left" ? "100%" : position === "right" ? void 0 : 0,
|
|
7856
|
-
right: position === "right" ? "100%" : position === "left" ? void 0 : 0
|
|
7855
|
+
right: position === "right" ? "100%" : position === "left" ? void 0 : 0,
|
|
7856
|
+
borderTopLeftRadius: 999,
|
|
7857
|
+
borderTopRightRadius: 999
|
|
7857
7858
|
}
|
|
7858
7859
|
),
|
|
7859
7860
|
withArrow && /* @__PURE__ */ jsx21(
|
|
@@ -7872,7 +7873,7 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7872
7873
|
)
|
|
7873
7874
|
] });
|
|
7874
7875
|
});
|
|
7875
|
-
TooltipComponent.item = forwardRef16(function Item({ icon, text, description, isActive, onClick, onClickWithValue
|
|
7876
|
+
TooltipComponent.item = forwardRef16(function Item({ icon, text, description, isActive, value, id, onClick, onClickWithValue }, ref) {
|
|
7876
7877
|
const theme2 = useTheme();
|
|
7877
7878
|
return /* @__PURE__ */ jsxs17(
|
|
7878
7879
|
Div_default.row,
|
|
@@ -7884,6 +7885,7 @@ TooltipComponent.item = forwardRef16(function Item({ icon, text, description, is
|
|
|
7884
7885
|
paddingBlock: theme2.styles.gap,
|
|
7885
7886
|
paddingInline: theme2.styles.space,
|
|
7886
7887
|
cursor: "pointer",
|
|
7888
|
+
id,
|
|
7887
7889
|
value,
|
|
7888
7890
|
onClick,
|
|
7889
7891
|
onClickWithValue,
|