@mirror-physics/fractal-ui 0.2.0-next.87 → 0.2.0-next.88

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/README.md CHANGED
@@ -127,4 +127,4 @@ Essential instructions belong in visible page text; interactive content belongs
127
127
  Supports `placement`, `maxWidth`, hover `delay` (default 0), `disabled`, and content `className`.
128
128
  The trigger keeps its accessible name and receives `aria-describedby` while open.
129
129
  Tooltips close on Escape, remain hoverable, flip at viewport edges, render in a portal,
130
- and respect reduced motion. Run `npm run test:tooltip` for browser interaction checks.
130
+ and respect reduced motion. Tooltips use the inverse surface/foreground tokens by default, with a matching pointer arrow in light and dark themes. Run `npm run test:tooltip` for browser interaction checks.
package/dist/index.cjs CHANGED
@@ -3462,7 +3462,7 @@ function Tooltip({
3462
3462
  if (disabled || content == null || content === "") return children;
3463
3463
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipPrimitive.Provider, { delayDuration: delay, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(TooltipPrimitive.Root, { children: [
3464
3464
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipPrimitive.Trigger, { asChild: true, children }),
3465
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3465
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3466
3466
  TooltipPrimitive.Content,
3467
3467
  {
3468
3468
  side: placement,
@@ -3470,7 +3470,10 @@ function Tooltip({
3470
3470
  collisionPadding: 8,
3471
3471
  className: cn("fractal-tooltip", className),
3472
3472
  style: { "--tooltip-max-width": typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth },
3473
- children: content
3473
+ children: [
3474
+ content,
3475
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipPrimitive.Arrow, { className: "fractal-tooltip-arrow", width: 8, height: 4, "aria-hidden": "true" })
3476
+ ]
3474
3477
  }
3475
3478
  ) })
3476
3479
  ] }) });