@elementor/editor-editing-panel 4.1.0-818 → 4.1.0-820

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
@@ -1817,7 +1817,7 @@ function EditorPanelErrorFallback() {
1817
1817
  }
1818
1818
 
1819
1819
  // src/components/editing-panel-tabs.tsx
1820
- import { Fragment as Fragment9 } from "react";
1820
+ import { Fragment as Fragment10 } from "react";
1821
1821
  import * as React86 from "react";
1822
1822
  import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
1823
1823
  import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
@@ -2488,7 +2488,7 @@ import { CLASSES_PROP_KEY } from "@elementor/editor-props";
2488
2488
  import { useActiveBreakpoint } from "@elementor/editor-responsive";
2489
2489
  import { createLocation as createLocation3 } from "@elementor/locations";
2490
2490
  import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
2491
- import { Box as Box5, Divider as Divider5, Stack as Stack12 } from "@elementor/ui";
2491
+ import { Box as Box6, Divider as Divider5, Stack as Stack12 } from "@elementor/ui";
2492
2492
  import { __ as __59 } from "@wordpress/i18n";
2493
2493
 
2494
2494
  // src/contexts/styles-inheritance-context.tsx
@@ -4421,10 +4421,26 @@ var PositionField = ({ onChange }) => {
4421
4421
  // src/components/style-sections/position-section/z-index-field.tsx
4422
4422
  import * as React59 from "react";
4423
4423
  import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
4424
+ import { InfoCircleFilledIcon } from "@elementor/icons";
4425
+ import { Alert as Alert2, AlertTitle, Box as Box5, Infotip } from "@elementor/ui";
4424
4426
  import { __ as __37 } from "@wordpress/i18n";
4425
4427
  var Z_INDEX_LABEL = __37("Z-index", "elementor");
4426
- var ZIndexField = () => {
4427
- return /* @__PURE__ */ React59.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(NumberControl4, null)));
4428
+ var ZIndexField = ({ disabled }) => {
4429
+ const StyleField = /* @__PURE__ */ React59.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(NumberControl4, { disabled })));
4430
+ const content = /* @__PURE__ */ React59.createElement(Alert2, { color: "secondary", icon: /* @__PURE__ */ React59.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React59.createElement(AlertTitle, null, __37("Z-index", "elementor")), /* @__PURE__ */ React59.createElement(Box5, { component: "span" }, __37(
4431
+ "z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
4432
+ "elementor"
4433
+ )));
4434
+ return disabled ? /* @__PURE__ */ React59.createElement(
4435
+ Infotip,
4436
+ {
4437
+ placement: "right",
4438
+ content,
4439
+ color: "secondary",
4440
+ slotProps: { popper: { sx: { width: 300 } } }
4441
+ },
4442
+ /* @__PURE__ */ React59.createElement(Box5, null, StyleField)
4443
+ ) : /* @__PURE__ */ React59.createElement(React59.Fragment, null, StyleField);
4428
4444
  };
4429
4445
 
4430
4446
  // src/components/style-sections/position-section/position-section.tsx
@@ -4487,7 +4503,7 @@ var PositionSection = () => {
4487
4503
  }
4488
4504
  };
4489
4505
  const isNotStatic = positionValue && positionValue?.value !== POSITION_STATIC;
4490
- return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(DimensionsField, null), /* @__PURE__ */ React60.createElement(ZIndexField, null)) : null, /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(OffsetField, null));
4506
+ return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(DimensionsField, null)) : null, /* @__PURE__ */ React60.createElement(ZIndexField, { disabled: !isNotStatic }), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(OffsetField, null));
4491
4507
  };
4492
4508
  var usePersistDimensions = () => {
4493
4509
  const { id: styleDefID, meta } = useStyle();
@@ -5235,7 +5251,7 @@ var StyleTab = () => {
5235
5251
  "transition"
5236
5252
  ]
5237
5253
  }
5238
- ), /* @__PURE__ */ React85.createElement(StyleTabSlot, null)), /* @__PURE__ */ React85.createElement(Box5, { sx: { height: "150px" } })))
5254
+ ), /* @__PURE__ */ React85.createElement(StyleTabSlot, null)), /* @__PURE__ */ React85.createElement(Box6, { sx: { height: "150px" } })))
5239
5255
  ));
