@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.
package/dist/index.js CHANGED
@@ -3825,7 +3825,7 @@ var computePosition2 = (reference, floating, options) => {
3825
3825
  }));
3826
3826
  };
3827
3827
 
3828
- // node_modules/.pnpm/@warp-ds+core@1.1.7_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3828
+ // 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
3829
3829
  var TOP_START = "top-start";
3830
3830
  var TOP = "top";
3831
3831
  var TOP_END = "top-end";
@@ -3926,9 +3926,9 @@ async function useRecompute(state) {
3926
3926
  // checks overflow to trigger a flip. When disabled, it will ignore overflow
3927
3927
  fallbackPlacements: state == null ? void 0 : state.fallbackPlacements
3928
3928
  }),
3929
- !(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
3930
3929
  (state == null ? void 0 : state.flip) && shift2({ crossAxis: true }),
3931
3930
  // shifts the attentionEl to make sure that it stays in view
3931
+ !(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
3932
3932
  hide2(),
3933
3933
  // 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'.
3934
3934
  size2({
@@ -3974,10 +3974,6 @@ async function useRecompute(state) {
3974
3974
  left = typeof arrowX === "number" ? `${arrowX}px` : "";
3975
3975
  top = typeof arrowY === "number" ? `${arrowY}px` : "";
3976
3976
  }
3977
- const { x: shiftX } = middlewareData.shift || {};
3978
- if (typeof shiftX === "number") {
3979
- left = typeof arrowX === "number" ? `${arrowX - shiftX}px` : left;
3980
- }
3981
3977
  Object.assign(arrowEl.style, {
3982
3978
  top,
3983
3979
  right,
@@ -4073,7 +4069,10 @@ ${JSON.stringify(Object.keys(opposites))}`);
4073
4069
  ${JSON.stringify(directions)}`
4074
4070
  );
4075
4071
  }
4076
- setTimeout(() => this.requestUpdate(), 0);
4072
+ setTimeout(() => {
4073
+ this.requestUpdate();
4074
+ this.handleDone();
4075
+ }, 0);
4077
4076
  if (!this.callout) {
4078
4077
  window.addEventListener("click", this.handleDone);
4079
4078
  window.addEventListener("scroll", this.handleDone);
@@ -4457,7 +4456,7 @@ if (!customElements.get("w-box")) {
4457
4456
  // packages/breadcrumbs/index.js
4458
4457
  import { html as html12 } from "lit";
4459
4458
 
4460
- // node_modules/.pnpm/@warp-ds+core@1.1.7_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4459
+ // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4461
4460
  function interleave(array, separator2) {
4462
4461
  return array.flatMap((el) => [el, separator2]).slice(0, -1);
4463
4462
  }