@warp-ds/elements 2.0.2-next.4 → 2.0.2-next.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.
|
@@ -2704,7 +2704,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
2704
2704
|
}));
|
|
2705
2705
|
};
|
|
2706
2706
|
|
|
2707
|
-
// node_modules/.pnpm/@warp-ds+core@1.1.
|
|
2707
|
+
// node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
|
|
2708
2708
|
var TOP_START = "top-start";
|
|
2709
2709
|
var TOP = "top";
|
|
2710
2710
|
var TOP_END = "top-end";
|
|
@@ -2805,9 +2805,9 @@ async function useRecompute(state) {
|
|
|
2805
2805
|
// checks overflow to trigger a flip. When disabled, it will ignore overflow
|
|
2806
2806
|
fallbackPlacements: state == null ? void 0 : state.fallbackPlacements
|
|
2807
2807
|
}),
|
|
2808
|
-
!(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
|
|
2809
2808
|
(state == null ? void 0 : state.flip) && shift2({ crossAxis: true }),
|
|
2810
2809
|
// shifts the attentionEl to make sure that it stays in view
|
|
2810
|
+
!(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
|
|
2811
2811
|
hide2(),
|
|
2812
2812
|
// will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.
|
|
2813
2813
|
size2({
|
|
@@ -2853,10 +2853,6 @@ async function useRecompute(state) {
|
|
|
2853
2853
|
left = typeof arrowX === "number" ? `${arrowX}px` : "";
|
|
2854
2854
|
top = typeof arrowY === "number" ? `${arrowY}px` : "";
|
|
2855
2855
|
}
|
|
2856
|
-
const { x: shiftX } = middlewareData.shift || {};
|
|
2857
|
-
if (typeof shiftX === "number") {
|
|
2858
|
-
left = typeof arrowX === "number" ? `${arrowX - shiftX}px` : left;
|
|
2859
|
-
}
|
|
2860
2856
|
Object.assign(arrowEl.style, {
|
|
2861
2857
|
top,
|
|
2862
2858
|
right,
|
|
@@ -3293,7 +3289,10 @@ ${JSON.stringify(Object.keys(opposites))}`);
|
|
|
3293
3289
|
${JSON.stringify(directions)}`
|
|
3294
3290
|
);
|
|
3295
3291
|
}
|
|
3296
|
-
setTimeout(() =>
|
|
3292
|
+
setTimeout(() => {
|
|
3293
|
+
this.requestUpdate();
|
|
3294
|
+
this.handleDone();
|
|
3295
|
+
}, 0);
|
|
3297
3296
|
if (!this.callout) {
|
|
3298
3297
|
window.addEventListener("click", this.handleDone);
|
|
3299
3298
|
window.addEventListener("scroll", this.handleDone);
|