5240
5256
  };
5241
5257
  function ClassesHeader({ children }) {
@@ -5259,7 +5275,7 @@ var EditingPanelTabs = () => {
5259
5275
  return (
5260
5276
  // When switching between elements, the local states should be reset. We are using key to rerender the tabs.
5261
5277
  // Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
5262
- /* @__PURE__ */ React86.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React86.createElement(PanelTabContent, null))
5278
+ /* @__PURE__ */ React86.createElement(Fragment10, { key: element.id }, /* @__PURE__ */ React86.createElement(PanelTabContent, null))
5263
5279
  );
5264
5280
  };
5265
5281
  var PanelTabContent = () => {
@@ -5405,8 +5421,8 @@ import {
5405
5421
  useElementEditorSettings
5406
5422
  } from "@elementor/editor-elements";
5407
5423
  import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
5408
- import { InfoCircleFilledIcon } from "@elementor/icons";
5409
- import { Alert as Alert2, Chip as Chip4, Infotip, Stack as Stack14, Switch, TextField as TextField2, Typography as Typography4 } from "@elementor/ui";
5424
+ import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
5425
+ import { Alert as Alert3, Chip as Chip4, Infotip as Infotip2, Stack as Stack14, Switch, TextField as TextField2, Typography as Typography4 } from "@elementor/ui";
5410
5426
  import { __ as __64 } from "@wordpress/i18n";
5411
5427
 
5412
5428
  // src/controls-registry/element-controls/get-element-by-type.ts
@@ -5753,14 +5769,14 @@ var ConditionalTooltip = ({
5753
5769
  return children;
5754
5770
  }
5755
5771
  return /* @__PURE__ */ React89.createElement(
5756
- Infotip,
5772
+ Infotip2,
5757
5773
  {
5758
5774
  arrow: false,
5759
5775
  content: /* @__PURE__ */ React89.createElement(
5760
- Alert2,
5776
+ Alert3,
5761
5777
  {
5762
5778
  color: "secondary",
5763
- icon: /* @__PURE__ */ React89.createElement(InfoCircleFilledIcon, { fontSize: "tiny" }),
5779
+ icon: /* @__PURE__ */ React89.createElement(InfoCircleFilledIcon2, { fontSize: "tiny" }),
5764
5780
  size: "small",
5765
5781
  sx: { width: 288 }
5766
5782
  },
@@ -5965,7 +5981,7 @@ import { DatabaseIcon as DatabaseIcon3, SettingsIcon, XIcon } from "@elementor/i
5965
5981
  import {
5966
5982
  bindPopover,
5967
5983
  bindTrigger as bindTrigger2,
5968
- Box as Box6,
5984
+ Box as Box7,
5969
5985
  Divider as Divider8,
5970
5986
  Grid as Grid8,
5971
5987
  IconButton as IconButton2,
@@ -6076,7 +6092,7 @@ var DynamicControl = ({ bind, children }) => {
6076
6092
 
6077
6093
  // src/dynamics/components/dynamic-selection.tsx
6078
6094
  import * as React93 from "react";
6079
- import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
6095
+ import { Fragment as Fragment15, useEffect as useEffect9, useState as useState10 } from "react";
6080
6096
  import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
6081
6097
  import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
6082
6098
  import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
@@ -6133,7 +6149,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
6133
6149
  if (expired) {
6134
6150
  return /* @__PURE__ */ React93.createElement(ExpiredDynamicTags, null);
6135
6151
  }
6136
- return /* @__PURE__ */ React93.createElement(Fragment14, null, /* @__PURE__ */ React93.createElement(
6152
+ return /* @__PURE__ */ React93.createElement(Fragment15, null, /* @__PURE__ */ React93.createElement(
6137
6153
  SearchField,
6138
6154
  {
6139
6155
  value: searchValue,
@@ -6264,7 +6280,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
6264
6280
  if (!dynamicTag) {
6265
6281
  throw new Error(`Dynamic tag ${tagName} not found`);
6266
6282
  }
6267
- return /* @__PURE__ */ React94.createElement(Box6, null, /* @__PURE__ */ React94.createElement(
6283
+ return /* @__PURE__ */ React94.createElement(Box7, null, /* @__PURE__ */ React94.createElement(
6268
6284
  Tag,
6269
6285
  {
6270
6286
  fullWidth: true,
@@ -6607,12 +6623,12 @@ import {
6607
6623
  import { PopoverHeader as PopoverHeader3, useSectionWidth as useSectionWidth2 } from "@elementor/editor-ui";
6608
6624
  import {
6609
6625
  Backdrop,
6610
- Box as Box8,
6626
+ Box as Box9,
6611
6627
  Card,
6612
6628
  CardContent,
6613
6629
  ClickAwayListener,
6614
6630
  IconButton as IconButton3,
6615
- Infotip as Infotip2,
6631
+ Infotip as Infotip3,
6616
6632
  Stack as Stack17,
6617
6633
  Tooltip as Tooltip6
6618
6634
  } from "@elementor/ui";
@@ -6790,8 +6806,8 @@ var ValueComponent = ({ index, value }) => {
6790
6806
 
6791
6807
  // src/styles-inheritance/components/infotip/action-icons.tsx
6792
6808
  import * as React99 from "react";
6793
- import { Box as Box7 } from "@elementor/ui";
6794
- var ActionIcons = () => /* @__PURE__ */ React99.createElement(Box7, { display: "flex", gap: 0.5, alignItems: "center" });
6809
+ import { Box as Box8 } from "@elementor/ui";
6810
+ var ActionIcons = () => /* @__PURE__ */ React99.createElement(Box8, { display: "flex", gap: 0.5, alignItems: "center" });
6795
6811
 
6796
6812
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
6797
6813
  var SECTION_PADDING_INLINE = 32;
@@ -6841,7 +6857,7 @@ var StylesInheritanceInfotip = ({
6841
6857
  }
6842
6858
  },
6843
6859
  /* @__PURE__ */ React100.createElement(
6844
- Box8,
6860
+ Box9,
6845
6861
  {
6846
6862
  sx: {
6847
6863
  position: "sticky",
@@ -6868,7 +6884,7 @@ var StylesInheritanceInfotip = ({
6868
6884
  },
6869
6885
  /* @__PURE__ */ React100.createElement(Stack17, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
6870
6886
  return /* @__PURE__ */ React100.createElement(
6871
- Box8,
6887
+ Box9,
6872
6888
  {
6873
6889
  key: item.id,
6874
6890
  display: "flex",
@@ -6880,7 +6896,7 @@ var StylesInheritanceInfotip = ({
6880
6896
  )
6881
6897
  },
6882
6898
  /* @__PURE__ */ React100.createElement(
6883
- Box8,
6899
+ Box9,
6884
6900
  {
6885
6901
  display: "flex",
6886
6902
  gap: 0.5,
@@ -6896,9 +6912,9 @@ var StylesInheritanceInfotip = ({
6896
6912
  )
6897
6913
  ));
6898
6914
  if (isDisabled) {
6899
- return /* @__PURE__ */ React100.createElement(Box8, { sx: { display: "inline-flex" } }, children);
6915
+ return /* @__PURE__ */ React100.createElement(Box9, { sx: { display: "inline-flex" } }, children);
6900
6916
  }
6901
- return /* @__PURE__ */ React100.createElement(Box8, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React100.createElement(
6917
+ return /* @__PURE__ */ React100.createElement(Box9, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React100.createElement(
6902
6918
  TooltipOrInfotip,
6903
6919
  {
6904
6920
  showInfotip,
@@ -6926,7 +6942,7 @@ function TooltipOrInfotip({
6926
6942
  isDisabled
6927
6943
  }) {
6928
6944
  if (isDisabled) {
6929
- return /* @__PURE__ */ React100.createElement(Box8, { sx: { display: "inline-flex" } }, children);
6945
+ return /* @__PURE__ */ React100.createElement(Box9, { sx: { display: "inline-flex" } }, children);
6930
6946
  }
6931
6947
  if (showInfotip) {
6932
6948
  return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
@@ -6940,7 +6956,7 @@ function TooltipOrInfotip({
6940
6956
  }
6941
6957
  }
6942
6958
  ), /* @__PURE__ */ React100.createElement(
6943
- Infotip2,
6959
+ Infotip3,
6944
6960
  {
6945
6961
  placement: "top-end",
6946
6962
  content: infotipContent,