@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.js
CHANGED
|
@@ -2336,8 +2336,11 @@ var ToggleButtonGroupUi = React51.forwardRef(
|
|
|
2336
2336
|
const isOffLimits = menuItems?.length;
|
|
2337
2337
|
const itemsCount = isOffLimits ? fixedItems.length + 1 : fixedItems.length;
|
|
2338
2338
|
const templateColumnsSuffix = isOffLimits ? "auto" : "";
|
|
2339
|
+
if (fullWidth) {
|
|
2340
|
+
return `repeat(${itemsCount}, 1fr) ${templateColumnsSuffix}`;
|
|
2341
|
+
}
|
|
2339
2342
|
return `repeat(${itemsCount}, minmax(0, 25%)) ${templateColumnsSuffix}`;
|
|
2340
|
-
}, [menuItems?.length, fixedItems.length]);
|
|
2343
|
+
}, [menuItems?.length, fixedItems.length, fullWidth]);
|
|
2341
2344
|
const shouldShowExclusivePlaceholder = exclusive && (value === null || value === void 0 || value === "");
|
|
2342
2345
|
const nonExclusiveSelectedValues = !exclusive && Array.isArray(value) ? value.map((v) => typeof v === "string" ? v : "").join(" ").trim().split(/\s+/).filter(Boolean) : [];
|
|
2343
2346
|
const shouldShowNonExclusivePlaceholder = !exclusive && nonExclusiveSelectedValues.length === 0;
|
|
@@ -5940,34 +5943,14 @@ var TransitionSelector = ({
|
|
|
5940
5943
|
showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React95.createElement(import_editor_ui12.PromotionChip, null)
|
|
5941
5944
|
),
|
|
5942
5945
|
footer: showPromotion ? /* @__PURE__ */ React95.createElement(
|
|
5943
|
-
|
|
5946
|
+
import_editor_ui12.PromotionAlert,
|
|
5944
5947
|
{
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
sx: { m: 1.5, mt: 0 }
|
|
5952
|
-
},
|
|
5953
|
-
(0, import_i18n48.__)("Upgrade to customize transition properties and control effects.", "elementor"),
|
|
5954
|
-
/* @__PURE__ */ React95.createElement(
|
|
5955
|
-
import_ui81.Box,
|
|
5956
|
-
{
|
|
5957
|
-
component: "a",
|
|
5958
|
-
href: PRO_UPGRADE_URL,
|
|
5959
|
-
target: "_blank",
|
|
5960
|
-
rel: "noopener noreferrer",
|
|
5961
|
-
sx: {
|
|
5962
|
-
display: "flex",
|
|
5963
|
-
alignItems: "center",
|
|
5964
|
-
gap: 0.5,
|
|
5965
|
-
color: "promotion.main"
|
|
5966
|
-
}
|
|
5967
|
-
},
|
|
5968
|
-
/* @__PURE__ */ React95.createElement(import_icons31.CrownFilledIcon, { fontSize: "tiny" }),
|
|
5969
|
-
(0, import_i18n48.__)("Upgrade now", "elementor")
|
|
5970
|
-
)
|
|
5948
|
+
message: (0, import_i18n48.__)(
|
|
5949
|
+
"Upgrade to customize transition properties and control effects.",
|
|
5950
|
+
"elementor"
|
|
5951
|
+
),
|
|
5952
|
+
upgradeUrl: PRO_UPGRADE_URL
|
|
5953
|
+
}
|
|
5971
5954
|
) : null
|
|
5972
5955
|
}
|
|
5973
5956
|
)
|