@elementor/editor-variables 4.0.0-499 → 4.0.0-501

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
@@ -2065,8 +2065,7 @@ var usePopoverContentRef = () => {
2065
2065
  import * as React15 from "react";
2066
2066
  import { useState as useState8 } from "react";
2067
2067
  import { PopoverContent, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
2068
- import { PopoverBody } from "@elementor/editor-editing-panel";
2069
- import { PopoverHeader } from "@elementor/editor-ui";
2068
+ import { PopoverHeader, SectionPopoverBody } from "@elementor/editor-ui";
2070
2069
  import { ArrowLeftIcon } from "@elementor/icons";
2071
2070
  import { Button as Button3, CardActions, Divider as Divider2, FormHelperText as FormHelperText2, IconButton as IconButton4, Typography as Typography6 } from "@elementor/ui";
2072
2071
  import { __ as __10 } from "@wordpress/i18n";
@@ -2186,7 +2185,7 @@ var VariableCreation = ({ onGoBack, onClose }) => {
2186
2185
  handleCreateAndTrack();
2187
2186
  }
2188
2187
  };
2189
- return /* @__PURE__ */ React15.createElement(PopoverBody, { height: "auto" }, /* @__PURE__ */ React15.createElement(
2188
+ return /* @__PURE__ */ React15.createElement(SectionPopoverBody, { height: "auto" }, /* @__PURE__ */ React15.createElement(
2190
2189
  PopoverHeader,
2191
2190
  {
2192
2191
  icon: /* @__PURE__ */ React15.createElement(React15.Fragment, null, onGoBack && /* @__PURE__ */ React15.createElement(IconButton4, { size: SIZE2, "aria-label": __10("Go Back", "elementor"), onClick: onGoBack }, /* @__PURE__ */ React15.createElement(ArrowLeftIcon, { fontSize: SIZE2 })), /* @__PURE__ */ React15.createElement(VariableIcon, { fontSize: SIZE2 })),
@@ -2252,8 +2251,7 @@ import * as React17 from "react";
2252
2251
  import { useEffect as useEffect4, useState as useState10 } from "react";
2253
2252
  import { PopoverContent as PopoverContent2, useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
2254
2253
  import { useSuppressedMessage } from "@elementor/editor-current-user";
2255
- import { PopoverBody as PopoverBody2 } from "@elementor/editor-editing-panel";
2256
- import { PopoverHeader as PopoverHeader2 } from "@elementor/editor-ui";
2254
+ import { PopoverHeader as PopoverHeader2, SectionPopoverBody as SectionPopoverBody2 } from "@elementor/editor-ui";
2257
2255
  import { ArrowLeftIcon as ArrowLeftIcon2, TrashIcon as TrashIcon2 } from "@elementor/icons";
2258
2256
  import { Button as Button5, CardActions as CardActions2, Divider as Divider3, FormHelperText as FormHelperText3, IconButton as IconButton5, Tooltip, Typography as Typography8 } from "@elementor/ui";
2259
2257
  import { __ as __12 } from "@wordpress/i18n";
@@ -2414,7 +2412,7 @@ var VariableEdit = ({ onClose, onGoBack, onSubmit, editId }) => {
2414
2412
  handleUpdate();
2415
2413
  }
2416
2414
  };
2417
- return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(PopoverBody2, { height: "auto" }, /* @__PURE__ */ React17.createElement(
2415
+ return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(SectionPopoverBody2, { height: "auto" }, /* @__PURE__ */ React17.createElement(
2418
2416
  PopoverHeader2,
2419
2417
  {
2420
2418
  title: __12("Edit variable", "elementor"),
@@ -2493,7 +2491,7 @@ var VariableEdit = ({ onClose, onGoBack, onSubmit, editId }) => {
2493
2491
  // src/components/variables-selection.tsx
2494
2492
  import * as React19 from "react";
2495
2493
  import { useState as useState11 } from "react";
2496
- import { PopoverBody as PopoverBody3 } from "@elementor/editor-editing-panel";
2494
+ import { SectionPopoverBody as SectionPopoverBody3 } from "@elementor/editor-ui";
2497
2495
  import { PopoverHeader as PopoverHeader3, PopoverMenuList, SearchField as SearchField2 } from "@elementor/editor-ui";
2498
2496
  import { ColorFilterIcon as ColorFilterIcon2, PlusIcon as PlusIcon2, SettingsIcon } from "@elementor/icons";
2499
2497
  import { Divider as Divider4, IconButton as IconButton7, Tooltip as Tooltip3 } from "@elementor/ui";
@@ -2672,7 +2670,7 @@ var VariablesSelection = ({ closePopover, onAdd, onEdit, onSettings, disabled =
2672
2670
  const handleClearSearch = () => {
2673
2671
  setSearchValue("");
2674
2672
  };
2675
- return /* @__PURE__ */ React19.createElement(PopoverBody3, null, /* @__PURE__ */ React19.createElement(
2673
+ return /* @__PURE__ */ React19.createElement(SectionPopoverBody3, null, /* @__PURE__ */ React19.createElement(
2676
2674
  PopoverHeader3,
2677
2675
  {
2678
2676
  title: __14("Variables", "elementor"),
@@ -2918,8 +2916,7 @@ import { __ as __18 } from "@wordpress/i18n";
2918
2916
  import * as React23 from "react";
2919
2917
  import { useState as useState13 } from "react";
2920
2918
  import { PopoverContent as PopoverContent3, useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
2921
- import { PopoverBody as PopoverBody4 } from "@elementor/editor-editing-panel";
2922
- import { PopoverHeader as PopoverHeader4 } from "@elementor/editor-ui";
2919
+ import { PopoverHeader as PopoverHeader4, SectionPopoverBody as SectionPopoverBody4 } from "@elementor/editor-ui";
2923
2920
  import { Button as Button6, CardActions as CardActions3, Divider as Divider5, FormHelperText as FormHelperText4, Typography as Typography11 } from "@elementor/ui";
2924
2921
  import { __ as __16 } from "@wordpress/i18n";
2925
2922
  var SIZE7 = "tiny";
@@ -2981,7 +2978,7 @@ var VariableRestore = ({ variableId, onClose, onSubmit }) => {
2981
2978
  handleRestore();
2982
2979
  }
2983
2980
  };
2984
- return /* @__PURE__ */ React23.createElement(PopoverContentRefContextProvider, null, /* @__PURE__ */ React23.createElement(PopoverBody4, { height: "auto" }, /* @__PURE__ */ React23.createElement(
2981
+ return /* @__PURE__ */ React23.createElement(PopoverContentRefContextProvider, null, /* @__PURE__ */ React23.createElement(SectionPopoverBody4, { height: "auto" }, /* @__PURE__ */ React23.createElement(
2985
2982
  PopoverHeader4,
2986
2983
  {
2987
2984
  icon: /* @__PURE__ */ React23.createElement(VariableIcon, { fontSize: SIZE7 }),
@@ -3587,7 +3584,8 @@ var ColorField = ({ value, onChange, onValidationChange }) => {
3587
3584
  import * as React34 from "react";
3588
3585
  import { useId as useId4, useRef as useRef10, useState as useState18 } from "react";
3589
3586
  import { enqueueFont as enqueueFont2, ItemSelector } from "@elementor/editor-controls";
3590
- import { useFontFamilies, useSectionWidth } from "@elementor/editor-editing-panel";
3587
+ import { useFontFamilies } from "@elementor/editor-editing-panel";
3588
+ import { useSectionWidth } from "@elementor/editor-ui";
3591
3589
  import { ChevronDownIcon, TextIcon } from "@elementor/icons";
3592
3590
  import { bindPopover as bindPopover4, bindTrigger as bindTrigger4, Popover as Popover4, UnstableTag, usePopupState as usePopupState6 } from "@elementor/ui";
3593
3591
  import { __ as __24 } from "@wordpress/i18n";