@danxbot/ui 6.3.4 → 6.3.6

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.js CHANGED
@@ -13742,69 +13742,70 @@ function nr({
13742
13742
  function Si({ children: e }) {
13743
13743
  return /* @__PURE__ */ f(D0, { render: e });
13744
13744
  }
13745
- function fn({
13746
- content: e,
13747
- children: t,
13748
- side: n = "top",
13749
- className: r,
13750
- defaultOpen: o,
13751
- enterable: s = !0
13752
- }) {
13753
- return /* @__PURE__ */ P(_0, { defaultOpen: o, disableHoverablePopup: !s, children: [
13754
- /* @__PURE__ */ f(F0, { render: t }),
13755
- /* @__PURE__ */ f($0, { children: /* @__PURE__ */ f(
13756
- z0,
13757
- {
13758
- side: n,
13759
- sideOffset: 6,
13760
- className: "z-(--z-tooltip) outline-none",
13761
- children: /* @__PURE__ */ P(
13762
- B0,
13745
+ function fn({ content: e, children: t, side: n = "top", className: r, defaultOpen: o, enterable: s = !0, open: i, onOpenChange: a }) {
13746
+ return /* @__PURE__ */ P(
13747
+ _0,
13748
+ {
13749
+ defaultOpen: o,
13750
+ disableHoverablePopup: !s,
13751
+ ...i === void 0 ? {} : { open: i, onOpenChange: a },
13752
+ children: [
13753
+ /* @__PURE__ */ f(F0, { render: t }),
13754
+ /* @__PURE__ */ f($0, { children: /* @__PURE__ */ f(
13755
+ z0,
13763
13756
  {
13764
- className: K(
13765
- /* dx-tooltip is a stable hook for the overlay screenshot pass.
13766
- Base UI does not put role="tooltip" on the popup — it wires
13767
- aria-describedby from the trigger instead — so there is no
13768
- semantic selector to target it by. */
13769
- "dx-tooltip relative rounded-md bg-surface-overlay px-2.5 py-1.5",
13770
- /* THE SAME CLAMP AS THE POPOVER, for the same reason and with
13771
- the same shape a tooltip is portalled and positioned by the
13772
- identical machinery, so it goes off the top edge of a short
13773
- viewport in exactly the same way. `max-w-xs` is kept as the
13774
- DESIGN size, written as the `--container-xs` it compiles to so
13775
- it can sit inside the `min()`; there is no `width` prop here
13776
- because a tooltip is a label and a label that needs a declared
13777
- width is a popover.
13778
-
13779
- The tooltip is the overlay that PROVED the scroller cannot
13780
- live on the popup: it is the one whose arrow is not opt-in, so
13781
- clipping it was not a possibility but a certainty on every
13782
- tooltip in the library. */
13783
- "max-w-[min(var(--container-xs),80vw,var(--available-width))]",
13784
- G0,
13785
- "flex flex-col",
13786
- /* `--shadow-tooltip` rather than a size from the elevation ramp:
13787
- on dark it lifts with a bright rim and halo instead of a
13788
- shadow nobody can see. See tokens.css for why this one overlay
13789
- inverts the technique. */
13790
- "border border-border text-xs font-medium text-primary shadow-(--shadow-tooltip)",
13791
- "origin-[var(--transform-origin)]",
13792
- /* Faster than a popover on both ends. A tooltip that lingers
13793
- while you are already reading the next thing reads as lag. */
13794
- "transition-[var(--tx-colors),opacity,scale] duration-(--dur-fast) ease-out-strong",
13795
- "data-starting-style:scale-95 data-starting-style:opacity-0",
13796
- "data-ending-style:opacity-0 data-ending-style:duration-(--dur-instant)",
13797
- r
13798
- ),
13799
- children: [
13800
- /* @__PURE__ */ f("div", { className: j0, children: e }),
13801
- /* @__PURE__ */ f(H0, { className: K(W0), children: /* @__PURE__ */ f("span", { className: K(K0) }) })
13802
- ]
13757
+ side: n,
13758
+ sideOffset: 6,
13759
+ className: "z-(--z-tooltip) outline-none",
13760
+ children: /* @__PURE__ */ P(
13761
+ B0,
13762
+ {
13763
+ className: K(
13764
+ /* dx-tooltip is a stable hook for the overlay screenshot pass.
13765
+ Base UI does not put role="tooltip" on the popup it wires
13766
+ aria-describedby from the trigger instead so there is no
13767
+ semantic selector to target it by. */
13768
+ "dx-tooltip relative rounded-md bg-surface-overlay px-2.5 py-1.5",
13769
+ /* THE SAME CLAMP AS THE POPOVER, for the same reason and with
13770
+ the same shape — a tooltip is portalled and positioned by the
13771
+ identical machinery, so it goes off the top edge of a short
13772
+ viewport in exactly the same way. `max-w-xs` is kept as the
13773
+ DESIGN size, written as the `--container-xs` it compiles to so
13774
+ it can sit inside the `min()`; there is no `width` prop here
13775
+ because a tooltip is a label and a label that needs a declared
13776
+ width is a popover.
13777
+
13778
+ The tooltip is the overlay that PROVED the scroller cannot
13779
+ live on the popup: it is the one whose arrow is not opt-in, so
13780
+ clipping it was not a possibility but a certainty on every
13781
+ tooltip in the library. */
13782
+ "max-w-[min(var(--container-xs),80vw,var(--available-width))]",
13783
+ G0,
13784
+ "flex flex-col",
13785
+ /* `--shadow-tooltip` rather than a size from the elevation ramp:
13786
+ on dark it lifts with a bright rim and halo instead of a
13787
+ shadow nobody can see. See tokens.css for why this one overlay
13788
+ inverts the technique. */
13789
+ "border border-border text-xs font-medium text-primary shadow-(--shadow-tooltip)",
13790
+ "origin-[var(--transform-origin)]",
13791
+ /* Faster than a popover on both ends. A tooltip that lingers
13792
+ while you are already reading the next thing reads as lag. */
13793
+ "transition-[var(--tx-colors),opacity,scale] duration-(--dur-fast) ease-out-strong",
13794
+ "data-starting-style:scale-95 data-starting-style:opacity-0",
13795
+ "data-ending-style:opacity-0 data-ending-style:duration-(--dur-instant)",
13796
+ r
13797
+ ),
13798
+ children: [
13799
+ /* @__PURE__ */ f("div", { className: j0, children: e }),
13800
+ /* @__PURE__ */ f(H0, { className: K(W0), children: /* @__PURE__ */ f("span", { className: K(K0) }) })
13801
+ ]
13802
+ }
13803
+ )
13803
13804
  }
13804
- )
13805
- }
13806
- ) })
13807
- ] });
13805
+ ) })
13806
+ ]
13807
+ }
13808
+ );
13808
13809
  }
13809
13810
  function C6({ children: e, delay: t = 0 }) {
13810
13811
  return /* @__PURE__ */ f(U0, { delay: t, children: e });