@elementor/editor-controls 4.0.0-677 → 4.0.0-679

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
@@ -2600,11 +2600,11 @@ var ToggleControl = createControl(
2600
2600
  // src/controls/number-control.tsx
2601
2601
  import * as React55 from "react";
2602
2602
  import { numberPropTypeUtil } from "@elementor/editor-props";
2603
- import { InputAdornment as InputAdornment3 } from "@elementor/ui";
2603
+ import { InputAdornment as InputAdornment3, Typography as Typography4 } from "@elementor/ui";
2604
2604
  var isEmptyOrNaN = (value) => value === null || value === void 0 || value === "" || Number.isNaN(Number(value));
2605
2605
  var renderSuffix = (propType) => {
2606
2606
  if (propType.meta?.suffix) {
2607
- return /* @__PURE__ */ React55.createElement(InputAdornment3, { position: "end" }, propType.meta.suffix);
2607
+ return /* @__PURE__ */ React55.createElement(InputAdornment3, { position: "end" }, /* @__PURE__ */ React55.createElement(Typography4, { variant: "caption", color: "text.secondary" }, propType.meta.suffix));
2608
2608
  }
2609
2609
  return /* @__PURE__ */ React55.createElement(React55.Fragment, null);
2610
2610
  };
@@ -2953,7 +2953,7 @@ import { __ as __20 } from "@wordpress/i18n";
2953
2953
  import * as React58 from "react";
2954
2954
  import { useCallback as useCallback2, useEffect as useEffect8, useState as useState8 } from "react";
2955
2955
  import { PopoverBody, PopoverHeader as PopoverHeader2, PopoverMenuList, SearchField } from "@elementor/editor-ui";
2956
- import { Box as Box8, Divider as Divider2, Link, Stack as Stack9, Typography as Typography4 } from "@elementor/ui";
2956
+ import { Box as Box8, Divider as Divider2, Link, Stack as Stack9, Typography as Typography5 } from "@elementor/ui";
2957
2957
  import { debounce } from "@elementor/utils";
2958
2958
  import { __ as __19 } from "@wordpress/i18n";
2959
2959
 
@@ -3030,8 +3030,8 @@ var ItemSelector = ({
3030
3030
  overflow: "hidden"
3031
3031
  },
3032
3032
  /* @__PURE__ */ React58.createElement(IconComponent, { fontSize: "large" }),
3033
- /* @__PURE__ */ React58.createElement(Box8, { sx: { maxWidth: 160, overflow: "hidden" } }, /* @__PURE__ */ React58.createElement(Typography4, { align: "center", variant: "subtitle2", color: "text.secondary" }, __19("Sorry, nothing matched", "elementor")), /* @__PURE__ */ React58.createElement(
3034
- Typography4,
3033
+ /* @__PURE__ */ React58.createElement(Box8, { sx: { maxWidth: 160, overflow: "hidden" } }, /* @__PURE__ */ React58.createElement(Typography5, { align: "center", variant: "subtitle2", color: "text.secondary" }, __19("Sorry, nothing matched", "elementor")), /* @__PURE__ */ React58.createElement(
3034
+ Typography5,
3035
3035
  {
3036
3036
  variant: "subtitle2",
3037
3037
  color: "text.secondary",
@@ -3049,7 +3049,7 @@ var ItemSelector = ({
3049
3049
  /* @__PURE__ */ React58.createElement("span", null, "\u201D.")
3050
3050
  )),
3051
3051
  /* @__PURE__ */ React58.createElement(
3052
- Typography4,
3052
+ Typography5,
3053
3053
  {
3054
3054
  align: "center",
3055
3055
  variant: "caption",
@@ -3655,7 +3655,7 @@ import * as React67 from "react";
3655
3655
  import { getElementLabel } from "@elementor/editor-elements";
3656
3656
  import { stringPropTypeUtil as stringPropTypeUtil8 } from "@elementor/editor-props";
3657
3657
  import { MenuListItem as MenuListItem3 } from "@elementor/editor-ui";
3658
- import { Select as Select2, styled as styled6, Typography as Typography5 } from "@elementor/ui";
3658
+ import { Select as Select2, styled as styled6, Typography as Typography6 } from "@elementor/ui";
3659
3659
  import { __ as __24 } from "@wordpress/i18n";
3660
3660
 
3661
3661
  // src/components/conditional-control-infotip.tsx
@@ -3730,7 +3730,7 @@ var HtmlTagControl = createControl(({ options, onChange, fallbackLabels = {} })
3730
3730
  }
3731
3731
  const placeholderOption = findOptionByValue(placeholder);
3732
3732
  const displayText = placeholderOption?.label || placeholder;
3733
- return /* @__PURE__ */ React67.createElement(Typography5, { component: "span", variant: "caption", color: "text.tertiary" }, displayText);
3733
+ return /* @__PURE__ */ React67.createElement(Typography6, { component: "span", variant: "caption", color: "text.tertiary" }, displayText);
3734
3734
  };
3735
3735
  const findOptionByValue = (searchValue) => options.find((opt) => opt.value === searchValue);
3736
3736
  return /* @__PURE__ */ React67.createElement(ControlActions, null, /* @__PURE__ */ React67.createElement(ConditionalControlInfotip, { ...infoTipProps }, /* @__PURE__ */ React67.createElement(
@@ -5132,7 +5132,7 @@ import * as React95 from "react";
5132
5132
  import { useRef as useRef21 } from "react";
5133
5133
  import { transformFunctionsPropTypeUtil, transformPropTypeUtil } from "@elementor/editor-props";
5134
5134
  import { AdjustmentsIcon as AdjustmentsIcon2, InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
5135
- import { bindTrigger as bindTrigger4, Box as Box18, IconButton as IconButton7, Tooltip as Tooltip8, Typography as Typography6, usePopupState as usePopupState6 } from "@elementor/ui";
5135
+ import { bindTrigger as bindTrigger4, Box as Box18, IconButton as IconButton7, Tooltip as Tooltip8, Typography as Typography7, usePopupState as usePopupState6 } from "@elementor/ui";
5136
5136
  import { __ as __47 } from "@wordpress/i18n";
5137
5137
 
5138
5138
  // src/controls/transform-control/initial-values.ts
@@ -5674,7 +5674,7 @@ var ToolTip = /* @__PURE__ */ React95.createElement(
5674
5674
  sx: { display: "flex", gap: 0.5, p: 2, width: 320, borderRadius: 1 }
5675
5675
  },
5676
5676
  /* @__PURE__ */ React95.createElement(InfoCircleFilledIcon2, { sx: { color: "secondary.main" } }),
5677
- /* @__PURE__ */ React95.createElement(Typography6, { variant: "body2", color: "text.secondary", fontSize: "14px" }, __47("You can use each kind of transform only once per element.", "elementor"))
5677
+ /* @__PURE__ */ React95.createElement(Typography7, { variant: "body2", color: "text.secondary", fontSize: "14px" }, __47("You can use each kind of transform only once per element.", "elementor"))
5678
5678
  );
5679
5679
  var Repeater2 = ({
5680
5680
  headerRef,
@@ -5740,7 +5740,7 @@ import {
5740
5740
  selectionSizePropTypeUtil as selectionSizePropTypeUtil2
5741
5741
  } from "@elementor/editor-props";
5742
5742
  import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
5743
- import { Alert as Alert2, AlertTitle as AlertTitle3, Box as Box20, Typography as Typography7 } from "@elementor/ui";
5743
+ import { Alert as Alert2, AlertTitle as AlertTitle3, Box as Box20, Typography as Typography8 } from "@elementor/ui";
5744
5744
  import { __ as __50 } from "@wordpress/i18n";
5745
5745
 
5746
5746
  // src/controls/selection-size-control.tsx
@@ -6228,7 +6228,7 @@ var disableAddItemTooltipContent = /* @__PURE__ */ React98.createElement(
6228
6228
  icon: /* @__PURE__ */ React98.createElement(InfoCircleFilledIcon3, null)
6229
6229
  },
6230
6230
  /* @__PURE__ */ React98.createElement(AlertTitle3, null, __50("Transitions", "elementor")),
6231
- /* @__PURE__ */ React98.createElement(Box20, { component: "span" }, /* @__PURE__ */ React98.createElement(Typography7, { variant: "body2" }, __50("Switch to 'Normal' state to add a transition.", "elementor")))
6231
+ /* @__PURE__ */ React98.createElement(Box20, { component: "span" }, /* @__PURE__ */ React98.createElement(Typography8, { variant: "body2" }, __50("Switch to 'Normal' state to add a transition.", "elementor")))
6232
6232
  );
6233
6233
  var TransitionRepeaterControl = createControl(
6234
6234
  ({