@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 +62 -61
- package/dist/index.js.map +1 -1
- package/dist/types/components/Popover.d.ts +30 -2
- package/package.json +1 -1
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
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
|
|
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
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
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 });
|