@elementor/editor-controls 4.2.0-853 → 4.2.0-855

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
@@ -8126,15 +8126,52 @@ var AttachmentTypeControl = createControl(({ label, options }) => {
8126
8126
  ))));
8127
8127
  });
8128
8128
 
8129
+ // src/controls/grid-span-control.tsx
8130
+ import * as React117 from "react";
8131
+ import { spanPropTypeUtil } from "@elementor/editor-props";
8132
+ import { TextField as TextField11 } from "@elementor/ui";
8133
+ var GridSpanControl = createControl(
8134
+ ({
8135
+ placeholder: propPlaceholder,
8136
+ error,
8137
+ inputValue,
8138
+ inputDisabled,
8139
+ helperText,
8140
+ sx,
8141
+ ariaLabel
8142
+ }) => {
8143
+ const { value, setValue, disabled, placeholder: boundPlaceholder } = useBoundProp(spanPropTypeUtil);
8144
+ const handleChange = (event) => setValue(event.target.value);
8145
+ const placeholder = propPlaceholder ?? boundPlaceholder ?? void 0;
8146
+ return /* @__PURE__ */ React117.createElement(ControlActions, null, /* @__PURE__ */ React117.createElement(
8147
+ TextField11,
8148
+ {
8149
+ size: "tiny",
8150
+ fullWidth: true,
8151
+ disabled: inputDisabled ?? disabled,
8152
+ value: inputValue ?? value ?? "",
8153
+ onChange: handleChange,
8154
+ placeholder,
8155
+ error,
8156
+ helperText,
8157
+ sx,
8158
+ inputProps: {
8159
+ ...ariaLabel ? { "aria-label": ariaLabel } : {}
8160
+ }
8161
+ }
8162
+ ));
8163
+ }
8164
+ );
8165
+
8129
8166
  // src/components/promotions/display-conditions-control.tsx
8130
- import * as React118 from "react";
8167
+ import * as React119 from "react";
8131
8168
  import { useRef as useRef28 } from "react";
8132
8169
  import { SitemapIcon } from "@elementor/icons";
8133
8170
  import { IconButton as IconButton8, Stack as Stack20, Tooltip as Tooltip9 } from "@elementor/ui";
8134
8171
  import { __ as __58 } from "@wordpress/i18n";
8135
8172
 
8136
8173
  // src/components/promotions/promotion-trigger.tsx
8137
- import * as React117 from "react";
8174
+ import * as React118 from "react";
8138
8175
  import { forwardRef as forwardRef12, useCallback as useCallback5, useImperativeHandle, useState as useState19 } from "react";
8139
8176
  import { PromotionChip as PromotionChip2, PromotionInfotip } from "@elementor/editor-ui";
8140
8177
  import { Box as Box26 } from "@elementor/ui";
@@ -8154,7 +8191,7 @@ var PromotionTrigger = forwardRef12(
8154
8191
  });
8155
8192
  }, [trackingData]);
8156
8193
  useImperativeHandle(ref, () => ({ toggle }), [toggle]);
