react-better-html 1.1.116 → 1.1.117

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 CHANGED
@@ -750,7 +750,7 @@ type TooltipProps = {
750
750
  onOpen?: () => void;
751
751
  onClose?: () => void;
752
752
  children: React.ReactNode;
753
- } & ComponentPaddingProps;
753
+ };
754
754
  type TooltipRef = {
755
755
  isOpen: boolean;
756
756
  open: () => void;
@@ -769,6 +769,7 @@ type TooltipItemProps<Value = unknown> = {
769
769
  description?: string;
770
770
  isActive?: boolean;
771
771
  value?: Value;
772
+ id?: string;
772
773
  onClick?: () => void;
773
774
  onClickWithValue?: (value: Value) => void;
774
775
  };
package/dist/index.d.ts CHANGED
@@ -750,7 +750,7 @@ type TooltipProps = {
750
750
  onOpen?: () => void;
751
751
  onClose?: () => void;
752
752
  children: React.ReactNode;
753
- } & ComponentPaddingProps;
753
+ };
754
754
  type TooltipRef = {
755
755
  isOpen: boolean;
756
756
  open: () => void;
@@ -769,6 +769,7 @@ type TooltipItemProps<Value = unknown> = {
769
769
  description?: string;
770
770
  isActive?: boolean;
771
771
  value?: Value;
772
+ id?: string;
772
773
  onClick?: () => void;
773
774
  onClickWithValue?: (value: Value) => void;
774
775
  };
package/dist/index.js CHANGED
@@ -7799,8 +7799,7 @@ var TooltipComponent = (0, import_react24.forwardRef)(function Tooltip({
7799
7799
  asContextMenu,
7800
7800
  onOpen,
7801
7801
  onClose,
7802
- children,
7803
- ...props
7802
+ children
7804
7803
  }, ref) {
7805
7804
  const theme2 = useTheme();
7806
7805
  const triggerHolderRef = (0, import_react24.useRef)(null);
@@ -7912,7 +7911,6 @@ var TooltipComponent = (0, import_react24.forwardRef)(function Tooltip({
7912
7911
  paddingBlock: isSmall ? theme2.styles.gap / 2 : theme2.styles.gap,
7913
7912
  paddingInline: asContextMenu ? 0 : isSmall ? theme2.styles.space / 2 : theme2.styles.space,
7914
7913
  overflow: asContextMenu ? "hidden" : void 0,
7915
- ...props,
7916
7914
  children: content
7917
7915
  }
7918
7916
  ),
@@ -7925,7 +7923,9 @@ var TooltipComponent = (0, import_react24.forwardRef)(function Tooltip({
7925
7923
  top: position === "top" ? "100%" : position === "bottom" ? void 0 : 0,
7926
7924
  bottom: position === "bottom" ? "100%" : position === "top" ? void 0 : 0,
7927
7925
  left: position === "left" ? "100%" : position === "right" ? void 0 : 0,
7928
- right: position === "right" ? "100%" : position === "left" ? void 0 : 0
7926
+ right: position === "right" ? "100%" : position === "left" ? void 0 : 0,
7927
+ borderTopLeftRadius: 999,
7928
+ borderTopRightRadius: 999
7929
7929
  }
7930
7930
  ),
7931
7931
  withArrow && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
@@ -7944,7 +7944,7 @@ var TooltipComponent = (0, import_react24.forwardRef)(function Tooltip({
7944
7944
  )
7945
7945
  ] });
7946
7946
  });
7947
- TooltipComponent.item = (0, import_react24.forwardRef)(function Item({ icon, text, description, isActive, onClick, onClickWithValue, value }, ref) {
7947
+ TooltipComponent.item = (0, import_react24.forwardRef)(function Item({ icon, text, description, isActive, value, id, onClick, onClickWithValue }, ref) {
7948
7948
  const theme2 = useTheme();
7949
7949
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7950
7950
  Div_default.row,
@@ -7956,6 +7956,7 @@ TooltipComponent.item = (0, import_react24.forwardRef)(function Item({ icon, tex
7956
7956
  paddingBlock: theme2.styles.gap,
7957
7957
  paddingInline: theme2.styles.space,
7958
7958
  cursor: "pointer",
7959
+ id,
7959
7960
  value,
7960
7961
  onClick,
7961
7962
  onClickWithValue,