@bubo-squared/ui-framework 0.2.34 → 0.2.35

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.cts CHANGED
@@ -714,6 +714,7 @@ interface TooltipProps {
714
714
  className?: string;
715
715
  placement?: TooltipPlacement;
716
716
  offset?: number;
717
+ /** When true, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger. */
717
718
  disableHoverableContent?: boolean;
718
719
  open?: boolean;
719
720
  defaultOpen?: boolean;
package/dist/index.d.ts CHANGED
@@ -714,6 +714,7 @@ interface TooltipProps {
714
714
  className?: string;
715
715
  placement?: TooltipPlacement;
716
716
  offset?: number;
717
+ /** When true, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger. */
717
718
  disableHoverableContent?: boolean;
718
719
  open?: boolean;
719
720
  defaultOpen?: boolean;
package/dist/index.js CHANGED
@@ -3389,7 +3389,7 @@ var Tooltip = (props) => {
3389
3389
  className,
3390
3390
  placement = "top",
3391
3391
  offset = 10,
3392
- disableHoverableContent,
3392
+ disableHoverableContent = false,
3393
3393
  open,
3394
3394
  defaultOpen,
3395
3395
  onOpenChange,
@@ -3400,7 +3400,7 @@ var Tooltip = (props) => {
3400
3400
  const hasStrapline = typeof strapline === "string" ? strapline.trim() !== "" : strapline != null;
3401
3401
  const hasDescription = typeof description === "string" ? description.trim() !== "" : description != null;
3402
3402
  const { side, align } = mapPlacementToSideAndAlign(placement);
3403
- const tooltipClasses = "group bg-(--background-tooltip) max-w-[calc(100vw-2rem)] shadow-card-md border-none rounded-4 py-1.5 px-2.5 [&>span]:scale-200 data-[state=delayed-open]:animate-in data-[state=instant-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=instant-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=instant-open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2";
3403
+ const tooltipClasses = "group bg-(--background-tooltip) max-w-[calc(100vw-2rem)] shadow-card-md border-none rounded-8 py-1.5 px-2.5 [&>span]:scale-200 data-[state=delayed-open]:animate-in data-[state=instant-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=instant-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=instant-open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2";
3404
3404
  const tooltipArrowClasses = "relative fill-(--background-tooltip) transition-[filter,transform] group-data-[side=top]:top-[-2px] group-data-[side=top]:drop-shadow-[0px_1px_1px_color-mix(in_srgb,_var(--color-b-black-10)_66%,_transparent)] group-data-[side=bottom]:drop-shadow-[0px_1px_1px_color-mix(in_srgb,_var(--color-b-black-10)_66%,_transparent)] group-data-[side=left]:drop-shadow-[0px_2px_1px_color-mix(in_srgb,_var(--color-b-black-10)_66%,_transparent)] group-data-[side=right]:drop-shadow-[0px_2px_1px_color-mix(in_srgb,_var(--color-b-black-10)_66%,_transparent)]";
3405
3405
  return /* @__PURE__ */ jsxs24(
3406
3406
  TooltipPrimitive.Root,