@warp-ds/core
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -104,4 +104,4 @@ import { computePosition, flip, offset, arrow, autoUpdate, hide, shift, size } from '@floating-ui/dom'; | ||
}), | ||
state?.flip && shift({ crossAxis: true }), // shifts the attentionEl to make sure that it stays in view | ||
!state?.noArrow && state?.arrowEl && arrow({ element: state?.arrowEl }), | ||
state?.flip && shift({ crossAxis: true }), // shifts the attentionEl to make sure that it stays in view | ||
hide(), // 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'. | ||
@@ -160,7 +160,2 @@ size({ | ||
} | ||
// Adjust for shift if applied | ||
const { x: shiftX } = middlewareData.shift || {}; | ||
if (typeof shiftX === 'number') { | ||
left = typeof arrowX === 'number' ? `${arrowX - shiftX}px` : left; | ||
} | ||
// Apply the arrow styles | ||
@@ -167,0 +162,0 @@ Object.assign(arrowEl.style, { |
@@ -5,3 +5,3 @@ { | ||
"description": "Shared business logic for JS implementations of Warp Design System", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31495
432