@elementor/editor-editing-panel 1.20.0 → 1.21.0
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/CHANGELOG.md +19 -0
- package/dist/index.js +498 -429
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +456 -380
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/components/style-sections/layout-section/align-content-field.tsx +83 -0
- package/src/components/style-sections/layout-section/layout-section.tsx +16 -10
- package/src/components/style-sections/layout-section/utils/rotated-icon.tsx +25 -10
- package/src/dynamics/components/dynamic-selection-control.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -32,12 +32,12 @@ var index_exports = {};
|
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
|
|
34
34
|
replaceControl: () => replaceControl,
|
|
35
|
-
useBoundProp: () =>
|
|
35
|
+
useBoundProp: () => import_editor_controls50.useBoundProp,
|
|
36
36
|
usePanelActions: () => usePanelActions,
|
|
37
37
|
usePanelStatus: () => usePanelStatus
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(index_exports);
|
|
40
|
-
var
|
|
40
|
+
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
41
41
|
|
|
42
42
|
// src/control-replacement.tsx
|
|
43
43
|
var import_editor_controls = require("@elementor/editor-controls");
|
|
@@ -137,7 +137,7 @@ var import_ui = require("@elementor/ui");
|
|
|
137
137
|
function MultiCombobox({
|
|
138
138
|
actions = [],
|
|
139
139
|
selected,
|
|
140
|
-
options:
|
|
140
|
+
options: options13,
|
|
141
141
|
onSelect,
|
|
142
142
|
...props
|
|
143
143
|
}) {
|
|
@@ -155,14 +155,14 @@ function MultiCombobox({
|
|
|
155
155
|
handleHomeEndKeys: true,
|
|
156
156
|
disabled: loading,
|
|
157
157
|
value: selected,
|
|
158
|
-
options:
|
|
158
|
+
options: options13,
|
|
159
159
|
renderGroup: (params) => /* @__PURE__ */ React4.createElement(Group, { ...params }),
|
|
160
160
|
renderInput: (params) => /* @__PURE__ */ React4.createElement(import_ui.TextField, { ...params }),
|
|
161
161
|
onChange: (_, selectedOrInputValue, reason) => {
|
|
162
162
|
const inputValue = selectedOrInputValue.find((option) => typeof option === "string");
|
|
163
163
|
const optionsAndActions = selectedOrInputValue.filter((option) => typeof option !== "string");
|
|
164
164
|
if (reason === "createOption") {
|
|
165
|
-
const [firstAction] = filterActions(actions, { options:
|
|
165
|
+
const [firstAction] = filterActions(actions, { options: options13, inputValue: inputValue ?? "" });
|
|
166
166
|
if (firstAction.value) {
|
|
167
167
|
return run(firstAction.apply, firstAction.value);
|
|
168
168
|
}
|
|
@@ -171,7 +171,7 @@ function MultiCombobox({
|
|
|
171
171
|
if (reason === "selectOption" && action?.value) {
|
|
172
172
|
return run(action.apply, action.value);
|
|
173
173
|
}
|
|
174
|
-
const fixedValues =
|
|
174
|
+
const fixedValues = options13.filter((option) => !!option.fixed);
|
|
175
175
|
onSelect?.([.../* @__PURE__ */ new Set([...optionsAndActions, ...fixedValues])]);
|
|
176
176
|
},
|
|
177
177
|
getOptionLabel: (option) => typeof option === "string" ? option : option.label,
|
|
@@ -229,8 +229,8 @@ function useActionRunner() {
|
|
|
229
229
|
};
|
|
230
230
|
return { run, loading };
|
|
231
231
|
}
|
|
232
|
-
function filterActions(actions, { options:
|
|
233
|
-
return actions.filter((action) => action.condition(
|
|
232
|
+
function filterActions(actions, { options: options13, inputValue }) {
|
|
233
|
+
return actions.filter((action) => action.condition(options13, inputValue)).map((action, index) => ({
|
|
234
234
|
label: action.label(inputValue),
|
|
235
235
|
value: inputValue,
|
|
236
236
|
group: action.group,
|
|
@@ -507,19 +507,19 @@ var EMPTY_OPTION = {
|
|
|
507
507
|
};
|
|
508
508
|
var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = (0, import_locations.createLocation)();
|
|
509
509
|
function CssClassSelector() {
|
|
510
|
-
const
|
|
510
|
+
const options13 = useOptions();
|
|
511
511
|
const { value: appliedIds, setValue: setAppliedIds, pushValue: pushAppliedId } = useAppliedClassesIds();
|
|
512
512
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
513
513
|
const actions = useCreateActions({ pushAppliedId, setActiveId });
|
|
514
514
|
const handleApply = useHandleApply(appliedIds, setAppliedIds);
|
|
515
|
-
const applied = useAppliedOptions(
|
|
515
|
+
const applied = useAppliedOptions(options13, appliedIds);
|
|
516
516
|
const active = applied.find((option) => option.value === activeId) ?? EMPTY_OPTION;
|
|
517
517
|
return /* @__PURE__ */ React7.createElement(import_ui4.Stack, { gap: 1, p: 2 }, /* @__PURE__ */ React7.createElement(import_ui4.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React7.createElement(import_ui4.Typography, { component: "label", variant: "caption", htmlFor: ID }, (0, import_i18n3.__)("CSS classes", "elementor")), /* @__PURE__ */ React7.createElement(import_ui4.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React7.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React7.createElement(
|
|
518
518
|
MultiCombobox,
|
|
519
519
|
{
|
|
520
520
|
id: ID,
|
|
521
521
|
size: "tiny",
|
|
522
|
-
options:
|
|
522
|
+
options: options13,
|
|
523
523
|
selected: applied,
|
|
524
524
|
onSelect: handleApply,
|
|
525
525
|
limitTags: TAGS_LIMIT,
|
|
@@ -604,8 +604,8 @@ function useCreateActions({
|
|
|
604
604
|
};
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
|
-
function useAppliedOptions(
|
|
608
|
-
const applied =
|
|
607
|
+
function useAppliedOptions(options13, appliedIds) {
|
|
608
|
+
const applied = options13.filter((option) => option.value && appliedIds.includes(option.value));
|
|
609
609
|
const hasElementsProviderStyleApplied = applied.some(
|
|
610
610
|
(option) => option.provider === import_editor_styles_repository4.ELEMENTS_STYLES_PROVIDER_KEY
|
|
611
611
|
);
|
|
@@ -661,14 +661,14 @@ function useHandleApply(appliedIds, setAppliedIds) {
|
|
|
661
661
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
662
662
|
|
|
663
663
|
// src/components/editing-panel.tsx
|
|
664
|
-
var
|
|
665
|
-
var
|
|
664
|
+
var React66 = __toESM(require("react"));
|
|
665
|
+
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
666
666
|
var import_editor_elements8 = require("@elementor/editor-elements");
|
|
667
667
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
668
|
-
var
|
|
668
|
+
var import_icons23 = require("@elementor/icons");
|
|
669
669
|
var import_session4 = require("@elementor/session");
|
|
670
|
-
var
|
|
671
|
-
var
|
|
670
|
+
var import_ui51 = require("@elementor/ui");
|
|
671
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
672
672
|
|
|
673
673
|
// src/controls-actions.ts
|
|
674
674
|
var import_menus = require("@elementor/menus");
|
|
@@ -724,10 +724,10 @@ function EditorPanelErrorFallback() {
|
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
// src/components/editing-panel-tabs.tsx
|
|
727
|
-
var
|
|
727
|
+
var React65 = __toESM(require("react"));
|
|
728
728
|
var import_react17 = require("react");
|
|
729
|
-
var
|
|
730
|
-
var
|
|
729
|
+
var import_ui50 = require("@elementor/ui");
|
|
730
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
731
731
|
|
|
732
732
|
// src/components/settings-tab.tsx
|
|
733
733
|
var React15 = __toESM(require("react"));
|
|
@@ -897,14 +897,14 @@ var Control2 = ({ control }) => {
|
|
|
897
897
|
};
|
|
898
898
|
|
|
899
899
|
// src/components/style-tab.tsx
|
|
900
|
-
var
|
|
900
|
+
var React64 = __toESM(require("react"));
|
|
901
901
|
var import_react16 = require("react");
|
|
902
902
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
903
903
|
var import_editor_props5 = require("@elementor/editor-props");
|
|
904
904
|
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
905
905
|
var import_session3 = require("@elementor/session");
|
|
906
|
-
var
|
|
907
|
-
var
|
|
906
|
+
var import_ui49 = require("@elementor/ui");
|
|
907
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
908
908
|
|
|
909
909
|
// src/contexts/styles-inheritance-context.tsx
|
|
910
910
|
var React16 = __toESM(require("react"));
|
|
@@ -1440,20 +1440,30 @@ var COUNTER_CLOCKWISE_ANGLES = {
|
|
|
1440
1440
|
"row-reverse": -180,
|
|
1441
1441
|
"column-reverse": -270
|
|
1442
1442
|
};
|
|
1443
|
-
var RotatedIcon = ({
|
|
1444
|
-
|
|
1445
|
-
|
|
1443
|
+
var RotatedIcon = ({
|
|
1444
|
+
icon: Icon,
|
|
1445
|
+
size,
|
|
1446
|
+
isClockwise = true,
|
|
1447
|
+
offset = 0,
|
|
1448
|
+
disableRotationForReversed = false
|
|
1449
|
+
}) => {
|
|
1450
|
+
const rotate = (0, import_react11.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
1451
|
+
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
1446
1452
|
return /* @__PURE__ */ React25.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
1447
1453
|
};
|
|
1448
|
-
var useGetTargetAngle = (isClockwise, offset, existingRef) => {
|
|
1454
|
+
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
1449
1455
|
const [direction] = useStylesField("flex-direction");
|
|
1450
1456
|
const isRtl = "rtl" === (0, import_ui18.useTheme)().direction;
|
|
1451
1457
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
1452
1458
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
1453
|
-
const
|
|
1454
|
-
const
|
|
1459
|
+
const currentDirection = direction?.value || "row";
|
|
1460
|
+
const currentAngle = existingRef ? existingRef.current * rotationMultiplier : angleMap[currentDirection] + offset;
|
|
1461
|
+
const targetAngle = angleMap[currentDirection] + offset;
|
|
1455
1462
|
const diffToTargetAngle = (targetAngle - currentAngle + 360) % 360;
|
|
1456
1463
|
const formattedDiff = (diffToTargetAngle + 180) % 360 - 180;
|
|
1464
|
+
if (disableRotationForReversed && ["row-reverse", "column-reverse"].includes(currentDirection)) {
|
|
1465
|
+
return 0;
|
|
1466
|
+
}
|
|
1457
1467
|
return (currentAngle + formattedDiff) * rotationMultiplier;
|
|
1458
1468
|
};
|
|
1459
1469
|
|
|
@@ -1591,10 +1601,10 @@ var EffectsSection = () => {
|
|
|
1591
1601
|
};
|
|
1592
1602
|
|
|
1593
1603
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
1594
|
-
var
|
|
1595
|
-
var
|
|
1604
|
+
var React41 = __toESM(require("react"));
|
|
1605
|
+
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
1596
1606
|
var import_editor_elements6 = require("@elementor/editor-elements");
|
|
1597
|
-
var
|
|
1607
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
1598
1608
|
|
|
1599
1609
|
// src/hooks/use-computed-style.ts
|
|
1600
1610
|
var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
|
|
@@ -1621,17 +1631,18 @@ function useComputedStyle(elementId) {
|
|
|
1621
1631
|
);
|
|
1622
1632
|
}
|
|
1623
1633
|
|
|
1624
|
-
// src/components/style-sections/layout-section/align-
|
|
1634
|
+
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
1625
1635
|
var React31 = __toESM(require("react"));
|
|
1626
1636
|
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
1627
1637
|
var import_icons8 = require("@elementor/icons");
|
|
1628
1638
|
var import_ui21 = require("@elementor/ui");
|
|
1629
1639
|
var import_i18n11 = require("@wordpress/i18n");
|
|
1630
|
-
var StartIcon = (0, import_ui21.withDirection)(import_icons8.
|
|
1631
|
-
var EndIcon = (0, import_ui21.withDirection)(import_icons8.
|
|
1640
|
+
var StartIcon = (0, import_ui21.withDirection)(import_icons8.JustifyTopIcon);
|
|
1641
|
+
var EndIcon = (0, import_ui21.withDirection)(import_icons8.JustifyBottomIcon);
|
|
1632
1642
|
var iconProps = {
|
|
1633
1643
|
isClockwise: false,
|
|
1634
|
-
offset:
|
|
1644
|
+
offset: 0,
|
|
1645
|
+
disableRotationForReversed: true
|
|
1635
1646
|
};
|
|
1636
1647
|
var options = [
|
|
1637
1648
|
{
|
|
@@ -1643,7 +1654,7 @@ var options = [
|
|
|
1643
1654
|
{
|
|
1644
1655
|
value: "center",
|
|
1645
1656
|
label: (0, import_i18n11.__)("Center", "elementor"),
|
|
1646
|
-
renderContent: ({ size }) => /* @__PURE__ */ React31.createElement(RotatedIcon, { icon: import_icons8.
|
|
1657
|
+
renderContent: ({ size }) => /* @__PURE__ */ React31.createElement(RotatedIcon, { icon: import_icons8.JustifyCenterIcon, size, ...iconProps }),
|
|
1647
1658
|
showTooltip: true
|
|
1648
1659
|
},
|
|
1649
1660
|
{
|
|
@@ -1653,18 +1664,30 @@ var options = [
|
|
|
1653
1664
|
showTooltip: true
|
|
1654
1665
|
},
|
|
1655
1666
|
{
|
|
1656
|
-
value: "
|
|
1657
|
-
label: (0, import_i18n11.__)("
|
|
1658
|
-
renderContent: ({ size }) => /* @__PURE__ */ React31.createElement(RotatedIcon, { icon: import_icons8.
|
|
1667
|
+
value: "space-between",
|
|
1668
|
+
label: (0, import_i18n11.__)("Space between", "elementor"),
|
|
1669
|
+
renderContent: ({ size }) => /* @__PURE__ */ React31.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
1670
|
+
showTooltip: true
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
value: "space-around",
|
|
1674
|
+
label: (0, import_i18n11.__)("Space around", "elementor"),
|
|
1675
|
+
renderContent: ({ size }) => /* @__PURE__ */ React31.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
1676
|
+
showTooltip: true
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
value: "space-evenly",
|
|
1680
|
+
label: (0, import_i18n11.__)("Space evenly", "elementor"),
|
|
1681
|
+
renderContent: ({ size }) => /* @__PURE__ */ React31.createElement(RotatedIcon, { icon: import_icons8.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
1659
1682
|
showTooltip: true
|
|
1660
1683
|
}
|
|
1661
1684
|
];
|
|
1662
|
-
var
|
|
1685
|
+
var AlignContentField = () => {
|
|
1663
1686
|
const { isSiteRtl } = useDirection();
|
|
1664
|
-
return /* @__PURE__ */ React31.createElement(import_ui21.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React31.createElement(import_ui21.ThemeProvider, null, /* @__PURE__ */ React31.createElement(StylesField, { bind: "align-
|
|
1687
|
+
return /* @__PURE__ */ React31.createElement(import_ui21.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React31.createElement(import_ui21.ThemeProvider, null, /* @__PURE__ */ React31.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React31.createElement(import_ui21.Stack, { gap: 1 }, /* @__PURE__ */ React31.createElement(import_editor_controls14.ControlLabel, null, (0, import_i18n11.__)("Align content", "elementor")), /* @__PURE__ */ React31.createElement(import_editor_controls14.ToggleControl, { options, fullWidth: true })))));
|
|
1665
1688
|
};
|
|
1666
1689
|
|
|
1667
|
-
// src/components/style-sections/layout-section/align-
|
|
1690
|
+
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
1668
1691
|
var React32 = __toESM(require("react"));
|
|
1669
1692
|
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
1670
1693
|
var import_icons9 = require("@elementor/icons");
|
|
@@ -1702,96 +1725,139 @@ var options2 = [
|
|
|
1702
1725
|
showTooltip: true
|
|
1703
1726
|
}
|
|
1704
1727
|
];
|
|
1705
|
-
var
|
|
1728
|
+
var AlignItemsField = () => {
|
|
1706
1729
|
const { isSiteRtl } = useDirection();
|
|
1707
|
-
return /* @__PURE__ */ React32.createElement(import_ui22.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React32.createElement(import_ui22.ThemeProvider, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "align-
|
|
1730
|
+
return /* @__PURE__ */ React32.createElement(import_ui22.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React32.createElement(import_ui22.ThemeProvider, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React32.createElement(import_ui22.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React32.createElement(import_ui22.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React32.createElement(import_editor_controls15.ControlLabel, null, (0, import_i18n12.__)("Align items", "elementor"))), /* @__PURE__ */ React32.createElement(import_ui22.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React32.createElement(import_editor_controls15.ToggleControl, { options: options2 }))))));
|
|
1708
1731
|
};
|
|
1709
1732
|
|
|
1710
|
-
// src/components/style-sections/layout-section/
|
|
1733
|
+
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
1711
1734
|
var React33 = __toESM(require("react"));
|
|
1712
1735
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
1736
|
+
var import_icons10 = require("@elementor/icons");
|
|
1713
1737
|
var import_ui23 = require("@elementor/ui");
|
|
1714
1738
|
var import_i18n13 = require("@wordpress/i18n");
|
|
1739
|
+
var StartIcon3 = (0, import_ui23.withDirection)(import_icons10.LayoutAlignLeftIcon);
|
|
1740
|
+
var EndIcon3 = (0, import_ui23.withDirection)(import_icons10.LayoutAlignRightIcon);
|
|
1741
|
+
var iconProps3 = {
|
|
1742
|
+
isClockwise: false,
|
|
1743
|
+
offset: 90
|
|
1744
|
+
};
|
|
1745
|
+
var options3 = [
|
|
1746
|
+
{
|
|
1747
|
+
value: "start",
|
|
1748
|
+
label: (0, import_i18n13.__)("Start", "elementor"),
|
|
1749
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: StartIcon3, size, ...iconProps3 }),
|
|
1750
|
+
showTooltip: true
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
value: "center",
|
|
1754
|
+
label: (0, import_i18n13.__)("Center", "elementor"),
|
|
1755
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: import_icons10.LayoutAlignCenterIcon, size, ...iconProps3 }),
|
|
1756
|
+
showTooltip: true
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
value: "end",
|
|
1760
|
+
label: (0, import_i18n13.__)("End", "elementor"),
|
|
1761
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: EndIcon3, size, ...iconProps3 }),
|
|
1762
|
+
showTooltip: true
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
value: "stretch",
|
|
1766
|
+
label: (0, import_i18n13.__)("Stretch", "elementor"),
|
|
1767
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: import_icons10.LayoutDistributeVerticalIcon, size, ...iconProps3 }),
|
|
1768
|
+
showTooltip: true
|
|
1769
|
+
}
|
|
1770
|
+
];
|
|
1771
|
+
var AlignSelfChild = () => {
|
|
1772
|
+
const { isSiteRtl } = useDirection();
|
|
1773
|
+
return /* @__PURE__ */ React33.createElement(import_ui23.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React33.createElement(import_ui23.ThemeProvider, null, /* @__PURE__ */ React33.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React33.createElement(import_ui23.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React33.createElement(import_ui23.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React33.createElement(import_editor_controls16.ControlLabel, null, (0, import_i18n13.__)("Align self", "elementor"))), /* @__PURE__ */ React33.createElement(import_ui23.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React33.createElement(import_editor_controls16.ToggleControl, { options: options3 }))))));
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
// src/components/style-sections/layout-section/display-field.tsx
|
|
1777
|
+
var React34 = __toESM(require("react"));
|
|
1778
|
+
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
1779
|
+
var import_ui24 = require("@elementor/ui");
|
|
1780
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
1715
1781
|
var DisplayField = () => {
|
|
1716
|
-
const
|
|
1782
|
+
const options13 = [
|
|
1717
1783
|
{
|
|
1718
1784
|
value: "block",
|
|
1719
|
-
renderContent: () => (0,
|
|
1720
|
-
label: (0,
|
|
1785
|
+
renderContent: () => (0, import_i18n14.__)("Block", "elementor"),
|
|
1786
|
+
label: (0, import_i18n14.__)("Block", "elementor"),
|
|
1721
1787
|
showTooltip: true
|
|
1722
1788
|
},
|
|
1723
1789
|
{
|
|
1724
1790
|
value: "flex",
|
|
1725
|
-
renderContent: () => (0,
|
|
1726
|
-
label: (0,
|
|
1791
|
+
renderContent: () => (0, import_i18n14.__)("Flex", "elementor"),
|
|
1792
|
+
label: (0, import_i18n14.__)("Flex", "elementor"),
|
|
1727
1793
|
showTooltip: true
|
|
1728
1794
|
},
|
|
1729
1795
|
{
|
|
1730
1796
|
value: "inline-block",
|
|
1731
|
-
renderContent: () => (0,
|
|
1732
|
-
label: (0,
|
|
1797
|
+
renderContent: () => (0, import_i18n14.__)("In-blk", "elementor"),
|
|
1798
|
+
label: (0, import_i18n14.__)("Inline-block", "elementor"),
|
|
1733
1799
|
showTooltip: true
|
|
1734
1800
|
},
|
|
1735
1801
|
{
|
|
1736
1802
|
value: "inline-flex",
|
|
1737
|
-
renderContent: () => (0,
|
|
1738
|
-
label: (0,
|
|
1803
|
+
renderContent: () => (0, import_i18n14.__)("In-flx", "elementor"),
|
|
1804
|
+
label: (0, import_i18n14.__)("Inline-flex", "elementor"),
|
|
1739
1805
|
showTooltip: true
|
|
1740
1806
|
}
|
|
1741
1807
|
];
|
|
1742
|
-
return /* @__PURE__ */
|
|
1808
|
+
return /* @__PURE__ */ React34.createElement(StylesField, { bind: "display" }, /* @__PURE__ */ React34.createElement(import_ui24.Stack, { gap: 0.75 }, /* @__PURE__ */ React34.createElement(import_editor_controls17.ControlLabel, null, (0, import_i18n14.__)("Display", "elementor")), /* @__PURE__ */ React34.createElement(import_editor_controls17.ToggleControl, { options: options13, fullWidth: true })));
|
|
1743
1809
|
};
|
|
1744
1810
|
|
|
1745
1811
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
1746
|
-
var
|
|
1747
|
-
var
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1750
|
-
var
|
|
1751
|
-
var
|
|
1812
|
+
var React35 = __toESM(require("react"));
|
|
1813
|
+
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
1814
|
+
var import_icons11 = require("@elementor/icons");
|
|
1815
|
+
var import_ui25 = require("@elementor/ui");
|
|
1816
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
1817
|
+
var options4 = [
|
|
1752
1818
|
{
|
|
1753
1819
|
value: "row",
|
|
1754
|
-
label: (0,
|
|
1820
|
+
label: (0, import_i18n15.__)("Row", "elementor"),
|
|
1755
1821
|
renderContent: ({ size }) => {
|
|
1756
|
-
const
|
|
1757
|
-
return /* @__PURE__ */
|
|
1822
|
+
const StartIcon6 = (0, import_ui25.withDirection)(import_icons11.ArrowRightIcon);
|
|
1823
|
+
return /* @__PURE__ */ React35.createElement(StartIcon6, { fontSize: size });
|
|
1758
1824
|
},
|
|
1759
1825
|
showTooltip: true
|
|
1760
1826
|
},
|
|
1761
1827
|
{
|
|
1762
1828
|
value: "column",
|
|
1763
|
-
label: (0,
|
|
1764
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1829
|
+
label: (0, import_i18n15.__)("Column", "elementor"),
|
|
1830
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
|
|
1765
1831
|
showTooltip: true
|
|
1766
1832
|
},
|
|
1767
1833
|
{
|
|
1768
1834
|
value: "row-reverse",
|
|
1769
|
-
label: (0,
|
|
1835
|
+
label: (0, import_i18n15.__)("Reversed row", "elementor"),
|
|
1770
1836
|
renderContent: ({ size }) => {
|
|
1771
|
-
const
|
|
1772
|
-
return /* @__PURE__ */
|
|
1837
|
+
const EndIcon6 = (0, import_ui25.withDirection)(import_icons11.ArrowLeftIcon);
|
|
1838
|
+
return /* @__PURE__ */ React35.createElement(EndIcon6, { fontSize: size });
|
|
1773
1839
|
},
|
|
1774
1840
|
showTooltip: true
|
|
1775
1841
|
},
|
|
1776
1842
|
{
|
|
1777
1843
|
value: "column-reverse",
|
|
1778
|
-
label: (0,
|
|
1779
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1844
|
+
label: (0, import_i18n15.__)("Reversed column", "elementor"),
|
|
1845
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
|
|
1780
1846
|
showTooltip: true
|
|
1781
1847
|
}
|
|
1782
1848
|
];
|
|
1783
1849
|
var FlexDirectionField = () => {
|
|
1784
1850
|
const { isSiteRtl } = useDirection();
|
|
1785
|
-
return /* @__PURE__ */
|
|
1851
|
+
return /* @__PURE__ */ React35.createElement(import_ui25.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React35.createElement(import_ui25.ThemeProvider, null, /* @__PURE__ */ React35.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React35.createElement(import_ui25.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React35.createElement(import_ui25.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React35.createElement(import_editor_controls18.ControlLabel, null, (0, import_i18n15.__)("Direction", "elementor"))), /* @__PURE__ */ React35.createElement(import_ui25.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React35.createElement(import_editor_controls18.ToggleControl, { options: options4 }))))));
|
|
1786
1852
|
};
|
|
1787
1853
|
|
|
1788
1854
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
1789
|
-
var
|
|
1855
|
+
var React36 = __toESM(require("react"));
|
|
1790
1856
|
var import_react12 = require("react");
|
|
1791
|
-
var
|
|
1792
|
-
var
|
|
1793
|
-
var
|
|
1794
|
-
var
|
|
1857
|
+
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
1858
|
+
var import_icons12 = require("@elementor/icons");
|
|
1859
|
+
var import_ui26 = require("@elementor/ui");
|
|
1860
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
1795
1861
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
1796
1862
|
var LAST_DEFAULT_VALUE = 99999;
|
|
1797
1863
|
var FIRST = "first";
|
|
@@ -1804,20 +1870,20 @@ var orderValueMap = {
|
|
|
1804
1870
|
var items = [
|
|
1805
1871
|
{
|
|
1806
1872
|
value: FIRST,
|
|
1807
|
-
label: (0,
|
|
1808
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1873
|
+
label: (0, import_i18n16.__)("First", "elementor"),
|
|
1874
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
1809
1875
|
showTooltip: true
|
|
1810
1876
|
},
|
|
1811
1877
|
{
|
|
1812
1878
|
value: LAST,
|
|
1813
|
-
label: (0,
|
|
1814
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1879
|
+
label: (0, import_i18n16.__)("Last", "elementor"),
|
|
1880
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
1815
1881
|
showTooltip: true
|
|
1816
1882
|
},
|
|
1817
1883
|
{
|
|
1818
1884
|
value: CUSTOM,
|
|
1819
|
-
label: (0,
|
|
1820
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1885
|
+
label: (0, import_i18n16.__)("Custom", "elementor"),
|
|
1886
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(import_icons12.PencilIcon, { fontSize: size }),
|
|
1821
1887
|
showTooltip: true
|
|
1822
1888
|
}
|
|
1823
1889
|
];
|
|
@@ -1832,16 +1898,16 @@ var FlexOrderField = () => {
|
|
|
1832
1898
|
}
|
|
1833
1899
|
setOrder({ $$type: "number", value: orderValueMap[group] });
|
|
1834
1900
|
};
|
|
1835
|
-
return /* @__PURE__ */
|
|
1836
|
-
|
|
1901
|
+
return /* @__PURE__ */ React36.createElement(import_ui26.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React36.createElement(import_ui26.ThemeProvider, null, /* @__PURE__ */ React36.createElement(SectionContent, null, /* @__PURE__ */ React36.createElement(import_ui26.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React36.createElement(import_ui26.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(import_editor_controls19.ControlLabel, null, (0, import_i18n16.__)("Order", "elementor"))), /* @__PURE__ */ React36.createElement(import_ui26.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React36.createElement(
|
|
1902
|
+
import_editor_controls19.ControlToggleButtonGroup,
|
|
1837
1903
|
{
|
|
1838
1904
|
items,
|
|
1839
1905
|
value: groupControlValue,
|
|
1840
1906
|
onChange: handleToggleButtonChange,
|
|
1841
1907
|
exclusive: true
|
|
1842
1908
|
}
|
|
1843
|
-
))), CUSTOM === groupControlValue && /* @__PURE__ */
|
|
1844
|
-
|
|
1909
|
+
))), CUSTOM === groupControlValue && /* @__PURE__ */ React36.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React36.createElement(import_ui26.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React36.createElement(import_ui26.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(import_editor_controls19.ControlLabel, null, (0, import_i18n16.__)("Custom order", "elementor"))), /* @__PURE__ */ React36.createElement(import_ui26.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React36.createElement(
|
|
1910
|
+
import_editor_controls19.NumberControl,
|
|
1845
1911
|
{
|
|
1846
1912
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
1847
1913
|
max: LAST_DEFAULT_VALUE - 1,
|
|
@@ -1860,30 +1926,30 @@ var getGroupControlValue = (order) => {
|
|
|
1860
1926
|
};
|
|
1861
1927
|
|
|
1862
1928
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
1863
|
-
var
|
|
1929
|
+
var React37 = __toESM(require("react"));
|
|
1864
1930
|
var import_react13 = require("react");
|
|
1865
|
-
var
|
|
1866
|
-
var
|
|
1867
|
-
var
|
|
1868
|
-
var
|
|
1931
|
+
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
1932
|
+
var import_icons13 = require("@elementor/icons");
|
|
1933
|
+
var import_ui27 = require("@elementor/ui");
|
|
1934
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
1869
1935
|
var DEFAULT = 1;
|
|
1870
1936
|
var items2 = [
|
|
1871
1937
|
{
|
|
1872
1938
|
value: "flex-grow",
|
|
1873
|
-
label: (0,
|
|
1874
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1939
|
+
label: (0, import_i18n17.__)("Grow", "elementor"),
|
|
1940
|
+
renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(import_icons13.ExpandIcon, { fontSize: size }),
|
|
1875
1941
|
showTooltip: true
|
|
1876
1942
|
},
|
|
1877
1943
|
{
|
|
1878
1944
|
value: "flex-shrink",
|
|
1879
|
-
label: (0,
|
|
1880
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1945
|
+
label: (0, import_i18n17.__)("Shrink", "elementor"),
|
|
1946
|
+
renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(import_icons13.ShrinkIcon, { fontSize: size }),
|
|
1881
1947
|
showTooltip: true
|
|
1882
1948
|
},
|
|
1883
1949
|
{
|
|
1884
1950
|
value: "custom",
|
|
1885
|
-
label: (0,
|
|
1886
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1951
|
+
label: (0, import_i18n17.__)("Custom", "elementor"),
|
|
1952
|
+
renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
1887
1953
|
showTooltip: true
|
|
1888
1954
|
}
|
|
1889
1955
|
];
|
|
@@ -1907,17 +1973,17 @@ var FlexSizeField = () => {
|
|
|
1907
1973
|
setGrowField(null);
|
|
1908
1974
|
setShrinkField({ $$type: "number", value: DEFAULT });
|
|
1909
1975
|
};
|
|
1910
|
-
return /* @__PURE__ */
|
|
1911
|
-
|
|
1976
|
+
return /* @__PURE__ */ React37.createElement(import_ui27.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React37.createElement(import_ui27.ThemeProvider, null, /* @__PURE__ */ React37.createElement(SectionContent, null, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(import_editor_controls20.ControlLabel, null, (0, import_i18n17.__)("Size", "elementor"))), /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React37.createElement(
|
|
1977
|
+
import_editor_controls20.ControlToggleButtonGroup,
|
|
1912
1978
|
{
|
|
1913
1979
|
value: activeGroup,
|
|
1914
1980
|
onChange: onChangeGroup,
|
|
1915
1981
|
items: items2,
|
|
1916
1982
|
exclusive: true
|
|
1917
1983
|
}
|
|
1918
|
-
))), "custom" === activeGroup && /* @__PURE__ */
|
|
1984
|
+
))), "custom" === activeGroup && /* @__PURE__ */ React37.createElement(FlexCustomField, null))));
|
|
1919
1985
|
};
|
|
1920
|
-
var FlexCustomField = () => /* @__PURE__ */
|
|
1986
|
+
var FlexCustomField = () => /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(import_editor_controls20.ControlLabel, null, (0, import_i18n17.__)("Grow", "elementor"))), /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React37.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React37.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(import_editor_controls20.ControlLabel, null, (0, import_i18n17.__)("Shrink", "elementor"))), /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React37.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React37.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(import_editor_controls20.ControlLabel, null, (0, import_i18n17.__)("Basis", "elementor"))), /* @__PURE__ */ React37.createElement(import_ui27.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React37.createElement(import_editor_controls20.SizeControl, { extendedValues: ["auto"] })))));
|
|
1921
1987
|
var getActiveGroup = ({
|
|
1922
1988
|
grow,
|
|
1923
1989
|
shrink,
|
|
@@ -1939,98 +2005,98 @@ var getActiveGroup = ({
|
|
|
1939
2005
|
};
|
|
1940
2006
|
|
|
1941
2007
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
1942
|
-
var React37 = __toESM(require("react"));
|
|
1943
|
-
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
1944
|
-
var import_ui27 = require("@elementor/ui");
|
|
1945
|
-
var import_i18n17 = require("@wordpress/i18n");
|
|
1946
|
-
var GapControlField = () => {
|
|
1947
|
-
return /* @__PURE__ */ React37.createElement(import_ui27.Stack, { gap: 1 }, /* @__PURE__ */ React37.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React37.createElement(import_editor_controls20.GapControl, { label: (0, import_i18n17.__)("Gaps", "elementor") })));
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
1951
2008
|
var React38 = __toESM(require("react"));
|
|
1952
2009
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
1953
|
-
var import_icons13 = require("@elementor/icons");
|
|
1954
2010
|
var import_ui28 = require("@elementor/ui");
|
|
1955
2011
|
var import_i18n18 = require("@wordpress/i18n");
|
|
1956
|
-
var
|
|
1957
|
-
|
|
1958
|
-
|
|
2012
|
+
var GapControlField = () => {
|
|
2013
|
+
return /* @__PURE__ */ React38.createElement(import_ui28.Stack, { gap: 1 }, /* @__PURE__ */ React38.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React38.createElement(import_editor_controls21.GapControl, { label: (0, import_i18n18.__)("Gaps", "elementor") })));
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2016
|
+
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
2017
|
+
var React39 = __toESM(require("react"));
|
|
2018
|
+
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
2019
|
+
var import_icons14 = require("@elementor/icons");
|
|
2020
|
+
var import_ui29 = require("@elementor/ui");
|
|
2021
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
2022
|
+
var StartIcon4 = (0, import_ui29.withDirection)(import_icons14.JustifyTopIcon);
|
|
2023
|
+
var EndIcon4 = (0, import_ui29.withDirection)(import_icons14.JustifyBottomIcon);
|
|
2024
|
+
var iconProps4 = {
|
|
1959
2025
|
isClockwise: true,
|
|
1960
2026
|
offset: -90
|
|
1961
2027
|
};
|
|
1962
|
-
var
|
|
2028
|
+
var options5 = [
|
|
1963
2029
|
{
|
|
1964
2030
|
value: "start",
|
|
1965
|
-
label: (0,
|
|
1966
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2031
|
+
label: (0, import_i18n19.__)("Start", "elementor"),
|
|
2032
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
1967
2033
|
showTooltip: true
|
|
1968
2034
|
},
|
|
1969
2035
|
{
|
|
1970
2036
|
value: "center",
|
|
1971
|
-
label: (0,
|
|
1972
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2037
|
+
label: (0, import_i18n19.__)("Center", "elementor"),
|
|
2038
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(RotatedIcon, { icon: import_icons14.JustifyCenterIcon, size, ...iconProps4 }),
|
|
1973
2039
|
showTooltip: true
|
|
1974
2040
|
},
|
|
1975
2041
|
{
|
|
1976
2042
|
value: "end",
|
|
1977
|
-
label: (0,
|
|
1978
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2043
|
+
label: (0, import_i18n19.__)("End", "elementor"),
|
|
2044
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
1979
2045
|
showTooltip: true
|
|
1980
2046
|
},
|
|
1981
2047
|
{
|
|
1982
2048
|
value: "space-between",
|
|
1983
|
-
label: (0,
|
|
1984
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2049
|
+
label: (0, import_i18n19.__)("Space between", "elementor"),
|
|
2050
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
1985
2051
|
showTooltip: true
|
|
1986
2052
|
},
|
|
1987
2053
|
{
|
|
1988
2054
|
value: "space-around",
|
|
1989
|
-
label: (0,
|
|
1990
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2055
|
+
label: (0, import_i18n19.__)("Space around", "elementor"),
|
|
2056
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
1991
2057
|
showTooltip: true
|
|
1992
2058
|
},
|
|
1993
2059
|
{
|
|
1994
2060
|
value: "space-evenly",
|
|
1995
|
-
label: (0,
|
|
1996
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2061
|
+
label: (0, import_i18n19.__)("Space evenly", "elementor"),
|
|
2062
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(RotatedIcon, { icon: import_icons14.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
1997
2063
|
showTooltip: true
|
|
1998
2064
|
}
|
|
1999
2065
|
];
|
|
2000
2066
|
var JustifyContentField = () => {
|
|
2001
2067
|
const { isSiteRtl } = useDirection();
|
|
2002
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ React39.createElement(import_ui29.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React39.createElement(import_ui29.ThemeProvider, null, /* @__PURE__ */ React39.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React39.createElement(import_ui29.Stack, { gap: 0.75 }, /* @__PURE__ */ React39.createElement(import_editor_controls22.ControlLabel, null, (0, import_i18n19.__)("Justify content", "elementor")), /* @__PURE__ */ React39.createElement(import_editor_controls22.ToggleControl, { options: options5, fullWidth: true })))));
|
|
2003
2069
|
};
|
|
2004
2070
|
|
|
2005
2071
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
2006
|
-
var
|
|
2007
|
-
var
|
|
2008
|
-
var
|
|
2009
|
-
var
|
|
2010
|
-
var
|
|
2011
|
-
var
|
|
2072
|
+
var React40 = __toESM(require("react"));
|
|
2073
|
+
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
2074
|
+
var import_icons15 = require("@elementor/icons");
|
|
2075
|
+
var import_ui30 = require("@elementor/ui");
|
|
2076
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
2077
|
+
var options6 = [
|
|
2012
2078
|
{
|
|
2013
2079
|
value: "nowrap",
|
|
2014
|
-
label: (0,
|
|
2015
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2080
|
+
label: (0, import_i18n20.__)("No wrap", "elementor"),
|
|
2081
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons15.ArrowRightIcon, { fontSize: size }),
|
|
2016
2082
|
showTooltip: true
|
|
2017
2083
|
},
|
|
2018
2084
|
{
|
|
2019
2085
|
value: "wrap",
|
|
2020
|
-
label: (0,
|
|
2021
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2086
|
+
label: (0, import_i18n20.__)("Wrap", "elementor"),
|
|
2087
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons15.ArrowBackIcon, { fontSize: size }),
|
|
2022
2088
|
showTooltip: true
|
|
2023
2089
|
},
|
|
2024
2090
|
{
|
|
2025
2091
|
value: "wrap-reverse",
|
|
2026
|
-
label: (0,
|
|
2027
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2092
|
+
label: (0, import_i18n20.__)("Reversed wrap", "elementor"),
|
|
2093
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons15.ArrowForwardIcon, { fontSize: size }),
|
|
2028
2094
|
showTooltip: true
|
|
2029
2095
|
}
|
|
2030
2096
|
];
|
|
2031
2097
|
var WrapField = () => {
|
|
2032
2098
|
const { isSiteRtl } = useDirection();
|
|
2033
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ React40.createElement(import_ui30.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(import_ui30.ThemeProvider, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React40.createElement(import_ui30.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui30.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(import_editor_controls23.ControlLabel, null, (0, import_i18n20.__)("Wrap", "elementor"))), /* @__PURE__ */ React40.createElement(import_ui30.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React40.createElement(import_editor_controls23.ToggleControl, { options: options6 }))))));
|
|
2034
2100
|
};
|
|
2035
2101
|
|
|
2036
2102
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -2039,62 +2105,65 @@ var LayoutSection = () => {
|
|
|
2039
2105
|
const { element } = useElement();
|
|
2040
2106
|
const parent = (0, import_editor_elements6.useParentElement)(element.id);
|
|
2041
2107
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
2042
|
-
return /* @__PURE__ */
|
|
2108
|
+
return /* @__PURE__ */ React41.createElement(SectionContent, null, /* @__PURE__ */ React41.createElement(DisplayField, null), ("flex" === display?.value || "inline-flex" === display?.value) && /* @__PURE__ */ React41.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React41.createElement(FlexChildFields, null));
|
|
2109
|
+
};
|
|
2110
|
+
var FlexFields = () => {
|
|
2111
|
+
const [flexWrap] = useStylesField("flex-wrap");
|
|
2112
|
+
return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(FlexDirectionField, null), /* @__PURE__ */ React41.createElement(JustifyContentField, null), /* @__PURE__ */ React41.createElement(AlignItemsField, null), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(GapControlField, null), /* @__PURE__ */ React41.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React41.createElement(AlignContentField, null));
|
|
2043
2113
|
};
|
|
2044
|
-
var
|
|
2045
|
-
var FlexChildFields = () => /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(import_editor_controls23.ControlLabel, null, (0, import_i18n20.__)("Flex child", "elementor")), /* @__PURE__ */ React40.createElement(AlignSelfChild, null), /* @__PURE__ */ React40.createElement(FlexOrderField, null), /* @__PURE__ */ React40.createElement(FlexSizeField, null));
|
|
2114
|
+
var FlexChildFields = () => /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(import_editor_controls24.ControlLabel, null, (0, import_i18n21.__)("Flex child", "elementor")), /* @__PURE__ */ React41.createElement(AlignSelfChild, null), /* @__PURE__ */ React41.createElement(FlexOrderField, null), /* @__PURE__ */ React41.createElement(FlexSizeField, null));
|
|
2046
2115
|
|
|
2047
2116
|
// src/components/style-sections/position-section/position-section.tsx
|
|
2048
|
-
var
|
|
2117
|
+
var React45 = __toESM(require("react"));
|
|
2049
2118
|
var import_session2 = require("@elementor/session");
|
|
2050
2119
|
|
|
2051
2120
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
2052
|
-
var
|
|
2053
|
-
var
|
|
2054
|
-
var
|
|
2055
|
-
var
|
|
2056
|
-
var
|
|
2057
|
-
var InlineStartIcon2 = (0,
|
|
2058
|
-
var InlineEndIcon2 = (0,
|
|
2121
|
+
var React42 = __toESM(require("react"));
|
|
2122
|
+
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
2123
|
+
var import_icons16 = require("@elementor/icons");
|
|
2124
|
+
var import_ui31 = require("@elementor/ui");
|
|
2125
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
2126
|
+
var InlineStartIcon2 = (0, import_ui31.withDirection)(import_icons16.SideLeftIcon);
|
|
2127
|
+
var InlineEndIcon2 = (0, import_ui31.withDirection)(import_icons16.SideRightIcon);
|
|
2059
2128
|
var sideIcons = {
|
|
2060
|
-
"inset-block-start": /* @__PURE__ */
|
|
2061
|
-
"inset-block-end": /* @__PURE__ */
|
|
2062
|
-
"inset-inline-start": /* @__PURE__ */
|
|
2063
|
-
"inset-inline-end": /* @__PURE__ */
|
|
2129
|
+
"inset-block-start": /* @__PURE__ */ React42.createElement(import_icons16.SideTopIcon, { fontSize: "tiny" }),
|
|
2130
|
+
"inset-block-end": /* @__PURE__ */ React42.createElement(import_icons16.SideBottomIcon, { fontSize: "tiny" }),
|
|
2131
|
+
"inset-inline-start": /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
2132
|
+
"inset-inline-end": /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
2064
2133
|
};
|
|
2065
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
2066
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
2134
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n22.__)("Right", "elementor") : (0, import_i18n22.__)("Left", "elementor");
|
|
2135
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n22.__)("Left", "elementor") : (0, import_i18n22.__)("Right", "elementor");
|
|
2067
2136
|
var DimensionsField = () => {
|
|
2068
2137
|
const { isSiteRtl } = useDirection();
|
|
2069
|
-
return /* @__PURE__ */
|
|
2138
|
+
return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(import_ui31.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React42.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n22.__)("Top", "elementor") }), /* @__PURE__ */ React42.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React42.createElement(import_ui31.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React42.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n22.__)("Bottom", "elementor") }), /* @__PURE__ */ React42.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
|
|
2070
2139
|
};
|
|
2071
2140
|
var DimensionField = ({ side, label }) => {
|
|
2072
|
-
return /* @__PURE__ */
|
|
2141
|
+
return /* @__PURE__ */ React42.createElement(import_ui31.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React42.createElement(import_ui31.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React42.createElement(import_editor_controls25.ControlLabel, null, label)), /* @__PURE__ */ React42.createElement(import_ui31.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React42.createElement(StylesField, { bind: side }, /* @__PURE__ */ React42.createElement(import_editor_controls25.SizeControl, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
|
|
2073
2142
|
};
|
|
2074
2143
|
|
|
2075
2144
|
// src/components/style-sections/position-section/position-field.tsx
|
|
2076
|
-
var
|
|
2077
|
-
var
|
|
2078
|
-
var
|
|
2079
|
-
var
|
|
2145
|
+
var React43 = __toESM(require("react"));
|
|
2146
|
+
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
2147
|
+
var import_ui32 = require("@elementor/ui");
|
|
2148
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
2080
2149
|
var positionOptions = [
|
|
2081
|
-
{ label: (0,
|
|
2082
|
-
{ label: (0,
|
|
2083
|
-
{ label: (0,
|
|
2084
|
-
{ label: (0,
|
|
2085
|
-
{ label: (0,
|
|
2150
|
+
{ label: (0, import_i18n23.__)("Static", "elementor"), value: "static" },
|
|
2151
|
+
{ label: (0, import_i18n23.__)("Relative", "elementor"), value: "relative" },
|
|
2152
|
+
{ label: (0, import_i18n23.__)("Absolute", "elementor"), value: "absolute" },
|
|
2153
|
+
{ label: (0, import_i18n23.__)("Fixed", "elementor"), value: "fixed" },
|
|
2154
|
+
{ label: (0, import_i18n23.__)("Sticky", "elementor"), value: "sticky" }
|
|
2086
2155
|
];
|
|
2087
2156
|
var PositionField = ({ onChange }) => {
|
|
2088
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ React43.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React43.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React43.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React43.createElement(import_editor_controls26.ControlLabel, null, (0, import_i18n23.__)("Position", "elementor"))), /* @__PURE__ */ React43.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React43.createElement(import_editor_controls26.SelectControl, { options: positionOptions, onChange }))));
|
|
2089
2158
|
};
|
|
2090
2159
|
|
|
2091
2160
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
2092
|
-
var
|
|
2093
|
-
var
|
|
2094
|
-
var
|
|
2095
|
-
var
|
|
2161
|
+
var React44 = __toESM(require("react"));
|
|
2162
|
+
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
2163
|
+
var import_ui33 = require("@elementor/ui");
|
|
2164
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
2096
2165
|
var ZIndexField = () => {
|
|
2097
|
-
return /* @__PURE__ */
|
|
2166
|
+
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React44.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React44.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React44.createElement(import_editor_controls27.ControlLabel, null, (0, import_i18n24.__)("Z-index", "elementor"))), /* @__PURE__ */ React44.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React44.createElement(import_editor_controls27.NumberControl, null))));
|
|
2098
2167
|
};
|
|
2099
2168
|
|
|
2100
2169
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -2126,7 +2195,7 @@ var PositionSection = () => {
|
|
|
2126
2195
|
}
|
|
2127
2196
|
};
|
|
2128
2197
|
const isNotStatic = positionValue && positionValue?.value !== "static";
|
|
2129
|
-
return /* @__PURE__ */
|
|
2198
|
+
return /* @__PURE__ */ React45.createElement(SectionContent, null, /* @__PURE__ */ React45.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(DimensionsField, null), /* @__PURE__ */ React45.createElement(ZIndexField, null)) : null);
|
|
2130
2199
|
};
|
|
2131
2200
|
var usePersistDimensions = () => {
|
|
2132
2201
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -2136,116 +2205,116 @@ var usePersistDimensions = () => {
|
|
|
2136
2205
|
};
|
|
2137
2206
|
|
|
2138
2207
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2208
|
+
var React47 = __toESM(require("react"));
|
|
2209
|
+
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
2210
|
+
var import_ui35 = require("@elementor/ui");
|
|
2211
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
2212
|
+
|
|
2213
|
+
// src/components/style-sections/size-section/overflow-field.tsx
|
|
2139
2214
|
var React46 = __toESM(require("react"));
|
|
2140
2215
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
2216
|
+
var import_icons17 = require("@elementor/icons");
|
|
2141
2217
|
var import_ui34 = require("@elementor/ui");
|
|
2142
2218
|
var import_i18n25 = require("@wordpress/i18n");
|
|
2143
|
-
|
|
2144
|
-
// src/components/style-sections/size-section/overflow-field.tsx
|
|
2145
|
-
var React45 = __toESM(require("react"));
|
|
2146
|
-
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
2147
|
-
var import_icons16 = require("@elementor/icons");
|
|
2148
|
-
var import_ui33 = require("@elementor/ui");
|
|
2149
|
-
var import_i18n24 = require("@wordpress/i18n");
|
|
2150
|
-
var options6 = [
|
|
2219
|
+
var options7 = [
|
|
2151
2220
|
{
|
|
2152
2221
|
value: "visible",
|
|
2153
|
-
label: (0,
|
|
2154
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2222
|
+
label: (0, import_i18n25.__)("Visible", "elementor"),
|
|
2223
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons17.EyeIcon, { fontSize: size }),
|
|
2155
2224
|
showTooltip: true
|
|
2156
2225
|
},
|
|
2157
2226
|
{
|
|
2158
2227
|
value: "hidden",
|
|
2159
|
-
label: (0,
|
|
2160
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2228
|
+
label: (0, import_i18n25.__)("Hidden", "elementor"),
|
|
2229
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons17.EyeOffIcon, { fontSize: size }),
|
|
2161
2230
|
showTooltip: true
|
|
2162
2231
|
},
|
|
2163
2232
|
{
|
|
2164
2233
|
value: "auto",
|
|
2165
|
-
label: (0,
|
|
2166
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2234
|
+
label: (0, import_i18n25.__)("Auto", "elementor"),
|
|
2235
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons17.LetterAIcon, { fontSize: size }),
|
|
2167
2236
|
showTooltip: true
|
|
2168
2237
|
}
|
|
2169
2238
|
];
|
|
2170
2239
|
var OverflowField = () => {
|
|
2171
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ React46.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React46.createElement(import_ui34.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(import_editor_controls28.ControlLabel, null, (0, import_i18n25.__)("Overflow", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui34.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls28.ToggleControl, { options: options7 }))));
|
|
2172
2241
|
};
|
|
2173
2242
|
|
|
2174
2243
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2175
2244
|
var SizeSection = () => {
|
|
2176
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ React47.createElement(SectionContent, null, /* @__PURE__ */ React47.createElement(import_ui35.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(SizeField, { bind: "width", label: (0, import_i18n26.__)("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(SizeField, { bind: "height", label: (0, import_i18n26.__)("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React47.createElement(import_ui35.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(
|
|
2177
2246
|
SizeField,
|
|
2178
2247
|
{
|
|
2179
2248
|
bind: "min-width",
|
|
2180
|
-
label: (0,
|
|
2249
|
+
label: (0, import_i18n26.__)("Min width", "elementor"),
|
|
2181
2250
|
extendedValues: ["auto"]
|
|
2182
2251
|
}
|
|
2183
|
-
)), /* @__PURE__ */
|
|
2252
|
+
)), /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(
|
|
2184
2253
|
SizeField,
|
|
2185
2254
|
{
|
|
2186
2255
|
bind: "min-height",
|
|
2187
|
-
label: (0,
|
|
2256
|
+
label: (0, import_i18n26.__)("Min height", "elementor"),
|
|
2188
2257
|
extendedValues: ["auto"]
|
|
2189
2258
|
}
|
|
2190
|
-
))), /* @__PURE__ */
|
|
2259
|
+
))), /* @__PURE__ */ React47.createElement(import_ui35.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(SizeField, { bind: "max-width", label: (0, import_i18n26.__)("Max width", "elementor") })), /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(SizeField, { bind: "max-height", label: (0, import_i18n26.__)("Max height", "elementor") }))), /* @__PURE__ */ React47.createElement(PanelDivider, null), /* @__PURE__ */ React47.createElement(import_ui35.Stack, null, /* @__PURE__ */ React47.createElement(OverflowField, null)));
|
|
2191
2260
|
};
|
|
2192
2261
|
var SizeField = ({ label, bind, extendedValues }) => {
|
|
2193
|
-
return /* @__PURE__ */
|
|
2262
|
+
return /* @__PURE__ */ React47.createElement(StylesField, { bind }, /* @__PURE__ */ React47.createElement(import_ui35.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React47.createElement(import_editor_controls29.ControlLabel, null, label)), /* @__PURE__ */ React47.createElement(import_ui35.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React47.createElement(import_editor_controls29.SizeControl, { extendedValues }))));
|
|
2194
2263
|
};
|
|
2195
2264
|
|
|
2196
2265
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
2197
|
-
var
|
|
2198
|
-
var
|
|
2199
|
-
var
|
|
2266
|
+
var React48 = __toESM(require("react"));
|
|
2267
|
+
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
2268
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
2200
2269
|
var SpacingSection = () => {
|
|
2201
2270
|
const { isSiteRtl } = useDirection();
|
|
2202
|
-
return /* @__PURE__ */
|
|
2203
|
-
|
|
2271
|
+
return /* @__PURE__ */ React48.createElement(SectionContent, null, /* @__PURE__ */ React48.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React48.createElement(
|
|
2272
|
+
import_editor_controls30.LinkedDimensionsControl,
|
|
2204
2273
|
{
|
|
2205
|
-
label: (0,
|
|
2274
|
+
label: (0, import_i18n27.__)("Margin", "elementor"),
|
|
2206
2275
|
isSiteRtl,
|
|
2207
2276
|
extendedValues: ["auto"]
|
|
2208
2277
|
}
|
|
2209
|
-
)), /* @__PURE__ */
|
|
2278
|
+
)), /* @__PURE__ */ React48.createElement(PanelDivider, null), /* @__PURE__ */ React48.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React48.createElement(import_editor_controls30.LinkedDimensionsControl, { label: (0, import_i18n27.__)("Padding", "elementor"), isSiteRtl })));
|
|
2210
2279
|
};
|
|
2211
2280
|
|
|
2212
2281
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
2213
|
-
var
|
|
2282
|
+
var React63 = __toESM(require("react"));
|
|
2214
2283
|
|
|
2215
2284
|
// src/components/collapsible-content.tsx
|
|
2216
|
-
var
|
|
2285
|
+
var React49 = __toESM(require("react"));
|
|
2217
2286
|
var import_react14 = require("react");
|
|
2218
|
-
var
|
|
2219
|
-
var
|
|
2287
|
+
var import_ui36 = require("@elementor/ui");
|
|
2288
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
2220
2289
|
var CollapsibleContent = ({ children, defaultOpen = false }) => {
|
|
2221
2290
|
const [open, setOpen] = (0, import_react14.useState)(defaultOpen);
|
|
2222
2291
|
const handleToggle = () => {
|
|
2223
2292
|
setOpen((prevOpen) => !prevOpen);
|
|
2224
2293
|
};
|
|
2225
|
-
return /* @__PURE__ */
|
|
2226
|
-
|
|
2294
|
+
return /* @__PURE__ */ React49.createElement(import_ui36.Stack, null, /* @__PURE__ */ React49.createElement(
|
|
2295
|
+
import_ui36.Button,
|
|
2227
2296
|
{
|
|
2228
2297
|
fullWidth: true,
|
|
2229
2298
|
size: "small",
|
|
2230
2299
|
color: "secondary",
|
|
2231
2300
|
variant: "outlined",
|
|
2232
2301
|
onClick: handleToggle,
|
|
2233
|
-
endIcon: /* @__PURE__ */
|
|
2302
|
+
endIcon: /* @__PURE__ */ React49.createElement(CollapseIcon, { open }),
|
|
2234
2303
|
sx: { my: 0.5 }
|
|
2235
2304
|
},
|
|
2236
|
-
open ? (0,
|
|
2237
|
-
), /* @__PURE__ */
|
|
2305
|
+
open ? (0, import_i18n28.__)("Show less", "elementor") : (0, import_i18n28.__)("Show more", "elementor")
|
|
2306
|
+
), /* @__PURE__ */ React49.createElement(import_ui36.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
2238
2307
|
};
|
|
2239
2308
|
|
|
2240
2309
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
2241
|
-
var
|
|
2242
|
-
var
|
|
2243
|
-
var
|
|
2244
|
-
var
|
|
2310
|
+
var React50 = __toESM(require("react"));
|
|
2311
|
+
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
2312
|
+
var import_ui37 = require("@elementor/ui");
|
|
2313
|
+
var import_i18n30 = require("@wordpress/i18n");
|
|
2245
2314
|
|
|
2246
2315
|
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
2247
2316
|
var import_react15 = require("react");
|
|
2248
|
-
var
|
|
2317
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
2249
2318
|
|
|
2250
2319
|
// src/sync/get-elementor-config.ts
|
|
2251
2320
|
var getElementorConfig = () => {
|
|
@@ -2255,17 +2324,17 @@ var getElementorConfig = () => {
|
|
|
2255
2324
|
|
|
2256
2325
|
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
2257
2326
|
var supportedCategories = {
|
|
2258
|
-
system: (0,
|
|
2259
|
-
custom: (0,
|
|
2260
|
-
googlefonts: (0,
|
|
2327
|
+
system: (0, import_i18n29.__)("System", "elementor"),
|
|
2328
|
+
custom: (0, import_i18n29.__)("Custom Fonts", "elementor"),
|
|
2329
|
+
googlefonts: (0, import_i18n29.__)("Google Fonts", "elementor")
|
|
2261
2330
|
};
|
|
2262
2331
|
var getFontFamilies = () => {
|
|
2263
2332
|
const { controls } = getElementorConfig();
|
|
2264
|
-
const
|
|
2265
|
-
if (!
|
|
2333
|
+
const options13 = controls?.font?.options;
|
|
2334
|
+
if (!options13) {
|
|
2266
2335
|
return null;
|
|
2267
2336
|
}
|
|
2268
|
-
return
|
|
2337
|
+
return options13;
|
|
2269
2338
|
};
|
|
2270
2339
|
var useFontFamilies = () => {
|
|
2271
2340
|
const fontFamilies = getFontFamilies();
|
|
@@ -2294,188 +2363,188 @@ var FontFamilyField = () => {
|
|
|
2294
2363
|
if (fontFamilies.length === 0) {
|
|
2295
2364
|
return null;
|
|
2296
2365
|
}
|
|
2297
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React50.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(import_editor_controls31.ControlLabel, null, (0, import_i18n30.__)("Font family", "elementor"))), /* @__PURE__ */ React50.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React50.createElement(import_editor_controls31.FontFamilyControl, { fontFamilies }))));
|
|
2298
2367
|
};
|
|
2299
2368
|
|
|
2300
2369
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
2301
|
-
var React50 = __toESM(require("react"));
|
|
2302
|
-
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
2303
|
-
var import_ui37 = require("@elementor/ui");
|
|
2304
|
-
var import_i18n30 = require("@wordpress/i18n");
|
|
2305
|
-
var FontSizeField = () => {
|
|
2306
|
-
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React50.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(import_editor_controls31.ControlLabel, null, (0, import_i18n30.__)("Font size", "elementor"))), /* @__PURE__ */ React50.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(import_editor_controls31.SizeControl, null))));
|
|
2307
|
-
};
|
|
2308
|
-
|
|
2309
|
-
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
2310
2370
|
var React51 = __toESM(require("react"));
|
|
2311
2371
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
2312
|
-
var import_icons17 = require("@elementor/icons");
|
|
2313
2372
|
var import_ui38 = require("@elementor/ui");
|
|
2314
2373
|
var import_i18n31 = require("@wordpress/i18n");
|
|
2315
|
-
var
|
|
2374
|
+
var FontSizeField = () => {
|
|
2375
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React51.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(import_editor_controls32.ControlLabel, null, (0, import_i18n31.__)("Font size", "elementor"))), /* @__PURE__ */ React51.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(import_editor_controls32.SizeControl, null))));
|
|
2376
|
+
};
|
|
2377
|
+
|
|
2378
|
+
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
2379
|
+
var React52 = __toESM(require("react"));
|
|
2380
|
+
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
2381
|
+
var import_icons18 = require("@elementor/icons");
|
|
2382
|
+
var import_ui39 = require("@elementor/ui");
|
|
2383
|
+
var import_i18n32 = require("@wordpress/i18n");
|
|
2384
|
+
var options8 = [
|
|
2316
2385
|
{
|
|
2317
2386
|
value: "normal",
|
|
2318
|
-
label: (0,
|
|
2319
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2387
|
+
label: (0, import_i18n32.__)("Normal", "elementor"),
|
|
2388
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons18.MinusIcon, { fontSize: size }),
|
|
2320
2389
|
showTooltip: true
|
|
2321
2390
|
},
|
|
2322
2391
|
{
|
|
2323
2392
|
value: "italic",
|
|
2324
|
-
label: (0,
|
|
2325
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2393
|
+
label: (0, import_i18n32.__)("Italic", "elementor"),
|
|
2394
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons18.ItalicIcon, { fontSize: size }),
|
|
2326
2395
|
showTooltip: true
|
|
2327
2396
|
}
|
|
2328
2397
|
];
|
|
2329
|
-
var FontStyleField = () => /* @__PURE__ */
|
|
2398
|
+
var FontStyleField = () => /* @__PURE__ */ React52.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React52.createElement(import_ui39.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui39.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(import_editor_controls33.ControlLabel, null, (0, import_i18n32.__)("Font style", "elementor"))), /* @__PURE__ */ React52.createElement(import_ui39.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React52.createElement(import_editor_controls33.ToggleControl, { options: options8 }))));
|
|
2330
2399
|
|
|
2331
2400
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
2332
|
-
var React52 = __toESM(require("react"));
|
|
2333
|
-
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
2334
|
-
var import_ui39 = require("@elementor/ui");
|
|
2335
|
-
var import_i18n32 = require("@wordpress/i18n");
|
|
2336
|
-
var fontWeightOptions = [
|
|
2337
|
-
{ value: "100", label: (0, import_i18n32.__)("100 - Thin", "elementor") },
|
|
2338
|
-
{ value: "200", label: (0, import_i18n32.__)("200 - Extra light", "elementor") },
|
|
2339
|
-
{ value: "300", label: (0, import_i18n32.__)("300 - Light", "elementor") },
|
|
2340
|
-
{ value: "400", label: (0, import_i18n32.__)("400 - Normal", "elementor") },
|
|
2341
|
-
{ value: "500", label: (0, import_i18n32.__)("500 - Medium", "elementor") },
|
|
2342
|
-
{ value: "600", label: (0, import_i18n32.__)("600 - Semi bold", "elementor") },
|
|
2343
|
-
{ value: "700", label: (0, import_i18n32.__)("700 - Bold", "elementor") },
|
|
2344
|
-
{ value: "800", label: (0, import_i18n32.__)("800 - Extra bold", "elementor") },
|
|
2345
|
-
{ value: "900", label: (0, import_i18n32.__)("900 - Black", "elementor") }
|
|
2346
|
-
];
|
|
2347
|
-
var FontWeightField = () => {
|
|
2348
|
-
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React52.createElement(import_ui39.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui39.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(import_editor_controls33.ControlLabel, null, (0, import_i18n32.__)("Font weight", "elementor"))), /* @__PURE__ */ React52.createElement(import_ui39.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React52.createElement(import_editor_controls33.SelectControl, { options: fontWeightOptions }))));
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
2352
2401
|
var React53 = __toESM(require("react"));
|
|
2353
2402
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
2354
2403
|
var import_ui40 = require("@elementor/ui");
|
|
2355
2404
|
var import_i18n33 = require("@wordpress/i18n");
|
|
2356
|
-
var
|
|
2357
|
-
|
|
2405
|
+
var fontWeightOptions = [
|
|
2406
|
+
{ value: "100", label: (0, import_i18n33.__)("100 - Thin", "elementor") },
|
|
2407
|
+
{ value: "200", label: (0, import_i18n33.__)("200 - Extra light", "elementor") },
|
|
2408
|
+
{ value: "300", label: (0, import_i18n33.__)("300 - Light", "elementor") },
|
|
2409
|
+
{ value: "400", label: (0, import_i18n33.__)("400 - Normal", "elementor") },
|
|
2410
|
+
{ value: "500", label: (0, import_i18n33.__)("500 - Medium", "elementor") },
|
|
2411
|
+
{ value: "600", label: (0, import_i18n33.__)("600 - Semi bold", "elementor") },
|
|
2412
|
+
{ value: "700", label: (0, import_i18n33.__)("700 - Bold", "elementor") },
|
|
2413
|
+
{ value: "800", label: (0, import_i18n33.__)("800 - Extra bold", "elementor") },
|
|
2414
|
+
{ value: "900", label: (0, import_i18n33.__)("900 - Black", "elementor") }
|
|
2415
|
+
];
|
|
2416
|
+
var FontWeightField = () => {
|
|
2417
|
+
return /* @__PURE__ */ React53.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React53.createElement(import_ui40.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(import_ui40.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(import_editor_controls34.ControlLabel, null, (0, import_i18n33.__)("Font weight", "elementor"))), /* @__PURE__ */ React53.createElement(import_ui40.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React53.createElement(import_editor_controls34.SelectControl, { options: fontWeightOptions }))));
|
|
2358
2418
|
};
|
|
2359
2419
|
|
|
2360
|
-
// src/components/style-sections/typography-section/
|
|
2420
|
+
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
2361
2421
|
var React54 = __toESM(require("react"));
|
|
2362
2422
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
2363
2423
|
var import_ui41 = require("@elementor/ui");
|
|
2364
2424
|
var import_i18n34 = require("@wordpress/i18n");
|
|
2365
|
-
var
|
|
2366
|
-
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "
|
|
2425
|
+
var LetterSpacingField = () => {
|
|
2426
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React54.createElement(import_ui41.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(import_editor_controls35.ControlLabel, null, (0, import_i18n34.__)("Letter spacing", "elementor"))), /* @__PURE__ */ React54.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(import_editor_controls35.SizeControl, null))));
|
|
2367
2427
|
};
|
|
2368
2428
|
|
|
2369
|
-
// src/components/style-sections/typography-section/
|
|
2429
|
+
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
2370
2430
|
var React55 = __toESM(require("react"));
|
|
2371
2431
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
2372
|
-
var import_icons18 = require("@elementor/icons");
|
|
2373
2432
|
var import_ui42 = require("@elementor/ui");
|
|
2374
2433
|
var import_i18n35 = require("@wordpress/i18n");
|
|
2375
|
-
var
|
|
2376
|
-
|
|
2377
|
-
|
|
2434
|
+
var LineHeightField = () => {
|
|
2435
|
+
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React55.createElement(import_ui42.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(import_ui42.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(import_editor_controls36.ControlLabel, null, (0, import_i18n35.__)("Line height", "elementor"))), /* @__PURE__ */ React55.createElement(import_ui42.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(import_editor_controls36.SizeControl, null))));
|
|
2436
|
+
};
|
|
2437
|
+
|
|
2438
|
+
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
2439
|
+
var React56 = __toESM(require("react"));
|
|
2440
|
+
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
2441
|
+
var import_icons19 = require("@elementor/icons");
|
|
2442
|
+
var import_ui43 = require("@elementor/ui");
|
|
2443
|
+
var import_i18n36 = require("@wordpress/i18n");
|
|
2444
|
+
var StartIcon5 = (0, import_ui43.withDirection)(import_icons19.AlignLeftIcon);
|
|
2445
|
+
var EndIcon5 = (0, import_ui43.withDirection)(import_icons19.AlignRightIcon);
|
|
2446
|
+
var options9 = [
|
|
2378
2447
|
{
|
|
2379
2448
|
value: "start",
|
|
2380
|
-
label: (0,
|
|
2381
|
-
renderContent: () => /* @__PURE__ */
|
|
2449
|
+
label: (0, import_i18n36.__)("Start", "elementor"),
|
|
2450
|
+
renderContent: () => /* @__PURE__ */ React56.createElement(RotatedIcon, { icon: StartIcon5, size: "tiny" }),
|
|
2382
2451
|
showTooltip: true
|
|
2383
2452
|
},
|
|
2384
2453
|
{
|
|
2385
2454
|
value: "center",
|
|
2386
|
-
label: (0,
|
|
2387
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2455
|
+
label: (0, import_i18n36.__)("Center", "elementor"),
|
|
2456
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons19.AlignCenterIcon, { fontSize: size }),
|
|
2388
2457
|
showTooltip: true
|
|
2389
2458
|
},
|
|
2390
2459
|
{
|
|
2391
2460
|
value: "end",
|
|
2392
|
-
label: (0,
|
|
2393
|
-
renderContent: () => /* @__PURE__ */
|
|
2461
|
+
label: (0, import_i18n36.__)("End", "elementor"),
|
|
2462
|
+
renderContent: () => /* @__PURE__ */ React56.createElement(RotatedIcon, { icon: EndIcon5, size: "tiny" }),
|
|
2394
2463
|
showTooltip: true
|
|
2395
2464
|
},
|
|
2396
2465
|
{
|
|
2397
2466
|
value: "justify",
|
|
2398
|
-
label: (0,
|
|
2399
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2467
|
+
label: (0, import_i18n36.__)("Justify", "elementor"),
|
|
2468
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons19.AlignJustifiedIcon, { fontSize: size }),
|
|
2400
2469
|
showTooltip: true
|
|
2401
2470
|
}
|
|
2402
2471
|
];
|
|
2403
2472
|
var TextAlignmentField = () => {
|
|
2404
|
-
return /* @__PURE__ */
|
|
2473
|
+
return /* @__PURE__ */ React56.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React56.createElement(import_ui43.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React56.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(import_editor_controls37.ControlLabel, null, (0, import_i18n36.__)("Alignment", "elementor"))), /* @__PURE__ */ React56.createElement(import_ui43.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React56.createElement(import_editor_controls37.ToggleControl, { options: options9 }))));
|
|
2405
2474
|
};
|
|
2406
2475
|
|
|
2407
2476
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
2408
|
-
var React56 = __toESM(require("react"));
|
|
2409
|
-
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
2410
|
-
var import_ui43 = require("@elementor/ui");
|
|
2411
|
-
var import_i18n36 = require("@wordpress/i18n");
|
|
2412
|
-
var TextColorField = () => {
|
|
2413
|
-
return /* @__PURE__ */ React56.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React56.createElement(import_ui43.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React56.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(import_editor_controls37.ControlLabel, null, (0, import_i18n36.__)("Text color", "elementor"))), /* @__PURE__ */ React56.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(import_editor_controls37.ColorControl, null))));
|
|
2414
|
-
};
|
|
2415
|
-
|
|
2416
|
-
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
2417
2477
|
var React57 = __toESM(require("react"));
|
|
2418
2478
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
2419
|
-
var import_icons19 = require("@elementor/icons");
|
|
2420
2479
|
var import_ui44 = require("@elementor/ui");
|
|
2421
2480
|
var import_i18n37 = require("@wordpress/i18n");
|
|
2422
|
-
var
|
|
2481
|
+
var TextColorField = () => {
|
|
2482
|
+
return /* @__PURE__ */ React57.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React57.createElement(import_ui44.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(import_editor_controls38.ControlLabel, null, (0, import_i18n37.__)("Text color", "elementor"))), /* @__PURE__ */ React57.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(import_editor_controls38.ColorControl, null))));
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
2486
|
+
var React58 = __toESM(require("react"));
|
|
2487
|
+
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
2488
|
+
var import_icons20 = require("@elementor/icons");
|
|
2489
|
+
var import_ui45 = require("@elementor/ui");
|
|
2490
|
+
var import_i18n38 = require("@wordpress/i18n");
|
|
2491
|
+
var options10 = [
|
|
2423
2492
|
{
|
|
2424
2493
|
value: "none",
|
|
2425
|
-
label: (0,
|
|
2426
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2494
|
+
label: (0, import_i18n38.__)("None", "elementor"),
|
|
2495
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(import_icons20.MinusIcon, { fontSize: size }),
|
|
2427
2496
|
showTooltip: true,
|
|
2428
2497
|
exclusive: true
|
|
2429
2498
|
},
|
|
2430
2499
|
{
|
|
2431
2500
|
value: "underline",
|
|
2432
|
-
label: (0,
|
|
2433
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2501
|
+
label: (0, import_i18n38.__)("Underline", "elementor"),
|
|
2502
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(import_icons20.UnderlineIcon, { fontSize: size }),
|
|
2434
2503
|
showTooltip: true
|
|
2435
2504
|
},
|
|
2436
2505
|
{
|
|
2437
2506
|
value: "line-through",
|
|
2438
|
-
label: (0,
|
|
2439
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2507
|
+
label: (0, import_i18n38.__)("Line-through", "elementor"),
|
|
2508
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(import_icons20.StrikethroughIcon, { fontSize: size }),
|
|
2440
2509
|
showTooltip: true
|
|
2441
2510
|
},
|
|
2442
2511
|
{
|
|
2443
2512
|
value: "overline",
|
|
2444
|
-
label: (0,
|
|
2445
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2513
|
+
label: (0, import_i18n38.__)("Overline", "elementor"),
|
|
2514
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(import_icons20.OverlineIcon, { fontSize: size }),
|
|
2446
2515
|
showTooltip: true
|
|
2447
2516
|
}
|
|
2448
2517
|
];
|
|
2449
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
2518
|
+
var TextDecorationField = () => /* @__PURE__ */ React58.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React58.createElement(import_ui45.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(import_editor_controls39.ControlLabel, null, (0, import_i18n38.__)("Line decoration", "elementor"))), /* @__PURE__ */ React58.createElement(import_ui45.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React58.createElement(import_editor_controls39.ToggleControl, { options: options10, exclusive: false }))));
|
|
2450
2519
|
|
|
2451
2520
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
2452
|
-
var
|
|
2453
|
-
var
|
|
2454
|
-
var
|
|
2455
|
-
var
|
|
2456
|
-
var
|
|
2457
|
-
var
|
|
2521
|
+
var React59 = __toESM(require("react"));
|
|
2522
|
+
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
2523
|
+
var import_icons21 = require("@elementor/icons");
|
|
2524
|
+
var import_ui46 = require("@elementor/ui");
|
|
2525
|
+
var import_i18n39 = require("@wordpress/i18n");
|
|
2526
|
+
var options11 = [
|
|
2458
2527
|
{
|
|
2459
2528
|
value: "ltr",
|
|
2460
|
-
label: (0,
|
|
2461
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2529
|
+
label: (0, import_i18n39.__)("Left to right", "elementor"),
|
|
2530
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons21.TextDirectionLtrIcon, { fontSize: size }),
|
|
2462
2531
|
showTooltip: true
|
|
2463
2532
|
},
|
|
2464
2533
|
{
|
|
2465
2534
|
value: "rtl",
|
|
2466
|
-
label: (0,
|
|
2467
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2535
|
+
label: (0, import_i18n39.__)("Right to left", "elementor"),
|
|
2536
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons21.TextDirectionRtlIcon, { fontSize: size }),
|
|
2468
2537
|
showTooltip: true
|
|
2469
2538
|
}
|
|
2470
2539
|
];
|
|
2471
2540
|
var TextDirectionField = () => {
|
|
2472
|
-
return /* @__PURE__ */
|
|
2541
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React59.createElement(import_ui46.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(import_ui46.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(import_editor_controls40.ControlLabel, null, (0, import_i18n39.__)("Direction", "elementor"))), /* @__PURE__ */ React59.createElement(import_ui46.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React59.createElement(import_editor_controls40.ToggleControl, { options: options11 }))));
|
|
2473
2542
|
};
|
|
2474
2543
|
|
|
2475
2544
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
2476
|
-
var
|
|
2477
|
-
var
|
|
2478
|
-
var
|
|
2545
|
+
var React60 = __toESM(require("react"));
|
|
2546
|
+
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
2547
|
+
var import_i18n40 = require("@wordpress/i18n");
|
|
2479
2548
|
var initTextStroke = {
|
|
2480
2549
|
$$type: "stroke",
|
|
2481
2550
|
value: {
|
|
@@ -2501,64 +2570,64 @@ var TextStrokeField = () => {
|
|
|
2501
2570
|
setTextStroke(null);
|
|
2502
2571
|
};
|
|
2503
2572
|
const hasTextStroke = Boolean(textStroke);
|
|
2504
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ React60.createElement(
|
|
2505
2574
|
AddOrRemoveContent,
|
|
2506
2575
|
{
|
|
2507
|
-
label: (0,
|
|
2576
|
+
label: (0, import_i18n40.__)("Text stroke", "elementor"),
|
|
2508
2577
|
isAdded: hasTextStroke,
|
|
2509
2578
|
onAdd: addTextStroke,
|
|
2510
2579
|
onRemove: removeTextStroke
|
|
2511
2580
|
},
|
|
2512
|
-
/* @__PURE__ */
|
|
2581
|
+
/* @__PURE__ */ React60.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React60.createElement(import_editor_controls41.StrokeControl, null))
|
|
2513
2582
|
);
|
|
2514
2583
|
};
|
|
2515
2584
|
|
|
2516
2585
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
2517
|
-
var
|
|
2518
|
-
var
|
|
2519
|
-
var
|
|
2520
|
-
var
|
|
2521
|
-
var
|
|
2522
|
-
var
|
|
2586
|
+
var React61 = __toESM(require("react"));
|
|
2587
|
+
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
2588
|
+
var import_icons22 = require("@elementor/icons");
|
|
2589
|
+
var import_ui47 = require("@elementor/ui");
|
|
2590
|
+
var import_i18n41 = require("@wordpress/i18n");
|
|
2591
|
+
var options12 = [
|
|
2523
2592
|
{
|
|
2524
2593
|
value: "none",
|
|
2525
|
-
label: (0,
|
|
2526
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2594
|
+
label: (0, import_i18n41.__)("None", "elementor"),
|
|
2595
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons22.MinusIcon, { fontSize: size }),
|
|
2527
2596
|
showTooltip: true
|
|
2528
2597
|
},
|
|
2529
2598
|
{
|
|
2530
2599
|
value: "capitalize",
|
|
2531
|
-
label: (0,
|
|
2532
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2600
|
+
label: (0, import_i18n41.__)("Capitalize", "elementor"),
|
|
2601
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons22.LetterCaseIcon, { fontSize: size }),
|
|
2533
2602
|
showTooltip: true
|
|
2534
2603
|
},
|
|
2535
2604
|
{
|
|
2536
2605
|
value: "uppercase",
|
|
2537
|
-
label: (0,
|
|
2538
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2606
|
+
label: (0, import_i18n41.__)("Uppercase", "elementor"),
|
|
2607
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons22.LetterCaseUpperIcon, { fontSize: size }),
|
|
2539
2608
|
showTooltip: true
|
|
2540
2609
|
},
|
|
2541
2610
|
{
|
|
2542
2611
|
value: "lowercase",
|
|
2543
|
-
label: (0,
|
|
2544
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2612
|
+
label: (0, import_i18n41.__)("Lowercase", "elementor"),
|
|
2613
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons22.LetterCaseLowerIcon, { fontSize: size }),
|
|
2545
2614
|
showTooltip: true
|
|
2546
2615
|
}
|
|
2547
2616
|
];
|
|
2548
|
-
var TransformField = () => /* @__PURE__ */
|
|
2617
|
+
var TransformField = () => /* @__PURE__ */ React61.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React61.createElement(import_ui47.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React61.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(import_editor_controls42.ControlLabel, null, (0, import_i18n41.__)("Text transform", "elementor"))), /* @__PURE__ */ React61.createElement(import_ui47.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React61.createElement(import_editor_controls42.ToggleControl, { options: options12 }))));
|
|
2549
2618
|
|
|
2550
2619
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
2551
|
-
var
|
|
2552
|
-
var
|
|
2553
|
-
var
|
|
2554
|
-
var
|
|
2620
|
+
var React62 = __toESM(require("react"));
|
|
2621
|
+
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
2622
|
+
var import_ui48 = require("@elementor/ui");
|
|
2623
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
2555
2624
|
var WordSpacingField = () => {
|
|
2556
|
-
return /* @__PURE__ */
|
|
2625
|
+
return /* @__PURE__ */ React62.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React62.createElement(import_ui48.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(import_editor_controls43.ControlLabel, null, (0, import_i18n42.__)("Word spacing", "elementor"))), /* @__PURE__ */ React62.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(import_editor_controls43.SizeControl, null))));
|
|
2557
2626
|
};
|
|
2558
2627
|
|
|
2559
2628
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
2560
2629
|
var TypographySection = () => {
|
|
2561
|
-
return /* @__PURE__ */
|
|
2630
|
+
return /* @__PURE__ */ React63.createElement(SectionContent, null, /* @__PURE__ */ React63.createElement(FontFamilyField, null), /* @__PURE__ */ React63.createElement(FontWeightField, null), /* @__PURE__ */ React63.createElement(FontSizeField, null), /* @__PURE__ */ React63.createElement(PanelDivider, null), /* @__PURE__ */ React63.createElement(TextAlignmentField, null), /* @__PURE__ */ React63.createElement(TextColorField, null), /* @__PURE__ */ React63.createElement(CollapsibleContent, null, /* @__PURE__ */ React63.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React63.createElement(LineHeightField, null), /* @__PURE__ */ React63.createElement(LetterSpacingField, null), /* @__PURE__ */ React63.createElement(WordSpacingField, null), /* @__PURE__ */ React63.createElement(PanelDivider, null), /* @__PURE__ */ React63.createElement(TextDecorationField, null), /* @__PURE__ */ React63.createElement(TransformField, null), /* @__PURE__ */ React63.createElement(TextDirectionField, null), /* @__PURE__ */ React63.createElement(FontStyleField, null), /* @__PURE__ */ React63.createElement(TextStrokeField, null))));
|
|
2562
2631
|
};
|
|
2563
2632
|
|
|
2564
2633
|
// src/components/style-tab.tsx
|
|
@@ -2567,7 +2636,7 @@ var StyleTab = () => {
|
|
|
2567
2636
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
|
|
2568
2637
|
const [activeStyleState, setActiveStyleState] = (0, import_react16.useState)(null);
|
|
2569
2638
|
const breakpoint = (0, import_editor_responsive2.useActiveBreakpoint)();
|
|
2570
|
-
return /* @__PURE__ */
|
|
2639
|
+
return /* @__PURE__ */ React64.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React64.createElement(
|
|
2571
2640
|
StyleProvider,
|
|
2572
2641
|
{
|
|
2573
2642
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -2578,7 +2647,7 @@ var StyleTab = () => {
|
|
|
2578
2647
|
},
|
|
2579
2648
|
setMetaState: setActiveStyleState
|
|
2580
2649
|
},
|
|
2581
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ React64.createElement(import_session3.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React64.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React64.createElement(CssClassSelector, null), /* @__PURE__ */ React64.createElement(import_ui49.Divider, null), /* @__PURE__ */ React64.createElement(SectionsList, null, /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Layout", "elementor") }, /* @__PURE__ */ React64.createElement(LayoutSection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Spacing", "elementor") }, /* @__PURE__ */ React64.createElement(SpacingSection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Size", "elementor") }, /* @__PURE__ */ React64.createElement(SizeSection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Position", "elementor") }, /* @__PURE__ */ React64.createElement(PositionSection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Typography", "elementor") }, /* @__PURE__ */ React64.createElement(TypographySection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Background", "elementor") }, /* @__PURE__ */ React64.createElement(BackgroundSection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Border", "elementor") }, /* @__PURE__ */ React64.createElement(BorderSection, null)), /* @__PURE__ */ React64.createElement(Section, { title: (0, import_i18n43.__)("Effects", "elementor") }, /* @__PURE__ */ React64.createElement(EffectsSection, null)))))
|
|
2582
2651
|
));
|
|
2583
2652
|
};
|
|
2584
2653
|
function useActiveStyleDefId(currentClassesProp) {
|
|
@@ -2606,11 +2675,11 @@ function useCurrentClassesProp() {
|
|
|
2606
2675
|
// src/components/editing-panel-tabs.tsx
|
|
2607
2676
|
var EditingPanelTabs = () => {
|
|
2608
2677
|
const { element } = useElement();
|
|
2609
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
2678
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui50.useTabs)("settings");
|
|
2610
2679
|
return (
|
|
2611
2680
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
2612
2681
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
2613
|
-
/* @__PURE__ */
|
|
2682
|
+
/* @__PURE__ */ React65.createElement(import_react17.Fragment, { key: element.id }, /* @__PURE__ */ React65.createElement(import_ui50.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React65.createElement(import_ui50.Tabs, { variant: "fullWidth", indicatorColor: "secondary", textColor: "inherit", ...getTabsProps() }, /* @__PURE__ */ React65.createElement(import_ui50.Tab, { label: (0, import_i18n44.__)("General", "elementor"), ...getTabProps("settings") }), /* @__PURE__ */ React65.createElement(import_ui50.Tab, { label: (0, import_i18n44.__)("Style", "elementor"), ...getTabProps("style") })), /* @__PURE__ */ React65.createElement(import_ui50.Divider, null), /* @__PURE__ */ React65.createElement(import_ui50.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React65.createElement(SettingsTab, null)), /* @__PURE__ */ React65.createElement(import_ui50.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React65.createElement(StyleTab, null))))
|
|
2614
2683
|
);
|
|
2615
2684
|
};
|
|
2616
2685
|
|
|
@@ -2623,8 +2692,8 @@ var EditingPanel = () => {
|
|
|
2623
2692
|
if (!element || !elementType) {
|
|
2624
2693
|
return null;
|
|
2625
2694
|
}
|
|
2626
|
-
const panelTitle = (0,
|
|
2627
|
-
return /* @__PURE__ */
|
|
2695
|
+
const panelTitle = (0, import_i18n45.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
2696
|
+
return /* @__PURE__ */ React66.createElement(import_ui51.ErrorBoundary, { fallback: /* @__PURE__ */ React66.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React66.createElement(import_session4.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React66.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React66.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React66.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React66.createElement(import_icons23.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React66.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React66.createElement(import_editor_controls44.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React66.createElement(import_editor_controls44.ControlReplacementProvider, { ...controlReplacement }, /* @__PURE__ */ React66.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React66.createElement(EditingPanelTabs, null))))))));
|
|
2628
2697
|
};
|
|
2629
2698
|
|
|
2630
2699
|
// src/panel.ts
|
|
@@ -2673,17 +2742,17 @@ var EditingPanelHooks = () => {
|
|
|
2673
2742
|
};
|
|
2674
2743
|
|
|
2675
2744
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
2676
|
-
var
|
|
2745
|
+
var React70 = __toESM(require("react"));
|
|
2677
2746
|
var import_react22 = require("react");
|
|
2678
|
-
var
|
|
2679
|
-
var
|
|
2680
|
-
var
|
|
2681
|
-
var
|
|
2747
|
+
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
2748
|
+
var import_icons25 = require("@elementor/icons");
|
|
2749
|
+
var import_ui54 = require("@elementor/ui");
|
|
2750
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
2682
2751
|
|
|
2683
2752
|
// src/components/popover-content.tsx
|
|
2684
|
-
var
|
|
2685
|
-
var
|
|
2686
|
-
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */
|
|
2753
|
+
var React67 = __toESM(require("react"));
|
|
2754
|
+
var import_ui52 = require("@elementor/ui");
|
|
2755
|
+
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React67.createElement(import_ui52.Stack, { alignItems, gap, p }, children);
|
|
2687
2756
|
|
|
2688
2757
|
// src/hooks/use-persist-dynamic-value.ts
|
|
2689
2758
|
var import_session5 = require("@elementor/session");
|
|
@@ -2694,15 +2763,15 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
2694
2763
|
};
|
|
2695
2764
|
|
|
2696
2765
|
// src/dynamics/dynamic-control.tsx
|
|
2697
|
-
var
|
|
2698
|
-
var
|
|
2766
|
+
var React68 = __toESM(require("react"));
|
|
2767
|
+
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
2699
2768
|
|
|
2700
2769
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
2701
2770
|
var import_react20 = require("react");
|
|
2702
2771
|
|
|
2703
2772
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
2704
2773
|
var import_react19 = require("react");
|
|
2705
|
-
var
|
|
2774
|
+
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
2706
2775
|
|
|
2707
2776
|
// src/dynamics/sync/get-elementor-config.ts
|
|
2708
2777
|
var getElementorConfig2 = () => {
|
|
@@ -2748,7 +2817,7 @@ var dynamicPropTypeUtil = (0, import_editor_props6.createPropUtils)(
|
|
|
2748
2817
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
2749
2818
|
var usePropDynamicTags = () => {
|
|
2750
2819
|
let categories = [];
|
|
2751
|
-
const { propType } = (0,
|
|
2820
|
+
const { propType } = (0, import_editor_controls45.useBoundProp)();
|
|
2752
2821
|
if (propType) {
|
|
2753
2822
|
const propDynamicType = getDynamicPropType(propType);
|
|
2754
2823
|
categories = propDynamicType?.settings.categories || [];
|
|
@@ -2774,7 +2843,7 @@ var useDynamicTag = (tagName) => {
|
|
|
2774
2843
|
|
|
2775
2844
|
// src/dynamics/dynamic-control.tsx
|
|
2776
2845
|
var DynamicControl = ({ bind, children }) => {
|
|
2777
|
-
const { value, setValue } = (0,
|
|
2846
|
+
const { value, setValue } = (0, import_editor_controls46.useBoundProp)(dynamicPropTypeUtil);
|
|
2778
2847
|
const { name = "", settings } = value ?? {};
|
|
2779
2848
|
const dynamicTag = useDynamicTag(name);
|
|
2780
2849
|
if (!dynamicTag) {
|
|
@@ -2793,26 +2862,26 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
2793
2862
|
});
|
|
2794
2863
|
};
|
|
2795
2864
|
const propType = createTopLevelOjectType({ schema: dynamicTag.props_schema });
|
|
2796
|
-
return /* @__PURE__ */
|
|
2865
|
+
return /* @__PURE__ */ React68.createElement(import_editor_controls46.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React68.createElement(import_editor_controls46.PropKeyProvider, { bind }, children));
|
|
2797
2866
|
};
|
|
2798
2867
|
|
|
2799
2868
|
// src/dynamics/components/dynamic-selection.tsx
|
|
2800
|
-
var
|
|
2869
|
+
var React69 = __toESM(require("react"));
|
|
2801
2870
|
var import_react21 = require("react");
|
|
2802
|
-
var
|
|
2803
|
-
var
|
|
2804
|
-
var
|
|
2805
|
-
var
|
|
2871
|
+
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
2872
|
+
var import_icons24 = require("@elementor/icons");
|
|
2873
|
+
var import_ui53 = require("@elementor/ui");
|
|
2874
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
2806
2875
|
var SIZE3 = "tiny";
|
|
2807
2876
|
var DynamicSelection = ({ onSelect }) => {
|
|
2808
2877
|
const [searchValue, setSearchValue] = (0, import_react21.useState)("");
|
|
2809
2878
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
2810
|
-
const { value: anyValue } = (0,
|
|
2811
|
-
const { bind, value: dynamicValue, setValue } = (0,
|
|
2879
|
+
const { value: anyValue } = (0, import_editor_controls47.useBoundProp)();
|
|
2880
|
+
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls47.useBoundProp)(dynamicPropTypeUtil);
|
|
2812
2881
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
2813
2882
|
const isCurrentValueDynamic = !!dynamicValue;
|
|
2814
|
-
const
|
|
2815
|
-
const hasNoDynamicTags = !
|
|
2883
|
+
const options13 = useFilteredOptions(searchValue);
|
|
2884
|
+
const hasNoDynamicTags = !options13.length && !searchValue.trim();
|
|
2816
2885
|
const handleSearch = (event) => {
|
|
2817
2886
|
setSearchValue(event.target.value);
|
|
2818
2887
|
};
|
|
@@ -2823,28 +2892,28 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2823
2892
|
setValue({ name: value, settings: {} });
|
|
2824
2893
|
onSelect?.();
|
|
2825
2894
|
};
|
|
2826
|
-
return /* @__PURE__ */
|
|
2827
|
-
|
|
2895
|
+
return /* @__PURE__ */ React69.createElement(import_ui53.Stack, null, hasNoDynamicTags ? /* @__PURE__ */ React69.createElement(NoDynamicTags, null) : /* @__PURE__ */ React69.createElement(import_react21.Fragment, null, /* @__PURE__ */ React69.createElement(import_ui53.Box, { px: 1.5, pb: 1 }, /* @__PURE__ */ React69.createElement(
|
|
2896
|
+
import_ui53.TextField,
|
|
2828
2897
|
{
|
|
2829
2898
|
fullWidth: true,
|
|
2830
2899
|
size: SIZE3,
|
|
2831
2900
|
value: searchValue,
|
|
2832
2901
|
onChange: handleSearch,
|
|
2833
|
-
placeholder: (0,
|
|
2902
|
+
placeholder: (0, import_i18n46.__)("Search dynamic tags\u2026", "elementor"),
|
|
2834
2903
|
InputProps: {
|
|
2835
|
-
startAdornment: /* @__PURE__ */
|
|
2904
|
+
startAdornment: /* @__PURE__ */ React69.createElement(import_ui53.InputAdornment, { position: "start" }, /* @__PURE__ */ React69.createElement(import_icons24.SearchIcon, { fontSize: SIZE3 }))
|
|
2836
2905
|
}
|
|
2837
2906
|
}
|
|
2838
|
-
)), /* @__PURE__ */
|
|
2839
|
-
|
|
2907
|
+
)), /* @__PURE__ */ React69.createElement(import_ui53.Divider, null), /* @__PURE__ */ React69.createElement(import_ui53.Box, { sx: { overflowY: "auto", height: 260, width: 220 } }, options13.length > 0 ? /* @__PURE__ */ React69.createElement(import_ui53.MenuList, { role: "listbox", tabIndex: 0 }, options13.map(([category, items3], index) => /* @__PURE__ */ React69.createElement(import_react21.Fragment, { key: index }, /* @__PURE__ */ React69.createElement(
|
|
2908
|
+
import_ui53.ListSubheader,
|
|
2840
2909
|
{
|
|
2841
2910
|
sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
|
|
2842
2911
|
},
|
|
2843
2912
|
dynamicGroups?.[category]?.title || category
|
|
2844
2913
|
), items3.map(({ value, label: tagLabel }) => {
|
|
2845
2914
|
const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
|
|
2846
|
-
return /* @__PURE__ */
|
|
2847
|
-
|
|
2915
|
+
return /* @__PURE__ */ React69.createElement(
|
|
2916
|
+
import_ui53.MenuItem,
|
|
2848
2917
|
{
|
|
2849
2918
|
key: value,
|
|
2850
2919
|
selected: isSelected,
|
|
@@ -2854,10 +2923,10 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2854
2923
|
},
|
|
2855
2924
|
tagLabel
|
|
2856
2925
|
);
|
|
2857
|
-
})))) : /* @__PURE__ */
|
|
2926
|
+
})))) : /* @__PURE__ */ React69.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
|
|
2858
2927
|
};
|
|
2859
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
2860
|
-
|
|
2928
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React69.createElement(
|
|
2929
|
+
import_ui53.Stack,
|
|
2861
2930
|
{
|
|
2862
2931
|
gap: 1,
|
|
2863
2932
|
alignItems: "center",
|
|
@@ -2867,12 +2936,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React68.createElem
|
|
|
2867
2936
|
color: "text.secondary",
|
|
2868
2937
|
sx: { pb: 3.5 }
|
|
2869
2938
|
},
|
|
2870
|
-
/* @__PURE__ */
|
|
2871
|
-
/* @__PURE__ */
|
|
2872
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ React69.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
2940
|
+
/* @__PURE__ */ React69.createElement(import_ui53.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n46.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React69.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
2941
|
+
/* @__PURE__ */ React69.createElement(import_ui53.Typography, { align: "center", variant: "caption" }, (0, import_i18n46.__)("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React69.createElement(import_ui53.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n46.__)("Clear & try again", "elementor")))
|
|
2873
2942
|
);
|
|
2874
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
2875
|
-
|
|
2943
|
+
var NoDynamicTags = () => /* @__PURE__ */ React69.createElement(import_ui53.Box, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React69.createElement(import_ui53.Divider, null), /* @__PURE__ */ React69.createElement(
|
|
2944
|
+
import_ui53.Stack,
|
|
2876
2945
|
{
|
|
2877
2946
|
gap: 1,
|
|
2878
2947
|
alignItems: "center",
|
|
@@ -2882,13 +2951,13 @@ var NoDynamicTags = () => /* @__PURE__ */ React68.createElement(import_ui52.Box,
|
|
|
2882
2951
|
color: "text.secondary",
|
|
2883
2952
|
sx: { pb: 3.5 }
|
|
2884
2953
|
},
|
|
2885
|
-
/* @__PURE__ */
|
|
2886
|
-
/* @__PURE__ */
|
|
2887
|
-
/* @__PURE__ */
|
|
2954
|
+
/* @__PURE__ */ React69.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
2955
|
+
/* @__PURE__ */ React69.createElement(import_ui53.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n46.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
2956
|
+
/* @__PURE__ */ React69.createElement(import_ui53.Typography, { align: "center", variant: "caption" }, (0, import_i18n46.__)("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
|
|
2888
2957
|
));
|
|
2889
2958
|
var useFilteredOptions = (searchValue) => {
|
|
2890
2959
|
const dynamicTags = usePropDynamicTags();
|
|
2891
|
-
const
|
|
2960
|
+
const options13 = dynamicTags.reduce((categories, { name, label, group }) => {
|
|
2892
2961
|
const isVisible = label.toLowerCase().includes(searchValue.trim().toLowerCase());
|
|
2893
2962
|
if (!isVisible) {
|
|
2894
2963
|
return categories;
|
|
@@ -2899,18 +2968,18 @@ var useFilteredOptions = (searchValue) => {
|
|
|
2899
2968
|
categories.get(group)?.push({ label, value: name });
|
|
2900
2969
|
return categories;
|
|
2901
2970
|
}, /* @__PURE__ */ new Map());
|
|
2902
|
-
return [...
|
|
2971
|
+
return [...options13];
|
|
2903
2972
|
};
|
|
2904
2973
|
|
|
2905
2974
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
2906
2975
|
var SIZE4 = "tiny";
|
|
2907
2976
|
var DynamicSelectionControl = () => {
|
|
2908
|
-
const { setValue: setAnyValue } = (0,
|
|
2909
|
-
const { bind, value } = (0,
|
|
2977
|
+
const { setValue: setAnyValue } = (0, import_editor_controls48.useBoundProp)();
|
|
2978
|
+
const { bind, value } = (0, import_editor_controls48.useBoundProp)(dynamicPropTypeUtil);
|
|
2910
2979
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
2911
2980
|
const { name: tagName = "" } = value;
|
|
2912
2981
|
const selectionPopoverId = (0, import_react22.useId)();
|
|
2913
|
-
const selectionPopoverState = (0,
|
|
2982
|
+
const selectionPopoverState = (0, import_ui54.usePopupState)({ variant: "popover", popupId: selectionPopoverId });
|
|
2914
2983
|
const dynamicTag = useDynamicTag(tagName);
|
|
2915
2984
|
const removeDynamicTag = () => {
|
|
2916
2985
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -2918,70 +2987,70 @@ var DynamicSelectionControl = () => {
|
|
|
2918
2987
|
if (!dynamicTag) {
|
|
2919
2988
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
2920
2989
|
}
|
|
2921
|
-
return /* @__PURE__ */
|
|
2922
|
-
|
|
2990
|
+
return /* @__PURE__ */ React70.createElement(import_ui54.Box, null, /* @__PURE__ */ React70.createElement(
|
|
2991
|
+
import_ui54.UnstableTag,
|
|
2923
2992
|
{
|
|
2924
2993
|
fullWidth: true,
|
|
2925
2994
|
showActionsOnHover: true,
|
|
2926
2995
|
label: dynamicTag.label,
|
|
2927
|
-
startIcon: /* @__PURE__ */
|
|
2928
|
-
...(0,
|
|
2929
|
-
actions: /* @__PURE__ */
|
|
2930
|
-
|
|
2996
|
+
startIcon: /* @__PURE__ */ React70.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4 }),
|
|
2997
|
+
...(0, import_ui54.bindTrigger)(selectionPopoverState),
|
|
2998
|
+
actions: /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React70.createElement(
|
|
2999
|
+
import_ui54.IconButton,
|
|
2931
3000
|
{
|
|
2932
3001
|
size: SIZE4,
|
|
2933
3002
|
onClick: removeDynamicTag,
|
|
2934
|
-
"aria-label": (0,
|
|
3003
|
+
"aria-label": (0, import_i18n47.__)("Remove dynamic value", "elementor")
|
|
2935
3004
|
},
|
|
2936
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ React70.createElement(import_icons25.XIcon, { fontSize: SIZE4 })
|
|
2937
3006
|
))
|
|
2938
3007
|
}
|
|
2939
|
-
), /* @__PURE__ */
|
|
2940
|
-
|
|
3008
|
+
), /* @__PURE__ */ React70.createElement(
|
|
3009
|
+
import_ui54.Popover,
|
|
2941
3010
|
{
|
|
2942
3011
|
disablePortal: true,
|
|
2943
3012
|
disableScrollLock: true,
|
|
2944
3013
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
2945
|
-
...(0,
|
|
3014
|
+
...(0, import_ui54.bindPopover)(selectionPopoverState)
|
|
2946
3015
|
},
|
|
2947
|
-
/* @__PURE__ */
|
|
3016
|
+
/* @__PURE__ */ React70.createElement(import_ui54.Stack, null, /* @__PURE__ */ React70.createElement(import_ui54.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React70.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React70.createElement(import_ui54.Typography, { variant: "subtitle2" }, (0, import_i18n47.__)("Dynamic tags", "elementor")), /* @__PURE__ */ React70.createElement(import_ui54.IconButton, { size: SIZE4, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React70.createElement(import_icons25.XIcon, { fontSize: SIZE4 }))), /* @__PURE__ */ React70.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
|
|
2948
3017
|
));
|
|
2949
3018
|
};
|
|
2950
3019
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
2951
3020
|
const popupId = (0, import_react22.useId)();
|
|
2952
|
-
const settingsPopupState = (0,
|
|
3021
|
+
const settingsPopupState = (0, import_ui54.usePopupState)({ variant: "popover", popupId });
|
|
2953
3022
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
2954
3023
|
if (!hasDynamicSettings) {
|
|
2955
3024
|
return null;
|
|
2956
3025
|
}
|
|
2957
|
-
return /* @__PURE__ */
|
|
2958
|
-
|
|
3026
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(
|
|
3027
|
+
import_ui54.IconButton,
|
|
2959
3028
|
{
|
|
2960
3029
|
size: SIZE4,
|
|
2961
|
-
...(0,
|
|
2962
|
-
"aria-label": (0,
|
|
3030
|
+
...(0, import_ui54.bindTrigger)(settingsPopupState),
|
|
3031
|
+
"aria-label": (0, import_i18n47.__)("Settings", "elementor")
|
|
2963
3032
|
},
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
), /* @__PURE__ */
|
|
2966
|
-
|
|
3033
|
+
/* @__PURE__ */ React70.createElement(import_icons25.SettingsIcon, { fontSize: SIZE4 })
|
|
3034
|
+
), /* @__PURE__ */ React70.createElement(
|
|
3035
|
+
import_ui54.Popover,
|
|
2967
3036
|
{
|
|
2968
3037
|
disableScrollLock: true,
|
|
2969
3038
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
2970
|
-
...(0,
|
|
3039
|
+
...(0, import_ui54.bindPopover)(settingsPopupState)
|
|
2971
3040
|
},
|
|
2972
|
-
/* @__PURE__ */
|
|
3041
|
+
/* @__PURE__ */ React70.createElement(import_ui54.Paper, { component: import_ui54.Stack, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React70.createElement(import_ui54.Stack, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React70.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React70.createElement(import_ui54.Typography, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React70.createElement(import_ui54.IconButton, { sx: { ml: "auto" }, size: SIZE4, onClick: settingsPopupState.close }, /* @__PURE__ */ React70.createElement(import_icons25.XIcon, { fontSize: SIZE4 }))), /* @__PURE__ */ React70.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
2973
3042
|
));
|
|
2974
3043
|
};
|
|
2975
3044
|
var DynamicSettings = ({ controls }) => {
|
|
2976
3045
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
2977
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
3046
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui54.useTabs)(0);
|
|
2978
3047
|
if (!tabs.length) {
|
|
2979
3048
|
return null;
|
|
2980
3049
|
}
|
|
2981
|
-
return /* @__PURE__ */
|
|
2982
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(import_ui54.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React70.createElement(import_ui54.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React70.createElement(import_ui54.Divider, null), tabs.map(({ value }, index) => {
|
|
3051
|
+
return /* @__PURE__ */ React70.createElement(import_ui54.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React70.createElement(PopoverContent, { p: 1.5 }, value.items.map((item) => {
|
|
2983
3052
|
if (item.type === "control") {
|
|
2984
|
-
return /* @__PURE__ */
|
|
3053
|
+
return /* @__PURE__ */ React70.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
2985
3054
|
}
|
|
2986
3055
|
return null;
|
|
2987
3056
|
})));
|
|
@@ -2991,22 +3060,22 @@ var Control3 = ({ control }) => {
|
|
|
2991
3060
|
if (!getControlByType(control.type)) {
|
|
2992
3061
|
return null;
|
|
2993
3062
|
}
|
|
2994
|
-
return /* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ React70.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React70.createElement(import_ui54.Grid, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React70.createElement(import_ui54.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React70.createElement(import_editor_controls48.ControlLabel, null, control.label)) : null, /* @__PURE__ */ React70.createElement(import_ui54.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React70.createElement(Control, { type: control.type, props: control.props }))));
|
|
2995
3064
|
};
|
|
2996
3065
|
|
|
2997
3066
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
2998
|
-
var
|
|
2999
|
-
var
|
|
3000
|
-
var
|
|
3001
|
-
var
|
|
3067
|
+
var React71 = __toESM(require("react"));
|
|
3068
|
+
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
3069
|
+
var import_icons26 = require("@elementor/icons");
|
|
3070
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
3002
3071
|
var usePropDynamicAction = () => {
|
|
3003
|
-
const { propType } = (0,
|
|
3072
|
+
const { propType } = (0, import_editor_controls49.useBoundProp)();
|
|
3004
3073
|
const visible = !!propType && supportsDynamic(propType);
|
|
3005
3074
|
return {
|
|
3006
3075
|
visible,
|
|
3007
|
-
icon:
|
|
3008
|
-
title: (0,
|
|
3009
|
-
popoverContent: ({ closePopover }) => /* @__PURE__ */
|
|
3076
|
+
icon: import_icons26.DatabaseIcon,
|
|
3077
|
+
title: (0, import_i18n48.__)("Dynamic tags", "elementor"),
|
|
3078
|
+
popoverContent: ({ closePopover }) => /* @__PURE__ */ React71.createElement(DynamicSelection, { onSelect: closePopover })
|
|
3010
3079
|
};
|
|
3011
3080
|
};
|
|
3012
3081
|
|