@homebound/beam 3.10.1 → 3.11.0

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.cjs CHANGED
@@ -5745,7 +5745,8 @@ function IconButton(props) {
5745
5745
  circle = false,
5746
5746
  download = false,
5747
5747
  forceFocusStyles = false,
5748
- label
5748
+ label,
5749
+ preventTooltip = false
5749
5750
  } = props;
5750
5751
  const isDisabled = !!disabled;
5751
5752
  const ariaProps = {
@@ -5796,7 +5797,7 @@ function IconButton(props) {
5796
5797
  };
5797
5798
  const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { icon, color: color || (isDisabled ? "--b-text-disabled" /* TextDisabled */ : circle && (isHovered || active || isFocusVisible) ? defaultIconColor : iconColor), bgColor, inc: compact ? 2 : circle ? 2.5 : inc });
5798
5799
  return maybeTooltip({
5799
- title: resolveTooltip(disabled ?? label, tooltip),
5800
+ title: resolveTooltip(disabled ?? (preventTooltip ? void 0 : label), tooltip),
5800
5801
  placement: "top",
5801
5802
  children: getButtonOrLink(buttonContent, onPress, buttonAttrs, openInNew, download)
5802
5803
  });
@@ -9262,7 +9263,7 @@ function Avatar({
9262
9263
  name,
9263
9264
  size = "md",
9264
9265
  showName = false,
9265
- disableTooltip = false,
9266
+ preventTooltip = false,
9266
9267
  ...others
9267
9268
  }) {
9268
9269
  const tid = useTestIds(others, "avatar");
@@ -9310,7 +9311,7 @@ function Avatar({
9310
9311
  ...__typography4[sizeToTypeScale[size]] ?? {}
9311
9312
  }), children: name })
9312
9313
  ] }) : maybeTooltip({
9313
- title: disableTooltip ? void 0 : name,
9314
+ title: preventTooltip ? void 0 : name,
9314
9315
  children: img,
9315
9316
  placement: "top"
9316
9317
  });
@@ -9359,6 +9360,7 @@ function AvatarButton(props) {
9359
9360
  openInNew,
9360
9361
  forceFocusStyles = false,
9361
9362
  __storyState,
9363
+ preventTooltip = false,
9362
9364
  ...avatarProps
9363
9365
  } = props;
9364
9366
  const isDisabled = !!disabled;
@@ -9405,12 +9407,11 @@ function AvatarButton(props) {
9405
9407
  ...(0, import_runtime26.mergeProps)(typeof onPress === "string" ? navLink : void 0, void 0, styles)
9406
9408
  };
9407
9409
  const content = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
9408
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { ...avatarProps, ...tid, disableTooltip: true }),
9410
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { ...avatarProps, ...tid, preventTooltip: true }),
9409
9411
  isPressed && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { ...(0, import_runtime26.trussProps)(pressedOverlayCss) })
9410
9412
  ] });
9411
9413
  return maybeTooltip({
9412
- // Default the tooltip to the avatar's name, if defined.
9413
- title: resolveTooltip(disabled, tooltip ?? avatarProps.name),
9414
+ title: resolveTooltip(disabled, tooltip ?? (preventTooltip ? void 0 : avatarProps.name)),
9414
9415
  placement: "top",
9415
9416
  // Disable the auto-tooltip in Avatar to prevent nested tooltips which can cause issues with interactions
9416
9417
  children: getButtonOrLink(content, onPress, buttonAttrs, openInNew)