8157
- return /* @__PURE__ */ React117.createElement(React117.Fragment, null, promotion && /* @__PURE__ */ React117.createElement(
8194
+ return /* @__PURE__ */ React118.createElement(React118.Fragment, null, promotion && /* @__PURE__ */ React118.createElement(
8158
8195
  PromotionInfotip,
8159
8196
  {
8160
8197
  title: promotion.title,
@@ -8168,7 +8205,7 @@ var PromotionTrigger = forwardRef12(
8168
8205
  },
8169
8206
  onCtaClick: () => trackUpgradePromotionClick(trackingData)
8170
8207
  },
8171
- /* @__PURE__ */ React117.createElement(
8208
+ /* @__PURE__ */ React118.createElement(
8172
8209
  Box26,
8173
8210
  {
8174
8211
  onClick: (e) => {
@@ -8177,7 +8214,7 @@ var PromotionTrigger = forwardRef12(
8177
8214
  },
8178
8215
  sx: { cursor: "pointer", display: "inline-flex" }
8179
8216
  },
8180
- children ?? /* @__PURE__ */ React117.createElement(PromotionChip2, null)
8217
+ children ?? /* @__PURE__ */ React118.createElement(PromotionChip2, null)
8181
8218
  )
8182
8219
  ));
8183
8220
  }
@@ -8188,7 +8225,7 @@ var ARIA_LABEL = __58("Display Conditions", "elementor");
8188
8225
  var TRACKING_DATA = { target_name: "display_conditions", location_l2: "general" };
8189
8226
  var DisplayConditionsControl = createControl(() => {
8190
8227
  const triggerRef = useRef28(null);
8191
- return /* @__PURE__ */ React118.createElement(
8228
+ return /* @__PURE__ */ React119.createElement(
8192
8229
  Stack20,
8193
8230
  {
8194
8231
  direction: "row",
@@ -8198,8 +8235,8 @@ var DisplayConditionsControl = createControl(() => {
8198
8235
  alignItems: "center"
8199
8236
  }
8200
8237
  },
8201
- /* @__PURE__ */ React118.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
8202
- /* @__PURE__ */ React118.createElement(Tooltip9, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React118.createElement(
8238
+ /* @__PURE__ */ React119.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
8239
+ /* @__PURE__ */ React119.createElement(Tooltip9, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React119.createElement(
8203
8240
  IconButton8,
8204
8241
  {
8205
8242
  size: "tiny",
@@ -8212,13 +8249,13 @@ var DisplayConditionsControl = createControl(() => {
8212
8249
  borderRadius: 1
8213
8250
  }
8214
8251
  },
8215
- /* @__PURE__ */ React118.createElement(SitemapIcon, { fontSize: "tiny", color: "disabled" })
8252
+ /* @__PURE__ */ React119.createElement(SitemapIcon, { fontSize: "tiny", color: "disabled" })
8216
8253
  ))
8217
8254
  );
8218
8255
  });
8219
8256
 
8220
8257
  // src/components/promotions/attributes-control.tsx
8221
- import * as React119 from "react";
8258
+ import * as React120 from "react";
8222
8259
  import { useRef as useRef29 } from "react";
8223
8260
  import { PlusIcon as PlusIcon3 } from "@elementor/icons";
8224
8261
  import { Stack as Stack21, Tooltip as Tooltip10 } from "@elementor/ui";
@@ -8227,7 +8264,7 @@ var ARIA_LABEL2 = __59("Attributes", "elementor");
8227
8264
  var TRACKING_DATA2 = { target_name: "attributes", location_l2: "general" };
8228
8265
  var AttributesControl = createControl(() => {
8229
8266
  const triggerRef = useRef29(null);
8230
- return /* @__PURE__ */ React119.createElement(
8267
+ return /* @__PURE__ */ React120.createElement(
8231
8268
  Stack21,
8232
8269
  {
8233
8270
  direction: "row",
@@ -8237,8 +8274,8 @@ var AttributesControl = createControl(() => {
8237
8274
  alignItems: "center"
8238
8275
  }
8239
8276
  },
8240
- /* @__PURE__ */ React119.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
8241
- /* @__PURE__ */ React119.createElement(Tooltip10, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React119.createElement(
8277
+ /* @__PURE__ */ React120.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
8278
+ /* @__PURE__ */ React120.createElement(Tooltip10, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React120.createElement(
8242
8279
  PlusIcon3,
8243
8280
  {
8244
8281
  "aria-label": ARIA_LABEL2,
@@ -8252,17 +8289,17 @@ var AttributesControl = createControl(() => {
8252
8289
  });
8253
8290
 
8254
8291
  // src/components/icon-buttons/clear-icon-button.tsx
8255
- import * as React120 from "react";
8292
+ import * as React121 from "react";
8256
8293
  import { BrushBigIcon } from "@elementor/icons";
8257
8294
  import { IconButton as IconButton9, styled as styled11, Tooltip as Tooltip11 } from "@elementor/ui";
8258
8295
  var CustomIconButton = styled11(IconButton9)(({ theme }) => ({
8259
8296
  width: theme.spacing(2.5),
8260
8297
  height: theme.spacing(2.5)
8261
8298
  }));
8262
- var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React120.createElement(Tooltip11, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React120.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React120.createElement(BrushBigIcon, { fontSize: size })));
8299
+ var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React121.createElement(Tooltip11, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React121.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React121.createElement(BrushBigIcon, { fontSize: size })));
8263
8300
 
8264
8301
  // src/components/repeater/repeater.tsx
8265
- import * as React121 from "react";
8302
+ import * as React122 from "react";
8266
8303
  import { useEffect as useEffect18, useState as useState20 } from "react";
8267
8304
  import { CopyIcon as CopyIcon2, EyeIcon as EyeIcon2, EyeOffIcon as EyeOffIcon2, PlusIcon as PlusIcon4, XIcon as XIcon4 } from "@elementor/icons";
8268
8305
  import {
@@ -8355,7 +8392,7 @@ var Repeater3 = ({
8355
8392
  };
8356
8393
  const isButtonDisabled = disabled || disableAddItemButton;
8357
8394
  const shouldShowInfotip = isButtonDisabled && addButtonInfotipContent;
8358
- const addButton = /* @__PURE__ */ React121.createElement(
8395
+ const addButton = /* @__PURE__ */ React122.createElement(
8359
8396
  IconButton10,
8360
8397
  {
8361
8398
  size: SIZE12,
@@ -8366,9 +8403,9 @@ var Repeater3 = ({
8366
8403
  onClick: addRepeaterItem,
8367
8404
  "aria-label": __60("Add item", "elementor")
8368
8405
  },
8369
- /* @__PURE__ */ React121.createElement(PlusIcon4, { fontSize: SIZE12 })
8406
+ /* @__PURE__ */ React122.createElement(PlusIcon4, { fontSize: SIZE12 })
8370
8407
  );
8371
- return /* @__PURE__ */ React121.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React121.createElement(RepeaterHeader, { label, adornment: ControlAdornments }, shouldShowInfotip ? /* @__PURE__ */ React121.createElement(
8408
+ return /* @__PURE__ */ React122.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React122.createElement(RepeaterHeader, { label, adornment: ControlAdornments }, shouldShowInfotip ? /* @__PURE__ */ React122.createElement(
8372
8409
  Infotip4,
8373
8410
  {
8374
8411
  placement: "right",
@@ -8376,20 +8413,20 @@ var Repeater3 = ({
8376
8413
  color: "secondary",
8377
8414
  slotProps: { popper: { sx: { width: 300 } } }
8378
8415
  },
8379
- /* @__PURE__ */ React121.createElement(Box27, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
8380
- ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React121.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
8416
+ /* @__PURE__ */ React122.createElement(Box27, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
8417
+ ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React122.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
8381
8418
  const index = uniqueKeys.indexOf(key);
8382
8419
  const value = items2[index];
8383
8420
  if (!value) {
8384
8421
  return null;
8385
8422
  }
8386
- return /* @__PURE__ */ React121.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React121.createElement(
8423
+ return /* @__PURE__ */ React122.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React122.createElement(
8387
8424
  RepeaterItem,
8388
8425
  {
8389
8426
  disabled,
8390
8427
  propDisabled: value?.disabled,
8391
- label: /* @__PURE__ */ React121.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React121.createElement(itemSettings.Label, { value, index })),
8392
- startIcon: /* @__PURE__ */ React121.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React121.createElement(itemSettings.Icon, { value })),
8428
+ label: /* @__PURE__ */ React122.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React122.createElement(itemSettings.Label, { value, index })),
8429
+ startIcon: /* @__PURE__ */ React122.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React122.createElement(itemSettings.Icon, { value })),
8393
8430
  removeItem: () => removeRepeaterItem(index),
8394
8431
  duplicateItem: () => duplicateRepeaterItem(index),
8395
8432
  toggleDisableItem: () => toggleDisableRepeaterItem(index),
@@ -8403,7 +8440,7 @@ var Repeater3 = ({
8403
8440
  actions: itemSettings.actions,
8404
8441
  value
8405
8442
  },
8406
- (props) => /* @__PURE__ */ React121.createElement(
8443
+ (props) => /* @__PURE__ */ React122.createElement(
8407
8444
  itemSettings.Content,
8408
8445
  {
8409
8446
  ...props,
@@ -8448,7 +8485,7 @@ var RepeaterItem = ({
8448
8485
  const duplicateLabel = __60("Duplicate", "elementor");
8449
8486
  const toggleLabel = propDisabled ? __60("Show", "elementor") : __60("Hide", "elementor");
8450
8487
  const removeLabel = __60("Remove", "elementor");
8451
- return /* @__PURE__ */ React121.createElement(Box27, { sx: { display: "contents" } }, /* @__PURE__ */ React121.createElement(
8488
+ return /* @__PURE__ */ React122.createElement(Box27, { sx: { display: "contents" } }, /* @__PURE__ */ React122.createElement(
8452
8489
  RepeaterTag,
8453
8490
  {
8454
8491
  disabled,
@@ -8463,9 +8500,9 @@ var RepeaterItem = ({
8463
8500
  }
8464
8501
  },
8465
8502
  startIcon,
8466
- actions: /* @__PURE__ */ React121.createElement(React121.Fragment, null, showDuplicate && /* @__PURE__ */ React121.createElement(Tooltip12, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React121.createElement(IconButton10, { size: SIZE12, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React121.createElement(CopyIcon2, { fontSize: SIZE12 }))), showToggle && /* @__PURE__ */ React121.createElement(Tooltip12, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React121.createElement(IconButton10, { size: SIZE12, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React121.createElement(EyeOffIcon2, { fontSize: SIZE12 }) : /* @__PURE__ */ React121.createElement(EyeIcon2, { fontSize: SIZE12 }))), actions?.(value), showRemove && /* @__PURE__ */ React121.createElement(Tooltip12, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React121.createElement(IconButton10, { size: SIZE12, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React121.createElement(XIcon4, { fontSize: SIZE12 }))))
8503
+ actions: /* @__PURE__ */ React122.createElement(React122.Fragment, null, showDuplicate && /* @__PURE__ */ React122.createElement(Tooltip12, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React122.createElement(IconButton10, { size: SIZE12, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React122.createElement(CopyIcon2, { fontSize: SIZE12 }))), showToggle && /* @__PURE__ */ React122.createElement(Tooltip12, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React122.createElement(IconButton10, { size: SIZE12, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React122.createElement(EyeOffIcon2, { fontSize: SIZE12 }) : /* @__PURE__ */ React122.createElement(EyeIcon2, { fontSize: SIZE12 }))), actions?.(value), showRemove && /* @__PURE__ */ React122.createElement(Tooltip12, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React122.createElement(IconButton10, { size: SIZE12, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React122.createElement(XIcon4, { fontSize: SIZE12 }))))
8467
8504
  }
8468
- ), /* @__PURE__ */ React121.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React121.createElement(Box27, null, children({ anchorEl: ref }))));
8505
+ ), /* @__PURE__ */ React122.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React122.createElement(Box27, null, children({ anchorEl: ref }))));
8469
8506
  };
8470
8507
  var usePopover = (openOnMount, onOpen, onPopoverClose) => {
8471
8508
  const [ref, setRef] = useState20(null);
@@ -8490,7 +8527,7 @@ var usePopover = (openOnMount, onOpen, onPopoverClose) => {
8490
8527
  };
8491
8528
 
8492
8529
  // src/components/inline-editor-toolbar.tsx
8493
- import * as React123 from "react";
8530
+ import * as React124 from "react";
8494
8531
  import { useEffect as useEffect20, useMemo as useMemo18, useRef as useRef31, useState as useState21 } from "react";
8495
8532
  import { getContainer as getContainer2, getElementSetting } from "@elementor/editor-elements";
8496
8533
  import {
@@ -8516,10 +8553,10 @@ import { useEditorState } from "@tiptap/react";
8516
8553
  import { __ as __62 } from "@wordpress/i18n";
8517
8554
 
8518
8555
  // src/components/url-popover.tsx
8519
- import * as React122 from "react";
8556
+ import * as React123 from "react";
8520
8557
  import { useEffect as useEffect19, useRef as useRef30 } from "react";
8521
8558
  import { ExternalLinkIcon } from "@elementor/icons";
8522
- import { bindPopover as bindPopover9, Popover as Popover8, Stack as Stack22, TextField as TextField11, ToggleButton as ToggleButton2, Tooltip as Tooltip13 } from "@elementor/ui";
8559
+ import { bindPopover as bindPopover9, Popover as Popover8, Stack as Stack22, TextField as TextField12, ToggleButton as ToggleButton2, Tooltip as Tooltip13 } from "@elementor/ui";
8523
8560
  import { __ as __61 } from "@wordpress/i18n";
8524
8561
  var UrlPopover = ({
8525
8562
  popupState,
@@ -8540,7 +8577,7 @@ var UrlPopover = ({
8540
8577
  restoreValue();
8541
8578
  popupState.close();
8542
8579
  };
8543
- return /* @__PURE__ */ React122.createElement(
8580
+ return /* @__PURE__ */ React123.createElement(
8544
8581
  Popover8,
8545
8582
  {
8546
8583
  slotProps: {
@@ -8551,8 +8588,8 @@ var UrlPopover = ({
8551
8588
  transformOrigin: { vertical: "top", horizontal: "left" },
8552
8589
  onClose: handleClose
8553
8590
  },
8554
- /* @__PURE__ */ React122.createElement(Stack22, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React122.createElement(
8555
- TextField11,
8591
+ /* @__PURE__ */ React123.createElement(Stack22, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React123.createElement(
8592
+ TextField12,
8556
8593
  {
8557
8594
  value,
8558
8595
  onChange,
@@ -8564,7 +8601,7 @@ var UrlPopover = ({
8564
8601
  InputProps: { sx: { borderRadius: "8px" } },
8565
8602
  onKeyUp: (event) => event.key === "Enter" && handleClose()
8566
8603
  }
8567
- ), /* @__PURE__ */ React122.createElement(Tooltip13, { title: __61("Open in a new tab", "elementor") }, /* @__PURE__ */ React122.createElement(
8604
+ ), /* @__PURE__ */ React123.createElement(Tooltip13, { title: __61("Open in a new tab", "elementor") }, /* @__PURE__ */ React123.createElement(
8568
8605
  ToggleButton2,
8569
8606
  {
8570
8607
  size: "tiny",
@@ -8574,7 +8611,7 @@ var UrlPopover = ({
8574
8611
  "aria-label": __61("Open in a new tab", "elementor"),
8575
8612
  sx: { borderRadius: "8px" }
8576
8613
  },
8577
- /* @__PURE__ */ React122.createElement(ExternalLinkIcon, { fontSize: "tiny" })
8614
+ /* @__PURE__ */ React123.createElement(ExternalLinkIcon, { fontSize: "tiny" })
8578
8615
  )))
8579
8616
  );
8580
8617
  };
@@ -8630,7 +8667,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8630
8667
  useEffect20(() => {
8631
8668
  editor?.commands?.focus();
8632
8669
  }, [editor]);
8633
- return /* @__PURE__ */ React123.createElement(
8670
+ return /* @__PURE__ */ React124.createElement(
8634
8671
  Box28,
8635
8672
  {
8636
8673
  ref: toolbarRef,
@@ -8647,8 +8684,8 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8647
8684
  ...sx
8648
8685
  }
8649
8686
  },
8650
- /* @__PURE__ */ React123.createElement(Tooltip14, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React123.createElement(IconButton11, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
8651
- /* @__PURE__ */ React123.createElement(
8687
+ /* @__PURE__ */ React124.createElement(Tooltip14, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React124.createElement(IconButton11, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
8688
+ /* @__PURE__ */ React124.createElement(
8652
8689
  ToggleButtonGroup2,
8653
8690
  {
8654
8691
  value: editorState,
@@ -8670,7 +8707,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8670
8707
  }
8671
8708
  }
8672
8709
  },
8673
- formatButtonsList.map((button) => /* @__PURE__ */ React123.createElement(Tooltip14, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React123.createElement(
8710
+ formatButtonsList.map((button) => /* @__PURE__ */ React124.createElement(Tooltip14, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React124.createElement(
8674
8711
  ToggleButton3,
8675
8712
  {
8676
8713
  value: button.action,
@@ -8688,7 +8725,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8688
8725
  button.icon
8689
8726
  )))
8690
8727
  ),
8691
- /* @__PURE__ */ React123.createElement(
8728
+ /* @__PURE__ */ React124.createElement(
8692
8729
  UrlPopover,
8693
8730
  {
8694
8731
  popupState: linkPopupState,
@@ -8712,7 +8749,7 @@ var checkIfElementIsClickable = (elementId) => {
8712
8749
  var toolbarButtons = {
8713
8750
  clear: {
8714
8751
  label: __62("Clear", "elementor"),
8715
- icon: /* @__PURE__ */ React123.createElement(MinusIcon2, { fontSize: "tiny" }),
8752
+ icon: /* @__PURE__ */ React124.createElement(MinusIcon2, { fontSize: "tiny" }),
8716
8753
  action: "clear",
8717
8754
  method: (editor) => {
8718
8755
  editor.chain().focus().clearNodes().unsetAllMarks().run();
@@ -8720,7 +8757,7 @@ var toolbarButtons = {
8720
8757
  },
8721
8758
  bold: {
8722
8759
  label: __62("Bold", "elementor"),
8723
- icon: /* @__PURE__ */ React123.createElement(BoldIcon, { fontSize: "tiny" }),
8760
+ icon: /* @__PURE__ */ React124.createElement(BoldIcon, { fontSize: "tiny" }),
8724
8761
  action: "bold",
8725
8762
  method: (editor) => {
8726
8763
  editor.chain().focus().toggleBold().run();
@@ -8728,7 +8765,7 @@ var toolbarButtons = {
8728
8765
  },
8729
8766
  italic: {
8730
8767
  label: __62("Italic", "elementor"),
8731
- icon: /* @__PURE__ */ React123.createElement(ItalicIcon, { fontSize: "tiny" }),
8768
+ icon: /* @__PURE__ */ React124.createElement(ItalicIcon, { fontSize: "tiny" }),
8732
8769
  action: "italic",
8733
8770
  method: (editor) => {
8734
8771
  editor.chain().focus().toggleItalic().run();
@@ -8736,7 +8773,7 @@ var toolbarButtons = {
8736
8773
  },
8737
8774
  underline: {
8738
8775
  label: __62("Underline", "elementor"),
8739
- icon: /* @__PURE__ */ React123.createElement(UnderlineIcon, { fontSize: "tiny" }),
8776
+ icon: /* @__PURE__ */ React124.createElement(UnderlineIcon, { fontSize: "tiny" }),
8740
8777
  action: "underline",
8741
8778
  method: (editor) => {
8742
8779
  editor.chain().focus().toggleUnderline().run();
@@ -8744,7 +8781,7 @@ var toolbarButtons = {
8744
8781
  },
8745
8782
  strike: {
8746
8783
  label: __62("Strikethrough", "elementor"),
8747
- icon: /* @__PURE__ */ React123.createElement(StrikethroughIcon, { fontSize: "tiny" }),
8784
+ icon: /* @__PURE__ */ React124.createElement(StrikethroughIcon, { fontSize: "tiny" }),
8748
8785
  action: "strike",
8749
8786
  method: (editor) => {
8750
8787
  editor.chain().focus().toggleStrike().run();
@@ -8752,7 +8789,7 @@ var toolbarButtons = {
8752
8789
  },
8753
8790
  superscript: {
8754
8791
  label: __62("Superscript", "elementor"),
8755
- icon: /* @__PURE__ */ React123.createElement(SuperscriptIcon, { fontSize: "tiny" }),
8792
+ icon: /* @__PURE__ */ React124.createElement(SuperscriptIcon, { fontSize: "tiny" }),
8756
8793
  action: "superscript",
8757
8794
  method: (editor) => {
8758
8795
  editor.chain().focus().toggleSuperscript().run();
@@ -8760,7 +8797,7 @@ var toolbarButtons = {
8760
8797
  },
8761
8798
  subscript: {
8762
8799
  label: __62("Subscript", "elementor"),
8763
- icon: /* @__PURE__ */ React123.createElement(SubscriptIcon, { fontSize: "tiny" }),
8800
+ icon: /* @__PURE__ */ React124.createElement(SubscriptIcon, { fontSize: "tiny" }),
8764
8801
  action: "subscript",
8765
8802
  method: (editor) => {
8766
8803
  editor.chain().focus().toggleSubscript().run();
@@ -8768,7 +8805,7 @@ var toolbarButtons = {
8768
8805
  },
8769
8806
  link: {
8770
8807
  label: __62("Link", "elementor"),
8771
- icon: /* @__PURE__ */ React123.createElement(LinkIcon3, { fontSize: "tiny" }),
8808
+ icon: /* @__PURE__ */ React124.createElement(LinkIcon3, { fontSize: "tiny" }),
8772
8809
  action: "link",
8773
8810
  method: null
8774
8811
  }
@@ -8777,7 +8814,7 @@ var { clear: clearButton, ...formatButtons } = toolbarButtons;
8777
8814
  var possibleFormats = Object.keys(formatButtons);
8778
8815
 
8779
8816
  // src/components/size/unstable-size-field.tsx
8780
- import * as React126 from "react";
8817
+ import * as React127 from "react";
8781
8818
  import { InputAdornment as InputAdornment6 } from "@elementor/ui";
8782
8819
 
8783
8820
  // src/hooks/use-size-value.ts
@@ -8820,7 +8857,7 @@ var differsFromExternal = (newState, externalState) => {
8820
8857
  };
8821
8858
 
8822
8859
  // src/components/size/unit-select.tsx
8823
- import * as React124 from "react";
8860
+ import * as React125 from "react";
8824
8861
  import { useId as useId4 } from "react";
8825
8862
  import { MenuListItem as MenuListItem8 } from "@elementor/editor-ui";
8826
8863
  import { bindMenu as bindMenu3, bindTrigger as bindTrigger8, Button as Button7, Menu as Menu4, styled as styled12, usePopupState as usePopupState12 } from "@elementor/ui";
@@ -8838,7 +8875,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
8838
8875
  onClick(options[index]);
8839
8876
  popupState.close();
8840
8877
  };
8841
- return /* @__PURE__ */ React124.createElement(React124.Fragment, null, /* @__PURE__ */ React124.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...bindTrigger8(popupState) }, value), /* @__PURE__ */ React124.createElement(Menu4, { MenuListProps: { dense: true }, ...bindMenu3(popupState) }, options.map((option, index) => /* @__PURE__ */ React124.createElement(
8878
+ return /* @__PURE__ */ React125.createElement(React125.Fragment, null, /* @__PURE__ */ React125.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...bindTrigger8(popupState) }, value), /* @__PURE__ */ React125.createElement(Menu4, { MenuListProps: { dense: true }, ...bindMenu3(popupState) }, options.map((option, index) => /* @__PURE__ */ React125.createElement(
8842
8879
  MenuListItem8,
8843
8880
  {
8844
8881
  key: option,
@@ -8867,11 +8904,11 @@ var StyledButton3 = styled12(Button7, {
8867
8904
  }));
8868
8905
 
8869
8906
  // src/components/size/unstable-size-input.tsx
8870
- import * as React125 from "react";
8907
+ import * as React126 from "react";
8871
8908
  import { forwardRef as forwardRef13 } from "react";
8872
8909
  var UnstableSizeInput = forwardRef13(
8873
8910
  ({ type, value, onChange, onKeyDown, onKeyUp, InputProps, onBlur, focused, disabled }, ref) => {
8874
- return /* @__PURE__ */ React125.createElement(
8911
+ return /* @__PURE__ */ React126.createElement(
8875
8912
  NumberInput,
8876
8913
  {
8877
8914
  ref,
@@ -8909,7 +8946,7 @@ var UnstableSizeField = ({
8909
8946
  const shouldHighlightUnit2 = () => {
8910
8947
  return hasValue(size);
8911
8948
  };
8912
- return /* @__PURE__ */ React126.createElement(
8949
+ return /* @__PURE__ */ React127.createElement(
8913
8950
  UnstableSizeInput,
8914
8951
  {
8915
8952
  type: "number",
@@ -8918,8 +8955,8 @@ var UnstableSizeField = ({
8918
8955
  onChange: (event) => setSize(event.target.value),
8919
8956
  InputProps: {
8920
8957
  ...InputProps,
8921
- startAdornment: startIcon && /* @__PURE__ */ React126.createElement(InputAdornment6, { position: "start" }, startIcon),
8922
- endAdornment: /* @__PURE__ */ React126.createElement(InputAdornment6, { position: "end" }, /* @__PURE__ */ React126.createElement(
8958
+ startAdornment: startIcon && /* @__PURE__ */ React127.createElement(InputAdornment6, { position: "start" }, startIcon),
8959
+ endAdornment: /* @__PURE__ */ React127.createElement(InputAdornment6, { position: "end" }, /* @__PURE__ */ React127.createElement(
8923
8960
  UnitSelect,
8924
8961
  {
8925
8962
  options: units2,
@@ -8990,6 +9027,7 @@ export {
8990
9027
  FilterRepeaterControl,
8991
9028
  FontFamilyControl,
8992
9029
  GapControl,
9030
+ GridSpanControl,
8993
9031
  HtmlTagControl,
8994
9032
  ImageControl,
8995
9033
  InlineEditingControl,