@namba_one/ui-kit-2 1.0.204 → 1.0.205

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.es.js CHANGED
@@ -8236,8 +8236,8 @@ function Cu({
8236
8236
  horizontalOffset: t,
8237
8237
  parentElementRect: r
8238
8238
  }) {
8239
- const o = r.left + n.width + t <= window.innerWidth;
8240
- return e || o ? r.left - (n.width - r.width) / 2 + t : (window.innerWidth - n.width) / 2 + t;
8239
+ const o = r.left - (n.width - r.width) / 2 + t, s = o > 0 && o + n.width < window.innerWidth;
8240
+ return e || s ? o : (window.innerWidth - n.width) / 2 + t;
8241
8241
  }
8242
8242
  function i_({
8243
8243
  isCanPositionRight: n,
@@ -8372,8 +8372,8 @@ function xu({
8372
8372
  verticalOffset: t,
8373
8373
  isCenterByParent: r
8374
8374
  }) {
8375
- const o = e.top + n.height + t < window.innerHeight;
8376
- return r || o ? e.top - (n.height - e.height) / 2 + t : (window.innerHeight - n.height) / 2 + t;
8375
+ const o = e.top - (n.height - e.height) / 2 + t, s = o > 0 && o + n.height < window.innerHeight;
8376
+ return r || s ? o : (window.innerHeight - n.height) / 2 + t;
8377
8377
  }
8378
8378
  const d_ = /* @__PURE__ */ ce({
8379
8379
  __name: "Wrapper",