@elementor/editor-controls 4.0.0-539 → 4.0.0-541

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
@@ -2267,8 +2267,11 @@ var ToggleButtonGroupUi = React51.forwardRef(
2267
2267
  const isOffLimits = menuItems?.length;
2268
2268
  const itemsCount = isOffLimits ? fixedItems.length + 1 : fixedItems.length;
2269
2269
  const templateColumnsSuffix = isOffLimits ? "auto" : "";
2270
+ if (fullWidth) {
2271
+ return `repeat(${itemsCount}, 1fr) ${templateColumnsSuffix}`;
2272
+ }
2270
2273
  return `repeat(${itemsCount}, minmax(0, 25%)) ${templateColumnsSuffix}`;
2271
- }, [menuItems?.length, fixedItems.length]);
2274
+ }, [menuItems?.length, fixedItems.length, fullWidth]);
2272
2275
  const shouldShowExclusivePlaceholder = exclusive && (value === null || value === void 0 || value === "");
2273
2276
  const nonExclusiveSelectedValues = !exclusive && Array.isArray(value) ? value.map((v) => typeof v === "string" ? v : "").join(" ").trim().split(/\s+/).filter(Boolean) : [];
2274
2277
  const shouldShowNonExclusivePlaceholder = !exclusive && nonExclusiveSelectedValues.length === 0;
@@ -5563,7 +5566,7 @@ import {
5563
5566
  selectionSizePropTypeUtil as selectionSizePropTypeUtil2
5564
5567
  } from "@elementor/editor-props";
5565
5568
  import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
5566
- import { Alert as Alert3, AlertTitle as AlertTitle3, Box as Box20, Typography as Typography7 } from "@elementor/ui";
5569
+ import { Alert as Alert2, AlertTitle as AlertTitle3, Box as Box20, Typography as Typography7 } from "@elementor/ui";
5567
5570
  import { __ as __49 } from "@wordpress/i18n";
5568
5571
 
5569
5572
  // src/controls/selection-size-control.tsx
@@ -5792,9 +5795,9 @@ function subscribeToTransitionEvent() {
5792
5795
  import * as React95 from "react";
5793
5796
  import { useMemo as useMemo13, useRef as useRef23 } from "react";
5794
5797
  import { keyValuePropTypeUtil as keyValuePropTypeUtil2 } from "@elementor/editor-props";
5795
- import { PromotionChip } from "@elementor/editor-ui";
5796
- import { ChevronDownIcon as ChevronDownIcon3, CrownFilledIcon, VariationsIcon } from "@elementor/icons";
5797
- import { Alert as Alert2, bindPopover as bindPopover6, bindTrigger as bindTrigger5, Box as Box19, Popover as Popover6, UnstableTag as UnstableTag3, usePopupState as usePopupState7 } from "@elementor/ui";
5798
+ import { PromotionAlert, PromotionChip } from "@elementor/editor-ui";
5799
+ import { ChevronDownIcon as ChevronDownIcon3, VariationsIcon } from "@elementor/icons";
5800
+ import { bindPopover as bindPopover6, bindTrigger as bindTrigger5, Box as Box19, Popover as Popover6, UnstableTag as UnstableTag3, usePopupState as usePopupState7 } from "@elementor/ui";
5798
5801
  import { __ as __48 } from "@wordpress/i18n";
5799
5802
  var toTransitionSelectorValue = (label) => {
5800
5803
  for (const category of transitionProperties) {
@@ -5927,34 +5930,14 @@ var TransitionSelector = ({
5927
5930
  showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React95.createElement(PromotionChip, null)
5928
5931
  ),
5929
5932
  footer: showPromotion ? /* @__PURE__ */ React95.createElement(
5930
- Alert2,
5933
+ PromotionAlert,
5931
5934
  {
5932
- variant: "standard",
5933
- color: "promotion",
5934
- icon: false,
5935
- role: "dialog",
5936
- "aria-label": "promotion-alert",
5937
- size: "small",
5938
- sx: { m: 1.5, mt: 0 }
5939
- },
5940
- __48("Upgrade to customize transition properties and control effects.", "elementor"),
5941
- /* @__PURE__ */ React95.createElement(
5942
- Box19,
5943
- {
5944
- component: "a",
5945
- href: PRO_UPGRADE_URL,
5946
- target: "_blank",
5947
- rel: "noopener noreferrer",
5948
- sx: {
5949
- display: "flex",
5950
- alignItems: "center",
5951
- gap: 0.5,
5952
- color: "promotion.main"
5953
- }
5954
- },
5955
- /* @__PURE__ */ React95.createElement(CrownFilledIcon, { fontSize: "tiny" }),
5956
- __48("Upgrade now", "elementor")
5957
- )
5935
+ message: __48(
5936
+ "Upgrade to customize transition properties and control effects.",
5937
+ "elementor"
5938
+ ),
5939
+ upgradeUrl: PRO_UPGRADE_URL
5940
+ }
5958
5941
  ) : null
5959
5942
  }
5960
5943
  )
@@ -6062,7 +6045,7 @@ var getInitialValue = (values = []) => {
6062
6045
  return initialTransitionValue;
6063
6046
  };
6064
6047
  var disableAddItemTooltipContent = /* @__PURE__ */ React96.createElement(
6065
- Alert3,
6048
+ Alert2,
6066
6049
  {
6067
6050
  sx: {
6068
6051
  width: 280,