@elementor/editor-editing-panel 4.1.0-731 → 4.1.0-733

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.mjs CHANGED
@@ -6379,13 +6379,6 @@ var ActionIcons = () => /* @__PURE__ */ React93.createElement(Box7, { display: "
6379
6379
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
6380
6380
  var SECTION_PADDING_INLINE = 32;
6381
6381
  var INFOTIP_MAX_WIDTH = 496;
6382
- var calculatePopoverOffset = (triggerRect, cardWidth, isSiteRtl) => {
6383
- if (!triggerRect) {
6384
- return 0;
6385
- }
6386
- const triggerWidth = triggerRect.width;
6387
- return isSiteRtl ? triggerWidth - cardWidth : -(cardWidth / 2) + triggerWidth / 2;
6388
- };
6389
6382
  var StylesInheritanceInfotip = ({
6390
6383
  inheritanceChain,
6391
6384
  propType,
@@ -6494,9 +6487,7 @@ var StylesInheritanceInfotip = ({
6494
6487
  showInfotip,
6495
6488
  onClose: closeInfotip,
6496
6489
  infotipContent,
6497
- isDisabled,
6498
- triggerRef,
6499
- sectionWidth
6490
+ isDisabled
6500
6491
  },
6501
6492
  /* @__PURE__ */ React94.createElement(
6502
6493
  IconButton3,
@@ -6515,19 +6506,12 @@ function TooltipOrInfotip({
6515
6506
  showInfotip,
6516
6507
  onClose,
6517
6508
  infotipContent,
6518
- isDisabled,
6519
- triggerRef,
6520
- sectionWidth
6509
+ isDisabled
6521
6510
  }) {
6522
- const direction = useDirection();
6523
- const isSiteRtl = direction.isSiteRtl;
6524
6511
  if (isDisabled) {
6525
6512
  return /* @__PURE__ */ React94.createElement(Box8, { sx: { display: "inline-flex" } }, children);
6526
6513
  }
6527
6514
  if (showInfotip) {
6528
- const triggerRect = triggerRef.current?.getBoundingClientRect();
6529
- const cardWidth = Math.min(sectionWidth - SECTION_PADDING_INLINE, INFOTIP_MAX_WIDTH);
6530
- const offsetX = calculatePopoverOffset(triggerRect, cardWidth, isSiteRtl);
6531
6515
  return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
6532
6516
  Backdrop,
6533
6517
  {
@@ -6541,24 +6525,11 @@ function TooltipOrInfotip({
6541
6525
  ), /* @__PURE__ */ React94.createElement(
6542
6526
  Infotip2,
6543
6527
  {
6544
- placement: "top",
6528
+ placement: "top-end",
6545
6529
  content: infotipContent,
6546
6530
  open: showInfotip,
6547
6531
  onClose,
6548
- disableHoverListener: true,
6549
- componentsProps: {
6550
- tooltip: {
6551
- sx: { mx: 2 }
6552
- }
6553
- },
6554
- PopperProps: {
6555
- modifiers: [
6556
- {
6557
- name: "offset",
6558
- options: { offset: [offsetX, 0] }
6559
- }
6560
- ]
6561
- }
6532
+ disableHoverListener: true
6562
6533
  },
6563
6534
  children
6564
6535
  ));