@elementor/editor-variables 4.1.0-798 → 4.1.0-800

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
@@ -4189,6 +4189,7 @@ import {
4189
4189
  backgroundColorOverlayPropTypeUtil,
4190
4190
  cssFilterFunctionPropUtil as cssFilterFunctionPropUtil2,
4191
4191
  dropShadowFilterPropTypeUtil as dropShadowFilterPropTypeUtil2,
4192
+ moveTransformPropTypeUtil as moveTransformPropTypeUtil2,
4192
4193
  selectionSizePropTypeUtil as selectionSizePropTypeUtil2,
4193
4194
  shadowPropTypeUtil as shadowPropTypeUtil2
4194
4195
  } from "@elementor/editor-props";
@@ -4198,6 +4199,7 @@ import * as React39 from "react";
4198
4199
  import {
4199
4200
  cssFilterFunctionPropUtil,
4200
4201
  dropShadowFilterPropTypeUtil,
4202
+ moveTransformPropTypeUtil,
4201
4203
  selectionSizePropTypeUtil,
4202
4204
  shadowPropTypeUtil
4203
4205
  } from "@elementor/editor-props";
@@ -4290,6 +4292,20 @@ var BoxShadowRepeaterLabel = ({ value }) => {
4290
4292
  const positionLabel = position?.value || "outset";
4291
4293
  return /* @__PURE__ */ React39.createElement(Box9, { component: "span", style: { textTransform: "capitalize" } }, positionLabel, ": ", labels.join(" "));
4292
4294
  };
4295
+ var TransformRepeaterLabel = ({ value }) => {
4296
+ const labels = [];
4297
+ if (moveTransformPropTypeUtil.isValid(value)) {
4298
+ labels.push(__27("Move:", "elementor"));
4299
+ const { x, y, z: z6 } = moveTransformPropTypeUtil.extract(value) || {};
4300
+ for (const val of [x, y, z6]) {
4301
+ const rendered = sizeValue(val);
4302
+ if (rendered) {
4303
+ labels.push(rendered);
4304
+ }
4305
+ }
4306
+ }
4307
+ return /* @__PURE__ */ React39.createElement(Box9, { component: "span" }, labels.join(" "));
4308
+ };
4293
4309
  var TransitionsSizeVariableLabel = ({ value: prop }) => {
4294
4310
  let label = "";
4295
4311
  const variableId = prop?.value?.size?.value || "";
@@ -4309,6 +4325,7 @@ function registerRepeaterInjections() {
4309
4325
  backgroundOverlayRepeaterInjections();
4310
4326
  boxShadowRepeaterInjections();
4311
4327
  transitionsRepeaterInjections();
4328
+ transformRepeaterInjections();
4312
4329
  filterRepeaterInjections();
4313
4330
  }
4314
4331
  function backgroundOverlayRepeaterInjections() {
@@ -4345,6 +4362,19 @@ function boxShadowRepeaterInjections() {
4345
4362
  }
4346
4363
  });
4347
4364
  }
4365
+ function transformRepeaterInjections() {
4366
+ injectIntoRepeaterItemLabel({
4367
+ id: "transform-size-variables-label",
4368
+ component: TransformRepeaterLabel,
4369
+ condition: ({ value }) => {
4370
+ if (moveTransformPropTypeUtil2.isValid(value)) {
4371
+ const { x: xAxis, y: yAxis, z: zAxis } = moveTransformPropTypeUtil2.extract(value) || {};
4372
+ return hasAssignedSizeVariable(xAxis) || hasAssignedSizeVariable(yAxis) || hasAssignedSizeVariable(zAxis);
4373
+ }
4374
+ return false;
4375
+ }
4376
+ });
4377
+ }
4348
4378
  function transitionsRepeaterInjections() {
4349
4379
  injectIntoRepeaterItemLabel({
4350
4380
  id: "transition-size-variables-label",