@elementor/editor-controls 3.32.0-89 → 3.32.0-91
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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +260 -224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +261 -225
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/components/control-label.tsx +5 -3
- package/src/components/size-control/size-input.tsx +3 -0
- package/src/components/size-control/text-field-inner-selection.tsx +3 -0
- package/src/components/sortable.tsx +11 -3
- package/src/components/unstable-repeater/actions/tooltip-add-item-action.tsx +5 -2
- package/src/controls/filter-control/filter-repeater-control.tsx +11 -3
- package/src/controls/repeatable-control.tsx +5 -1
- package/src/controls/size-control.tsx +3 -0
- package/src/controls/transform-control/functions/axis-row.tsx +3 -1
- package/src/controls/transform-control/transform-repeater-control.tsx +1 -0
package/dist/index.mjs
CHANGED
|
@@ -609,7 +609,8 @@ var TextFieldInnerSelection = forwardRef2(
|
|
|
609
609
|
InputProps,
|
|
610
610
|
inputProps,
|
|
611
611
|
disabled,
|
|
612
|
-
isPopoverOpen
|
|
612
|
+
isPopoverOpen,
|
|
613
|
+
id
|
|
613
614
|
}, ref) => {
|
|
614
615
|
const { placeholder: boundPropPlaceholder } = useBoundProp(sizePropTypeUtil);
|
|
615
616
|
const getCursorStyle = () => ({
|
|
@@ -632,7 +633,8 @@ var TextFieldInnerSelection = forwardRef2(
|
|
|
632
633
|
focused: isPopoverOpen ? true : void 0,
|
|
633
634
|
placeholder: placeholder ?? (String(boundPropPlaceholder?.size ?? "") || void 0),
|
|
634
635
|
InputProps,
|
|
635
|
-
inputProps
|
|
636
|
+
inputProps,
|
|
637
|
+
id
|
|
636
638
|
}
|
|
637
639
|
);
|
|
638
640
|
}
|
|
@@ -716,7 +718,8 @@ var SizeInput = ({
|
|
|
716
718
|
unit,
|
|
717
719
|
popupState,
|
|
718
720
|
disabled,
|
|
719
|
-
min
|
|
721
|
+
min,
|
|
722
|
+
id
|
|
720
723
|
}) => {
|
|
721
724
|
const unitInputBufferRef = useRef("");
|
|
722
725
|
const inputType = isUnitExtendedOption(unit) ? "text" : "number";
|
|
@@ -774,7 +777,8 @@ var SizeInput = ({
|
|
|
774
777
|
onBlur,
|
|
775
778
|
InputProps,
|
|
776
779
|
inputProps: { min, step: "any" },
|
|
777
|
-
isPopoverOpen: popupState.isOpen
|
|
780
|
+
isPopoverOpen: popupState.isOpen,
|
|
781
|
+
id
|
|
778
782
|
}
|
|
779
783
|
)));
|
|
780
784
|
};
|
|
@@ -914,7 +918,8 @@ var SizeControl = createControl(
|
|
|
914
918
|
extendedOptions,
|
|
915
919
|
disableCustom,
|
|
916
920
|
min = 0,
|
|
917
|
-
enablePropTypeUnits = false
|
|
921
|
+
enablePropTypeUnits = false,
|
|
922
|
+
id
|
|
918
923
|
}) => {
|
|
919
924
|
const {
|
|
920
925
|
value: sizeValue,
|
|
@@ -1019,7 +1024,8 @@ var SizeControl = createControl(
|
|
|
1019
1024
|
onBlur: restoreValue,
|
|
1020
1025
|
onClick: onInputClick,
|
|
1021
1026
|
popupState,
|
|
1022
|
-
min
|
|
1027
|
+
min,
|
|
1028
|
+
id
|
|
1023
1029
|
}
|
|
1024
1030
|
), anchorRef?.current && popupState.isOpen && /* @__PURE__ */ React18.createElement(
|
|
1025
1031
|
TextFieldPopover,
|
|
@@ -1155,7 +1161,7 @@ import * as React37 from "react";
|
|
|
1155
1161
|
import { useRef as useRef4 } from "react";
|
|
1156
1162
|
import { boxShadowPropTypeUtil, shadowPropTypeUtil } from "@elementor/editor-props";
|
|
1157
1163
|
import { FormLabel as FormLabel2, Grid as Grid4, styled as styled4, UnstableColorIndicator } from "@elementor/ui";
|
|
1158
|
-
import { __ as
|
|
1164
|
+
import { __ as __11 } from "@wordpress/i18n";
|
|
1159
1165
|
|
|
1160
1166
|
// src/components/popover-content.tsx
|
|
1161
1167
|
import * as React22 from "react";
|
|
@@ -1174,7 +1180,7 @@ var PopoverGridContainer = forwardRef4(
|
|
|
1174
1180
|
import * as React25 from "react";
|
|
1175
1181
|
import { PlusIcon } from "@elementor/icons";
|
|
1176
1182
|
import { Box as Box2, IconButton, Infotip } from "@elementor/ui";
|
|
1177
|
-
import { __ as __5 } from "@wordpress/i18n";
|
|
1183
|
+
import { __ as __5, sprintf } from "@wordpress/i18n";
|
|
1178
1184
|
|
|
1179
1185
|
// src/components/unstable-repeater/context/repeater-context.tsx
|
|
1180
1186
|
import * as React24 from "react";
|
|
@@ -1267,7 +1273,8 @@ var TooltipAddItemAction = ({
|
|
|
1267
1273
|
disabled = false,
|
|
1268
1274
|
enableTooltip = false,
|
|
1269
1275
|
tooltipContent = null,
|
|
1270
|
-
newItemIndex
|
|
1276
|
+
newItemIndex,
|
|
1277
|
+
ariaLabel
|
|
1271
1278
|
}) => {
|
|
1272
1279
|
const { addItem } = useRepeaterContext();
|
|
1273
1280
|
const onClick = (ev) => addItem(ev, { index: newItemIndex });
|
|
@@ -1277,7 +1284,7 @@ var TooltipAddItemAction = ({
|
|
|
1277
1284
|
size: SIZE2,
|
|
1278
1285
|
disabled,
|
|
1279
1286
|
onClick,
|
|
1280
|
-
"aria-label": __5("Add item", "elementor")
|
|
1287
|
+
"aria-label": sprintf(__5("Add %s item", "elementor"), ariaLabel?.toLowerCase())
|
|
1281
1288
|
},
|
|
1282
1289
|
/* @__PURE__ */ React25.createElement(PlusIcon, { fontSize: SIZE2 })
|
|
1283
1290
|
)));
|
|
@@ -1361,6 +1368,7 @@ import {
|
|
|
1361
1368
|
UnstableSortableItem,
|
|
1362
1369
|
UnstableSortableProvider
|
|
1363
1370
|
} from "@elementor/ui";
|
|
1371
|
+
import { __ as __6 } from "@wordpress/i18n";
|
|
1364
1372
|
var SortableProvider = (props) => {
|
|
1365
1373
|
return /* @__PURE__ */ React29.createElement(List, { sx: { p: 0, my: -0.5, mx: 0 } }, /* @__PURE__ */ React29.createElement(UnstableSortableProvider, { restrictAxis: true, disableDragOverlay: false, variant: "static", ...props }));
|
|
1366
1374
|
};
|
|
@@ -1378,7 +1386,7 @@ var SortableItem = ({ id, children, disabled }) => {
|
|
|
1378
1386
|
showDropIndication,
|
|
1379
1387
|
dropIndicationStyle
|
|
1380
1388
|
}) => {
|
|
1381
|
-
return /* @__PURE__ */ React29.createElement(StyledListItem, { ...itemProps, style: itemStyle }, !disabled && /* @__PURE__ */ React29.createElement(SortableTrigger, { ...triggerProps, style: triggerStyle }), children, showDropIndication && /* @__PURE__ */ React29.createElement(StyledDivider, { style: dropIndicationStyle }));
|
|
1389
|
+
return /* @__PURE__ */ React29.createElement(StyledListItem, { ...itemProps, style: itemStyle, tabIndex: -1 }, !disabled && /* @__PURE__ */ React29.createElement(SortableTrigger, { ...triggerProps, style: triggerStyle }), children, showDropIndication && /* @__PURE__ */ React29.createElement(StyledDivider, { style: dropIndicationStyle }));
|
|
1382
1390
|
}
|
|
1383
1391
|
}
|
|
1384
1392
|
);
|
|
@@ -1406,13 +1414,24 @@ var StyledListItem = styled3(ListItem)`
|
|
|
1406
1414
|
box-shadow: ${({ theme }) => theme.shadows[3]};
|
|
1407
1415
|
}
|
|
1408
1416
|
|
|
1409
|
-
&:hover
|
|
1417
|
+
&:hover,
|
|
1418
|
+
&:focus-within {
|
|
1410
1419
|
& .class-item-sortable-trigger {
|
|
1411
1420
|
visibility: visible;
|
|
1412
1421
|
}
|
|
1413
1422
|
}
|
|
1414
1423
|
`;
|
|
1415
|
-
var SortableTrigger = (props) => /* @__PURE__ */ React29.createElement(
|
|
1424
|
+
var SortableTrigger = (props) => /* @__PURE__ */ React29.createElement(
|
|
1425
|
+
"div",
|
|
1426
|
+
{
|
|
1427
|
+
...props,
|
|
1428
|
+
role: "button",
|
|
1429
|
+
className: "class-item-sortable-trigger",
|
|
1430
|
+
tabIndex: 0,
|
|
1431
|
+
"aria-label": __6("Drag item", "elementor")
|
|
1432
|
+
},
|
|
1433
|
+
/* @__PURE__ */ React29.createElement(GripVerticalIcon, { fontSize: "tiny" })
|
|
1434
|
+
);
|
|
1416
1435
|
var StyledDivider = styled3(Divider)`
|
|
1417
1436
|
height: 0px;
|
|
1418
1437
|
border: none;
|
|
@@ -1463,13 +1482,13 @@ var ItemsContainer = ({
|
|
|
1463
1482
|
// src/components/unstable-repeater/items/item.tsx
|
|
1464
1483
|
import * as React34 from "react";
|
|
1465
1484
|
import { bindTrigger as bindTrigger2, UnstableTag } from "@elementor/ui";
|
|
1466
|
-
import { __ as
|
|
1485
|
+
import { __ as __10 } from "@wordpress/i18n";
|
|
1467
1486
|
|
|
1468
1487
|
// src/components/unstable-repeater/actions/disable-item-action.tsx
|
|
1469
1488
|
import * as React31 from "react";
|
|
1470
1489
|
import { EyeIcon, EyeOffIcon } from "@elementor/icons";
|
|
1471
1490
|
import { IconButton as IconButton2, Tooltip } from "@elementor/ui";
|
|
1472
|
-
import { __ as
|
|
1491
|
+
import { __ as __7 } from "@wordpress/i18n";
|
|
1473
1492
|
var SIZE3 = "tiny";
|
|
1474
1493
|
var DisableItemAction = ({ index = -1 }) => {
|
|
1475
1494
|
const { items: items2, updateItem } = useRepeaterContext();
|
|
@@ -1477,7 +1496,7 @@ var DisableItemAction = ({ index = -1 }) => {
|
|
|
1477
1496
|
return null;
|
|
1478
1497
|
}
|
|
1479
1498
|
const propDisabled = items2[index].item.disabled ?? false;
|
|
1480
|
-
const toggleLabel = propDisabled ?
|
|
1499
|
+
const toggleLabel = propDisabled ? __7("Show", "elementor") : __7("Hide", "elementor");
|
|
1481
1500
|
const onClick = () => {
|
|
1482
1501
|
const self = structuredClone(items2[index].item);
|
|
1483
1502
|
self.disabled = !self.disabled;
|
|
@@ -1493,14 +1512,14 @@ var DisableItemAction = ({ index = -1 }) => {
|
|
|
1493
1512
|
import * as React32 from "react";
|
|
1494
1513
|
import { CopyIcon } from "@elementor/icons";
|
|
1495
1514
|
import { IconButton as IconButton3, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
1496
|
-
import { __ as
|
|
1515
|
+
import { __ as __8 } from "@wordpress/i18n";
|
|
1497
1516
|
var SIZE4 = "tiny";
|
|
1498
1517
|
var DuplicateItemAction = ({ index = -1 }) => {
|
|
1499
1518
|
const { items: items2, addItem } = useRepeaterContext();
|
|
1500
1519
|
if (index === -1) {
|
|
1501
1520
|
return null;
|
|
1502
1521
|
}
|
|
1503
|
-
const duplicateLabel =
|
|
1522
|
+
const duplicateLabel = __8("Duplicate", "elementor");
|
|
1504
1523
|
const onClick = (ev) => {
|
|
1505
1524
|
const newItem = structuredClone(items2[index]?.item);
|
|
1506
1525
|
addItem(ev, { item: newItem, index: index + 1 });
|
|
@@ -1512,14 +1531,14 @@ var DuplicateItemAction = ({ index = -1 }) => {
|
|
|
1512
1531
|
import * as React33 from "react";
|
|
1513
1532
|
import { XIcon } from "@elementor/icons";
|
|
1514
1533
|
import { IconButton as IconButton4, Tooltip as Tooltip3 } from "@elementor/ui";
|
|
1515
|
-
import { __ as
|
|
1534
|
+
import { __ as __9 } from "@wordpress/i18n";
|
|
1516
1535
|
var SIZE5 = "tiny";
|
|
1517
1536
|
var RemoveItemAction = ({ index = -1 }) => {
|
|
1518
1537
|
const { removeItem } = useRepeaterContext();
|
|
1519
1538
|
if (index === -1) {
|
|
1520
1539
|
return null;
|
|
1521
1540
|
}
|
|
1522
|
-
const removeLabel =
|
|
1541
|
+
const removeLabel = __9("Remove", "elementor");
|
|
1523
1542
|
const onClick = () => removeItem(index);
|
|
1524
1543
|
return /* @__PURE__ */ React33.createElement(Tooltip3, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React33.createElement(IconButton4, { size: SIZE5, onClick, "aria-label": removeLabel }, /* @__PURE__ */ React33.createElement(XIcon, { fontSize: SIZE5 })));
|
|
1525
1544
|
};
|
|
@@ -1556,7 +1575,7 @@ var Item = ({
|
|
|
1556
1575
|
fullWidth: true,
|
|
1557
1576
|
ref: setRef,
|
|
1558
1577
|
variant: "outlined",
|
|
1559
|
-
"aria-label":
|
|
1578
|
+
"aria-label": __10("Open item", "elementor"),
|
|
1560
1579
|
sx: { minHeight: (theme) => theme.spacing(4) },
|
|
1561
1580
|
...triggerProps,
|
|
1562
1581
|
onClick,
|
|
@@ -1620,7 +1639,7 @@ var UnstableRepeater = ({
|
|
|
1620
1639
|
// src/controls/box-shadow-repeater-control.tsx
|
|
1621
1640
|
var BoxShadowRepeaterControl = createControl(() => {
|
|
1622
1641
|
const { propType, value, setValue, disabled } = useBoundProp(boxShadowPropTypeUtil);
|
|
1623
|
-
return /* @__PURE__ */ React37.createElement(PropProvider, { propType, value, setValue, isDisabled: () => disabled }, /* @__PURE__ */ React37.createElement(UnstableRepeater, { initial: initialShadow, propTypeUtil: boxShadowPropTypeUtil }, /* @__PURE__ */ React37.createElement(Header, { label:
|
|
1642
|
+
return /* @__PURE__ */ React37.createElement(PropProvider, { propType, value, setValue, isDisabled: () => disabled }, /* @__PURE__ */ React37.createElement(UnstableRepeater, { initial: initialShadow, propTypeUtil: boxShadowPropTypeUtil }, /* @__PURE__ */ React37.createElement(Header, { label: __11("Box shadow", "elementor") }, /* @__PURE__ */ React37.createElement(TooltipAddItemAction, { newItemIndex: 0, disabled })), /* @__PURE__ */ React37.createElement(ItemsContainer, { itemTemplate: /* @__PURE__ */ React37.createElement(Item, { Icon: ItemIcon, Label: ItemLabel }) }, /* @__PURE__ */ React37.createElement(DuplicateItemAction, null), /* @__PURE__ */ React37.createElement(DisableItemAction, null), /* @__PURE__ */ React37.createElement(RemoveItemAction, null)), /* @__PURE__ */ React37.createElement(EditItemPopover, null, /* @__PURE__ */ React37.createElement(Content, null))));
|
|
1624
1643
|
});
|
|
1625
1644
|
var StyledUnstableColorIndicator = styled4(UnstableColorIndicator)(({ theme }) => ({
|
|
1626
1645
|
height: "1rem",
|
|
@@ -1632,15 +1651,15 @@ var Content = () => {
|
|
|
1632
1651
|
const context = useBoundProp(shadowPropTypeUtil);
|
|
1633
1652
|
const rowRef = [useRef4(null), useRef4(null)];
|
|
1634
1653
|
const { rowRef: anchorEl } = useRepeaterContext();
|
|
1635
|
-
return /* @__PURE__ */ React37.createElement(PropProvider, { ...context }, /* @__PURE__ */ React37.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React37.createElement(PopoverGridContainer, null, /* @__PURE__ */ React37.createElement(Control2, { bind: "color", label:
|
|
1654
|
+
return /* @__PURE__ */ React37.createElement(PropProvider, { ...context }, /* @__PURE__ */ React37.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React37.createElement(PopoverGridContainer, null, /* @__PURE__ */ React37.createElement(Control2, { bind: "color", label: __11("Color", "elementor") }, /* @__PURE__ */ React37.createElement(ColorControl, { anchorEl })), /* @__PURE__ */ React37.createElement(Control2, { bind: "position", label: __11("Position", "elementor"), sx: { overflow: "hidden" } }, /* @__PURE__ */ React37.createElement(
|
|
1636
1655
|
SelectControl,
|
|
1637
1656
|
{
|
|
1638
1657
|
options: [
|
|
1639
|
-
{ label:
|
|
1640
|
-
{ label:
|
|
1658
|
+
{ label: __11("Inset", "elementor"), value: "inset" },
|
|
1659
|
+
{ label: __11("Outset", "elementor"), value: null }
|
|
1641
1660
|
]
|
|
1642
1661
|
}
|
|
1643
|
-
))), /* @__PURE__ */ React37.createElement(PopoverGridContainer, { ref: rowRef[0] }, /* @__PURE__ */ React37.createElement(Control2, { bind: "hOffset", label:
|
|
1662
|
+
))), /* @__PURE__ */ React37.createElement(PopoverGridContainer, { ref: rowRef[0] }, /* @__PURE__ */ React37.createElement(Control2, { bind: "hOffset", label: __11("Horizontal", "elementor") }, /* @__PURE__ */ React37.createElement(SizeControl, { anchorRef: rowRef[0] })), /* @__PURE__ */ React37.createElement(Control2, { bind: "vOffset", label: __11("Vertical", "elementor") }, /* @__PURE__ */ React37.createElement(SizeControl, { anchorRef: rowRef[0] }))), /* @__PURE__ */ React37.createElement(PopoverGridContainer, { ref: rowRef[1] }, /* @__PURE__ */ React37.createElement(Control2, { bind: "blur", label: __11("Blur", "elementor") }, /* @__PURE__ */ React37.createElement(SizeControl, { anchorRef: rowRef[1] })), /* @__PURE__ */ React37.createElement(Control2, { bind: "spread", label: __11("Spread", "elementor") }, /* @__PURE__ */ React37.createElement(SizeControl, { anchorRef: rowRef[1] })))));
|
|
1644
1663
|
};
|
|
1645
1664
|
var Control2 = ({
|
|
1646
1665
|
label,
|
|
@@ -1696,7 +1715,7 @@ import {
|
|
|
1696
1715
|
backdropFilterPropTypeUtil,
|
|
1697
1716
|
filterPropTypeUtil
|
|
1698
1717
|
} from "@elementor/editor-props";
|
|
1699
|
-
import { __ as
|
|
1718
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
1700
1719
|
|
|
1701
1720
|
// src/controls/filter-control/context/filter-config-context.tsx
|
|
1702
1721
|
import * as React38 from "react";
|
|
@@ -1704,40 +1723,40 @@ import { createContext as createContext8, useContext as useContext8, useMemo as
|
|
|
1704
1723
|
import { cssFilterFunctionPropUtil } from "@elementor/editor-props";
|
|
1705
1724
|
|
|
1706
1725
|
// src/controls/filter-control/utils.ts
|
|
1707
|
-
import { __ as
|
|
1726
|
+
import { __ as __13 } from "@wordpress/i18n";
|
|
1708
1727
|
|
|
1709
1728
|
// src/controls/filter-control/configs.ts
|
|
1710
|
-
import { __ as
|
|
1729
|
+
import { __ as __12 } from "@wordpress/i18n";
|
|
1711
1730
|
var FILTERS_BY_GROUP = {
|
|
1712
1731
|
blur: {
|
|
1713
1732
|
blur: {
|
|
1714
|
-
name:
|
|
1715
|
-
valueName:
|
|
1733
|
+
name: __12("Blur", "elementor"),
|
|
1734
|
+
valueName: __12("Radius", "elementor")
|
|
1716
1735
|
}
|
|
1717
1736
|
},
|
|
1718
1737
|
intensity: {
|
|
1719
|
-
brightness: { name:
|
|
1720
|
-
contrast: { name:
|
|
1721
|
-
saturate: { name:
|
|
1738
|
+
brightness: { name: __12("Brightness", "elementor") },
|
|
1739
|
+
contrast: { name: __12("Contrast", "elementor") },
|
|
1740
|
+
saturate: { name: __12("Saturate", "elementor") }
|
|
1722
1741
|
},
|
|
1723
1742
|
"hue-rotate": {
|
|
1724
1743
|
"hue-rotate": {
|
|
1725
|
-
name:
|
|
1726
|
-
valueName:
|
|
1744
|
+
name: __12("Hue Rotate", "elementor"),
|
|
1745
|
+
valueName: __12("Angle", "elementor")
|
|
1727
1746
|
}
|
|
1728
1747
|
},
|
|
1729
1748
|
"color-tone": {
|
|
1730
|
-
grayscale: { name:
|
|
1731
|
-
invert: { name:
|
|
1732
|
-
sepia: { name:
|
|
1749
|
+
grayscale: { name: __12("Grayscale", "elementor") },
|
|
1750
|
+
invert: { name: __12("Invert", "elementor") },
|
|
1751
|
+
sepia: { name: __12("Sepia", "elementor") }
|
|
1733
1752
|
},
|
|
1734
1753
|
"drop-shadow": {
|
|
1735
|
-
"drop-shadow": { name:
|
|
1754
|
+
"drop-shadow": { name: __12("Drop shadow", "elementor"), valueName: __12("Drop-shadow", "elementor") }
|
|
1736
1755
|
}
|
|
1737
1756
|
};
|
|
1738
1757
|
|
|
1739
1758
|
// src/controls/filter-control/utils.ts
|
|
1740
|
-
var AMOUNT_VALUE_NAME =
|
|
1759
|
+
var AMOUNT_VALUE_NAME = __13("Amount", "elementor");
|
|
1741
1760
|
var DEFAULT_FACTORIES = {
|
|
1742
1761
|
"drop-shadow": (propType) => buildDropShadowDefault(propType)
|
|
1743
1762
|
};
|
|
@@ -1831,33 +1850,33 @@ import {
|
|
|
1831
1850
|
cssFilterFunctionPropUtil as cssFilterFunctionPropUtil2
|
|
1832
1851
|
} from "@elementor/editor-props";
|
|
1833
1852
|
import { Grid as Grid7 } from "@elementor/ui";
|
|
1834
|
-
import { __ as
|
|
1853
|
+
import { __ as __15 } from "@wordpress/i18n";
|
|
1835
1854
|
|
|
1836
1855
|
// src/controls/filter-control/drop-shadow/drop-shadow-item-content.tsx
|
|
1837
1856
|
import * as React39 from "react";
|
|
1838
1857
|
import { useRef as useRef5 } from "react";
|
|
1839
1858
|
import { dropShadowFilterPropTypeUtil } from "@elementor/editor-props";
|
|
1840
1859
|
import { Grid as Grid5 } from "@elementor/ui";
|
|
1841
|
-
import { __ as
|
|
1860
|
+
import { __ as __14 } from "@wordpress/i18n";
|
|
1842
1861
|
var items = [
|
|
1843
1862
|
{
|
|
1844
1863
|
bind: "xAxis",
|
|
1845
|
-
label:
|
|
1864
|
+
label: __14("X-axis", "elementor"),
|
|
1846
1865
|
rowIndex: 0
|
|
1847
1866
|
},
|
|
1848
1867
|
{
|
|
1849
1868
|
bind: "yAxis",
|
|
1850
|
-
label:
|
|
1869
|
+
label: __14("Y-axis", "elementor"),
|
|
1851
1870
|
rowIndex: 0
|
|
1852
1871
|
},
|
|
1853
1872
|
{
|
|
1854
1873
|
bind: "blur",
|
|
1855
|
-
label:
|
|
1874
|
+
label: __14("Blur", "elementor"),
|
|
1856
1875
|
rowIndex: 1
|
|
1857
1876
|
},
|
|
1858
1877
|
{
|
|
1859
1878
|
bind: "color",
|
|
1860
|
-
label:
|
|
1879
|
+
label: __14("Color", "elementor"),
|
|
1861
1880
|
rowIndex: 1
|
|
1862
1881
|
}
|
|
1863
1882
|
];
|
|
@@ -1913,7 +1932,7 @@ var FilterContent = () => {
|
|
|
1913
1932
|
}
|
|
1914
1933
|
propContext.setValue(newValue);
|
|
1915
1934
|
};
|
|
1916
|
-
return /* @__PURE__ */ React41.createElement(PropProvider, { ...propContext, setValue: handleValueChange }, /* @__PURE__ */ React41.createElement(PropKeyProvider, { bind: "css-filter-func" }, /* @__PURE__ */ React41.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React41.createElement(PopoverGridContainer, null, /* @__PURE__ */ React41.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlFormLabel, null,
|
|
1935
|
+
return /* @__PURE__ */ React41.createElement(PropProvider, { ...propContext, setValue: handleValueChange }, /* @__PURE__ */ React41.createElement(PropKeyProvider, { bind: "css-filter-func" }, /* @__PURE__ */ React41.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React41.createElement(PopoverGridContainer, null, /* @__PURE__ */ React41.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlFormLabel, null, __15("Filter", "elementor"))), /* @__PURE__ */ React41.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(PropKeyProvider, { bind: "func" }, /* @__PURE__ */ React41.createElement(SelectControl, { options: filterOptions })))), /* @__PURE__ */ React41.createElement(PropKeyProvider, { bind: "args" }, /* @__PURE__ */ React41.createElement(FilterValueContent, null)))));
|
|
1917
1936
|
};
|
|
1918
1937
|
var FilterValueContent = () => {
|
|
1919
1938
|
const { openItemIndex, items: items2 } = useRepeaterContext();
|
|
@@ -1985,11 +2004,11 @@ var FilterLabel = ({ value }) => {
|
|
|
1985
2004
|
var FILTER_CONFIG = {
|
|
1986
2005
|
filter: {
|
|
1987
2006
|
propTypeUtil: filterPropTypeUtil,
|
|
1988
|
-
label:
|
|
2007
|
+
label: __16("Filters", "elementor")
|
|
1989
2008
|
},
|
|
1990
2009
|
"backdrop-filter": {
|
|
1991
2010
|
propTypeUtil: backdropFilterPropTypeUtil,
|
|
1992
|
-
label:
|
|
2011
|
+
label: __16("Backdrop Filters", "elementor")
|
|
1993
2012
|
}
|
|
1994
2013
|
};
|
|
1995
2014
|
var FilterRepeaterControl = createControl(({ filterPropName = "filter" }) => {
|
|
@@ -1999,13 +2018,20 @@ var FilterRepeaterControl = createControl(({ filterPropName = "filter" }) => {
|
|
|
1999
2018
|
Repeater,
|
|
2000
2019
|
{
|
|
2001
2020
|
propTypeUtil,
|
|
2002
|
-
label
|
|
2021
|
+
label,
|
|
2022
|
+
filterPropName
|
|
2003
2023
|
}
|
|
2004
2024
|
)));
|
|
2005
2025
|
});
|
|
2006
|
-
var Repeater = ({ propTypeUtil, label }) => {
|
|
2026
|
+
var Repeater = ({ propTypeUtil, label, filterPropName }) => {
|
|
2007
2027
|
const { getInitialValue } = useFilterConfig();
|
|
2008
|
-
return /* @__PURE__ */ React46.createElement(UnstableRepeater, { initial: getInitialValue(), propTypeUtil }, /* @__PURE__ */ React46.createElement(Header, { label }, /* @__PURE__ */ React46.createElement(
|
|
2028
|
+
return /* @__PURE__ */ React46.createElement(UnstableRepeater, { initial: getInitialValue(), propTypeUtil }, /* @__PURE__ */ React46.createElement(Header, { label }, /* @__PURE__ */ React46.createElement(
|
|
2029
|
+
TooltipAddItemAction,
|
|
2030
|
+
{
|
|
2031
|
+
newItemIndex: 0,
|
|
2032
|
+
ariaLabel: filterPropName === "backdrop-filter" ? "backdrop filter" : "filter"
|
|
2033
|
+
}
|
|
2034
|
+
)), /* @__PURE__ */ React46.createElement(ItemsContainer, { itemTemplate: /* @__PURE__ */ React46.createElement(Item, { Label: FilterLabel, Icon: FilterIcon }) }, /* @__PURE__ */ React46.createElement(DuplicateItemAction, null), /* @__PURE__ */ React46.createElement(DisableItemAction, null), /* @__PURE__ */ React46.createElement(RemoveItemAction, null)), /* @__PURE__ */ React46.createElement(EditItemPopover, null, /* @__PURE__ */ React46.createElement(FilterContent, null)));
|
|
2009
2035
|
};
|
|
2010
2036
|
function ensureFilterConfig(name) {
|
|
2011
2037
|
if (name && name in FILTER_CONFIG) {
|
|
@@ -2358,13 +2384,13 @@ import * as React52 from "react";
|
|
|
2358
2384
|
import { useId as useId2, useRef as useRef8 } from "react";
|
|
2359
2385
|
import { sizePropTypeUtil as sizePropTypeUtil3 } from "@elementor/editor-props";
|
|
2360
2386
|
import { bindPopover as bindPopover3, bindToggle, Grid as Grid8, Popover as Popover3, Stack as Stack7, ToggleButton as ToggleButton2, Tooltip as Tooltip5, usePopupState as usePopupState4 } from "@elementor/ui";
|
|
2361
|
-
import { __ as
|
|
2387
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
2362
2388
|
|
|
2363
2389
|
// src/components/control-label.tsx
|
|
2364
2390
|
import * as React51 from "react";
|
|
2365
2391
|
import { Stack as Stack6 } from "@elementor/ui";
|
|
2366
|
-
var ControlLabel = ({ children }) => {
|
|
2367
|
-
return /* @__PURE__ */ React51.createElement(Stack6, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React51.createElement(ControlFormLabel,
|
|
2392
|
+
var ControlLabel = ({ children, ...props }) => {
|
|
2393
|
+
return /* @__PURE__ */ React51.createElement(Stack6, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React51.createElement(ControlFormLabel, { ...props }, children), /* @__PURE__ */ React51.createElement(ControlAdornments, null));
|
|
2368
2394
|
};
|
|
2369
2395
|
|
|
2370
2396
|
// src/controls/equal-unequal-sizes-control.tsx
|
|
@@ -2426,7 +2452,7 @@ function EqualUnequalSizesControl({
|
|
|
2426
2452
|
return /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(Grid8, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React52.createElement(Grid8, { item: true, xs: 6 }, !isShowingGeneralIndicator ? /* @__PURE__ */ React52.createElement(ControlFormLabel, null, label) : /* @__PURE__ */ React52.createElement(ControlLabel, null, label)), /* @__PURE__ */ React52.createElement(Grid8, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(Stack7, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React52.createElement(
|
|
2427
2453
|
SizeControl,
|
|
2428
2454
|
{
|
|
2429
|
-
placeholder: isMixed ?
|
|
2455
|
+
placeholder: isMixed ? __17("Mixed", "elementor") : void 0,
|
|
2430
2456
|
anchorRef: rowRefs[0]
|
|
2431
2457
|
}
|
|
2432
2458
|
), /* @__PURE__ */ React52.createElement(Tooltip5, { title: tooltipLabel, placement: "top" }, /* @__PURE__ */ React52.createElement(
|
|
@@ -2480,7 +2506,7 @@ import { useRef as useRef9 } from "react";
|
|
|
2480
2506
|
import { dimensionsPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil4 } from "@elementor/editor-props";
|
|
2481
2507
|
import { DetachIcon, LinkIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
2482
2508
|
import { Grid as Grid9, Stack as Stack8, Tooltip as Tooltip6 } from "@elementor/ui";
|
|
2483
|
-
import { __ as
|
|
2509
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
2484
2510
|
var LinkedDimensionsControl = ({
|
|
2485
2511
|
label,
|
|
2486
2512
|
isSiteRtl = false,
|
|
@@ -2519,8 +2545,8 @@ var LinkedDimensionsControl = ({
|
|
|
2519
2545
|
};
|
|
2520
2546
|
const tooltipLabel = label.toLowerCase();
|
|
2521
2547
|
const LinkedIcon = isLinked ? LinkIcon : DetachIcon;
|
|
2522
|
-
const linkedLabel =
|
|
2523
|
-
const unlinkedLabel =
|
|
2548
|
+
const linkedLabel = __18("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
2549
|
+
const unlinkedLabel = __18("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
2524
2550
|
const disabled = sizeDisabled || dimensionsDisabled;
|
|
2525
2551
|
return /* @__PURE__ */ React53.createElement(
|
|
2526
2552
|
PropProvider,
|
|
@@ -2595,24 +2621,24 @@ function getCssDimensionProps(isSiteRtl) {
|
|
|
2595
2621
|
[
|
|
2596
2622
|
{
|
|
2597
2623
|
bind: "block-start",
|
|
2598
|
-
label:
|
|
2624
|
+
label: __18("Top", "elementor"),
|
|
2599
2625
|
icon: /* @__PURE__ */ React53.createElement(SideTopIcon, { fontSize: "tiny" })
|
|
2600
2626
|
},
|
|
2601
2627
|
{
|
|
2602
2628
|
bind: "inline-end",
|
|
2603
|
-
label: isSiteRtl ?
|
|
2629
|
+
label: isSiteRtl ? __18("Left", "elementor") : __18("Right", "elementor"),
|
|
2604
2630
|
icon: isSiteRtl ? /* @__PURE__ */ React53.createElement(SideLeftIcon, { fontSize: "tiny" }) : /* @__PURE__ */ React53.createElement(SideRightIcon, { fontSize: "tiny" })
|
|
2605
2631
|
}
|
|
2606
2632
|
],
|
|
2607
2633
|
[
|
|
2608
2634
|
{
|
|
2609
2635
|
bind: "block-end",
|
|
2610
|
-
label:
|
|
2636
|
+
label: __18("Bottom", "elementor"),
|
|
2611
2637
|
icon: /* @__PURE__ */ React53.createElement(SideBottomIcon, { fontSize: "tiny" })
|
|
2612
2638
|
},
|
|
2613
2639
|
{
|
|
2614
2640
|
bind: "inline-start",
|
|
2615
|
-
label: isSiteRtl ?
|
|
2641
|
+
label: isSiteRtl ? __18("Right", "elementor") : __18("Left", "elementor"),
|
|
2616
2642
|
icon: isSiteRtl ? /* @__PURE__ */ React53.createElement(SideRightIcon, { fontSize: "tiny" }) : /* @__PURE__ */ React53.createElement(SideLeftIcon, { fontSize: "tiny" })
|
|
2617
2643
|
}
|
|
2618
2644
|
]
|
|
@@ -2624,7 +2650,7 @@ import * as React55 from "react";
|
|
|
2624
2650
|
import { stringPropTypeUtil as stringPropTypeUtil5 } from "@elementor/editor-props";
|
|
2625
2651
|
import { ChevronDownIcon as ChevronDownIcon2, TextIcon } from "@elementor/icons";
|
|
2626
2652
|
import { bindPopover as bindPopover4, bindTrigger as bindTrigger3, Popover as Popover4, UnstableTag as UnstableTag2, usePopupState as usePopupState5 } from "@elementor/ui";
|
|
2627
|
-
import { __ as
|
|
2653
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
2628
2654
|
|
|
2629
2655
|
// src/components/item-selector.tsx
|
|
2630
2656
|
import * as React54 from "react";
|
|
@@ -2632,7 +2658,7 @@ import { useCallback, useEffect as useEffect6, useState as useState8 } from "rea
|
|
|
2632
2658
|
import { PopoverBody, PopoverHeader as PopoverHeader2, PopoverMenuList, PopoverSearch } from "@elementor/editor-ui";
|
|
2633
2659
|
import { Box as Box7, Divider as Divider2, Link, Stack as Stack9, Typography as Typography4 } from "@elementor/ui";
|
|
2634
2660
|
import { debounce } from "@elementor/utils";
|
|
2635
|
-
import { __ as
|
|
2661
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
2636
2662
|
|
|
2637
2663
|
// src/hooks/use-filtered-items-list.ts
|
|
2638
2664
|
var useFilteredItemsList = (itemsList, searchValue) => {
|
|
@@ -2678,7 +2704,7 @@ var ItemSelector = ({
|
|
|
2678
2704
|
{
|
|
2679
2705
|
value: searchValue,
|
|
2680
2706
|
onSearch: handleSearch,
|
|
2681
|
-
placeholder:
|
|
2707
|
+
placeholder: __19("Search", "elementor")
|
|
2682
2708
|
}
|
|
2683
2709
|
), /* @__PURE__ */ React54.createElement(Divider2, null), filteredItemsList.length > 0 ? /* @__PURE__ */ React54.createElement(
|
|
2684
2710
|
ItemList,
|
|
@@ -2701,7 +2727,7 @@ var ItemSelector = ({
|
|
|
2701
2727
|
overflow: "hidden"
|
|
2702
2728
|
},
|
|
2703
2729
|
/* @__PURE__ */ React54.createElement(IconComponent, { fontSize: "large" }),
|
|
2704
|
-
/* @__PURE__ */ React54.createElement(Box7, { sx: { maxWidth: 160, overflow: "hidden" } }, /* @__PURE__ */ React54.createElement(Typography4, { align: "center", variant: "subtitle2", color: "text.secondary" },
|
|
2730
|
+
/* @__PURE__ */ React54.createElement(Box7, { sx: { maxWidth: 160, overflow: "hidden" } }, /* @__PURE__ */ React54.createElement(Typography4, { align: "center", variant: "subtitle2", color: "text.secondary" }, __19("Sorry, nothing matched", "elementor")), /* @__PURE__ */ React54.createElement(
|
|
2705
2731
|
Typography4,
|
|
2706
2732
|
{
|
|
2707
2733
|
variant: "subtitle2",
|
|
@@ -2727,7 +2753,7 @@ var ItemSelector = ({
|
|
|
2727
2753
|
color: "text.secondary",
|
|
2728
2754
|
sx: { display: "flex", flexDirection: "column" }
|
|
2729
2755
|
},
|
|
2730
|
-
|
|
2756
|
+
__19("Try something else.", "elementor"),
|
|
2731
2757
|
/* @__PURE__ */ React54.createElement(
|
|
2732
2758
|
Link,
|
|
2733
2759
|
{
|
|
@@ -2736,7 +2762,7 @@ var ItemSelector = ({
|
|
|
2736
2762
|
component: "button",
|
|
2737
2763
|
onClick: () => setSearchValue("")
|
|
2738
2764
|
},
|
|
2739
|
-
|
|
2765
|
+
__19("Clear & try again", "elementor")
|
|
2740
2766
|
)
|
|
2741
2767
|
)
|
|
2742
2768
|
));
|
|
@@ -2830,7 +2856,7 @@ var FontFamilyControl = createControl(({ fontFamilies, sectionWidth }) => {
|
|
|
2830
2856
|
onItemChange: setFontFamily,
|
|
2831
2857
|
onClose: popoverState.close,
|
|
2832
2858
|
sectionWidth,
|
|
2833
|
-
title:
|
|
2859
|
+
title: __20("Font Family", "elementor"),
|
|
2834
2860
|
itemStyle: (item) => ({ fontFamily: item.value }),
|
|
2835
2861
|
onDebounce: enqueueFont,
|
|
2836
2862
|
icon: TextIcon
|
|
@@ -2874,7 +2900,7 @@ import { MinusIcon, PlusIcon as PlusIcon2 } from "@elementor/icons";
|
|
|
2874
2900
|
import { useSessionStorage } from "@elementor/session";
|
|
2875
2901
|
import { Collapse, Grid as Grid10, IconButton as IconButton6, Stack as Stack10 } from "@elementor/ui";
|
|
2876
2902
|
import { debounce as debounce2 } from "@elementor/utils";
|
|
2877
|
-
import { __ as
|
|
2903
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
2878
2904
|
|
|
2879
2905
|
// src/components/autocomplete.tsx
|
|
2880
2906
|
import * as React57 from "react";
|
|
@@ -2993,17 +3019,17 @@ import * as React58 from "react";
|
|
|
2993
3019
|
import { selectElement } from "@elementor/editor-elements";
|
|
2994
3020
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
2995
3021
|
import { Alert, AlertAction, AlertTitle, Box as Box9, Infotip as Infotip2, Link as Link2 } from "@elementor/ui";
|
|
2996
|
-
import { __ as
|
|
3022
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
2997
3023
|
var learnMoreButton = {
|
|
2998
|
-
label:
|
|
3024
|
+
label: __21("Learn More", "elementor"),
|
|
2999
3025
|
href: "https://go.elementor.com/element-link-inside-link-infotip"
|
|
3000
3026
|
};
|
|
3001
3027
|
var INFOTIP_CONTENT = {
|
|
3002
|
-
descendant:
|
|
3028
|
+
descendant: __21(
|
|
3003
3029
|
"To add a link to this element, first remove the link from the elements inside of it.",
|
|
3004
3030
|
"elementor"
|
|
3005
3031
|
),
|
|
3006
|
-
ancestor:
|
|
3032
|
+
ancestor: __21("To add a link to this element, first remove the link from its parent container.", "elementor")
|
|
3007
3033
|
};
|
|
3008
3034
|
var RestrictedLinkInfotip = ({
|
|
3009
3035
|
linkInLinkRestriction,
|
|
@@ -3029,10 +3055,10 @@ var RestrictedLinkInfotip = ({
|
|
|
3029
3055
|
color: "secondary",
|
|
3030
3056
|
onClick: handleTakeMeClick
|
|
3031
3057
|
},
|
|
3032
|
-
|
|
3058
|
+
__21("Take me there", "elementor")
|
|
3033
3059
|
)
|
|
3034
3060
|
},
|
|
3035
|
-
/* @__PURE__ */ React58.createElement(AlertTitle, null,
|
|
3061
|
+
/* @__PURE__ */ React58.createElement(AlertTitle, null, __21("Nested links", "elementor")),
|
|
3036
3062
|
/* @__PURE__ */ React58.createElement(Box9, { component: "span" }, INFOTIP_CONTENT[reason ?? "descendant"], " ", /* @__PURE__ */ React58.createElement(Link2, { href: learnMoreButton.href, target: "_blank", color: "info.main" }, learnMoreButton.label))
|
|
3037
3063
|
);
|
|
3038
3064
|
return shouldRestrict && isVisible ? /* @__PURE__ */ React58.createElement(
|
|
@@ -3082,7 +3108,7 @@ var LinkControl = createControl((props) => {
|
|
|
3082
3108
|
placeholder,
|
|
3083
3109
|
minInputLength = 2,
|
|
3084
3110
|
context: { elementId },
|
|
3085
|
-
label =
|
|
3111
|
+
label = __22("Link", "elementor")
|
|
3086
3112
|
} = props || {};
|
|
3087
3113
|
const [linkInLinkRestriction, setLinkInLinkRestriction] = useState9(getLinkInLinkRestriction(elementId));
|
|
3088
3114
|
const [options, setOptions] = useState9(
|
|
@@ -3162,7 +3188,7 @@ var LinkControl = createControl((props) => {
|
|
|
3162
3188
|
disabled: shouldDisableAddingLink,
|
|
3163
3189
|
active: isActive,
|
|
3164
3190
|
onIconClick: onEnabledChange,
|
|
3165
|
-
label:
|
|
3191
|
+
label: __22("Toggle link", "elementor")
|
|
3166
3192
|
}
|
|
3167
3193
|
))
|
|
3168
3194
|
), /* @__PURE__ */ React60.createElement(Collapse, { in: isActive, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React60.createElement(Stack10, { gap: 1.5 }, /* @__PURE__ */ React60.createElement(PropKeyProvider, { bind: "destination" }, /* @__PURE__ */ React60.createElement(ControlActions, null, /* @__PURE__ */ React60.createElement(
|
|
@@ -3176,7 +3202,7 @@ var LinkControl = createControl((props) => {
|
|
|
3176
3202
|
onTextChange,
|
|
3177
3203
|
minInputLength
|
|
3178
3204
|
}
|
|
3179
|
-
))), /* @__PURE__ */ React60.createElement(PropKeyProvider, { bind: "isTargetBlank" }, /* @__PURE__ */ React60.createElement(Grid10, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React60.createElement(Grid10, { item: true }, /* @__PURE__ */ React60.createElement(ControlFormLabel, null,
|
|
3205
|
+
))), /* @__PURE__ */ React60.createElement(PropKeyProvider, { bind: "isTargetBlank" }, /* @__PURE__ */ React60.createElement(Grid10, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React60.createElement(Grid10, { item: true }, /* @__PURE__ */ React60.createElement(ControlFormLabel, null, __22("Open in a new tab", "elementor"))), /* @__PURE__ */ React60.createElement(Grid10, { item: true, sx: { marginInlineEnd: -1 } }, /* @__PURE__ */ React60.createElement(SwitchControl, null))))))));
|
|
3180
3206
|
});
|
|
3181
3207
|
var ToggleIconControl = ({ disabled, active, onIconClick, label }) => {
|
|
3182
3208
|
return /* @__PURE__ */ React60.createElement(IconButton6, { size: SIZE6, onClick: onIconClick, "aria-label": label, disabled }, active ? /* @__PURE__ */ React60.createElement(MinusIcon, { fontSize: SIZE6 }) : /* @__PURE__ */ React60.createElement(PlusIcon2, { fontSize: SIZE6 }));
|
|
@@ -3216,7 +3242,7 @@ import { useRef as useRef10 } from "react";
|
|
|
3216
3242
|
import { layoutDirectionPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil5 } from "@elementor/editor-props";
|
|
3217
3243
|
import { DetachIcon as DetachIcon2, LinkIcon as LinkIcon2 } from "@elementor/icons";
|
|
3218
3244
|
import { Grid as Grid11, Stack as Stack11, ToggleButton as ToggleButton3, Tooltip as Tooltip7 } from "@elementor/ui";
|
|
3219
|
-
import { __ as
|
|
3245
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3220
3246
|
var GapControl = ({ label }) => {
|
|
3221
3247
|
const {
|
|
3222
3248
|
value: directionValue,
|
|
@@ -3240,8 +3266,8 @@ var GapControl = ({ label }) => {
|
|
|
3240
3266
|
};
|
|
3241
3267
|
const tooltipLabel = label.toLowerCase();
|
|
3242
3268
|
const LinkedIcon = isLinked ? LinkIcon2 : DetachIcon2;
|
|
3243
|
-
const linkedLabel =
|
|
3244
|
-
const unlinkedLabel =
|
|
3269
|
+
const linkedLabel = __23("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
3270
|
+
const unlinkedLabel = __23("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
3245
3271
|
const disabled = sizeDisabled || directionDisabled;
|
|
3246
3272
|
return /* @__PURE__ */ React61.createElement(PropProvider, { propType, value: directionValue, setValue: setDirectionValue }, /* @__PURE__ */ React61.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React61.createElement(ControlLabel, null, label), /* @__PURE__ */ React61.createElement(Tooltip7, { title: isLinked ? unlinkedLabel : linkedLabel, placement: "top" }, /* @__PURE__ */ React61.createElement(
|
|
3247
3273
|
ToggleButton3,
|
|
@@ -3255,7 +3281,7 @@ var GapControl = ({ label }) => {
|
|
|
3255
3281
|
disabled
|
|
3256
3282
|
},
|
|
3257
3283
|
/* @__PURE__ */ React61.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
3258
|
-
))), /* @__PURE__ */ React61.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React61.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React61.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(ControlFormLabel, null,
|
|
3284
|
+
))), /* @__PURE__ */ React61.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React61.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React61.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(ControlFormLabel, null, __23("Column", "elementor"))), /* @__PURE__ */ React61.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(Control4, { bind: "column", isLinked, anchorRef: stackRef }))), /* @__PURE__ */ React61.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React61.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(ControlFormLabel, null, __23("Row", "elementor"))), /* @__PURE__ */ React61.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(Control4, { bind: "row", isLinked, anchorRef: stackRef })))));
|
|
3259
3285
|
};
|
|
3260
3286
|
var Control4 = ({
|
|
3261
3287
|
bind,
|
|
@@ -3275,9 +3301,9 @@ import { stringPropTypeUtil as stringPropTypeUtil7 } from "@elementor/editor-pro
|
|
|
3275
3301
|
import { MenuListItem as MenuListItem3 } from "@elementor/editor-ui";
|
|
3276
3302
|
import { ArrowsMoveHorizontalIcon, ArrowsMoveVerticalIcon } from "@elementor/icons";
|
|
3277
3303
|
import { Grid as Grid12, Select as Select2, Stack as Stack12, TextField as TextField7 } from "@elementor/ui";
|
|
3278
|
-
import { __ as
|
|
3304
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3279
3305
|
var RATIO_OPTIONS = [
|
|
3280
|
-
{ label:
|
|
3306
|
+
{ label: __24("Auto", "elementor"), value: "auto" },
|
|
3281
3307
|
{ label: "1/1", value: "1/1" },
|
|
3282
3308
|
{ label: "4/3", value: "4/3" },
|
|
3283
3309
|
{ label: "3/4", value: "3/4" },
|
|
@@ -3347,7 +3373,7 @@ var AspectRatioControl = createControl(({ label }) => {
|
|
|
3347
3373
|
onChange: handleSelectChange,
|
|
3348
3374
|
fullWidth: true
|
|
3349
3375
|
},
|
|
3350
|
-
[...RATIO_OPTIONS, { label:
|
|
3376
|
+
[...RATIO_OPTIONS, { label: __24("Custom", "elementor"), value: CUSTOM_RATIO }].map(
|
|
3351
3377
|
({ label: optionLabel, ...props }) => /* @__PURE__ */ React62.createElement(MenuListItem3, { key: props.value, ...props, value: props.value ?? "" }, optionLabel)
|
|
3352
3378
|
)
|
|
3353
3379
|
))), isCustom && /* @__PURE__ */ React62.createElement(Grid12, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(
|
|
@@ -3386,7 +3412,7 @@ import { imageSrcPropTypeUtil as imageSrcPropTypeUtil2 } from "@elementor/editor
|
|
|
3386
3412
|
import { UploadIcon as UploadIcon2 } from "@elementor/icons";
|
|
3387
3413
|
import { Button as Button4, Card as Card2, CardMedia as CardMedia2, CardOverlay as CardOverlay2, CircularProgress as CircularProgress3, Stack as Stack13, styled as styled7 } from "@elementor/ui";
|
|
3388
3414
|
import { useWpMediaAttachment as useWpMediaAttachment2, useWpMediaFrame as useWpMediaFrame2 } from "@elementor/wp-media";
|
|
3389
|
-
import { __ as
|
|
3415
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
3390
3416
|
|
|
3391
3417
|
// src/components/enable-unfiltered-modal.tsx
|
|
3392
3418
|
import * as React63 from "react";
|
|
@@ -3403,19 +3429,19 @@ import {
|
|
|
3403
3429
|
DialogTitle,
|
|
3404
3430
|
Divider as Divider3
|
|
3405
3431
|
} from "@elementor/ui";
|
|
3406
|
-
import { __ as
|
|
3407
|
-
var ADMIN_TITLE_TEXT =
|
|
3408
|
-
var ADMIN_CONTENT_TEXT =
|
|
3432
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
3433
|
+
var ADMIN_TITLE_TEXT = __25("Enable Unfiltered Uploads", "elementor");
|
|
3434
|
+
var ADMIN_CONTENT_TEXT = __25(
|
|
3409
3435
|
"Before you enable unfiltered files upload, note that such files include a security risk. Elementor does run a process to remove possible malicious code, but there is still risk involved when using such files.",
|
|
3410
3436
|
"elementor"
|
|
3411
3437
|
);
|
|
3412
|
-
var NON_ADMIN_TITLE_TEXT =
|
|
3413
|
-
var NON_ADMIN_CONTENT_TEXT =
|
|
3438
|
+
var NON_ADMIN_TITLE_TEXT = __25("Sorry, you can't upload that file yet", "elementor");
|
|
3439
|
+
var NON_ADMIN_CONTENT_TEXT = __25(
|
|
3414
3440
|
"This is because this file type may pose a security risk. To upload them anyway, ask the site administrator to enable unfiltered file uploads.",
|
|
3415
3441
|
"elementor"
|
|
3416
3442
|
);
|
|
3417
|
-
var ADMIN_FAILED_CONTENT_TEXT_PT1 =
|
|
3418
|
-
var ADMIN_FAILED_CONTENT_TEXT_PT2 =
|
|
3443
|
+
var ADMIN_FAILED_CONTENT_TEXT_PT1 = __25("Failed to enable unfiltered files upload.", "elementor");
|
|
3444
|
+
var ADMIN_FAILED_CONTENT_TEXT_PT2 = __25(
|
|
3419
3445
|
"You can try again, if the problem persists, please contact support.",
|
|
3420
3446
|
"elementor"
|
|
3421
3447
|
);
|
|
@@ -3444,7 +3470,7 @@ var EnableUnfilteredModal = (props) => {
|
|
|
3444
3470
|
const dialogProps = { ...props, isPending, handleEnable, isError, onClose };
|
|
3445
3471
|
return canManageOptions ? /* @__PURE__ */ React63.createElement(AdminDialog, { ...dialogProps }) : /* @__PURE__ */ React63.createElement(NonAdminDialog, { ...dialogProps });
|
|
3446
3472
|
};
|
|
3447
|
-
var AdminDialog = ({ open, onClose, handleEnable, isPending, isError }) => /* @__PURE__ */ React63.createElement(Dialog, { open, maxWidth: "sm", onClose: () => onClose(false) }, /* @__PURE__ */ React63.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React63.createElement(DialogTitle, null, ADMIN_TITLE_TEXT)), /* @__PURE__ */ React63.createElement(Divider3, null), /* @__PURE__ */ React63.createElement(DialogContent, null, /* @__PURE__ */ React63.createElement(DialogContentText, null, isError ? /* @__PURE__ */ React63.createElement(React63.Fragment, null, ADMIN_FAILED_CONTENT_TEXT_PT1, " ", /* @__PURE__ */ React63.createElement("br", null), " ", ADMIN_FAILED_CONTENT_TEXT_PT2) : ADMIN_CONTENT_TEXT)), /* @__PURE__ */ React63.createElement(DialogActions, null, /* @__PURE__ */ React63.createElement(Button3, { size: "medium", color: "secondary", onClick: () => onClose(false) },
|
|
3473
|
+
var AdminDialog = ({ open, onClose, handleEnable, isPending, isError }) => /* @__PURE__ */ React63.createElement(Dialog, { open, maxWidth: "sm", onClose: () => onClose(false) }, /* @__PURE__ */ React63.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React63.createElement(DialogTitle, null, ADMIN_TITLE_TEXT)), /* @__PURE__ */ React63.createElement(Divider3, null), /* @__PURE__ */ React63.createElement(DialogContent, null, /* @__PURE__ */ React63.createElement(DialogContentText, null, isError ? /* @__PURE__ */ React63.createElement(React63.Fragment, null, ADMIN_FAILED_CONTENT_TEXT_PT1, " ", /* @__PURE__ */ React63.createElement("br", null), " ", ADMIN_FAILED_CONTENT_TEXT_PT2) : ADMIN_CONTENT_TEXT)), /* @__PURE__ */ React63.createElement(DialogActions, null, /* @__PURE__ */ React63.createElement(Button3, { size: "medium", color: "secondary", onClick: () => onClose(false) }, __25("Cancel", "elementor")), /* @__PURE__ */ React63.createElement(
|
|
3448
3474
|
Button3,
|
|
3449
3475
|
{
|
|
3450
3476
|
size: "medium",
|
|
@@ -3453,9 +3479,9 @@ var AdminDialog = ({ open, onClose, handleEnable, isPending, isError }) => /* @_
|
|
|
3453
3479
|
color: "primary",
|
|
3454
3480
|
disabled: isPending
|
|
3455
3481
|
},
|
|
3456
|
-
isPending ? /* @__PURE__ */ React63.createElement(CircularProgress2, { size: 24 }) :
|
|
3482
|
+
isPending ? /* @__PURE__ */ React63.createElement(CircularProgress2, { size: 24 }) : __25("Enable", "elementor")
|
|
3457
3483
|
)));
|
|
3458
|
-
var NonAdminDialog = ({ open, onClose }) => /* @__PURE__ */ React63.createElement(Dialog, { open, maxWidth: "sm", onClose: () => onClose(false) }, /* @__PURE__ */ React63.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React63.createElement(DialogTitle, null, NON_ADMIN_TITLE_TEXT)), /* @__PURE__ */ React63.createElement(Divider3, null), /* @__PURE__ */ React63.createElement(DialogContent, null, /* @__PURE__ */ React63.createElement(DialogContentText, null, NON_ADMIN_CONTENT_TEXT)), /* @__PURE__ */ React63.createElement(DialogActions, null, /* @__PURE__ */ React63.createElement(Button3, { size: "medium", onClick: () => onClose(false), variant: "contained", color: "primary" },
|
|
3484
|
+
var NonAdminDialog = ({ open, onClose }) => /* @__PURE__ */ React63.createElement(Dialog, { open, maxWidth: "sm", onClose: () => onClose(false) }, /* @__PURE__ */ React63.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React63.createElement(DialogTitle, null, NON_ADMIN_TITLE_TEXT)), /* @__PURE__ */ React63.createElement(Divider3, null), /* @__PURE__ */ React63.createElement(DialogContent, null, /* @__PURE__ */ React63.createElement(DialogContentText, null, NON_ADMIN_CONTENT_TEXT)), /* @__PURE__ */ React63.createElement(DialogActions, null, /* @__PURE__ */ React63.createElement(Button3, { size: "medium", onClick: () => onClose(false), variant: "contained", color: "primary" }, __25("Got it", "elementor"))));
|
|
3459
3485
|
|
|
3460
3486
|
// src/controls/svg-media-control.tsx
|
|
3461
3487
|
var TILE_SIZE = 8;
|
|
@@ -3521,7 +3547,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
3521
3547
|
{
|
|
3522
3548
|
component: "img",
|
|
3523
3549
|
image: src,
|
|
3524
|
-
alt:
|
|
3550
|
+
alt: __26("Preview SVG", "elementor"),
|
|
3525
3551
|
sx: { maxHeight: "140px", width: "50px" }
|
|
3526
3552
|
}
|
|
3527
3553
|
)), /* @__PURE__ */ React64.createElement(
|
|
@@ -3541,7 +3567,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
3541
3567
|
variant: "outlined",
|
|
3542
3568
|
onClick: () => handleClick(MODE_BROWSE)
|
|
3543
3569
|
},
|
|
3544
|
-
|
|
3570
|
+
__26("Select SVG", "elementor")
|
|
3545
3571
|
), /* @__PURE__ */ React64.createElement(
|
|
3546
3572
|
Button4,
|
|
3547
3573
|
{
|
|
@@ -3551,7 +3577,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
3551
3577
|
startIcon: /* @__PURE__ */ React64.createElement(UploadIcon2, null),
|
|
3552
3578
|
onClick: () => handleClick(MODE_UPLOAD)
|
|
3553
3579
|
},
|
|
3554
|
-
|
|
3580
|
+
__26("Upload", "elementor")
|
|
3555
3581
|
))
|
|
3556
3582
|
))));
|
|
3557
3583
|
});
|
|
@@ -3560,7 +3586,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
3560
3586
|
import * as React71 from "react";
|
|
3561
3587
|
import { backgroundPropTypeUtil } from "@elementor/editor-props";
|
|
3562
3588
|
import { Grid as Grid17 } from "@elementor/ui";
|
|
3563
|
-
import { __ as
|
|
3589
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
3564
3590
|
|
|
3565
3591
|
// src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx
|
|
3566
3592
|
import * as React70 from "react";
|
|
@@ -3572,7 +3598,7 @@ import {
|
|
|
3572
3598
|
} from "@elementor/editor-props";
|
|
3573
3599
|
import { Box as Box11, CardMedia as CardMedia3, styled as styled8, Tab, TabPanel, Tabs, UnstableColorIndicator as UnstableColorIndicator3 } from "@elementor/ui";
|
|
3574
3600
|
import { useWpMediaAttachment as useWpMediaAttachment3 } from "@elementor/wp-media";
|
|
3575
|
-
import { __ as
|
|
3601
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
3576
3602
|
|
|
3577
3603
|
// src/env.ts
|
|
3578
3604
|
import { parseEnv } from "@elementor/env";
|
|
@@ -3654,23 +3680,23 @@ var initialBackgroundGradientOverlay = backgroundGradientOverlayPropTypeUtil.cre
|
|
|
3654
3680
|
import * as React66 from "react";
|
|
3655
3681
|
import { PinIcon, PinnedOffIcon } from "@elementor/icons";
|
|
3656
3682
|
import { Grid as Grid13 } from "@elementor/ui";
|
|
3657
|
-
import { __ as
|
|
3683
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
3658
3684
|
var attachmentControlOptions = [
|
|
3659
3685
|
{
|
|
3660
3686
|
value: "fixed",
|
|
3661
|
-
label:
|
|
3687
|
+
label: __27("Fixed", "elementor"),
|
|
3662
3688
|
renderContent: ({ size }) => /* @__PURE__ */ React66.createElement(PinIcon, { fontSize: size }),
|
|
3663
3689
|
showTooltip: true
|
|
3664
3690
|
},
|
|
3665
3691
|
{
|
|
3666
3692
|
value: "scroll",
|
|
3667
|
-
label:
|
|
3693
|
+
label: __27("Scroll", "elementor"),
|
|
3668
3694
|
renderContent: ({ size }) => /* @__PURE__ */ React66.createElement(PinnedOffIcon, { fontSize: size }),
|
|
3669
3695
|
showTooltip: true
|
|
3670
3696
|
}
|
|
3671
3697
|
];
|
|
3672
3698
|
var BackgroundImageOverlayAttachment = () => {
|
|
3673
|
-
return /* @__PURE__ */ React66.createElement(PopoverGridContainer, null, /* @__PURE__ */ React66.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ControlFormLabel, null,
|
|
3699
|
+
return /* @__PURE__ */ React66.createElement(PopoverGridContainer, null, /* @__PURE__ */ React66.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ControlFormLabel, null, __27("Attachment", "elementor"))), /* @__PURE__ */ React66.createElement(Grid13, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React66.createElement(ToggleControl, { options: attachmentControlOptions })));
|
|
3674
3700
|
};
|
|
3675
3701
|
|
|
3676
3702
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-position.tsx
|
|
@@ -3680,18 +3706,18 @@ import { backgroundImagePositionOffsetPropTypeUtil, stringPropTypeUtil as string
|
|
|
3680
3706
|
import { MenuListItem as MenuListItem4 } from "@elementor/editor-ui";
|
|
3681
3707
|
import { LetterXIcon, LetterYIcon } from "@elementor/icons";
|
|
3682
3708
|
import { Grid as Grid14, Select as Select3 } from "@elementor/ui";
|
|
3683
|
-
import { __ as
|
|
3709
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
3684
3710
|
var backgroundPositionOptions = [
|
|
3685
|
-
{ label:
|
|
3686
|
-
{ label:
|
|
3687
|
-
{ label:
|
|
3688
|
-
{ label:
|
|
3689
|
-
{ label:
|
|
3690
|
-
{ label:
|
|
3691
|
-
{ label:
|
|
3692
|
-
{ label:
|
|
3693
|
-
{ label:
|
|
3694
|
-
{ label:
|
|
3711
|
+
{ label: __28("Center center", "elementor"), value: "center center" },
|
|
3712
|
+
{ label: __28("Center left", "elementor"), value: "center left" },
|
|
3713
|
+
{ label: __28("Center right", "elementor"), value: "center right" },
|
|
3714
|
+
{ label: __28("Top center", "elementor"), value: "top center" },
|
|
3715
|
+
{ label: __28("Top left", "elementor"), value: "top left" },
|
|
3716
|
+
{ label: __28("Top right", "elementor"), value: "top right" },
|
|
3717
|
+
{ label: __28("Bottom center", "elementor"), value: "bottom center" },
|
|
3718
|
+
{ label: __28("Bottom left", "elementor"), value: "bottom left" },
|
|
3719
|
+
{ label: __28("Bottom right", "elementor"), value: "bottom right" },
|
|
3720
|
+
{ label: __28("Custom", "elementor"), value: "custom" }
|
|
3695
3721
|
];
|
|
3696
3722
|
var BackgroundImageOverlayPosition = () => {
|
|
3697
3723
|
const backgroundImageOffsetContext = useBoundProp(backgroundImagePositionOffsetPropTypeUtil);
|
|
@@ -3706,7 +3732,7 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
3706
3732
|
stringPropContext.setValue(value);
|
|
3707
3733
|
}
|
|
3708
3734
|
};
|
|
3709
|
-
return /* @__PURE__ */ React67.createElement(Grid14, { container: true, spacing: 1.5 }, /* @__PURE__ */ React67.createElement(Grid14, { item: true, xs: 12 }, /* @__PURE__ */ React67.createElement(PopoverGridContainer, null, /* @__PURE__ */ React67.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React67.createElement(ControlFormLabel, null,
|
|
3735
|
+
return /* @__PURE__ */ React67.createElement(Grid14, { container: true, spacing: 1.5 }, /* @__PURE__ */ React67.createElement(Grid14, { item: true, xs: 12 }, /* @__PURE__ */ React67.createElement(PopoverGridContainer, null, /* @__PURE__ */ React67.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React67.createElement(ControlFormLabel, null, __28("Position", "elementor"))), /* @__PURE__ */ React67.createElement(Grid14, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React67.createElement(
|
|
3710
3736
|
Select3,
|
|
3711
3737
|
{
|
|
3712
3738
|
fullWidth: true,
|
|
@@ -3737,35 +3763,35 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
3737
3763
|
import * as React68 from "react";
|
|
3738
3764
|
import { DotsHorizontalIcon, DotsVerticalIcon, GridDotsIcon, XIcon as XIcon3 } from "@elementor/icons";
|
|
3739
3765
|
import { Grid as Grid15 } from "@elementor/ui";
|
|
3740
|
-
import { __ as
|
|
3766
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
3741
3767
|
var repeatControlOptions = [
|
|
3742
3768
|
{
|
|
3743
3769
|
value: "repeat",
|
|
3744
|
-
label:
|
|
3770
|
+
label: __29("Repeat", "elementor"),
|
|
3745
3771
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(GridDotsIcon, { fontSize: size }),
|
|
3746
3772
|
showTooltip: true
|
|
3747
3773
|
},
|
|
3748
3774
|
{
|
|
3749
3775
|
value: "repeat-x",
|
|
3750
|
-
label:
|
|
3776
|
+
label: __29("Repeat-x", "elementor"),
|
|
3751
3777
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(DotsHorizontalIcon, { fontSize: size }),
|
|
3752
3778
|
showTooltip: true
|
|
3753
3779
|
},
|
|
3754
3780
|
{
|
|
3755
3781
|
value: "repeat-y",
|
|
3756
|
-
label:
|
|
3782
|
+
label: __29("Repeat-y", "elementor"),
|
|
3757
3783
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(DotsVerticalIcon, { fontSize: size }),
|
|
3758
3784
|
showTooltip: true
|
|
3759
3785
|
},
|
|
3760
3786
|
{
|
|
3761
3787
|
value: "no-repeat",
|
|
3762
|
-
label:
|
|
3788
|
+
label: __29("No-repeat", "elementor"),
|
|
3763
3789
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(XIcon3, { fontSize: size }),
|
|
3764
3790
|
showTooltip: true
|
|
3765
3791
|
}
|
|
3766
3792
|
];
|
|
3767
3793
|
var BackgroundImageOverlayRepeat = () => {
|
|
3768
|
-
return /* @__PURE__ */ React68.createElement(PopoverGridContainer, null, /* @__PURE__ */ React68.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(ControlFormLabel, null,
|
|
3794
|
+
return /* @__PURE__ */ React68.createElement(PopoverGridContainer, null, /* @__PURE__ */ React68.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(ControlFormLabel, null, __29("Repeat", "elementor"))), /* @__PURE__ */ React68.createElement(Grid15, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React68.createElement(ToggleControl, { options: repeatControlOptions })));
|
|
3769
3795
|
};
|
|
3770
3796
|
|
|
3771
3797
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-size.tsx
|
|
@@ -3781,29 +3807,29 @@ import {
|
|
|
3781
3807
|
PencilIcon
|
|
3782
3808
|
} from "@elementor/icons";
|
|
3783
3809
|
import { Grid as Grid16 } from "@elementor/ui";
|
|
3784
|
-
import { __ as
|
|
3810
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
3785
3811
|
var sizeControlOptions = [
|
|
3786
3812
|
{
|
|
3787
3813
|
value: "auto",
|
|
3788
|
-
label:
|
|
3814
|
+
label: __30("Auto", "elementor"),
|
|
3789
3815
|
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(LetterAIcon, { fontSize: size }),
|
|
3790
3816
|
showTooltip: true
|
|
3791
3817
|
},
|
|
3792
3818
|
{
|
|
3793
3819
|
value: "cover",
|
|
3794
|
-
label:
|
|
3820
|
+
label: __30("Cover", "elementor"),
|
|
3795
3821
|
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(ArrowsMaximizeIcon, { fontSize: size }),
|
|
3796
3822
|
showTooltip: true
|
|
3797
3823
|
},
|
|
3798
3824
|
{
|
|
3799
3825
|
value: "contain",
|
|
3800
|
-
label:
|
|
3826
|
+
label: __30("Contain", "elementor"),
|
|
3801
3827
|
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(ArrowBarBothIcon, { fontSize: size }),
|
|
3802
3828
|
showTooltip: true
|
|
3803
3829
|
},
|
|
3804
3830
|
{
|
|
3805
3831
|
value: "custom",
|
|
3806
|
-
label:
|
|
3832
|
+
label: __30("Custom", "elementor"),
|
|
3807
3833
|
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(PencilIcon, { fontSize: size }),
|
|
3808
3834
|
showTooltip: true
|
|
3809
3835
|
}
|
|
@@ -3820,7 +3846,7 @@ var BackgroundImageOverlaySize = () => {
|
|
|
3820
3846
|
stringPropContext.setValue(size);
|
|
3821
3847
|
}
|
|
3822
3848
|
};
|
|
3823
|
-
return /* @__PURE__ */ React69.createElement(Grid16, { container: true, spacing: 1.5 }, /* @__PURE__ */ React69.createElement(Grid16, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(PopoverGridContainer, null, /* @__PURE__ */ React69.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(ControlFormLabel, null,
|
|
3849
|
+
return /* @__PURE__ */ React69.createElement(Grid16, { container: true, spacing: 1.5 }, /* @__PURE__ */ React69.createElement(Grid16, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(PopoverGridContainer, null, /* @__PURE__ */ React69.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(ControlFormLabel, null, __30("Size", "elementor"))), /* @__PURE__ */ React69.createElement(Grid16, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React69.createElement(
|
|
3824
3850
|
ControlToggleButtonGroup,
|
|
3825
3851
|
{
|
|
3826
3852
|
exclusive: true,
|
|
@@ -3940,10 +3966,10 @@ var getInitialBackgroundOverlay = () => ({
|
|
|
3940
3966
|
}
|
|
3941
3967
|
});
|
|
3942
3968
|
var backgroundResolutionOptions = [
|
|
3943
|
-
{ label:
|
|
3944
|
-
{ label:
|
|
3945
|
-
{ label:
|
|
3946
|
-
{ label:
|
|
3969
|
+
{ label: __31("Thumbnail - 150 x 150", "elementor"), value: "thumbnail" },
|
|
3970
|
+
{ label: __31("Medium - 300 x 300", "elementor"), value: "medium" },
|
|
3971
|
+
{ label: __31("Large 1024 x 1024", "elementor"), value: "large" },
|
|
3972
|
+
{ label: __31("Full", "elementor"), value: "full" }
|
|
3947
3973
|
];
|
|
3948
3974
|
var BackgroundOverlayRepeaterControl = createControl(() => {
|
|
3949
3975
|
const { propType, value: overlayValues, setValue } = useBoundProp(backgroundOverlayPropTypeUtil);
|
|
@@ -3953,7 +3979,7 @@ var BackgroundOverlayRepeaterControl = createControl(() => {
|
|
|
3953
3979
|
initial: getInitialBackgroundOverlay(),
|
|
3954
3980
|
propTypeUtil: backgroundOverlayPropTypeUtil
|
|
3955
3981
|
},
|
|
3956
|
-
/* @__PURE__ */ React70.createElement(Header, { label:
|
|
3982
|
+
/* @__PURE__ */ React70.createElement(Header, { label: __31("Overlay", "elementor") }, /* @__PURE__ */ React70.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
|
|
3957
3983
|
/* @__PURE__ */ React70.createElement(ItemsContainer, { itemTemplate: /* @__PURE__ */ React70.createElement(Item, { Icon: ItemIcon2, Label: ItemLabel2 }) }, /* @__PURE__ */ React70.createElement(DuplicateItemAction, null), /* @__PURE__ */ React70.createElement(DisableItemAction, null), /* @__PURE__ */ React70.createElement(RemoveItemAction, null)),
|
|
3958
3984
|
/* @__PURE__ */ React70.createElement(EditItemPopover, null, /* @__PURE__ */ React70.createElement(ItemContent, null))
|
|
3959
3985
|
));
|
|
@@ -3971,11 +3997,11 @@ var ItemContent = () => {
|
|
|
3971
3997
|
size: "small",
|
|
3972
3998
|
variant: "fullWidth",
|
|
3973
3999
|
...getTabsProps(),
|
|
3974
|
-
"aria-label":
|
|
4000
|
+
"aria-label": __31("Background Overlay", "elementor")
|
|
3975
4001
|
},
|
|
3976
|
-
/* @__PURE__ */ React70.createElement(Tab, { label:
|
|
3977
|
-
/* @__PURE__ */ React70.createElement(Tab, { label:
|
|
3978
|
-
/* @__PURE__ */ React70.createElement(Tab, { label:
|
|
4002
|
+
/* @__PURE__ */ React70.createElement(Tab, { label: __31("Image", "elementor"), ...getTabProps("image") }),
|
|
4003
|
+
/* @__PURE__ */ React70.createElement(Tab, { label: __31("Gradient", "elementor"), ...getTabProps("gradient") }),
|
|
4004
|
+
/* @__PURE__ */ React70.createElement(Tab, { label: __31("Color", "elementor"), ...getTabProps("color") })
|
|
3979
4005
|
)), /* @__PURE__ */ React70.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React70.createElement(PopoverContent, null, /* @__PURE__ */ React70.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React70.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React70.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React70.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React70.createElement(PopoverContent, null, /* @__PURE__ */ React70.createElement(ColorOverlayContent, { anchorEl: rowRef }))));
|
|
3980
4006
|
};
|
|
3981
4007
|
var ItemIcon2 = ({ value }) => {
|
|
@@ -4041,9 +4067,9 @@ var ItemLabelImage = ({ value }) => {
|
|
|
4041
4067
|
};
|
|
4042
4068
|
var ItemLabelGradient = ({ value }) => {
|
|
4043
4069
|
if (value.value.type.value === "linear") {
|
|
4044
|
-
return /* @__PURE__ */ React70.createElement("span", null,
|
|
4070
|
+
return /* @__PURE__ */ React70.createElement("span", null, __31("Linear Gradient", "elementor"));
|
|
4045
4071
|
}
|
|
4046
|
-
return /* @__PURE__ */ React70.createElement("span", null,
|
|
4072
|
+
return /* @__PURE__ */ React70.createElement("span", null, __31("Radial Gradient", "elementor"));
|
|
4047
4073
|
};
|
|
4048
4074
|
var ColorOverlayContent = ({ anchorEl }) => {
|
|
4049
4075
|
const propContext = useBoundProp(backgroundColorOverlayPropTypeUtil2);
|
|
@@ -4091,7 +4117,7 @@ var getGradientValue = (value) => {
|
|
|
4091
4117
|
// src/controls/background-control/background-control.tsx
|
|
4092
4118
|
var BackgroundControl = createControl(() => {
|
|
4093
4119
|
const propContext = useBoundProp(backgroundPropTypeUtil);
|
|
4094
|
-
const colorLabel =
|
|
4120
|
+
const colorLabel = __32("Color", "elementor");
|
|
4095
4121
|
return /* @__PURE__ */ React71.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React71.createElement(PropKeyProvider, { bind: "background-overlay" }, /* @__PURE__ */ React71.createElement(BackgroundOverlayRepeaterControl, null)), /* @__PURE__ */ React71.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React71.createElement(Grid17, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React71.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(ControlLabel, null, colorLabel)), /* @__PURE__ */ React71.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(ColorControl, null)))));
|
|
4096
4122
|
});
|
|
4097
4123
|
|
|
@@ -4149,7 +4175,14 @@ var RepeatableControl = createControl(
|
|
|
4149
4175
|
initial: childPropTypeUtil.create(initialValues || null),
|
|
4150
4176
|
propTypeUtil: childArrayPropTypeUtil
|
|
4151
4177
|
},
|
|
4152
|
-
/* @__PURE__ */ React72.createElement(Header, { label: repeaterLabel }, /* @__PURE__ */ React72.createElement(
|
|
4178
|
+
/* @__PURE__ */ React72.createElement(Header, { label: repeaterLabel }, /* @__PURE__ */ React72.createElement(
|
|
4179
|
+
TooltipAddItemAction,
|
|
4180
|
+
{
|
|
4181
|
+
...addItemTooltipProps,
|
|
4182
|
+
newItemIndex: 0,
|
|
4183
|
+
ariaLabel: repeaterLabel
|
|
4184
|
+
}
|
|
4185
|
+
)),
|
|
4153
4186
|
/* @__PURE__ */ React72.createElement(
|
|
4154
4187
|
ItemsContainer,
|
|
4155
4188
|
{
|
|
@@ -4245,7 +4278,7 @@ import {
|
|
|
4245
4278
|
stringPropTypeUtil as stringPropTypeUtil11
|
|
4246
4279
|
} from "@elementor/editor-props";
|
|
4247
4280
|
import { FormHelperText, FormLabel as FormLabel3, Grid as Grid18 } from "@elementor/ui";
|
|
4248
|
-
import { __ as
|
|
4281
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
4249
4282
|
var KeyValueControl = createControl((props = {}) => {
|
|
4250
4283
|
const { value, setValue, ...propContext } = useBoundProp(keyValuePropTypeUtil);
|
|
4251
4284
|
const [keyError, setKeyError] = useState13("");
|
|
@@ -4254,8 +4287,8 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
4254
4287
|
key: value?.key?.value || "",
|
|
4255
4288
|
value: value?.value?.value || ""
|
|
4256
4289
|
});
|
|
4257
|
-
const keyLabel = props.keyName ||
|
|
4258
|
-
const valueLabel = props.valueName ||
|
|
4290
|
+
const keyLabel = props.keyName || __33("Key", "elementor");
|
|
4291
|
+
const valueLabel = props.valueName || __33("Value", "elementor");
|
|
4259
4292
|
const { keyHelper, valueHelper } = props.getHelperText?.(sessionState.key, sessionState.value) || {
|
|
4260
4293
|
keyHelper: void 0,
|
|
4261
4294
|
valueHelper: void 0
|
|
@@ -4264,7 +4297,7 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
4264
4297
|
() => [
|
|
4265
4298
|
props.regexKey ? new RegExp(props.regexKey) : void 0,
|
|
4266
4299
|
props.regexValue ? new RegExp(props.regexValue) : void 0,
|
|
4267
|
-
props.validationErrorMessage ||
|
|
4300
|
+
props.validationErrorMessage || __33("Invalid Format", "elementor")
|
|
4268
4301
|
],
|
|
4269
4302
|
[props.regexKey, props.regexValue, props.validationErrorMessage]
|
|
4270
4303
|
);
|
|
@@ -4330,18 +4363,18 @@ import { positionPropTypeUtil, stringPropTypeUtil as stringPropTypeUtil12 } from
|
|
|
4330
4363
|
import { MenuListItem as MenuListItem5 } from "@elementor/editor-ui";
|
|
4331
4364
|
import { LetterXIcon as LetterXIcon2, LetterYIcon as LetterYIcon2 } from "@elementor/icons";
|
|
4332
4365
|
import { Grid as Grid19, Select as Select4 } from "@elementor/ui";
|
|
4333
|
-
import { __ as
|
|
4366
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
4334
4367
|
var positionOptions = [
|
|
4335
|
-
{ label:
|
|
4336
|
-
{ label:
|
|
4337
|
-
{ label:
|
|
4338
|
-
{ label:
|
|
4339
|
-
{ label:
|
|
4340
|
-
{ label:
|
|
4341
|
-
{ label:
|
|
4342
|
-
{ label:
|
|
4343
|
-
{ label:
|
|
4344
|
-
{ label:
|
|
4368
|
+
{ label: __34("Center center", "elementor"), value: "center center" },
|
|
4369
|
+
{ label: __34("Center left", "elementor"), value: "center left" },
|
|
4370
|
+
{ label: __34("Center right", "elementor"), value: "center right" },
|
|
4371
|
+
{ label: __34("Top center", "elementor"), value: "top center" },
|
|
4372
|
+
{ label: __34("Top left", "elementor"), value: "top left" },
|
|
4373
|
+
{ label: __34("Top right", "elementor"), value: "top right" },
|
|
4374
|
+
{ label: __34("Bottom center", "elementor"), value: "bottom center" },
|
|
4375
|
+
{ label: __34("Bottom left", "elementor"), value: "bottom left" },
|
|
4376
|
+
{ label: __34("Bottom right", "elementor"), value: "bottom right" },
|
|
4377
|
+
{ label: __34("Custom", "elementor"), value: "custom" }
|
|
4345
4378
|
];
|
|
4346
4379
|
var PositionControl = () => {
|
|
4347
4380
|
const positionContext = useBoundProp(positionPropTypeUtil);
|
|
@@ -4355,7 +4388,7 @@ var PositionControl = () => {
|
|
|
4355
4388
|
stringPropContext.setValue(value);
|
|
4356
4389
|
}
|
|
4357
4390
|
};
|
|
4358
|
-
return /* @__PURE__ */ React74.createElement(Grid19, { container: true, spacing: 1.5 }, /* @__PURE__ */ React74.createElement(Grid19, { item: true, xs: 12 }, /* @__PURE__ */ React74.createElement(Grid19, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React74.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React74.createElement(ControlFormLabel, null,
|
|
4391
|
+
return /* @__PURE__ */ React74.createElement(Grid19, { container: true, spacing: 1.5 }, /* @__PURE__ */ React74.createElement(Grid19, { item: true, xs: 12 }, /* @__PURE__ */ React74.createElement(Grid19, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React74.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React74.createElement(ControlFormLabel, null, __34("Object position", "elementor"))), /* @__PURE__ */ React74.createElement(Grid19, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React74.createElement(
|
|
4359
4392
|
Select4,
|
|
4360
4393
|
{
|
|
4361
4394
|
size: "tiny",
|
|
@@ -4386,7 +4419,7 @@ import { useRef as useRef21 } from "react";
|
|
|
4386
4419
|
import { transformFunctionsPropTypeUtil, transformPropTypeUtil } from "@elementor/editor-props";
|
|
4387
4420
|
import { AdjustmentsIcon as AdjustmentsIcon2, InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
4388
4421
|
import { bindTrigger as bindTrigger4, Box as Box16, IconButton as IconButton7, Typography as Typography5, usePopupState as usePopupState6 } from "@elementor/ui";
|
|
4389
|
-
import { __ as
|
|
4422
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
4390
4423
|
|
|
4391
4424
|
// src/controls/transform-control/initial-values.ts
|
|
4392
4425
|
import {
|
|
@@ -4444,33 +4477,33 @@ import * as React77 from "react";
|
|
|
4444
4477
|
import { PopoverHeader as PopoverHeader3 } from "@elementor/editor-ui";
|
|
4445
4478
|
import { AdjustmentsIcon } from "@elementor/icons";
|
|
4446
4479
|
import { bindPopover as bindPopover5, Box as Box13, Divider as Divider4, Popover as Popover5 } from "@elementor/ui";
|
|
4447
|
-
import { __ as
|
|
4480
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
4448
4481
|
|
|
4449
4482
|
// src/controls/transform-control/transform-base-controls/children-perspective-control.tsx
|
|
4450
4483
|
import * as React75 from "react";
|
|
4451
4484
|
import { perspectiveOriginPropTypeUtil } from "@elementor/editor-props";
|
|
4452
4485
|
import { Grid as Grid20, Stack as Stack14 } from "@elementor/ui";
|
|
4453
|
-
import { __ as
|
|
4486
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
4454
4487
|
var ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
4455
4488
|
var PERSPECTIVE_CONTROL_FIELD = {
|
|
4456
|
-
label:
|
|
4489
|
+
label: __35("Perspective", "elementor"),
|
|
4457
4490
|
bind: "perspective",
|
|
4458
4491
|
units: ["px", "em", "rem", "vw", "vh"]
|
|
4459
4492
|
};
|
|
4460
4493
|
var CHILDREN_PERSPECTIVE_FIELDS = [
|
|
4461
4494
|
{
|
|
4462
|
-
label:
|
|
4495
|
+
label: __35("Origin X", "elementor"),
|
|
4463
4496
|
bind: "x",
|
|
4464
4497
|
units: ORIGIN_UNITS
|
|
4465
4498
|
},
|
|
4466
4499
|
{
|
|
4467
|
-
label:
|
|
4500
|
+
label: __35("Origin Y", "elementor"),
|
|
4468
4501
|
bind: "y",
|
|
4469
4502
|
units: ORIGIN_UNITS
|
|
4470
4503
|
}
|
|
4471
4504
|
];
|
|
4472
4505
|
var ChildrenPerspectiveControl = () => {
|
|
4473
|
-
return /* @__PURE__ */ React75.createElement(Stack14, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React75.createElement(ControlFormLabel, null,
|
|
4506
|
+
return /* @__PURE__ */ React75.createElement(Stack14, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React75.createElement(ControlFormLabel, null, __35("Children perspective", "elementor")), /* @__PURE__ */ React75.createElement(PerspectiveControl, null), /* @__PURE__ */ React75.createElement(PerspectiveOriginControl, null));
|
|
4474
4507
|
};
|
|
4475
4508
|
var PerspectiveControl = () => /* @__PURE__ */ React75.createElement(PropKeyProvider, { bind: "perspective" }, /* @__PURE__ */ React75.createElement(ControlFields, { control: PERSPECTIVE_CONTROL_FIELD, key: PERSPECTIVE_CONTROL_FIELD.bind }));
|
|
4476
4509
|
var PerspectiveOriginControl = () => /* @__PURE__ */ React75.createElement(PropKeyProvider, { bind: "perspective-origin" }, /* @__PURE__ */ React75.createElement(PerspectiveOriginControlProvider, null));
|
|
@@ -4487,28 +4520,28 @@ var ControlFields = ({ control }) => {
|
|
|
4487
4520
|
import * as React76 from "react";
|
|
4488
4521
|
import { transformOriginPropTypeUtil } from "@elementor/editor-props";
|
|
4489
4522
|
import { Grid as Grid21, Stack as Stack15 } from "@elementor/ui";
|
|
4490
|
-
import { __ as
|
|
4523
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
4491
4524
|
var TRANSFORM_ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
4492
4525
|
var TRANSFORM_ORIGIN_UNITS_Z_AXIS = TRANSFORM_ORIGIN_UNITS.filter((unit) => unit !== "%");
|
|
4493
4526
|
var TRANSFORM_ORIGIN_FIELDS = [
|
|
4494
4527
|
{
|
|
4495
|
-
label:
|
|
4528
|
+
label: __36("Origin X", "elementor"),
|
|
4496
4529
|
bind: "x",
|
|
4497
4530
|
units: TRANSFORM_ORIGIN_UNITS
|
|
4498
4531
|
},
|
|
4499
4532
|
{
|
|
4500
|
-
label:
|
|
4533
|
+
label: __36("Origin Y", "elementor"),
|
|
4501
4534
|
bind: "y",
|
|
4502
4535
|
units: TRANSFORM_ORIGIN_UNITS
|
|
4503
4536
|
},
|
|
4504
4537
|
{
|
|
4505
|
-
label:
|
|
4538
|
+
label: __36("Origin Z", "elementor"),
|
|
4506
4539
|
bind: "z",
|
|
4507
4540
|
units: TRANSFORM_ORIGIN_UNITS_Z_AXIS
|
|
4508
4541
|
}
|
|
4509
4542
|
];
|
|
4510
4543
|
var TransformOriginControl = () => {
|
|
4511
|
-
return /* @__PURE__ */ React76.createElement(Stack15, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React76.createElement(ControlFormLabel, null,
|
|
4544
|
+
return /* @__PURE__ */ React76.createElement(Stack15, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React76.createElement(ControlFormLabel, null, __36("Transform", "elementor")), TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React76.createElement(ControlFields2, { control, key: control.bind })));
|
|
4512
4545
|
};
|
|
4513
4546
|
var ControlFields2 = ({ control }) => {
|
|
4514
4547
|
const context = useBoundProp(transformOriginPropTypeUtil);
|
|
@@ -4544,7 +4577,7 @@ var TransformBaseControl = ({
|
|
|
4544
4577
|
/* @__PURE__ */ React77.createElement(
|
|
4545
4578
|
PopoverHeader3,
|
|
4546
4579
|
{
|
|
4547
|
-
title:
|
|
4580
|
+
title: __37("Base Transform", "elementor"),
|
|
4548
4581
|
onClose: popupState.close,
|
|
4549
4582
|
icon: /* @__PURE__ */ React77.createElement(AdjustmentsIcon, { fontSize: SIZE7 })
|
|
4550
4583
|
}
|
|
@@ -4557,7 +4590,7 @@ var TransformBaseControl = ({
|
|
|
4557
4590
|
// src/controls/transform-control/transform-content.tsx
|
|
4558
4591
|
import * as React84 from "react";
|
|
4559
4592
|
import { Box as Box14, Tab as Tab2, TabPanel as TabPanel2, Tabs as Tabs2 } from "@elementor/ui";
|
|
4560
|
-
import { __ as
|
|
4593
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4561
4594
|
|
|
4562
4595
|
// src/controls/transform-control/functions/move.tsx
|
|
4563
4596
|
import * as React79 from "react";
|
|
@@ -4565,20 +4598,22 @@ import { useRef as useRef16 } from "react";
|
|
|
4565
4598
|
import { moveTransformPropTypeUtil } from "@elementor/editor-props";
|
|
4566
4599
|
import { ArrowDownLeftIcon, ArrowDownSmallIcon, ArrowRightIcon } from "@elementor/icons";
|
|
4567
4600
|
import { Grid as Grid23 } from "@elementor/ui";
|
|
4568
|
-
import { __ as
|
|
4601
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
4569
4602
|
|
|
4570
4603
|
// src/controls/transform-control/functions/axis-row.tsx
|
|
4571
4604
|
import * as React78 from "react";
|
|
4572
4605
|
import { Grid as Grid22 } from "@elementor/ui";
|
|
4573
4606
|
var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "angle" }) => {
|
|
4574
|
-
|
|
4607
|
+
const safeId = label.replace(/\s+/g, "-").toLowerCase();
|
|
4608
|
+
return /* @__PURE__ */ React78.createElement(Grid22, { item: true, xs: 12 }, /* @__PURE__ */ React78.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React78.createElement(Grid22, { item: true, xs: 6 }, /* @__PURE__ */ React78.createElement(ControlLabel, { htmlFor: safeId }, label)), /* @__PURE__ */ React78.createElement(Grid22, { item: true, xs: 6 }, /* @__PURE__ */ React78.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React78.createElement(
|
|
4575
4609
|
SizeControl,
|
|
4576
4610
|
{
|
|
4577
4611
|
anchorRef,
|
|
4578
4612
|
startIcon,
|
|
4579
4613
|
units: units2,
|
|
4580
4614
|
variant,
|
|
4581
|
-
min: -Number.MAX_SAFE_INTEGER
|
|
4615
|
+
min: -Number.MAX_SAFE_INTEGER,
|
|
4616
|
+
id: safeId
|
|
4582
4617
|
}
|
|
4583
4618
|
)))));
|
|
4584
4619
|
};
|
|
@@ -4586,19 +4621,19 @@ var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "an
|
|
|
4586
4621
|
// src/controls/transform-control/functions/move.tsx
|
|
4587
4622
|
var moveAxisControls = [
|
|
4588
4623
|
{
|
|
4589
|
-
label:
|
|
4624
|
+
label: __38("Move X", "elementor"),
|
|
4590
4625
|
bind: "x",
|
|
4591
4626
|
startIcon: /* @__PURE__ */ React79.createElement(ArrowRightIcon, { fontSize: "tiny" }),
|
|
4592
4627
|
units: ["px", "%", "em", "rem", "vw"]
|
|
4593
4628
|
},
|
|
4594
4629
|
{
|
|
4595
|
-
label:
|
|
4630
|
+
label: __38("Move Y", "elementor"),
|
|
4596
4631
|
bind: "y",
|
|
4597
4632
|
startIcon: /* @__PURE__ */ React79.createElement(ArrowDownSmallIcon, { fontSize: "tiny" }),
|
|
4598
4633
|
units: ["px", "%", "em", "rem", "vh"]
|
|
4599
4634
|
},
|
|
4600
4635
|
{
|
|
4601
|
-
label:
|
|
4636
|
+
label: __38("Move Z", "elementor"),
|
|
4602
4637
|
bind: "z",
|
|
4603
4638
|
startIcon: /* @__PURE__ */ React79.createElement(ArrowDownLeftIcon, { fontSize: "tiny" }),
|
|
4604
4639
|
units: ["px", "%", "em", "rem", "vw", "vh"]
|
|
@@ -4625,20 +4660,20 @@ import { useRef as useRef17 } from "react";
|
|
|
4625
4660
|
import { rotateTransformPropTypeUtil as rotateTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
4626
4661
|
import { Arrow360Icon, RotateClockwiseIcon } from "@elementor/icons";
|
|
4627
4662
|
import { Grid as Grid24 } from "@elementor/ui";
|
|
4628
|
-
import { __ as
|
|
4663
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4629
4664
|
var rotateAxisControls = [
|
|
4630
4665
|
{
|
|
4631
|
-
label:
|
|
4666
|
+
label: __39("Rotate X", "elementor"),
|
|
4632
4667
|
bind: "x",
|
|
4633
4668
|
startIcon: /* @__PURE__ */ React80.createElement(Arrow360Icon, { fontSize: "tiny" })
|
|
4634
4669
|
},
|
|
4635
4670
|
{
|
|
4636
|
-
label:
|
|
4671
|
+
label: __39("Rotate Y", "elementor"),
|
|
4637
4672
|
bind: "y",
|
|
4638
4673
|
startIcon: /* @__PURE__ */ React80.createElement(Arrow360Icon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
|
|
4639
4674
|
},
|
|
4640
4675
|
{
|
|
4641
|
-
label:
|
|
4676
|
+
label: __39("Rotate Z", "elementor"),
|
|
4642
4677
|
bind: "z",
|
|
4643
4678
|
startIcon: /* @__PURE__ */ React80.createElement(RotateClockwiseIcon, { fontSize: "tiny" })
|
|
4644
4679
|
}
|
|
@@ -4664,7 +4699,7 @@ import { useRef as useRef18 } from "react";
|
|
|
4664
4699
|
import { scaleTransformPropTypeUtil as scaleTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
4665
4700
|
import { ArrowDownLeftIcon as ArrowDownLeftIcon2, ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
4666
4701
|
import { Grid as Grid26 } from "@elementor/ui";
|
|
4667
|
-
import { __ as
|
|
4702
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4668
4703
|
|
|
4669
4704
|
// src/controls/transform-control/functions/scale-axis-row.tsx
|
|
4670
4705
|
import * as React81 from "react";
|
|
@@ -4676,17 +4711,17 @@ var ScaleAxisRow = ({ label, bind, startIcon, anchorRef }) => {
|
|
|
4676
4711
|
// src/controls/transform-control/functions/scale.tsx
|
|
4677
4712
|
var scaleAxisControls = [
|
|
4678
4713
|
{
|
|
4679
|
-
label:
|
|
4714
|
+
label: __40("Scale X", "elementor"),
|
|
4680
4715
|
bind: "x",
|
|
4681
4716
|
startIcon: /* @__PURE__ */ React82.createElement(ArrowRightIcon2, { fontSize: "tiny" })
|
|
4682
4717
|
},
|
|
4683
4718
|
{
|
|
4684
|
-
label:
|
|
4719
|
+
label: __40("Scale Y", "elementor"),
|
|
4685
4720
|
bind: "y",
|
|
4686
4721
|
startIcon: /* @__PURE__ */ React82.createElement(ArrowDownSmallIcon2, { fontSize: "tiny" })
|
|
4687
4722
|
},
|
|
4688
4723
|
{
|
|
4689
|
-
label:
|
|
4724
|
+
label: __40("Scale Z", "elementor"),
|
|
4690
4725
|
bind: "z",
|
|
4691
4726
|
startIcon: /* @__PURE__ */ React82.createElement(ArrowDownLeftIcon2, { fontSize: "tiny" })
|
|
4692
4727
|
}
|
|
@@ -4703,15 +4738,15 @@ import { useRef as useRef19 } from "react";
|
|
|
4703
4738
|
import { skewTransformPropTypeUtil as skewTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
4704
4739
|
import { ArrowLeftIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4705
4740
|
import { Grid as Grid27 } from "@elementor/ui";
|
|
4706
|
-
import { __ as
|
|
4741
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4707
4742
|
var skewAxisControls = [
|
|
4708
4743
|
{
|
|
4709
|
-
label:
|
|
4744
|
+
label: __41("Skew X", "elementor"),
|
|
4710
4745
|
bind: "x",
|
|
4711
4746
|
startIcon: /* @__PURE__ */ React83.createElement(ArrowRightIcon3, { fontSize: "tiny" })
|
|
4712
4747
|
},
|
|
4713
4748
|
{
|
|
4714
|
-
label:
|
|
4749
|
+
label: __41("Skew Y", "elementor"),
|
|
4715
4750
|
bind: "y",
|
|
4716
4751
|
startIcon: /* @__PURE__ */ React83.createElement(ArrowLeftIcon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
|
|
4717
4752
|
}
|
|
@@ -4836,12 +4871,12 @@ var TransformContent = () => {
|
|
|
4836
4871
|
}
|
|
4837
4872
|
},
|
|
4838
4873
|
...getTabsProps(),
|
|
4839
|
-
"aria-label":
|
|
4874
|
+
"aria-label": __42("Transform", "elementor")
|
|
4840
4875
|
},
|
|
4841
|
-
/* @__PURE__ */ React84.createElement(Tab2, { label:
|
|
4842
|
-
/* @__PURE__ */ React84.createElement(Tab2, { label:
|
|
4843
|
-
/* @__PURE__ */ React84.createElement(Tab2, { label:
|
|
4844
|
-
/* @__PURE__ */ React84.createElement(Tab2, { label:
|
|
4876
|
+
/* @__PURE__ */ React84.createElement(Tab2, { label: __42("Move", "elementor"), ...getTabProps(TransformFunctionKeys.move) }),
|
|
4877
|
+
/* @__PURE__ */ React84.createElement(Tab2, { label: __42("Scale", "elementor"), ...getTabProps(TransformFunctionKeys.scale) }),
|
|
4878
|
+
/* @__PURE__ */ React84.createElement(Tab2, { label: __42("Rotate", "elementor"), ...getTabProps(TransformFunctionKeys.rotate) }),
|
|
4879
|
+
/* @__PURE__ */ React84.createElement(Tab2, { label: __42("Skew", "elementor"), ...getTabProps(TransformFunctionKeys.skew) })
|
|
4845
4880
|
)), /* @__PURE__ */ React84.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.move) }, /* @__PURE__ */ React84.createElement(Move, null)), /* @__PURE__ */ React84.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.scale) }, /* @__PURE__ */ React84.createElement(Scale, null)), /* @__PURE__ */ React84.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.rotate) }, /* @__PURE__ */ React84.createElement(Rotate, null)), /* @__PURE__ */ React84.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.skew) }, /* @__PURE__ */ React84.createElement(Skew, null))));
|
|
4846
4881
|
};
|
|
4847
4882
|
|
|
@@ -4866,7 +4901,7 @@ var TransformIcon = ({ value }) => {
|
|
|
4866
4901
|
// src/controls/transform-control/transform-label.tsx
|
|
4867
4902
|
import * as React86 from "react";
|
|
4868
4903
|
import { Box as Box15 } from "@elementor/ui";
|
|
4869
|
-
import { __ as
|
|
4904
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4870
4905
|
var transformMoveValue = (value) => Object.values(value).map((axis) => {
|
|
4871
4906
|
const size = axis?.value?.size ?? defaultValues.move.size;
|
|
4872
4907
|
const unit = axis?.value?.unit ?? defaultValues.move.unit;
|
|
@@ -4887,13 +4922,13 @@ var TransformLabel = (props) => {
|
|
|
4887
4922
|
const { $$type, value } = props.value;
|
|
4888
4923
|
switch ($$type) {
|
|
4889
4924
|
case TransformFunctionKeys.move:
|
|
4890
|
-
return /* @__PURE__ */ React86.createElement(Label2, { label:
|
|
4925
|
+
return /* @__PURE__ */ React86.createElement(Label2, { label: __43("Move", "elementor"), value: transformMoveValue(value) });
|
|
4891
4926
|
case TransformFunctionKeys.scale:
|
|
4892
|
-
return /* @__PURE__ */ React86.createElement(Label2, { label:
|
|
4927
|
+
return /* @__PURE__ */ React86.createElement(Label2, { label: __43("Scale", "elementor"), value: transformScaleValue(value) });
|
|
4893
4928
|
case TransformFunctionKeys.rotate:
|
|
4894
|
-
return /* @__PURE__ */ React86.createElement(Label2, { label:
|
|
4929
|
+
return /* @__PURE__ */ React86.createElement(Label2, { label: __43("Rotate", "elementor"), value: transformRotateValue(value) });
|
|
4895
4930
|
case TransformFunctionKeys.skew:
|
|
4896
|
-
return /* @__PURE__ */ React86.createElement(Label2, { label:
|
|
4931
|
+
return /* @__PURE__ */ React86.createElement(Label2, { label: __43("Skew", "elementor"), value: transformSkewValue(value) });
|
|
4897
4932
|
default:
|
|
4898
4933
|
return "";
|
|
4899
4934
|
}
|
|
@@ -4924,7 +4959,7 @@ var ToolTip = /* @__PURE__ */ React87.createElement(
|
|
|
4924
4959
|
sx: { display: "flex", gap: 0.5, p: 2, width: 320, borderRadius: 1 }
|
|
4925
4960
|
},
|
|
4926
4961
|
/* @__PURE__ */ React87.createElement(InfoCircleFilledIcon2, { sx: { color: "secondary.main" } }),
|
|
4927
|
-
/* @__PURE__ */ React87.createElement(Typography5, { variant: "body2", color: "text.secondary", fontSize: "14px" },
|
|
4962
|
+
/* @__PURE__ */ React87.createElement(Typography5, { variant: "body2", color: "text.secondary", fontSize: "14px" }, __44("You can use each kind of transform only once per element.", "elementor"))
|
|
4928
4963
|
);
|
|
4929
4964
|
var Repeater2 = ({ headerRef, propType }) => {
|
|
4930
4965
|
const transformFunctionsContext = useBoundProp(transformFunctionsPropTypeUtil);
|
|
@@ -4943,7 +4978,7 @@ var Repeater2 = ({ headerRef, propType }) => {
|
|
|
4943
4978
|
/* @__PURE__ */ React87.createElement(
|
|
4944
4979
|
Header,
|
|
4945
4980
|
{
|
|
4946
|
-
label:
|
|
4981
|
+
label: __44("Transform", "elementor"),
|
|
4947
4982
|
adornment: () => /* @__PURE__ */ React87.createElement(ControlAdornments, { customContext: { path: ["transform"], propType } }),
|
|
4948
4983
|
ref: headerRef
|
|
4949
4984
|
},
|
|
@@ -4952,7 +4987,8 @@ var Repeater2 = ({ headerRef, propType }) => {
|
|
|
4952
4987
|
{
|
|
4953
4988
|
disabled: shouldDisableAddItem,
|
|
4954
4989
|
tooltipContent: ToolTip,
|
|
4955
|
-
enableTooltip: shouldDisableAddItem
|
|
4990
|
+
enableTooltip: shouldDisableAddItem,
|
|
4991
|
+
ariaLabel: "transform"
|
|
4956
4992
|
}
|
|
4957
4993
|
)
|
|
4958
4994
|
),
|
|
@@ -4965,7 +5001,7 @@ var TransformBasePopoverTrigger = ({
|
|
|
4965
5001
|
repeaterBindKey
|
|
4966
5002
|
}) => {
|
|
4967
5003
|
const { bind } = useBoundProp();
|
|
4968
|
-
return bind !== repeaterBindKey ? null : /* @__PURE__ */ React87.createElement(IconButton7, { size: SIZE8, "aria-label":
|
|
5004
|
+
return bind !== repeaterBindKey ? null : /* @__PURE__ */ React87.createElement(IconButton7, { size: SIZE8, "aria-label": __44("Base Transform", "elementor"), ...bindTrigger4(popupState) }, /* @__PURE__ */ React87.createElement(AdjustmentsIcon2, { fontSize: SIZE8 }));
|
|
4969
5005
|
};
|
|
4970
5006
|
|
|
4971
5007
|
// src/controls/transition-control/transition-repeater-control.tsx
|
|
@@ -4974,7 +5010,7 @@ import { useEffect as useEffect8, useState as useState14 } from "react";
|
|
|
4974
5010
|
import { selectionSizePropTypeUtil as selectionSizePropTypeUtil2 } from "@elementor/editor-props";
|
|
4975
5011
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
4976
5012
|
import { Alert as Alert2, AlertTitle as AlertTitle2, Box as Box18, Typography as Typography6 } from "@elementor/ui";
|
|
4977
|
-
import { __ as
|
|
5013
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
4978
5014
|
|
|
4979
5015
|
// src/controls/selection-size-control.tsx
|
|
4980
5016
|
import * as React88 from "react";
|
|
@@ -5009,12 +5045,12 @@ var SelectionSizeControl = createControl(
|
|
|
5009
5045
|
);
|
|
5010
5046
|
|
|
5011
5047
|
// src/controls/transition-control/data.ts
|
|
5012
|
-
import { __ as
|
|
5048
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
5013
5049
|
var initialTransitionValue = {
|
|
5014
5050
|
selection: {
|
|
5015
5051
|
$$type: "key-value",
|
|
5016
5052
|
value: {
|
|
5017
|
-
key: { value:
|
|
5053
|
+
key: { value: __45("All properties", "elementor"), $$type: "string" },
|
|
5018
5054
|
value: { value: "all", $$type: "string" }
|
|
5019
5055
|
}
|
|
5020
5056
|
},
|
|
@@ -5022,9 +5058,9 @@ var initialTransitionValue = {
|
|
|
5022
5058
|
};
|
|
5023
5059
|
var transitionProperties = [
|
|
5024
5060
|
{
|
|
5025
|
-
label:
|
|
5061
|
+
label: __45("Default", "elementor"),
|
|
5026
5062
|
type: "category",
|
|
5027
|
-
properties: [{ label:
|
|
5063
|
+
properties: [{ label: __45("All properties", "elementor"), value: "all" }]
|
|
5028
5064
|
}
|
|
5029
5065
|
];
|
|
5030
5066
|
var transitionsItemsList = transitionProperties.map((category) => ({
|
|
@@ -5038,7 +5074,7 @@ import { useRef as useRef23 } from "react";
|
|
|
5038
5074
|
import { keyValuePropTypeUtil as keyValuePropTypeUtil2 } from "@elementor/editor-props";
|
|
5039
5075
|
import { ChevronDownIcon as ChevronDownIcon3, VariationsIcon } from "@elementor/icons";
|
|
5040
5076
|
import { bindPopover as bindPopover6, bindTrigger as bindTrigger5, Box as Box17, Popover as Popover6, UnstableTag as UnstableTag3, usePopupState as usePopupState7 } from "@elementor/ui";
|
|
5041
|
-
import { __ as
|
|
5077
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
5042
5078
|
var toTransitionSelectorValue = (label) => {
|
|
5043
5079
|
for (const category of transitionProperties) {
|
|
5044
5080
|
const property = category.properties.find((prop) => prop.label === label);
|
|
@@ -5081,7 +5117,7 @@ var TransitionSelector = ({ recentlyUsedList = [] }) => {
|
|
|
5081
5117
|
return [
|
|
5082
5118
|
first,
|
|
5083
5119
|
{
|
|
5084
|
-
label:
|
|
5120
|
+
label: __46("Recently Used", "elementor"),
|
|
5085
5121
|
items: recentItems
|
|
5086
5122
|
},
|
|
5087
5123
|
...rest
|
|
@@ -5133,7 +5169,7 @@ var TransitionSelector = ({ recentlyUsedList = [] }) => {
|
|
|
5133
5169
|
onItemChange: handleTransitionPropertyChange,
|
|
5134
5170
|
onClose: popoverState.close,
|
|
5135
5171
|
sectionWidth: 268,
|
|
5136
|
-
title:
|
|
5172
|
+
title: __46("Transition Property", "elementor"),
|
|
5137
5173
|
icon: VariationsIcon
|
|
5138
5174
|
}
|
|
5139
5175
|
)
|
|
@@ -5148,8 +5184,8 @@ var DURATION_CONFIG = {
|
|
|
5148
5184
|
};
|
|
5149
5185
|
var getSelectionSizeProps = (recentlyUsedList) => {
|
|
5150
5186
|
return {
|
|
5151
|
-
selectionLabel:
|
|
5152
|
-
sizeLabel:
|
|
5187
|
+
selectionLabel: __47("Type", "elementor"),
|
|
5188
|
+
sizeLabel: __47("Duration", "elementor"),
|
|
5153
5189
|
selectionConfig: {
|
|
5154
5190
|
component: TransitionSelector,
|
|
5155
5191
|
props: {
|
|
@@ -5186,8 +5222,8 @@ var disableAddItemTooltipContent = /* @__PURE__ */ React90.createElement(
|
|
|
5186
5222
|
color: "secondary",
|
|
5187
5223
|
icon: /* @__PURE__ */ React90.createElement(InfoCircleFilledIcon3, null)
|
|
5188
5224
|
},
|
|
5189
|
-
/* @__PURE__ */ React90.createElement(AlertTitle2, null,
|
|
5190
|
-
/* @__PURE__ */ React90.createElement(Box18, { component: "span" }, /* @__PURE__ */ React90.createElement(Typography6, { variant: "body2" },
|
|
5225
|
+
/* @__PURE__ */ React90.createElement(AlertTitle2, null, __47("Transitions", "elementor")),
|
|
5226
|
+
/* @__PURE__ */ React90.createElement(Box18, { component: "span" }, /* @__PURE__ */ React90.createElement(Typography6, { variant: "body2" }, __47("Switch to 'Normal' state to add a transition.", "elementor")))
|
|
5191
5227
|
);
|
|
5192
5228
|
var TransitionRepeaterControl = createControl(
|
|
5193
5229
|
({
|
|
@@ -5202,10 +5238,10 @@ var TransitionRepeaterControl = createControl(
|
|
|
5202
5238
|
return /* @__PURE__ */ React90.createElement(
|
|
5203
5239
|
RepeatableControl,
|
|
5204
5240
|
{
|
|
5205
|
-
label:
|
|
5206
|
-
repeaterLabel:
|
|
5241
|
+
label: __47("Transitions", "elementor"),
|
|
5242
|
+
repeaterLabel: __47("Transitions", "elementor"),
|
|
5207
5243
|
patternLabel: "${value.selection.value.key.value}: ${value.size.value.size}${value.size.value.unit}",
|
|
5208
|
-
placeholder:
|
|
5244
|
+
placeholder: __47("Empty Transition", "elementor"),
|
|
5209
5245
|
showDuplicate: false,
|
|
5210
5246
|
showToggle: true,
|
|
5211
5247
|
initialValues: initialTransitionValue,
|
|
@@ -5273,25 +5309,25 @@ var ResizeHandle = styled9(Button5)`
|
|
|
5273
5309
|
`;
|
|
5274
5310
|
|
|
5275
5311
|
// src/components/css-code-editor/css-validation.ts
|
|
5276
|
-
import { __ as
|
|
5312
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
5277
5313
|
var forbiddenPatterns = [
|
|
5278
5314
|
{
|
|
5279
5315
|
pattern: ":hover",
|
|
5280
|
-
message:
|
|
5316
|
+
message: __48(
|
|
5281
5317
|
"The use of pseudo-states is not permitted. Instead, switch to the desired pseudo state and add your custom code there.",
|
|
5282
5318
|
"elementor"
|
|
5283
5319
|
)
|
|
5284
5320
|
},
|
|
5285
5321
|
{
|
|
5286
5322
|
pattern: ":active",
|
|
5287
|
-
message:
|
|
5323
|
+
message: __48(
|
|
5288
5324
|
"The use of pseudo-states is not permitted. Instead, switch to the desired pseudo state and add your custom code there.",
|
|
5289
5325
|
"elementor"
|
|
5290
5326
|
)
|
|
5291
5327
|
},
|
|
5292
5328
|
{
|
|
5293
5329
|
pattern: "@media",
|
|
5294
|
-
message:
|
|
5330
|
+
message: __48(
|
|
5295
5331
|
"The use of @media is not permitted. Instead, switch to the desired breakpoint and add your custom code there.",
|
|
5296
5332
|
"elementor"
|
|
5297
5333
|
)
|