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

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
@@ -6247,13 +6247,6 @@ var ActionIcons = () => /* @__PURE__ */ React93.createElement(import_ui43.Box, {
6247
6247
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
6248
6248
  var SECTION_PADDING_INLINE = 32;
6249
6249
  var INFOTIP_MAX_WIDTH = 496;
6250
- var calculatePopoverOffset = (triggerRect, cardWidth, isSiteRtl) => {
6251
- if (!triggerRect) {
6252
- return 0;
6253
- }
6254
- const triggerWidth = triggerRect.width;
6255
- return isSiteRtl ? triggerWidth - cardWidth : -(cardWidth / 2) + triggerWidth / 2;
6256
- };
6257
6250
  var StylesInheritanceInfotip = ({
6258
6251
  inheritanceChain,
6259
6252
  propType,
@@ -6362,9 +6355,7 @@ var StylesInheritanceInfotip = ({
6362
6355
  showInfotip,
6363
6356
  onClose: closeInfotip,
6364
6357
  infotipContent,
6365
- isDisabled,
6366
- triggerRef,
6367
- sectionWidth
6358
+ isDisabled
6368
6359
  },
6369
6360
  /* @__PURE__ */ React94.createElement(
6370
6361
  import_ui44.IconButton,
@@ -6383,19 +6374,12 @@ function TooltipOrInfotip({
6383
6374
  showInfotip,
6384
6375
  onClose,
6385
6376
  infotipContent,
6386
- isDisabled,
6387
- triggerRef,
6388
- sectionWidth
6377
+ isDisabled
6389
6378
  }) {
6390
- const direction = useDirection();
6391
- const isSiteRtl = direction.isSiteRtl;
6392
6379
  if (isDisabled) {
6393
6380
  return /* @__PURE__ */ React94.createElement(import_ui44.Box, { sx: { display: "inline-flex" } }, children);
6394
6381
  }
6395
6382
  if (showInfotip) {
6396
- const triggerRect = triggerRef.current?.getBoundingClientRect();
6397
- const cardWidth = Math.min(sectionWidth - SECTION_PADDING_INLINE, INFOTIP_MAX_WIDTH);
6398
- const offsetX = calculatePopoverOffset(triggerRect, cardWidth, isSiteRtl);
6399
6383
  return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
6400
6384
  import_ui44.Backdrop,
6401
6385
  {
@@ -6409,24 +6393,11 @@ function TooltipOrInfotip({
6409
6393
  ), /* @__PURE__ */ React94.createElement(
6410
6394
  import_ui44.Infotip,
6411
6395
  {
6412
- placement: "top",
6396
+ placement: "top-end",
6413
6397
  content: infotipContent,
6414
6398
  open: showInfotip,
6415
6399
  onClose,
6416
- disableHoverListener: true,
6417
- componentsProps: {
6418
- tooltip: {
6419
- sx: { mx: 2 }
6420
- }
6421
- },
6422
- PopperProps: {
6423
- modifiers: [
6424
- {
6425
- name: "offset",
6426
- options: { offset: [offsetX, 0] }
6427
- }
6428
- ]
6429
- }
6400
+ disableHoverListener: true
6430
6401
  },
6431
6402
  children
6432
6403
  ));