@elementor/editor-variables 3.33.0-119 → 3.33.0-121

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
@@ -1439,7 +1439,7 @@ var VariableCreation = ({ onGoBack, onClose }) => {
1439
1439
  }
1440
1440
  }
1441
1441
  )
1442
- ), /* @__PURE__ */ React12.createElement(FormField, { errorMsg: valueFieldError, label: (0, import_i18n7.__)("Value", "elementor") }, /* @__PURE__ */ React12.createElement(import_ui12.Typography, { variant: "h5" }, /* @__PURE__ */ React12.createElement(
1442
+ ), /* @__PURE__ */ React12.createElement(FormField, { errorMsg: valueFieldError, label: (0, import_i18n7.__)("Value", "elementor") }, /* @__PURE__ */ React12.createElement(import_ui12.Typography, { variant: "h5", id: "variable-value-wrapper" }, /* @__PURE__ */ React12.createElement(
1443
1443
  ValueField,
1444
1444
  {
1445
1445
  value,
@@ -1451,7 +1451,17 @@ var VariableCreation = ({ onGoBack, onClose }) => {
1451
1451
  onValidationChange: setValueFieldError,
1452
1452
  propType
1453
1453
  }
1454
- ))), errorMessage && /* @__PURE__ */ React12.createElement(import_ui12.FormHelperText, { error: true }, errorMessage)), /* @__PURE__ */ React12.createElement(import_ui12.CardActions, { sx: { pt: 0.5, pb: 1 } }, /* @__PURE__ */ React12.createElement(import_ui12.Button, { size: "small", variant: "contained", disabled: isSubmitDisabled, onClick: handleCreateAndTrack }, (0, import_i18n7.__)("Create", "elementor"))));
1454
+ ))), errorMessage && /* @__PURE__ */ React12.createElement(import_ui12.FormHelperText, { error: true }, errorMessage)), /* @__PURE__ */ React12.createElement(import_ui12.CardActions, { sx: { pt: 0.5, pb: 1 } }, /* @__PURE__ */ React12.createElement(
1455
+ import_ui12.Button,
1456
+ {
1457
+ id: "create-variable-button",
1458
+ size: "small",
1459
+ variant: "contained",
1460
+ disabled: isSubmitDisabled,
1461
+ onClick: handleCreateAndTrack
1462
+ },
1463
+ (0, import_i18n7.__)("Create", "elementor")
1464
+ )));
1455
1465
  };
1456
1466
 
1457
1467
  // src/components/variable-edit.tsx
@@ -1867,12 +1877,12 @@ var VariablesSelection = ({ closePopover, onAdd, onEdit, onSettings }) => {
1867
1877
  const actions = [];
1868
1878
  if (onAdd) {
1869
1879
  actions.push(
1870
- /* @__PURE__ */ React18.createElement(import_ui19.IconButton, { key: "add", size: SIZE4, onClick: onAddAndTrack }, /* @__PURE__ */ React18.createElement(import_icons9.PlusIcon, { fontSize: SIZE4 }))
1880
+ /* @__PURE__ */ React18.createElement(import_ui19.IconButton, { id: "add-variable-button", key: "add", size: SIZE4, onClick: onAddAndTrack }, /* @__PURE__ */ React18.createElement(import_icons9.PlusIcon, { fontSize: SIZE4 }))
1871
1881
  );
1872
1882
  }
1873
1883
  if (onSettings) {
1874
1884
  actions.push(
1875
- /* @__PURE__ */ React18.createElement(import_ui19.IconButton, { key: "settings", size: SIZE4, onClick: onSettings }, /* @__PURE__ */ React18.createElement(import_icons9.SettingsIcon, { fontSize: SIZE4 }))
1885
+ /* @__PURE__ */ React18.createElement(import_ui19.IconButton, { id: "variables-manager-button", key: "settings", size: SIZE4, onClick: onSettings }, /* @__PURE__ */ React18.createElement(import_icons9.SettingsIcon, { fontSize: SIZE4 }))
1876
1886
  );
1877
1887
  }
1878
1888
  const StartIcon = startIcon || (() => /* @__PURE__ */ React18.createElement(VariableIcon, { fontSize: SIZE4 }));
@@ -2627,6 +2637,7 @@ var ColorField = ({ value, onChange, onValidationChange }) => {
2627
2637
  return /* @__PURE__ */ React32.createElement(
2628
2638
  import_ui30.UnstableColorField,
2629
2639
  {
2640
+ id: "color-variable-field",
2630
2641
  size: "tiny",
2631
2642
  fullWidth: true,
2632
2643
  value: color,
@@ -2706,6 +2717,7 @@ var FontField = ({ value, onChange, onValidationChange }) => {
2706
2717
  /* @__PURE__ */ React33.createElement(
2707
2718
  import_editor_controls12.ItemSelector,
2708
2719
  {
2720
+ id: "font-family-variables-selector",
2709
2721
  itemsList: mapFontSubs,
2710
2722
  selectedItem: fontFamily,
2711
2723
  onItemChange: handleFontFamilyChange,