@elementor/editor-editing-panel 1.31.0 → 1.32.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 +14 -0
- package/dist/index.js +454 -355
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +366 -267
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/hooks/use-normalized-inheritance-chain-items.tsx +68 -0
- package/src/styles-inheritance/styles-inheritance-indicator.tsx +65 -19
- package/src/styles-inheritance/styles-inheritance-infotip.tsx +50 -0
- package/src/sync/get-experiments-config.ts +7 -0
- package/src/sync/types.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -916,14 +916,14 @@ function useHandleApply(appliedIds, setAppliedIds) {
|
|
|
916
916
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
917
917
|
|
|
918
918
|
// src/components/editing-panel.tsx
|
|
919
|
-
var
|
|
919
|
+
var React70 = __toESM(require("react"));
|
|
920
920
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
921
921
|
var import_editor_elements8 = require("@elementor/editor-elements");
|
|
922
922
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
923
923
|
var import_editor_ui3 = require("@elementor/editor-ui");
|
|
924
924
|
var import_icons23 = require("@elementor/icons");
|
|
925
925
|
var import_session4 = require("@elementor/session");
|
|
926
|
-
var
|
|
926
|
+
var import_ui57 = require("@elementor/ui");
|
|
927
927
|
var import_i18n46 = require("@wordpress/i18n");
|
|
928
928
|
|
|
929
929
|
// src/controls-actions.ts
|
|
@@ -980,9 +980,9 @@ function EditorPanelErrorFallback() {
|
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
// src/components/editing-panel-tabs.tsx
|
|
983
|
-
var
|
|
984
|
-
var
|
|
985
|
-
var
|
|
983
|
+
var React69 = __toESM(require("react"));
|
|
984
|
+
var import_react24 = require("react");
|
|
985
|
+
var import_ui56 = require("@elementor/ui");
|
|
986
986
|
var import_i18n45 = require("@wordpress/i18n");
|
|
987
987
|
|
|
988
988
|
// src/contexts/scroll-context.tsx
|
|
@@ -1192,12 +1192,12 @@ var Control2 = ({ control }) => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
|
|
1194
1194
|
// src/components/style-tab.tsx
|
|
1195
|
-
var
|
|
1196
|
-
var
|
|
1195
|
+
var React68 = __toESM(require("react"));
|
|
1196
|
+
var import_react23 = require("react");
|
|
1197
1197
|
var import_editor_props7 = require("@elementor/editor-props");
|
|
1198
1198
|
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
1199
1199
|
var import_session3 = require("@elementor/session");
|
|
1200
|
-
var
|
|
1200
|
+
var import_ui55 = require("@elementor/ui");
|
|
1201
1201
|
var import_i18n44 = require("@wordpress/i18n");
|
|
1202
1202
|
|
|
1203
1203
|
// src/contexts/styles-inheritance-context.tsx
|
|
@@ -1440,13 +1440,13 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
1442
|
// src/components/style-sections/background-section/background-section.tsx
|
|
1443
|
-
var
|
|
1443
|
+
var React21 = __toESM(require("react"));
|
|
1444
1444
|
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
1445
1445
|
|
|
1446
1446
|
// src/controls-registry/styles-field.tsx
|
|
1447
|
-
var
|
|
1447
|
+
var React20 = __toESM(require("react"));
|
|
1448
1448
|
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
1449
|
-
var
|
|
1449
|
+
var import_editor_styles3 = require("@elementor/editor-styles");
|
|
1450
1450
|
|
|
1451
1451
|
// src/hooks/use-styles-fields.ts
|
|
1452
1452
|
var import_react14 = require("react");
|
|
@@ -1585,11 +1585,87 @@ function useStylesField(propName) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
1587
|
// src/styles-inheritance/styles-inheritance-indicator.tsx
|
|
1588
|
-
var
|
|
1588
|
+
var React19 = __toESM(require("react"));
|
|
1589
|
+
var import_react17 = require("react");
|
|
1589
1590
|
var import_editor_controls5 = require("@elementor/editor-controls");
|
|
1590
1591
|
var import_editor_styles_repository7 = require("@elementor/editor-styles-repository");
|
|
1592
|
+
var import_ui15 = require("@elementor/ui");
|
|
1591
1593
|
var import_i18n5 = require("@wordpress/i18n");
|
|
1594
|
+
|
|
1595
|
+
// src/sync/get-experiments-config.ts
|
|
1596
|
+
var getExperimentsConfig = () => {
|
|
1597
|
+
const extendedWindow = window;
|
|
1598
|
+
return extendedWindow.elementorCommon?.config?.experimentalFeatures ?? {};
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
// src/styles-inheritance/styles-inheritance-infotip.tsx
|
|
1602
|
+
var React18 = __toESM(require("react"));
|
|
1603
|
+
var import_react16 = require("react");
|
|
1604
|
+
var import_editor_canvas = require("@elementor/editor-canvas");
|
|
1605
|
+
var import_editor_styles2 = require("@elementor/editor-styles");
|
|
1606
|
+
var import_ui14 = require("@elementor/ui");
|
|
1607
|
+
|
|
1608
|
+
// src/hooks/use-normalized-inheritance-chain-items.tsx
|
|
1609
|
+
var import_react15 = require("react");
|
|
1610
|
+
var MAXIMUM_ITEMS = 2;
|
|
1611
|
+
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
1612
|
+
const [items3, setItems] = (0, import_react15.useState)([]);
|
|
1613
|
+
(0, import_react15.useEffect)(() => {
|
|
1614
|
+
(async () => {
|
|
1615
|
+
const normalizedItems = await Promise.all(
|
|
1616
|
+
inheritanceChain.filter((item) => item.style?.label).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
|
|
1617
|
+
);
|
|
1618
|
+
const validItems = normalizedItems.filter((item) => item.value !== "").slice(0, MAXIMUM_ITEMS);
|
|
1619
|
+
setItems(validItems);
|
|
1620
|
+
})();
|
|
1621
|
+
}, [inheritanceChain, bind, resolve]);
|
|
1622
|
+
return items3;
|
|
1623
|
+
};
|
|
1624
|
+
var normalizeInheritanceItem = async (item, index, bind, resolve) => {
|
|
1625
|
+
const state = item.variant?.meta?.state || "";
|
|
1626
|
+
const label = item.style?.label || "";
|
|
1627
|
+
const displayLabel = state ? `${label}:${state}` : label;
|
|
1628
|
+
return {
|
|
1629
|
+
id: item.style?.id ? item.style?.id + state : index,
|
|
1630
|
+
breakpoint: item.variant?.meta?.breakpoint,
|
|
1631
|
+
displayLabel,
|
|
1632
|
+
value: await getTransformedValue(item, bind, resolve)
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
var getTransformedValue = async (item, bind, resolve) => {
|
|
1636
|
+
try {
|
|
1637
|
+
const result = await resolve({
|
|
1638
|
+
props: {
|
|
1639
|
+
[bind]: item.value
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
return Object.values(result).join(" ");
|
|
1643
|
+
} catch {
|
|
1644
|
+
return "";
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
// src/styles-inheritance/styles-inheritance-infotip.tsx
|
|
1649
|
+
var StyleIndicatorInfotip = ({ inheritanceChain, bind }) => {
|
|
1650
|
+
const resolve = (0, import_react16.useMemo)(() => {
|
|
1651
|
+
const stylesSchema = (0, import_editor_styles2.getStylesSchema)();
|
|
1652
|
+
return (0, import_editor_canvas.createPropsResolver)({
|
|
1653
|
+
transformers: import_editor_canvas.styleTransformersRegistry,
|
|
1654
|
+
schema: { [bind]: stylesSchema[bind] }
|
|
1655
|
+
});
|
|
1656
|
+
}, [bind]);
|
|
1657
|
+
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, bind, resolve);
|
|
1658
|
+
return /* @__PURE__ */ React18.createElement(import_ui14.Card, { elevation: 0, sx: { maxWidth: 320 } }, /* @__PURE__ */ React18.createElement(import_ui14.CardContent, { sx: { p: 1.5, pb: 2.5 } }, /* @__PURE__ */ React18.createElement(import_ui14.List, null, items3.map((item) => /* @__PURE__ */ React18.createElement(import_ui14.ListItem, { key: item.id }, /* @__PURE__ */ React18.createElement(
|
|
1659
|
+
import_ui14.ListItemText,
|
|
1660
|
+
{
|
|
1661
|
+
primary: `${item.breakpoint} | ${item.displayLabel}. ${item.value}`
|
|
1662
|
+
}
|
|
1663
|
+
))))));
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
// src/styles-inheritance/styles-inheritance-indicator.tsx
|
|
1592
1667
|
var StylesInheritanceIndicator = () => {
|
|
1668
|
+
const [open, setOpen] = (0, import_react17.useState)(false);
|
|
1593
1669
|
const { value, path } = (0, import_editor_controls5.useBoundProp)();
|
|
1594
1670
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
1595
1671
|
const [bind] = path;
|
|
@@ -1602,38 +1678,61 @@ var StylesInheritanceIndicator = () => {
|
|
|
1602
1678
|
return null;
|
|
1603
1679
|
}
|
|
1604
1680
|
const { breakpoint, state } = variant.meta;
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1681
|
+
const isFinalValue = style.id === currentStyleId && breakpoint === currentStyleMeta.breakpoint && state === currentStyleMeta.state;
|
|
1682
|
+
const hasValue = value !== null && value !== void 0;
|
|
1683
|
+
const label = getLabel({ isFinalValue, hasValue });
|
|
1684
|
+
const variantType = getVariant({ isFinalValue, hasValue, currentStyleProvider });
|
|
1685
|
+
const { e_indications_popover: eIndicationsPopover } = getExperimentsConfig();
|
|
1686
|
+
if (!eIndicationsPopover) {
|
|
1687
|
+
return /* @__PURE__ */ React19.createElement(StyleIndicator, { variant: variantType, "aria-label": label });
|
|
1688
|
+
}
|
|
1689
|
+
const toggleOpen = () => setOpen((prev) => !prev);
|
|
1690
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1691
|
+
import_ui15.Infotip,
|
|
1692
|
+
{
|
|
1693
|
+
placement: "top",
|
|
1694
|
+
content: /* @__PURE__ */ React19.createElement(StyleIndicatorInfotip, { inheritanceChain, bind }),
|
|
1695
|
+
open,
|
|
1696
|
+
onClose: () => setOpen(false),
|
|
1697
|
+
trigger: "manual"
|
|
1698
|
+
},
|
|
1699
|
+
/* @__PURE__ */ React19.createElement(import_ui15.IconButton, { onClick: toggleOpen, "aria-label": label }, /* @__PURE__ */ React19.createElement(StyleIndicator, { variant: variantType }))
|
|
1700
|
+
);
|
|
1701
|
+
};
|
|
1702
|
+
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
1703
|
+
if (isFinalValue) {
|
|
1704
|
+
return (0, import_i18n5.__)("This is the final value", "elementor");
|
|
1613
1705
|
}
|
|
1614
|
-
if (
|
|
1615
|
-
return
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1706
|
+
if (hasValue) {
|
|
1707
|
+
return (0, import_i18n5.__)("This value is overridden by another style", "elementor");
|
|
1708
|
+
}
|
|
1709
|
+
return (0, import_i18n5.__)("This has value from another style", "elementor");
|
|
1710
|
+
};
|
|
1711
|
+
var getVariant = ({
|
|
1712
|
+
isFinalValue,
|
|
1713
|
+
hasValue,
|
|
1714
|
+
currentStyleProvider
|
|
1715
|
+
}) => {
|
|
1716
|
+
if (isFinalValue) {
|
|
1717
|
+
return (0, import_editor_styles_repository7.isElementsStylesProvider)(currentStyleProvider?.getKey?.()) ? "local" : "global";
|
|
1718
|
+
}
|
|
1719
|
+
if (hasValue) {
|
|
1720
|
+
return "overridden";
|
|
1622
1721
|
}
|
|
1623
|
-
return
|
|
1722
|
+
return void 0;
|
|
1624
1723
|
};
|
|
1625
1724
|
|
|
1626
1725
|
// src/controls-registry/styles-field.tsx
|
|
1627
1726
|
var StylesField = ({ bind, placeholder, children }) => {
|
|
1628
1727
|
const [value, setValue] = useStylesField(bind);
|
|
1629
|
-
const stylesSchema = (0,
|
|
1728
|
+
const stylesSchema = (0, import_editor_styles3.getStylesSchema)();
|
|
1630
1729
|
const propType = createTopLevelOjectType({ schema: stylesSchema });
|
|
1631
1730
|
const values = { [bind]: value };
|
|
1632
1731
|
const placeholderValues = { [bind]: placeholder };
|
|
1633
1732
|
const setValues = (newValue) => {
|
|
1634
1733
|
setValue(newValue[bind]);
|
|
1635
1734
|
};
|
|
1636
|
-
return /* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1637
1736
|
import_editor_controls6.ControlAdornmentsProvider,
|
|
1638
1737
|
{
|
|
1639
1738
|
items: [
|
|
@@ -1643,7 +1742,7 @@ var StylesField = ({ bind, placeholder, children }) => {
|
|
|
1643
1742
|
}
|
|
1644
1743
|
]
|
|
1645
1744
|
},
|
|
1646
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ React20.createElement(
|
|
1647
1746
|
import_editor_controls6.PropProvider,
|
|
1648
1747
|
{
|
|
1649
1748
|
propType,
|
|
@@ -1651,51 +1750,51 @@ var StylesField = ({ bind, placeholder, children }) => {
|
|
|
1651
1750
|
setValue: setValues,
|
|
1652
1751
|
placeholder: placeholderValues
|
|
1653
1752
|
},
|
|
1654
|
-
/* @__PURE__ */
|
|
1753
|
+
/* @__PURE__ */ React20.createElement(import_editor_controls6.PropKeyProvider, { bind }, children)
|
|
1655
1754
|
)
|
|
1656
1755
|
);
|
|
1657
1756
|
};
|
|
1658
1757
|
|
|
1659
1758
|
// src/components/style-sections/background-section/background-section.tsx
|
|
1660
1759
|
var BackgroundSection = () => {
|
|
1661
|
-
return /* @__PURE__ */
|
|
1760
|
+
return /* @__PURE__ */ React21.createElement(StylesField, { bind: "background" }, /* @__PURE__ */ React21.createElement(import_editor_controls7.BackgroundControl, null));
|
|
1662
1761
|
};
|
|
1663
1762
|
|
|
1664
1763
|
// src/components/style-sections/border-section/border-section.tsx
|
|
1665
|
-
var
|
|
1764
|
+
var React31 = __toESM(require("react"));
|
|
1666
1765
|
|
|
1667
1766
|
// src/components/panel-divider.tsx
|
|
1668
|
-
var
|
|
1669
|
-
var
|
|
1670
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
1767
|
+
var React22 = __toESM(require("react"));
|
|
1768
|
+
var import_ui16 = require("@elementor/ui");
|
|
1769
|
+
var PanelDivider = () => /* @__PURE__ */ React22.createElement(import_ui16.Divider, { sx: { my: 0.5 } });
|
|
1671
1770
|
|
|
1672
1771
|
// src/components/section-content.tsx
|
|
1673
|
-
var
|
|
1674
|
-
var
|
|
1675
|
-
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */
|
|
1772
|
+
var React23 = __toESM(require("react"));
|
|
1773
|
+
var import_ui17 = require("@elementor/ui");
|
|
1774
|
+
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React23.createElement(import_ui17.Stack, { gap, sx: { ...sx } }, children);
|
|
1676
1775
|
|
|
1677
1776
|
// src/components/style-sections/border-section/border-field.tsx
|
|
1678
|
-
var
|
|
1777
|
+
var React29 = __toESM(require("react"));
|
|
1679
1778
|
var import_i18n9 = require("@wordpress/i18n");
|
|
1680
1779
|
|
|
1681
1780
|
// src/components/add-or-remove-content.tsx
|
|
1682
|
-
var
|
|
1781
|
+
var React25 = __toESM(require("react"));
|
|
1683
1782
|
var import_icons5 = require("@elementor/icons");
|
|
1684
|
-
var
|
|
1783
|
+
var import_ui19 = require("@elementor/ui");
|
|
1685
1784
|
|
|
1686
1785
|
// src/components/control-label.tsx
|
|
1687
|
-
var
|
|
1786
|
+
var React24 = __toESM(require("react"));
|
|
1688
1787
|
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
1689
|
-
var
|
|
1788
|
+
var import_ui18 = require("@elementor/ui");
|
|
1690
1789
|
var ControlLabel = ({ children }) => {
|
|
1691
|
-
return /* @__PURE__ */
|
|
1790
|
+
return /* @__PURE__ */ React24.createElement(import_ui18.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 1 }, /* @__PURE__ */ React24.createElement(import_editor_controls8.ControlFormLabel, null, children), /* @__PURE__ */ React24.createElement(import_editor_controls8.ControlAdornments, null));
|
|
1692
1791
|
};
|
|
1693
1792
|
|
|
1694
1793
|
// src/components/add-or-remove-content.tsx
|
|
1695
1794
|
var SIZE2 = "tiny";
|
|
1696
1795
|
var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
|
|
1697
|
-
return /* @__PURE__ */
|
|
1698
|
-
|
|
1796
|
+
return /* @__PURE__ */ React25.createElement(SectionContent, null, /* @__PURE__ */ React25.createElement(
|
|
1797
|
+
import_ui19.Stack,
|
|
1699
1798
|
{
|
|
1700
1799
|
direction: "row",
|
|
1701
1800
|
sx: {
|
|
@@ -1704,24 +1803,24 @@ var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
|
|
|
1704
1803
|
marginInlineEnd: -0.75
|
|
1705
1804
|
}
|
|
1706
1805
|
},
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
isAdded ? /* @__PURE__ */
|
|
1709
|
-
), /* @__PURE__ */
|
|
1806
|
+
/* @__PURE__ */ React25.createElement(ControlLabel, null, label),
|
|
1807
|
+
isAdded ? /* @__PURE__ */ React25.createElement(import_ui19.IconButton, { size: SIZE2, onClick: onRemove, "aria-label": "Remove" }, /* @__PURE__ */ React25.createElement(import_icons5.MinusIcon, { fontSize: SIZE2 })) : /* @__PURE__ */ React25.createElement(import_ui19.IconButton, { size: SIZE2, onClick: onAdd, "aria-label": "Add" }, /* @__PURE__ */ React25.createElement(import_icons5.PlusIcon, { fontSize: SIZE2 }))
|
|
1808
|
+
), /* @__PURE__ */ React25.createElement(import_ui19.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React25.createElement(SectionContent, null, children)));
|
|
1710
1809
|
};
|
|
1711
1810
|
|
|
1712
1811
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
1713
|
-
var
|
|
1812
|
+
var React26 = __toESM(require("react"));
|
|
1714
1813
|
var import_editor_controls9 = require("@elementor/editor-controls");
|
|
1715
|
-
var
|
|
1814
|
+
var import_ui20 = require("@elementor/ui");
|
|
1716
1815
|
var import_i18n6 = require("@wordpress/i18n");
|
|
1717
1816
|
var BorderColorField = () => {
|
|
1718
|
-
return /* @__PURE__ */
|
|
1817
|
+
return /* @__PURE__ */ React26.createElement(StylesField, { bind: "border-color" }, /* @__PURE__ */ React26.createElement(import_ui20.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React26.createElement(import_ui20.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React26.createElement(ControlLabel, null, (0, import_i18n6.__)("Border color", "elementor"))), /* @__PURE__ */ React26.createElement(import_ui20.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React26.createElement(import_editor_controls9.ColorControl, null))));
|
|
1719
1818
|
};
|
|
1720
1819
|
|
|
1721
1820
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
1722
|
-
var
|
|
1821
|
+
var React27 = __toESM(require("react"));
|
|
1723
1822
|
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
1724
|
-
var
|
|
1823
|
+
var import_ui21 = require("@elementor/ui");
|
|
1725
1824
|
var import_i18n7 = require("@wordpress/i18n");
|
|
1726
1825
|
var borderStyles = [
|
|
1727
1826
|
{ value: "none", label: (0, import_i18n7.__)("None", "elementor") },
|
|
@@ -1735,58 +1834,58 @@ var borderStyles = [
|
|
|
1735
1834
|
{ value: "outset", label: (0, import_i18n7.__)("Outset", "elementor") }
|
|
1736
1835
|
];
|
|
1737
1836
|
var BorderStyleField = () => {
|
|
1738
|
-
return /* @__PURE__ */
|
|
1837
|
+
return /* @__PURE__ */ React27.createElement(StylesField, { bind: "border-style" }, /* @__PURE__ */ React27.createElement(import_ui21.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React27.createElement(import_ui21.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React27.createElement(ControlLabel, null, (0, import_i18n7.__)("Border type", "elementor"))), /* @__PURE__ */ React27.createElement(import_ui21.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React27.createElement(import_editor_controls10.SelectControl, { options: borderStyles }))));
|
|
1739
1838
|
};
|
|
1740
1839
|
|
|
1741
1840
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
1742
|
-
var
|
|
1841
|
+
var React28 = __toESM(require("react"));
|
|
1743
1842
|
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
1744
1843
|
var import_editor_props4 = require("@elementor/editor-props");
|
|
1745
1844
|
var import_icons6 = require("@elementor/icons");
|
|
1746
|
-
var
|
|
1845
|
+
var import_ui23 = require("@elementor/ui");
|
|
1747
1846
|
var import_i18n8 = require("@wordpress/i18n");
|
|
1748
1847
|
|
|
1749
1848
|
// src/hooks/use-direction.ts
|
|
1750
|
-
var
|
|
1849
|
+
var import_ui22 = require("@elementor/ui");
|
|
1751
1850
|
function useDirection() {
|
|
1752
|
-
const theme = (0,
|
|
1851
|
+
const theme = (0, import_ui22.useTheme)(), extendedWindow = window;
|
|
1753
1852
|
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!extendedWindow.elementorFrontend?.config?.is_rtl;
|
|
1754
1853
|
return { isSiteRtl, isUiRtl };
|
|
1755
1854
|
}
|
|
1756
1855
|
|
|
1757
1856
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
1758
|
-
var InlineStartIcon = (0,
|
|
1759
|
-
var InlineEndIcon = (0,
|
|
1857
|
+
var InlineStartIcon = (0, import_ui23.withDirection)(import_icons6.SideRightIcon);
|
|
1858
|
+
var InlineEndIcon = (0, import_ui23.withDirection)(import_icons6.SideLeftIcon);
|
|
1760
1859
|
var getEdges = (isSiteRtl) => [
|
|
1761
1860
|
{
|
|
1762
1861
|
label: (0, import_i18n8.__)("Top", "elementor"),
|
|
1763
|
-
icon: /* @__PURE__ */
|
|
1862
|
+
icon: /* @__PURE__ */ React28.createElement(import_icons6.SideTopIcon, { fontSize: "tiny" }),
|
|
1764
1863
|
bind: "block-start"
|
|
1765
1864
|
},
|
|
1766
1865
|
{
|
|
1767
1866
|
label: isSiteRtl ? (0, import_i18n8.__)("Left", "elementor") : (0, import_i18n8.__)("Right", "elementor"),
|
|
1768
|
-
icon: /* @__PURE__ */
|
|
1867
|
+
icon: /* @__PURE__ */ React28.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
1769
1868
|
bind: "inline-end"
|
|
1770
1869
|
},
|
|
1771
1870
|
{
|
|
1772
1871
|
label: (0, import_i18n8.__)("Bottom", "elementor"),
|
|
1773
|
-
icon: /* @__PURE__ */
|
|
1872
|
+
icon: /* @__PURE__ */ React28.createElement(import_icons6.SideBottomIcon, { fontSize: "tiny" }),
|
|
1774
1873
|
bind: "block-end"
|
|
1775
1874
|
},
|
|
1776
1875
|
{
|
|
1777
1876
|
label: isSiteRtl ? (0, import_i18n8.__)("Right", "elementor") : (0, import_i18n8.__)("Left", "elementor"),
|
|
1778
|
-
icon: /* @__PURE__ */
|
|
1877
|
+
icon: /* @__PURE__ */ React28.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
1779
1878
|
bind: "inline-start"
|
|
1780
1879
|
}
|
|
1781
1880
|
];
|
|
1782
1881
|
var BorderWidthField = () => {
|
|
1783
1882
|
const { isSiteRtl } = useDirection();
|
|
1784
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ React28.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React28.createElement(
|
|
1785
1884
|
import_editor_controls11.EqualUnequalSizesControl,
|
|
1786
1885
|
{
|
|
1787
1886
|
items: getEdges(isSiteRtl),
|
|
1788
1887
|
label: (0, import_i18n8.__)("Border width", "elementor"),
|
|
1789
|
-
icon: /* @__PURE__ */
|
|
1888
|
+
icon: /* @__PURE__ */ React28.createElement(import_icons6.SideAllIcon, { fontSize: "tiny" }),
|
|
1790
1889
|
tooltipLabel: (0, import_i18n8.__)("Adjust borders", "elementor"),
|
|
1791
1890
|
multiSizePropTypeUtil: import_editor_props4.borderWidthPropTypeUtil
|
|
1792
1891
|
}
|
|
@@ -1812,7 +1911,7 @@ var BorderField = () => {
|
|
|
1812
1911
|
});
|
|
1813
1912
|
};
|
|
1814
1913
|
const hasBorder = Object.values(border ?? {}).some(Boolean);
|
|
1815
|
-
return /* @__PURE__ */
|
|
1914
|
+
return /* @__PURE__ */ React29.createElement(
|
|
1816
1915
|
AddOrRemoveContent,
|
|
1817
1916
|
{
|
|
1818
1917
|
label: (0, import_i18n9.__)("Border", "elementor"),
|
|
@@ -1820,23 +1919,23 @@ var BorderField = () => {
|
|
|
1820
1919
|
onAdd: addBorder,
|
|
1821
1920
|
onRemove: removeBorder
|
|
1822
1921
|
},
|
|
1823
|
-
/* @__PURE__ */
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ React29.createElement(BorderWidthField, null),
|
|
1923
|
+
/* @__PURE__ */ React29.createElement(BorderColorField, null),
|
|
1924
|
+
/* @__PURE__ */ React29.createElement(BorderStyleField, null)
|
|
1826
1925
|
);
|
|
1827
1926
|
};
|
|
1828
1927
|
|
|
1829
1928
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
1830
|
-
var
|
|
1929
|
+
var React30 = __toESM(require("react"));
|
|
1831
1930
|
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
1832
1931
|
var import_editor_props5 = require("@elementor/editor-props");
|
|
1833
1932
|
var import_icons7 = require("@elementor/icons");
|
|
1834
|
-
var
|
|
1933
|
+
var import_ui24 = require("@elementor/ui");
|
|
1835
1934
|
var import_i18n10 = require("@wordpress/i18n");
|
|
1836
|
-
var StartStartIcon = (0,
|
|
1837
|
-
var StartEndIcon = (0,
|
|
1838
|
-
var EndStartIcon = (0,
|
|
1839
|
-
var EndEndIcon = (0,
|
|
1935
|
+
var StartStartIcon = (0, import_ui24.withDirection)(import_icons7.RadiusTopLeftIcon);
|
|
1936
|
+
var StartEndIcon = (0, import_ui24.withDirection)(import_icons7.RadiusTopRightIcon);
|
|
1937
|
+
var EndStartIcon = (0, import_ui24.withDirection)(import_icons7.RadiusBottomLeftIcon);
|
|
1938
|
+
var EndEndIcon = (0, import_ui24.withDirection)(import_icons7.RadiusBottomRightIcon);
|
|
1840
1939
|
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n10.__)("Top right", "elementor") : (0, import_i18n10.__)("Top left", "elementor");
|
|
1841
1940
|
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n10.__)("Top left", "elementor") : (0, import_i18n10.__)("Top right", "elementor");
|
|
1842
1941
|
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n10.__)("Bottom right", "elementor") : (0, import_i18n10.__)("Bottom left", "elementor");
|
|
@@ -1844,33 +1943,33 @@ var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n10.__)("Bottom le
|
|
|
1844
1943
|
var getCorners = (isSiteRtl) => [
|
|
1845
1944
|
{
|
|
1846
1945
|
label: getStartStartLabel(isSiteRtl),
|
|
1847
|
-
icon: /* @__PURE__ */
|
|
1946
|
+
icon: /* @__PURE__ */ React30.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
1848
1947
|
bind: "start-start"
|
|
1849
1948
|
},
|
|
1850
1949
|
{
|
|
1851
1950
|
label: getStartEndLabel(isSiteRtl),
|
|
1852
|
-
icon: /* @__PURE__ */
|
|
1951
|
+
icon: /* @__PURE__ */ React30.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
1853
1952
|
bind: "start-end"
|
|
1854
1953
|
},
|
|
1855
1954
|
{
|
|
1856
1955
|
label: getEndStartLabel(isSiteRtl),
|
|
1857
|
-
icon: /* @__PURE__ */
|
|
1956
|
+
icon: /* @__PURE__ */ React30.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
1858
1957
|
bind: "end-start"
|
|
1859
1958
|
},
|
|
1860
1959
|
{
|
|
1861
1960
|
label: getEndEndLabel(isSiteRtl),
|
|
1862
|
-
icon: /* @__PURE__ */
|
|
1961
|
+
icon: /* @__PURE__ */ React30.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
1863
1962
|
bind: "end-end"
|
|
1864
1963
|
}
|
|
1865
1964
|
];
|
|
1866
1965
|
var BorderRadiusField = () => {
|
|
1867
1966
|
const { isSiteRtl } = useDirection();
|
|
1868
|
-
return /* @__PURE__ */
|
|
1967
|
+
return /* @__PURE__ */ React30.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React30.createElement(
|
|
1869
1968
|
import_editor_controls12.EqualUnequalSizesControl,
|
|
1870
1969
|
{
|
|
1871
1970
|
items: getCorners(isSiteRtl),
|
|
1872
1971
|
label: (0, import_i18n10.__)("Border radius", "elementor"),
|
|
1873
|
-
icon: /* @__PURE__ */
|
|
1972
|
+
icon: /* @__PURE__ */ React30.createElement(import_icons7.BorderCornersIcon, { fontSize: "tiny" }),
|
|
1874
1973
|
tooltipLabel: (0, import_i18n10.__)("Adjust corners", "elementor"),
|
|
1875
1974
|
multiSizePropTypeUtil: import_editor_props5.borderRadiusPropTypeUtil
|
|
1876
1975
|
}
|
|
@@ -1878,17 +1977,17 @@ var BorderRadiusField = () => {
|
|
|
1878
1977
|
};
|
|
1879
1978
|
|
|
1880
1979
|
// src/components/style-sections/border-section/border-section.tsx
|
|
1881
|
-
var BorderSection = () => /* @__PURE__ */
|
|
1980
|
+
var BorderSection = () => /* @__PURE__ */ React31.createElement(SectionContent, null, /* @__PURE__ */ React31.createElement(BorderRadiusField, null), /* @__PURE__ */ React31.createElement(PanelDivider, null), /* @__PURE__ */ React31.createElement(BorderField, null));
|
|
1882
1981
|
|
|
1883
1982
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
1884
|
-
var
|
|
1983
|
+
var React32 = __toESM(require("react"));
|
|
1885
1984
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
1886
1985
|
var EffectsSection = () => {
|
|
1887
|
-
return /* @__PURE__ */
|
|
1986
|
+
return /* @__PURE__ */ React32.createElement(SectionContent, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React32.createElement(import_editor_controls13.BoxShadowRepeaterControl, null)));
|
|
1888
1987
|
};
|
|
1889
1988
|
|
|
1890
1989
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
1891
|
-
var
|
|
1990
|
+
var React44 = __toESM(require("react"));
|
|
1892
1991
|
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
1893
1992
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
1894
1993
|
var import_i18n21 = require("@wordpress/i18n");
|
|
@@ -1919,16 +2018,16 @@ function useComputedStyle(elementId) {
|
|
|
1919
2018
|
}
|
|
1920
2019
|
|
|
1921
2020
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
1922
|
-
var
|
|
2021
|
+
var React34 = __toESM(require("react"));
|
|
1923
2022
|
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
1924
2023
|
var import_icons8 = require("@elementor/icons");
|
|
1925
|
-
var
|
|
2024
|
+
var import_ui26 = require("@elementor/ui");
|
|
1926
2025
|
var import_i18n11 = require("@wordpress/i18n");
|
|
1927
2026
|
|
|
1928
2027
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
1929
|
-
var
|
|
1930
|
-
var
|
|
1931
|
-
var
|
|
2028
|
+
var React33 = __toESM(require("react"));
|
|
2029
|
+
var import_react18 = require("react");
|
|
2030
|
+
var import_ui25 = require("@elementor/ui");
|
|
1932
2031
|
var CLOCKWISE_ANGLES = {
|
|
1933
2032
|
row: 0,
|
|
1934
2033
|
column: 90,
|
|
@@ -1948,13 +2047,13 @@ var RotatedIcon = ({
|
|
|
1948
2047
|
offset = 0,
|
|
1949
2048
|
disableRotationForReversed = false
|
|
1950
2049
|
}) => {
|
|
1951
|
-
const rotate = (0,
|
|
2050
|
+
const rotate = (0, import_react18.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
1952
2051
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
1953
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ React33.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
1954
2053
|
};
|
|
1955
2054
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
1956
2055
|
const [direction] = useStylesField("flex-direction");
|
|
1957
|
-
const isRtl = "rtl" === (0,
|
|
2056
|
+
const isRtl = "rtl" === (0, import_ui25.useTheme)().direction;
|
|
1958
2057
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
1959
2058
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
1960
2059
|
const currentDirection = direction?.value || "row";
|
|
@@ -1969,8 +2068,8 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
1969
2068
|
};
|
|
1970
2069
|
|
|
1971
2070
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
1972
|
-
var StartIcon = (0,
|
|
1973
|
-
var EndIcon = (0,
|
|
2071
|
+
var StartIcon = (0, import_ui26.withDirection)(import_icons8.JustifyTopIcon);
|
|
2072
|
+
var EndIcon = (0, import_ui26.withDirection)(import_icons8.JustifyBottomIcon);
|
|
1974
2073
|
var iconProps = {
|
|
1975
2074
|
isClockwise: false,
|
|
1976
2075
|
offset: 0,
|
|
@@ -1980,53 +2079,53 @@ var options = [
|
|
|
1980
2079
|
{
|
|
1981
2080
|
value: "start",
|
|
1982
2081
|
label: (0, import_i18n11.__)("Start", "elementor"),
|
|
1983
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2082
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
1984
2083
|
showTooltip: true
|
|
1985
2084
|
},
|
|
1986
2085
|
{
|
|
1987
2086
|
value: "center",
|
|
1988
2087
|
label: (0, import_i18n11.__)("Center", "elementor"),
|
|
1989
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2088
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: import_icons8.JustifyCenterIcon, size, ...iconProps }),
|
|
1990
2089
|
showTooltip: true
|
|
1991
2090
|
},
|
|
1992
2091
|
{
|
|
1993
2092
|
value: "end",
|
|
1994
2093
|
label: (0, import_i18n11.__)("End", "elementor"),
|
|
1995
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2094
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
1996
2095
|
showTooltip: true
|
|
1997
2096
|
},
|
|
1998
2097
|
{
|
|
1999
2098
|
value: "space-between",
|
|
2000
2099
|
label: (0, import_i18n11.__)("Space between", "elementor"),
|
|
2001
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2100
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
2002
2101
|
showTooltip: true
|
|
2003
2102
|
},
|
|
2004
2103
|
{
|
|
2005
2104
|
value: "space-around",
|
|
2006
2105
|
label: (0, import_i18n11.__)("Space around", "elementor"),
|
|
2007
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2106
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
2008
2107
|
showTooltip: true
|
|
2009
2108
|
},
|
|
2010
2109
|
{
|
|
2011
2110
|
value: "space-evenly",
|
|
2012
2111
|
label: (0, import_i18n11.__)("Space evenly", "elementor"),
|
|
2013
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2112
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: import_icons8.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
2014
2113
|
showTooltip: true
|
|
2015
2114
|
}
|
|
2016
2115
|
];
|
|
2017
2116
|
var AlignContentField = () => {
|
|
2018
2117
|
const { isSiteRtl } = useDirection();
|
|
2019
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ React34.createElement(import_ui26.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React34.createElement(import_ui26.ThemeProvider, null, /* @__PURE__ */ React34.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React34.createElement(import_ui26.Stack, { gap: 1 }, /* @__PURE__ */ React34.createElement(ControlLabel, null, (0, import_i18n11.__)("Align content", "elementor")), /* @__PURE__ */ React34.createElement(import_editor_controls14.ToggleControl, { options, fullWidth: true })))));
|
|
2020
2119
|
};
|
|
2021
2120
|
|
|
2022
2121
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
2023
|
-
var
|
|
2122
|
+
var React35 = __toESM(require("react"));
|
|
2024
2123
|
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
2025
2124
|
var import_icons9 = require("@elementor/icons");
|
|
2026
|
-
var
|
|
2125
|
+
var import_ui27 = require("@elementor/ui");
|
|
2027
2126
|
var import_i18n12 = require("@wordpress/i18n");
|
|
2028
|
-
var StartIcon2 = (0,
|
|
2029
|
-
var EndIcon2 = (0,
|
|
2127
|
+
var StartIcon2 = (0, import_ui27.withDirection)(import_icons9.LayoutAlignLeftIcon);
|
|
2128
|
+
var EndIcon2 = (0, import_ui27.withDirection)(import_icons9.LayoutAlignRightIcon);
|
|
2030
2129
|
var iconProps2 = {
|
|
2031
2130
|
isClockwise: false,
|
|
2032
2131
|
offset: 90
|
|
@@ -2035,38 +2134,38 @@ var options2 = [
|
|
|
2035
2134
|
{
|
|
2036
2135
|
value: "start",
|
|
2037
2136
|
label: (0, import_i18n12.__)("Start", "elementor"),
|
|
2038
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2137
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
2039
2138
|
showTooltip: true
|
|
2040
2139
|
},
|
|
2041
2140
|
{
|
|
2042
2141
|
value: "center",
|
|
2043
2142
|
label: (0, import_i18n12.__)("Center", "elementor"),
|
|
2044
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2143
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons9.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
2045
2144
|
showTooltip: true
|
|
2046
2145
|
},
|
|
2047
2146
|
{
|
|
2048
2147
|
value: "end",
|
|
2049
2148
|
label: (0, import_i18n12.__)("End", "elementor"),
|
|
2050
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2149
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
2051
2150
|
showTooltip: true
|
|
2052
2151
|
},
|
|
2053
2152
|
{
|
|
2054
2153
|
value: "stretch",
|
|
2055
2154
|
label: (0, import_i18n12.__)("Stretch", "elementor"),
|
|
2056
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2155
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons9.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
2057
2156
|
showTooltip: true
|
|
2058
2157
|
}
|
|
2059
2158
|
];
|
|
2060
2159
|
var AlignItemsField = () => {
|
|
2061
2160
|
const { isSiteRtl } = useDirection();
|
|
2062
|
-
return /* @__PURE__ */
|
|
2161
|
+
return /* @__PURE__ */ React35.createElement(import_ui27.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React35.createElement(import_ui27.ThemeProvider, null, /* @__PURE__ */ React35.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React35.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React35.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React35.createElement(ControlLabel, null, (0, import_i18n12.__)("Align items", "elementor"))), /* @__PURE__ */ React35.createElement(import_ui27.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React35.createElement(import_editor_controls15.ToggleControl, { options: options2 }))))));
|
|
2063
2162
|
};
|
|
2064
2163
|
|
|
2065
2164
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
2066
|
-
var
|
|
2165
|
+
var React36 = __toESM(require("react"));
|
|
2067
2166
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
2068
2167
|
var import_icons10 = require("@elementor/icons");
|
|
2069
|
-
var
|
|
2168
|
+
var import_ui28 = require("@elementor/ui");
|
|
2070
2169
|
var import_i18n13 = require("@wordpress/i18n");
|
|
2071
2170
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
2072
2171
|
row: 90,
|
|
@@ -2074,8 +2173,8 @@ var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
|
2074
2173
|
column: 0,
|
|
2075
2174
|
"column-reverse": 0
|
|
2076
2175
|
};
|
|
2077
|
-
var StartIcon3 = (0,
|
|
2078
|
-
var EndIcon3 = (0,
|
|
2176
|
+
var StartIcon3 = (0, import_ui28.withDirection)(import_icons10.LayoutAlignLeftIcon);
|
|
2177
|
+
var EndIcon3 = (0, import_ui28.withDirection)(import_icons10.LayoutAlignRightIcon);
|
|
2079
2178
|
var iconProps3 = {
|
|
2080
2179
|
isClockwise: false
|
|
2081
2180
|
};
|
|
@@ -2083,7 +2182,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2083
2182
|
{
|
|
2084
2183
|
value: "start",
|
|
2085
2184
|
label: (0, import_i18n13.__)("Start", "elementor"),
|
|
2086
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2185
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2087
2186
|
RotatedIcon,
|
|
2088
2187
|
{
|
|
2089
2188
|
icon: StartIcon3,
|
|
@@ -2097,7 +2196,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2097
2196
|
{
|
|
2098
2197
|
value: "center",
|
|
2099
2198
|
label: (0, import_i18n13.__)("Center", "elementor"),
|
|
2100
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2199
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2101
2200
|
RotatedIcon,
|
|
2102
2201
|
{
|
|
2103
2202
|
icon: import_icons10.LayoutAlignCenterIcon,
|
|
@@ -2111,7 +2210,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2111
2210
|
{
|
|
2112
2211
|
value: "end",
|
|
2113
2212
|
label: (0, import_i18n13.__)("End", "elementor"),
|
|
2114
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2213
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2115
2214
|
RotatedIcon,
|
|
2116
2215
|
{
|
|
2117
2216
|
icon: EndIcon3,
|
|
@@ -2125,7 +2224,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2125
2224
|
{
|
|
2126
2225
|
value: "stretch",
|
|
2127
2226
|
label: (0, import_i18n13.__)("Stretch", "elementor"),
|
|
2128
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2227
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2129
2228
|
RotatedIcon,
|
|
2130
2229
|
{
|
|
2131
2230
|
icon: import_icons10.LayoutDistributeVerticalIcon,
|
|
@@ -2139,13 +2238,13 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2139
2238
|
];
|
|
2140
2239
|
var AlignSelfChild = ({ parentStyleDirection }) => {
|
|
2141
2240
|
const { isSiteRtl } = useDirection();
|
|
2142
|
-
return /* @__PURE__ */
|
|
2241
|
+
return /* @__PURE__ */ React36.createElement(import_ui28.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React36.createElement(import_ui28.ThemeProvider, null, /* @__PURE__ */ React36.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React36.createElement(import_ui28.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React36.createElement(import_ui28.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(ControlLabel, null, (0, import_i18n13.__)("Align self", "elementor"))), /* @__PURE__ */ React36.createElement(import_ui28.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React36.createElement(import_editor_controls16.ToggleControl, { options: getOptions(parentStyleDirection) }))))));
|
|
2143
2242
|
};
|
|
2144
2243
|
|
|
2145
2244
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
2146
|
-
var
|
|
2245
|
+
var React37 = __toESM(require("react"));
|
|
2147
2246
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
2148
|
-
var
|
|
2247
|
+
var import_ui29 = require("@elementor/ui");
|
|
2149
2248
|
var import_i18n14 = require("@wordpress/i18n");
|
|
2150
2249
|
var displayFieldOptions = [
|
|
2151
2250
|
{
|
|
@@ -2175,59 +2274,59 @@ var displayFieldOptions = [
|
|
|
2175
2274
|
];
|
|
2176
2275
|
var DisplayField = () => {
|
|
2177
2276
|
const placeholder = useDisplayPlaceholderValue();
|
|
2178
|
-
return /* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ React37.createElement(StylesField, { bind: "display", placeholder }, /* @__PURE__ */ React37.createElement(import_ui29.Stack, { gap: 0.75 }, /* @__PURE__ */ React37.createElement(ControlLabel, null, (0, import_i18n14.__)("Display", "elementor")), /* @__PURE__ */ React37.createElement(import_editor_controls17.ToggleControl, { options: displayFieldOptions, fullWidth: true })));
|
|
2179
2278
|
};
|
|
2180
2279
|
var useDisplayPlaceholderValue = () => useStylesInheritanceField("display")[0]?.value ?? void 0;
|
|
2181
2280
|
|
|
2182
2281
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
2183
|
-
var
|
|
2282
|
+
var React38 = __toESM(require("react"));
|
|
2184
2283
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
2185
2284
|
var import_icons11 = require("@elementor/icons");
|
|
2186
|
-
var
|
|
2285
|
+
var import_ui30 = require("@elementor/ui");
|
|
2187
2286
|
var import_i18n15 = require("@wordpress/i18n");
|
|
2188
2287
|
var options3 = [
|
|
2189
2288
|
{
|
|
2190
2289
|
value: "row",
|
|
2191
2290
|
label: (0, import_i18n15.__)("Row", "elementor"),
|
|
2192
2291
|
renderContent: ({ size }) => {
|
|
2193
|
-
const StartIcon5 = (0,
|
|
2194
|
-
return /* @__PURE__ */
|
|
2292
|
+
const StartIcon5 = (0, import_ui30.withDirection)(import_icons11.ArrowRightIcon);
|
|
2293
|
+
return /* @__PURE__ */ React38.createElement(StartIcon5, { fontSize: size });
|
|
2195
2294
|
},
|
|
2196
2295
|
showTooltip: true
|
|
2197
2296
|
},
|
|
2198
2297
|
{
|
|
2199
2298
|
value: "column",
|
|
2200
2299
|
label: (0, import_i18n15.__)("Column", "elementor"),
|
|
2201
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2300
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
|
|
2202
2301
|
showTooltip: true
|
|
2203
2302
|
},
|
|
2204
2303
|
{
|
|
2205
2304
|
value: "row-reverse",
|
|
2206
2305
|
label: (0, import_i18n15.__)("Reversed row", "elementor"),
|
|
2207
2306
|
renderContent: ({ size }) => {
|
|
2208
|
-
const EndIcon5 = (0,
|
|
2209
|
-
return /* @__PURE__ */
|
|
2307
|
+
const EndIcon5 = (0, import_ui30.withDirection)(import_icons11.ArrowLeftIcon);
|
|
2308
|
+
return /* @__PURE__ */ React38.createElement(EndIcon5, { fontSize: size });
|
|
2210
2309
|
},
|
|
2211
2310
|
showTooltip: true
|
|
2212
2311
|
},
|
|
2213
2312
|
{
|
|
2214
2313
|
value: "column-reverse",
|
|
2215
2314
|
label: (0, import_i18n15.__)("Reversed column", "elementor"),
|
|
2216
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2315
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
|
|
2217
2316
|
showTooltip: true
|
|
2218
2317
|
}
|
|
2219
2318
|
];
|
|
2220
2319
|
var FlexDirectionField = () => {
|
|
2221
2320
|
const { isSiteRtl } = useDirection();
|
|
2222
|
-
return /* @__PURE__ */
|
|
2321
|
+
return /* @__PURE__ */ React38.createElement(import_ui30.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React38.createElement(import_ui30.ThemeProvider, null, /* @__PURE__ */ React38.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React38.createElement(import_ui30.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(import_ui30.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React38.createElement(ControlLabel, null, (0, import_i18n15.__)("Direction", "elementor"))), /* @__PURE__ */ React38.createElement(import_ui30.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React38.createElement(import_editor_controls18.ToggleControl, { options: options3 }))))));
|
|
2223
2322
|
};
|
|
2224
2323
|
|
|
2225
2324
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2325
|
+
var React39 = __toESM(require("react"));
|
|
2326
|
+
var import_react19 = require("react");
|
|
2228
2327
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
2229
2328
|
var import_icons12 = require("@elementor/icons");
|
|
2230
|
-
var
|
|
2329
|
+
var import_ui31 = require("@elementor/ui");
|
|
2231
2330
|
var import_i18n16 = require("@wordpress/i18n");
|
|
2232
2331
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
2233
2332
|
var LAST_DEFAULT_VALUE = 99999;
|
|
@@ -2242,25 +2341,25 @@ var items = [
|
|
|
2242
2341
|
{
|
|
2243
2342
|
value: FIRST,
|
|
2244
2343
|
label: (0, import_i18n16.__)("First", "elementor"),
|
|
2245
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2344
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
2246
2345
|
showTooltip: true
|
|
2247
2346
|
},
|
|
2248
2347
|
{
|
|
2249
2348
|
value: LAST,
|
|
2250
2349
|
label: (0, import_i18n16.__)("Last", "elementor"),
|
|
2251
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2350
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
2252
2351
|
showTooltip: true
|
|
2253
2352
|
},
|
|
2254
2353
|
{
|
|
2255
2354
|
value: CUSTOM,
|
|
2256
2355
|
label: (0, import_i18n16.__)("Custom", "elementor"),
|
|
2257
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2356
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons12.PencilIcon, { fontSize: size }),
|
|
2258
2357
|
showTooltip: true
|
|
2259
2358
|
}
|
|
2260
2359
|
];
|
|
2261
2360
|
var FlexOrderField = () => {
|
|
2262
2361
|
const { isSiteRtl } = useDirection(), [order, setOrder] = useStylesField("order");
|
|
2263
|
-
const [groupControlValue, setGroupControlValue] = (0,
|
|
2362
|
+
const [groupControlValue, setGroupControlValue] = (0, import_react19.useState)(getGroupControlValue(order?.value || null));
|
|
2264
2363
|
const handleToggleButtonChange = (group) => {
|
|
2265
2364
|
setGroupControlValue(group);
|
|
2266
2365
|
if (!group || group === CUSTOM) {
|
|
@@ -2269,7 +2368,7 @@ var FlexOrderField = () => {
|
|
|
2269
2368
|
}
|
|
2270
2369
|
setOrder({ $$type: "number", value: orderValueMap[group] });
|
|
2271
2370
|
};
|
|
2272
|
-
return /* @__PURE__ */
|
|
2371
|
+
return /* @__PURE__ */ React39.createElement(import_ui31.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React39.createElement(import_ui31.ThemeProvider, null, /* @__PURE__ */ React39.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React39.createElement(SectionContent, null, /* @__PURE__ */ React39.createElement(import_ui31.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React39.createElement(import_ui31.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React39.createElement(ControlLabel, null, (0, import_i18n16.__)("Order", "elementor"))), /* @__PURE__ */ React39.createElement(import_ui31.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React39.createElement(
|
|
2273
2372
|
import_editor_controls19.ControlToggleButtonGroup,
|
|
2274
2373
|
{
|
|
2275
2374
|
items,
|
|
@@ -2277,7 +2376,7 @@ var FlexOrderField = () => {
|
|
|
2277
2376
|
onChange: handleToggleButtonChange,
|
|
2278
2377
|
exclusive: true
|
|
2279
2378
|
}
|
|
2280
|
-
))), CUSTOM === groupControlValue && /* @__PURE__ */
|
|
2379
|
+
))), CUSTOM === groupControlValue && /* @__PURE__ */ React39.createElement(import_ui31.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React39.createElement(import_ui31.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React39.createElement(ControlLabel, null, (0, import_i18n16.__)("Custom order", "elementor"))), /* @__PURE__ */ React39.createElement(import_ui31.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React39.createElement(
|
|
2281
2380
|
import_editor_controls19.NumberControl,
|
|
2282
2381
|
{
|
|
2283
2382
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -2297,31 +2396,31 @@ var getGroupControlValue = (order) => {
|
|
|
2297
2396
|
};
|
|
2298
2397
|
|
|
2299
2398
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
2300
|
-
var
|
|
2301
|
-
var
|
|
2399
|
+
var React40 = __toESM(require("react"));
|
|
2400
|
+
var import_react20 = require("react");
|
|
2302
2401
|
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
2303
2402
|
var import_editor_props6 = require("@elementor/editor-props");
|
|
2304
2403
|
var import_icons13 = require("@elementor/icons");
|
|
2305
|
-
var
|
|
2404
|
+
var import_ui32 = require("@elementor/ui");
|
|
2306
2405
|
var import_i18n17 = require("@wordpress/i18n");
|
|
2307
2406
|
var DEFAULT = 1;
|
|
2308
2407
|
var items2 = [
|
|
2309
2408
|
{
|
|
2310
2409
|
value: "flex-grow",
|
|
2311
2410
|
label: (0, import_i18n17.__)("Grow", "elementor"),
|
|
2312
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2411
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons13.ExpandIcon, { fontSize: size }),
|
|
2313
2412
|
showTooltip: true
|
|
2314
2413
|
},
|
|
2315
2414
|
{
|
|
2316
2415
|
value: "flex-shrink",
|
|
2317
2416
|
label: (0, import_i18n17.__)("Shrink", "elementor"),
|
|
2318
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2417
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons13.ShrinkIcon, { fontSize: size }),
|
|
2319
2418
|
showTooltip: true
|
|
2320
2419
|
},
|
|
2321
2420
|
{
|
|
2322
2421
|
value: "custom",
|
|
2323
2422
|
label: (0, import_i18n17.__)("Custom", "elementor"),
|
|
2324
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2423
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
2325
2424
|
showTooltip: true
|
|
2326
2425
|
}
|
|
2327
2426
|
];
|
|
@@ -2331,7 +2430,7 @@ var FlexSizeField = () => {
|
|
|
2331
2430
|
const grow = fields?.["flex-grow"]?.value || null;
|
|
2332
2431
|
const shrink = fields?.["flex-shrink"]?.value || null;
|
|
2333
2432
|
const basis = fields?.["flex-basis"]?.value || null;
|
|
2334
|
-
const currentGroup = (0,
|
|
2433
|
+
const currentGroup = (0, import_react20.useMemo)(() => getActiveGroup({ grow, shrink, basis }), [grow, shrink, basis]), [activeGroup, setActiveGroup] = (0, import_react20.useState)(currentGroup);
|
|
2335
2434
|
const onChangeGroup = (group = null) => {
|
|
2336
2435
|
setActiveGroup(group);
|
|
2337
2436
|
if (!group || group === "custom") {
|
|
@@ -2356,7 +2455,7 @@ var FlexSizeField = () => {
|
|
|
2356
2455
|
"flex-shrink": import_editor_props6.numberPropTypeUtil.create(DEFAULT)
|
|
2357
2456
|
});
|
|
2358
2457
|
};
|
|
2359
|
-
return /* @__PURE__ */
|
|
2458
|
+
return /* @__PURE__ */ React40.createElement(import_ui32.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(import_ui32.ThemeProvider, null, /* @__PURE__ */ React40.createElement(SectionContent, null, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(StylesField, { bind: activeGroup ?? "" }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n17.__)("Size", "elementor")))), /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(
|
|
2360
2459
|
import_editor_controls20.ControlToggleButtonGroup,
|
|
2361
2460
|
{
|
|
2362
2461
|
value: activeGroup,
|
|
@@ -2364,9 +2463,9 @@ var FlexSizeField = () => {
|
|
|
2364
2463
|
items: items2,
|
|
2365
2464
|
exclusive: true
|
|
2366
2465
|
}
|
|
2367
|
-
))), "custom" === activeGroup && /* @__PURE__ */
|
|
2466
|
+
))), "custom" === activeGroup && /* @__PURE__ */ React40.createElement(FlexCustomField, null))));
|
|
2368
2467
|
};
|
|
2369
|
-
var FlexCustomField = () => /* @__PURE__ */
|
|
2468
|
+
var FlexCustomField = () => /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n17.__)("Grow", "elementor"))), /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n17.__)("Shrink", "elementor"))), /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n17.__)("Basis", "elementor"))), /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(import_editor_controls20.SizeControl, { extendedValues: ["auto"] })))));
|
|
2370
2469
|
var getActiveGroup = ({
|
|
2371
2470
|
grow,
|
|
2372
2471
|
shrink,
|
|
@@ -2388,22 +2487,22 @@ var getActiveGroup = ({
|
|
|
2388
2487
|
};
|
|
2389
2488
|
|
|
2390
2489
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
2391
|
-
var
|
|
2490
|
+
var React41 = __toESM(require("react"));
|
|
2392
2491
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
2393
|
-
var
|
|
2492
|
+
var import_ui33 = require("@elementor/ui");
|
|
2394
2493
|
var import_i18n18 = require("@wordpress/i18n");
|
|
2395
2494
|
var GapControlField = () => {
|
|
2396
|
-
return /* @__PURE__ */
|
|
2495
|
+
return /* @__PURE__ */ React41.createElement(import_ui33.Stack, { gap: 1 }, /* @__PURE__ */ React41.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React41.createElement(import_editor_controls21.GapControl, { label: (0, import_i18n18.__)("Gaps", "elementor") })));
|
|
2397
2496
|
};
|
|
2398
2497
|
|
|
2399
2498
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
2400
|
-
var
|
|
2499
|
+
var React42 = __toESM(require("react"));
|
|
2401
2500
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
2402
2501
|
var import_icons14 = require("@elementor/icons");
|
|
2403
|
-
var
|
|
2502
|
+
var import_ui34 = require("@elementor/ui");
|
|
2404
2503
|
var import_i18n19 = require("@wordpress/i18n");
|
|
2405
|
-
var StartIcon4 = (0,
|
|
2406
|
-
var EndIcon4 = (0,
|
|
2504
|
+
var StartIcon4 = (0, import_ui34.withDirection)(import_icons14.JustifyTopIcon);
|
|
2505
|
+
var EndIcon4 = (0, import_ui34.withDirection)(import_icons14.JustifyBottomIcon);
|
|
2407
2506
|
var iconProps4 = {
|
|
2408
2507
|
isClockwise: true,
|
|
2409
2508
|
offset: -90
|
|
@@ -2412,74 +2511,74 @@ var options4 = [
|
|
|
2412
2511
|
{
|
|
2413
2512
|
value: "flex-start",
|
|
2414
2513
|
label: (0, import_i18n19.__)("Start", "elementor"),
|
|
2415
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2514
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
2416
2515
|
showTooltip: true
|
|
2417
2516
|
},
|
|
2418
2517
|
{
|
|
2419
2518
|
value: "center",
|
|
2420
2519
|
label: (0, import_i18n19.__)("Center", "elementor"),
|
|
2421
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2520
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons14.JustifyCenterIcon, size, ...iconProps4 }),
|
|
2422
2521
|
showTooltip: true
|
|
2423
2522
|
},
|
|
2424
2523
|
{
|
|
2425
2524
|
value: "flex-end",
|
|
2426
2525
|
label: (0, import_i18n19.__)("End", "elementor"),
|
|
2427
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2526
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
2428
2527
|
showTooltip: true
|
|
2429
2528
|
},
|
|
2430
2529
|
{
|
|
2431
2530
|
value: "space-between",
|
|
2432
2531
|
label: (0, import_i18n19.__)("Space between", "elementor"),
|
|
2433
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2532
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
2434
2533
|
showTooltip: true
|
|
2435
2534
|
},
|
|
2436
2535
|
{
|
|
2437
2536
|
value: "space-around",
|
|
2438
2537
|
label: (0, import_i18n19.__)("Space around", "elementor"),
|
|
2439
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2538
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
2440
2539
|
showTooltip: true
|
|
2441
2540
|
},
|
|
2442
2541
|
{
|
|
2443
2542
|
value: "space-evenly",
|
|
2444
2543
|
label: (0, import_i18n19.__)("Space evenly", "elementor"),
|
|
2445
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2544
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons14.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
2446
2545
|
showTooltip: true
|
|
2447
2546
|
}
|
|
2448
2547
|
];
|
|
2449
2548
|
var JustifyContentField = () => {
|
|
2450
2549
|
const { isSiteRtl } = useDirection();
|
|
2451
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ React42.createElement(import_ui34.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React42.createElement(import_ui34.ThemeProvider, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React42.createElement(import_ui34.Stack, { gap: 0.75 }, /* @__PURE__ */ React42.createElement(ControlLabel, null, (0, import_i18n19.__)("Justify content", "elementor")), /* @__PURE__ */ React42.createElement(import_editor_controls22.ToggleControl, { options: options4, fullWidth: true })))));
|
|
2452
2551
|
};
|
|
2453
2552
|
|
|
2454
2553
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
2455
|
-
var
|
|
2554
|
+
var React43 = __toESM(require("react"));
|
|
2456
2555
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
2457
2556
|
var import_icons15 = require("@elementor/icons");
|
|
2458
|
-
var
|
|
2557
|
+
var import_ui35 = require("@elementor/ui");
|
|
2459
2558
|
var import_i18n20 = require("@wordpress/i18n");
|
|
2460
2559
|
var options5 = [
|
|
2461
2560
|
{
|
|
2462
2561
|
value: "nowrap",
|
|
2463
2562
|
label: (0, import_i18n20.__)("No wrap", "elementor"),
|
|
2464
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2563
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(import_icons15.ArrowRightIcon, { fontSize: size }),
|
|
2465
2564
|
showTooltip: true
|
|
2466
2565
|
},
|
|
2467
2566
|
{
|
|
2468
2567
|
value: "wrap",
|
|
2469
2568
|
label: (0, import_i18n20.__)("Wrap", "elementor"),
|
|
2470
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2569
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(import_icons15.ArrowBackIcon, { fontSize: size }),
|
|
2471
2570
|
showTooltip: true
|
|
2472
2571
|
},
|
|
2473
2572
|
{
|
|
2474
2573
|
value: "wrap-reverse",
|
|
2475
2574
|
label: (0, import_i18n20.__)("Reversed wrap", "elementor"),
|
|
2476
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2575
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(import_icons15.ArrowForwardIcon, { fontSize: size }),
|
|
2477
2576
|
showTooltip: true
|
|
2478
2577
|
}
|
|
2479
2578
|
];
|
|
2480
2579
|
var WrapField = () => {
|
|
2481
2580
|
const { isSiteRtl } = useDirection();
|
|
2482
|
-
return /* @__PURE__ */
|
|
2581
|
+
return /* @__PURE__ */ React43.createElement(import_ui35.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React43.createElement(import_ui35.ThemeProvider, null, /* @__PURE__ */ React43.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React43.createElement(import_ui35.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React43.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React43.createElement(ControlLabel, null, (0, import_i18n20.__)("Wrap", "elementor"))), /* @__PURE__ */ React43.createElement(import_ui35.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React43.createElement(import_editor_controls23.ToggleControl, { options: options5 }))))));
|
|
2483
2582
|
};
|
|
2484
2583
|
|
|
2485
2584
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -2491,13 +2590,13 @@ var LayoutSection = () => {
|
|
|
2491
2590
|
const parent = (0, import_editor_elements7.useParentElement)(element.id);
|
|
2492
2591
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
2493
2592
|
const parentStyleDirection = parentStyle?.flexDirection ?? "row";
|
|
2494
|
-
return /* @__PURE__ */
|
|
2593
|
+
return /* @__PURE__ */ React44.createElement(SectionContent, null, /* @__PURE__ */ React44.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React44.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React44.createElement(FlexChildFields, { parentStyleDirection }));
|
|
2495
2594
|
};
|
|
2496
2595
|
var FlexFields = () => {
|
|
2497
2596
|
const [flexWrap] = useStylesField("flex-wrap");
|
|
2498
|
-
return /* @__PURE__ */
|
|
2597
|
+
return /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(FlexDirectionField, null), /* @__PURE__ */ React44.createElement(JustifyContentField, null), /* @__PURE__ */ React44.createElement(AlignItemsField, null), /* @__PURE__ */ React44.createElement(PanelDivider, null), /* @__PURE__ */ React44.createElement(GapControlField, null), /* @__PURE__ */ React44.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React44.createElement(AlignContentField, null));
|
|
2499
2598
|
};
|
|
2500
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
2599
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(PanelDivider, null), /* @__PURE__ */ React44.createElement(import_editor_controls24.ControlFormLabel, null, (0, import_i18n21.__)("Flex child", "elementor")), /* @__PURE__ */ React44.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React44.createElement(FlexOrderField, null), /* @__PURE__ */ React44.createElement(FlexSizeField, null));
|
|
2501
2600
|
var shouldDisplayFlexFields = (display, local) => {
|
|
2502
2601
|
const value = display?.value ?? local?.value;
|
|
2503
2602
|
if (!value) {
|
|
@@ -2507,46 +2606,46 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
2507
2606
|
};
|
|
2508
2607
|
|
|
2509
2608
|
// src/components/style-sections/position-section/position-section.tsx
|
|
2510
|
-
var
|
|
2609
|
+
var React49 = __toESM(require("react"));
|
|
2511
2610
|
var import_session2 = require("@elementor/session");
|
|
2512
2611
|
|
|
2513
2612
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
2514
|
-
var
|
|
2613
|
+
var React45 = __toESM(require("react"));
|
|
2515
2614
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
2516
2615
|
var import_icons16 = require("@elementor/icons");
|
|
2517
|
-
var
|
|
2616
|
+
var import_ui36 = require("@elementor/ui");
|
|
2518
2617
|
var import_i18n22 = require("@wordpress/i18n");
|
|
2519
|
-
var InlineStartIcon2 = (0,
|
|
2520
|
-
var InlineEndIcon2 = (0,
|
|
2618
|
+
var InlineStartIcon2 = (0, import_ui36.withDirection)(import_icons16.SideLeftIcon);
|
|
2619
|
+
var InlineEndIcon2 = (0, import_ui36.withDirection)(import_icons16.SideRightIcon);
|
|
2521
2620
|
var sideIcons = {
|
|
2522
|
-
"inset-block-start": /* @__PURE__ */
|
|
2523
|
-
"inset-block-end": /* @__PURE__ */
|
|
2524
|
-
"inset-inline-start": /* @__PURE__ */
|
|
2525
|
-
"inset-inline-end": /* @__PURE__ */
|
|
2621
|
+
"inset-block-start": /* @__PURE__ */ React45.createElement(import_icons16.SideTopIcon, { fontSize: "tiny" }),
|
|
2622
|
+
"inset-block-end": /* @__PURE__ */ React45.createElement(import_icons16.SideBottomIcon, { fontSize: "tiny" }),
|
|
2623
|
+
"inset-inline-start": /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
2624
|
+
"inset-inline-end": /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
2526
2625
|
};
|
|
2527
2626
|
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n22.__)("Right", "elementor") : (0, import_i18n22.__)("Left", "elementor");
|
|
2528
2627
|
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n22.__)("Left", "elementor") : (0, import_i18n22.__)("Right", "elementor");
|
|
2529
2628
|
var DimensionsField = () => {
|
|
2530
2629
|
const { isSiteRtl } = useDirection();
|
|
2531
|
-
return /* @__PURE__ */
|
|
2630
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(import_ui36.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n22.__)("Top", "elementor") }), /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React45.createElement(import_ui36.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n22.__)("Bottom", "elementor") }), /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
|
|
2532
2631
|
};
|
|
2533
2632
|
var DimensionField = ({ side, label }) => {
|
|
2534
|
-
return /* @__PURE__ */
|
|
2633
|
+
return /* @__PURE__ */ React45.createElement(import_ui36.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React45.createElement(import_ui36.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, label)), /* @__PURE__ */ React45.createElement(import_ui36.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React45.createElement(StylesField, { bind: side }, /* @__PURE__ */ React45.createElement(import_editor_controls25.SizeControl, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
|
|
2535
2634
|
};
|
|
2536
2635
|
|
|
2537
2636
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
2538
|
-
var
|
|
2637
|
+
var React46 = __toESM(require("react"));
|
|
2539
2638
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
2540
|
-
var
|
|
2639
|
+
var import_ui37 = require("@elementor/ui");
|
|
2541
2640
|
var import_i18n23 = require("@wordpress/i18n");
|
|
2542
2641
|
var OffsetField = () => {
|
|
2543
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ React46.createElement(StylesField, { bind: "scroll-margin-top" }, /* @__PURE__ */ React46.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n23.__)("Anchor offset", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(import_editor_controls26.SizeControl, { units: ["px", "em", "rem", "vw", "vh"] }))));
|
|
2544
2643
|
};
|
|
2545
2644
|
|
|
2546
2645
|
// src/components/style-sections/position-section/position-field.tsx
|
|
2547
|
-
var
|
|
2646
|
+
var React47 = __toESM(require("react"));
|
|
2548
2647
|
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
2549
|
-
var
|
|
2648
|
+
var import_ui38 = require("@elementor/ui");
|
|
2550
2649
|
var import_i18n24 = require("@wordpress/i18n");
|
|
2551
2650
|
var positionOptions = [
|
|
2552
2651
|
{ label: (0, import_i18n24.__)("Static", "elementor"), value: "static" },
|
|
@@ -2556,16 +2655,16 @@ var positionOptions = [
|
|
|
2556
2655
|
{ label: (0, import_i18n24.__)("Sticky", "elementor"), value: "sticky" }
|
|
2557
2656
|
];
|
|
2558
2657
|
var PositionField = ({ onChange }) => {
|
|
2559
|
-
return /* @__PURE__ */
|
|
2658
|
+
return /* @__PURE__ */ React47.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React47.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, (0, import_i18n24.__)("Position", "elementor"))), /* @__PURE__ */ React47.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React47.createElement(import_editor_controls27.SelectControl, { options: positionOptions, onChange }))));
|
|
2560
2659
|
};
|
|
2561
2660
|
|
|
2562
2661
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
2563
|
-
var
|
|
2662
|
+
var React48 = __toESM(require("react"));
|
|
2564
2663
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
2565
|
-
var
|
|
2664
|
+
var import_ui39 = require("@elementor/ui");
|
|
2566
2665
|
var import_i18n25 = require("@wordpress/i18n");
|
|
2567
2666
|
var ZIndexField = () => {
|
|
2568
|
-
return /* @__PURE__ */
|
|
2667
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React48.createElement(import_ui39.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React48.createElement(import_ui39.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(ControlLabel, null, (0, import_i18n25.__)("Z-index", "elementor"))), /* @__PURE__ */ React48.createElement(import_ui39.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(import_editor_controls28.NumberControl, null))));
|
|
2569
2668
|
};
|
|
2570
2669
|
|
|
2571
2670
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -2597,7 +2696,7 @@ var PositionSection = () => {
|
|
|
2597
2696
|
}
|
|
2598
2697
|
};
|
|
2599
2698
|
const isNotStatic = positionValue && positionValue?.value !== "static";
|
|
2600
|
-
return /* @__PURE__ */
|
|
2699
|
+
return /* @__PURE__ */ React49.createElement(SectionContent, null, /* @__PURE__ */ React49.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React49.createElement(React49.Fragment, null, /* @__PURE__ */ React49.createElement(DimensionsField, null), /* @__PURE__ */ React49.createElement(ZIndexField, null)) : null, /* @__PURE__ */ React49.createElement(PanelDivider, null), /* @__PURE__ */ React49.createElement(OffsetField, null));
|
|
2601
2700
|
};
|
|
2602
2701
|
var usePersistDimensions = () => {
|
|
2603
2702
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -2607,115 +2706,115 @@ var usePersistDimensions = () => {
|
|
|
2607
2706
|
};
|
|
2608
2707
|
|
|
2609
2708
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2610
|
-
var
|
|
2709
|
+
var React51 = __toESM(require("react"));
|
|
2611
2710
|
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
2612
|
-
var
|
|
2711
|
+
var import_ui41 = require("@elementor/ui");
|
|
2613
2712
|
var import_i18n27 = require("@wordpress/i18n");
|
|
2614
2713
|
|
|
2615
2714
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
2616
|
-
var
|
|
2715
|
+
var React50 = __toESM(require("react"));
|
|
2617
2716
|
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
2618
2717
|
var import_icons17 = require("@elementor/icons");
|
|
2619
|
-
var
|
|
2718
|
+
var import_ui40 = require("@elementor/ui");
|
|
2620
2719
|
var import_i18n26 = require("@wordpress/i18n");
|
|
2621
2720
|
var options6 = [
|
|
2622
2721
|
{
|
|
2623
2722
|
value: "visible",
|
|
2624
2723
|
label: (0, import_i18n26.__)("Visible", "elementor"),
|
|
2625
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2724
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons17.EyeIcon, { fontSize: size }),
|
|
2626
2725
|
showTooltip: true
|
|
2627
2726
|
},
|
|
2628
2727
|
{
|
|
2629
2728
|
value: "hidden",
|
|
2630
2729
|
label: (0, import_i18n26.__)("Hidden", "elementor"),
|
|
2631
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2730
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons17.EyeOffIcon, { fontSize: size }),
|
|
2632
2731
|
showTooltip: true
|
|
2633
2732
|
},
|
|
2634
2733
|
{
|
|
2635
2734
|
value: "auto",
|
|
2636
2735
|
label: (0, import_i18n26.__)("Auto", "elementor"),
|
|
2637
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2736
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons17.LetterAIcon, { fontSize: size }),
|
|
2638
2737
|
showTooltip: true
|
|
2639
2738
|
}
|
|
2640
2739
|
];
|
|
2641
2740
|
var OverflowField = () => {
|
|
2642
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React50.createElement(import_ui40.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(import_ui40.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, (0, import_i18n26.__)("Overflow", "elementor"))), /* @__PURE__ */ React50.createElement(import_ui40.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React50.createElement(import_editor_controls29.ToggleControl, { options: options6 }))));
|
|
2643
2742
|
};
|
|
2644
2743
|
|
|
2645
2744
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2646
2745
|
var SizeSection = () => {
|
|
2647
|
-
return /* @__PURE__ */
|
|
2746
|
+
return /* @__PURE__ */ React51.createElement(SectionContent, null, /* @__PURE__ */ React51.createElement(import_ui41.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "width", label: (0, import_i18n27.__)("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "height", label: (0, import_i18n27.__)("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React51.createElement(import_ui41.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(
|
|
2648
2747
|
SizeField,
|
|
2649
2748
|
{
|
|
2650
2749
|
bind: "min-width",
|
|
2651
2750
|
label: (0, import_i18n27.__)("Min width", "elementor"),
|
|
2652
2751
|
extendedValues: ["auto"]
|
|
2653
2752
|
}
|
|
2654
|
-
)), /* @__PURE__ */
|
|
2753
|
+
)), /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(
|
|
2655
2754
|
SizeField,
|
|
2656
2755
|
{
|
|
2657
2756
|
bind: "min-height",
|
|
2658
2757
|
label: (0, import_i18n27.__)("Min height", "elementor"),
|
|
2659
2758
|
extendedValues: ["auto"]
|
|
2660
2759
|
}
|
|
2661
|
-
))), /* @__PURE__ */
|
|
2760
|
+
))), /* @__PURE__ */ React51.createElement(import_ui41.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "max-width", label: (0, import_i18n27.__)("Max width", "elementor") })), /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "max-height", label: (0, import_i18n27.__)("Max height", "elementor") }))), /* @__PURE__ */ React51.createElement(PanelDivider, null), /* @__PURE__ */ React51.createElement(import_ui41.Stack, null, /* @__PURE__ */ React51.createElement(OverflowField, null)));
|
|
2662
2761
|
};
|
|
2663
2762
|
var SizeField = ({ label, bind, extendedValues }) => {
|
|
2664
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind }, /* @__PURE__ */ React51.createElement(import_ui41.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(ControlLabel, null, label)), /* @__PURE__ */ React51.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(import_editor_controls30.SizeControl, { extendedValues }))));
|
|
2665
2764
|
};
|
|
2666
2765
|
|
|
2667
2766
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
2668
|
-
var
|
|
2767
|
+
var React52 = __toESM(require("react"));
|
|
2669
2768
|
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
2670
2769
|
var import_i18n28 = require("@wordpress/i18n");
|
|
2671
2770
|
var SpacingSection = () => {
|
|
2672
2771
|
const { isSiteRtl } = useDirection();
|
|
2673
|
-
return /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ React52.createElement(SectionContent, null, /* @__PURE__ */ React52.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React52.createElement(
|
|
2674
2773
|
import_editor_controls31.LinkedDimensionsControl,
|
|
2675
2774
|
{
|
|
2676
2775
|
label: (0, import_i18n28.__)("Margin", "elementor"),
|
|
2677
2776
|
isSiteRtl,
|
|
2678
2777
|
extendedValues: ["auto"]
|
|
2679
2778
|
}
|
|
2680
|
-
)), /* @__PURE__ */
|
|
2779
|
+
)), /* @__PURE__ */ React52.createElement(PanelDivider, null), /* @__PURE__ */ React52.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React52.createElement(import_editor_controls31.LinkedDimensionsControl, { label: (0, import_i18n28.__)("Padding", "elementor"), isSiteRtl })));
|
|
2681
2780
|
};
|
|
2682
2781
|
|
|
2683
2782
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
2684
|
-
var
|
|
2783
|
+
var React67 = __toESM(require("react"));
|
|
2685
2784
|
|
|
2686
2785
|
// src/components/collapsible-content.tsx
|
|
2687
|
-
var
|
|
2688
|
-
var
|
|
2689
|
-
var
|
|
2786
|
+
var React53 = __toESM(require("react"));
|
|
2787
|
+
var import_react21 = require("react");
|
|
2788
|
+
var import_ui42 = require("@elementor/ui");
|
|
2690
2789
|
var import_i18n29 = require("@wordpress/i18n");
|
|
2691
2790
|
var CollapsibleContent = ({ children, defaultOpen = false }) => {
|
|
2692
|
-
const [open, setOpen] = (0,
|
|
2791
|
+
const [open, setOpen] = (0, import_react21.useState)(defaultOpen);
|
|
2693
2792
|
const handleToggle = () => {
|
|
2694
2793
|
setOpen((prevOpen) => !prevOpen);
|
|
2695
2794
|
};
|
|
2696
|
-
return /* @__PURE__ */
|
|
2697
|
-
|
|
2795
|
+
return /* @__PURE__ */ React53.createElement(import_ui42.Stack, null, /* @__PURE__ */ React53.createElement(
|
|
2796
|
+
import_ui42.Button,
|
|
2698
2797
|
{
|
|
2699
2798
|
fullWidth: true,
|
|
2700
2799
|
size: "small",
|
|
2701
2800
|
color: "secondary",
|
|
2702
2801
|
variant: "outlined",
|
|
2703
2802
|
onClick: handleToggle,
|
|
2704
|
-
endIcon: /* @__PURE__ */
|
|
2803
|
+
endIcon: /* @__PURE__ */ React53.createElement(CollapseIcon, { open }),
|
|
2705
2804
|
sx: { my: 0.5 }
|
|
2706
2805
|
},
|
|
2707
2806
|
open ? (0, import_i18n29.__)("Show less", "elementor") : (0, import_i18n29.__)("Show more", "elementor")
|
|
2708
|
-
), /* @__PURE__ */
|
|
2807
|
+
), /* @__PURE__ */ React53.createElement(import_ui42.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
2709
2808
|
};
|
|
2710
2809
|
|
|
2711
2810
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
2712
|
-
var
|
|
2811
|
+
var React54 = __toESM(require("react"));
|
|
2713
2812
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
2714
|
-
var
|
|
2813
|
+
var import_ui43 = require("@elementor/ui");
|
|
2715
2814
|
var import_i18n31 = require("@wordpress/i18n");
|
|
2716
2815
|
|
|
2717
2816
|
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
2718
|
-
var
|
|
2817
|
+
var import_react22 = require("react");
|
|
2719
2818
|
var import_i18n30 = require("@wordpress/i18n");
|
|
2720
2819
|
|
|
2721
2820
|
// src/sync/get-elementor-config.ts
|
|
@@ -2740,7 +2839,7 @@ var getFontFamilies = () => {
|
|
|
2740
2839
|
};
|
|
2741
2840
|
var useFontFamilies = () => {
|
|
2742
2841
|
const fontFamilies = getFontFamilies();
|
|
2743
|
-
return (0,
|
|
2842
|
+
return (0, import_react22.useMemo)(() => {
|
|
2744
2843
|
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
2745
2844
|
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
2746
2845
|
if (!supportedCategories[category]) {
|
|
@@ -2765,44 +2864,44 @@ var FontFamilyField = () => {
|
|
|
2765
2864
|
if (fontFamilies.length === 0) {
|
|
2766
2865
|
return null;
|
|
2767
2866
|
}
|
|
2768
|
-
return /* @__PURE__ */
|
|
2867
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React54.createElement(import_ui43.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(ControlLabel, null, (0, import_i18n31.__)("Font family", "elementor"))), /* @__PURE__ */ React54.createElement(import_ui43.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React54.createElement(import_editor_controls32.FontFamilyControl, { fontFamilies }))));
|
|
2769
2868
|
};
|
|
2770
2869
|
|
|
2771
2870
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
2772
|
-
var
|
|
2871
|
+
var React55 = __toESM(require("react"));
|
|
2773
2872
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
2774
|
-
var
|
|
2873
|
+
var import_ui44 = require("@elementor/ui");
|
|
2775
2874
|
var import_i18n32 = require("@wordpress/i18n");
|
|
2776
2875
|
var FontSizeField = () => {
|
|
2777
|
-
return /* @__PURE__ */
|
|
2876
|
+
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React55.createElement(import_ui44.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(ControlLabel, null, (0, import_i18n32.__)("Font size", "elementor"))), /* @__PURE__ */ React55.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(import_editor_controls33.SizeControl, null))));
|
|
2778
2877
|
};
|
|
2779
2878
|
|
|
2780
2879
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
2781
|
-
var
|
|
2880
|
+
var React56 = __toESM(require("react"));
|
|
2782
2881
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
2783
2882
|
var import_icons18 = require("@elementor/icons");
|
|
2784
|
-
var
|
|
2883
|
+
var import_ui45 = require("@elementor/ui");
|
|
2785
2884
|
var import_i18n33 = require("@wordpress/i18n");
|
|
2786
2885
|
var options7 = [
|
|
2787
2886
|
{
|
|
2788
2887
|
value: "normal",
|
|
2789
2888
|
label: (0, import_i18n33.__)("Normal", "elementor"),
|
|
2790
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2889
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons18.MinusIcon, { fontSize: size }),
|
|
2791
2890
|
showTooltip: true
|
|
2792
2891
|
},
|
|
2793
2892
|
{
|
|
2794
2893
|
value: "italic",
|
|
2795
2894
|
label: (0, import_i18n33.__)("Italic", "elementor"),
|
|
2796
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2895
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons18.ItalicIcon, { fontSize: size }),
|
|
2797
2896
|
showTooltip: true
|
|
2798
2897
|
}
|
|
2799
2898
|
];
|
|
2800
|
-
var FontStyleField = () => /* @__PURE__ */
|
|
2899
|
+
var FontStyleField = () => /* @__PURE__ */ React56.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React56.createElement(import_ui45.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React56.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(import_editor_controls34.ControlFormLabel, null, (0, import_i18n33.__)("Font style", "elementor"))), /* @__PURE__ */ React56.createElement(import_ui45.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React56.createElement(import_editor_controls34.ToggleControl, { options: options7 }))));
|
|
2801
2900
|
|
|
2802
2901
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
2803
|
-
var
|
|
2902
|
+
var React57 = __toESM(require("react"));
|
|
2804
2903
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
2805
|
-
var
|
|
2904
|
+
var import_ui46 = require("@elementor/ui");
|
|
2806
2905
|
var import_i18n34 = require("@wordpress/i18n");
|
|
2807
2906
|
var fontWeightOptions = [
|
|
2808
2907
|
{ value: "100", label: (0, import_i18n34.__)("100 - Thin", "elementor") },
|
|
@@ -2816,135 +2915,135 @@ var fontWeightOptions = [
|
|
|
2816
2915
|
{ value: "900", label: (0, import_i18n34.__)("900 - Black", "elementor") }
|
|
2817
2916
|
];
|
|
2818
2917
|
var FontWeightField = () => {
|
|
2819
|
-
return /* @__PURE__ */
|
|
2918
|
+
return /* @__PURE__ */ React57.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React57.createElement(import_ui46.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui46.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, (0, import_i18n34.__)("Font weight", "elementor"))), /* @__PURE__ */ React57.createElement(import_ui46.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React57.createElement(import_editor_controls35.SelectControl, { options: fontWeightOptions }))));
|
|
2820
2919
|
};
|
|
2821
2920
|
|
|
2822
2921
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
2823
|
-
var
|
|
2922
|
+
var React58 = __toESM(require("react"));
|
|
2824
2923
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
2825
|
-
var
|
|
2924
|
+
var import_ui47 = require("@elementor/ui");
|
|
2826
2925
|
var import_i18n35 = require("@wordpress/i18n");
|
|
2827
2926
|
var LetterSpacingField = () => {
|
|
2828
|
-
return /* @__PURE__ */
|
|
2927
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React58.createElement(import_ui47.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, (0, import_i18n35.__)("Letter spacing", "elementor"))), /* @__PURE__ */ React58.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(import_editor_controls36.SizeControl, null))));
|
|
2829
2928
|
};
|
|
2830
2929
|
|
|
2831
2930
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
2832
|
-
var
|
|
2931
|
+
var React59 = __toESM(require("react"));
|
|
2833
2932
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
2834
|
-
var
|
|
2933
|
+
var import_ui48 = require("@elementor/ui");
|
|
2835
2934
|
var import_i18n36 = require("@wordpress/i18n");
|
|
2836
2935
|
var LineHeightField = () => {
|
|
2837
|
-
return /* @__PURE__ */
|
|
2936
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React59.createElement(import_ui48.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(ControlLabel, null, (0, import_i18n36.__)("Line height", "elementor"))), /* @__PURE__ */ React59.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(import_editor_controls37.SizeControl, null))));
|
|
2838
2937
|
};
|
|
2839
2938
|
|
|
2840
2939
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
2841
|
-
var
|
|
2940
|
+
var React60 = __toESM(require("react"));
|
|
2842
2941
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
2843
2942
|
var import_icons19 = require("@elementor/icons");
|
|
2844
|
-
var
|
|
2943
|
+
var import_ui49 = require("@elementor/ui");
|
|
2845
2944
|
var import_i18n37 = require("@wordpress/i18n");
|
|
2846
|
-
var AlignStartIcon = (0,
|
|
2847
|
-
var AlignEndIcon = (0,
|
|
2945
|
+
var AlignStartIcon = (0, import_ui49.withDirection)(import_icons19.AlignLeftIcon);
|
|
2946
|
+
var AlignEndIcon = (0, import_ui49.withDirection)(import_icons19.AlignRightIcon);
|
|
2848
2947
|
var options8 = [
|
|
2849
2948
|
{
|
|
2850
2949
|
value: "start",
|
|
2851
2950
|
label: (0, import_i18n37.__)("Start", "elementor"),
|
|
2852
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2951
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(AlignStartIcon, { fontSize: size }),
|
|
2853
2952
|
showTooltip: true
|
|
2854
2953
|
},
|
|
2855
2954
|
{
|
|
2856
2955
|
value: "center",
|
|
2857
2956
|
label: (0, import_i18n37.__)("Center", "elementor"),
|
|
2858
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2957
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons19.AlignCenterIcon, { fontSize: size }),
|
|
2859
2958
|
showTooltip: true
|
|
2860
2959
|
},
|
|
2861
2960
|
{
|
|
2862
2961
|
value: "end",
|
|
2863
2962
|
label: (0, import_i18n37.__)("End", "elementor"),
|
|
2864
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2963
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(AlignEndIcon, { fontSize: size }),
|
|
2865
2964
|
showTooltip: true
|
|
2866
2965
|
},
|
|
2867
2966
|
{
|
|
2868
2967
|
value: "justify",
|
|
2869
2968
|
label: (0, import_i18n37.__)("Justify", "elementor"),
|
|
2870
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2969
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons19.AlignJustifiedIcon, { fontSize: size }),
|
|
2871
2970
|
showTooltip: true
|
|
2872
2971
|
}
|
|
2873
2972
|
];
|
|
2874
2973
|
var TextAlignmentField = () => {
|
|
2875
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React60.createElement(import_ui49.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui49.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(ControlLabel, null, (0, import_i18n37.__)("Text align", "elementor"))), /* @__PURE__ */ React60.createElement(import_ui49.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React60.createElement(import_editor_controls38.ToggleControl, { options: options8 }))));
|
|
2876
2975
|
};
|
|
2877
2976
|
|
|
2878
2977
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
2879
|
-
var
|
|
2978
|
+
var React61 = __toESM(require("react"));
|
|
2880
2979
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
2881
|
-
var
|
|
2980
|
+
var import_ui50 = require("@elementor/ui");
|
|
2882
2981
|
var import_i18n38 = require("@wordpress/i18n");
|
|
2883
2982
|
var TextColorField = () => {
|
|
2884
|
-
return /* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React61.createElement(import_ui50.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React61.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(ControlLabel, null, (0, import_i18n38.__)("Text color", "elementor"))), /* @__PURE__ */ React61.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(import_editor_controls39.ColorControl, null))));
|
|
2885
2984
|
};
|
|
2886
2985
|
|
|
2887
2986
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
2888
|
-
var
|
|
2987
|
+
var React62 = __toESM(require("react"));
|
|
2889
2988
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
2890
2989
|
var import_icons20 = require("@elementor/icons");
|
|
2891
|
-
var
|
|
2990
|
+
var import_ui51 = require("@elementor/ui");
|
|
2892
2991
|
var import_i18n39 = require("@wordpress/i18n");
|
|
2893
2992
|
var options9 = [
|
|
2894
2993
|
{
|
|
2895
2994
|
value: "none",
|
|
2896
2995
|
label: (0, import_i18n39.__)("None", "elementor"),
|
|
2897
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2996
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(import_icons20.MinusIcon, { fontSize: size }),
|
|
2898
2997
|
showTooltip: true,
|
|
2899
2998
|
exclusive: true
|
|
2900
2999
|
},
|
|
2901
3000
|
{
|
|
2902
3001
|
value: "underline",
|
|
2903
3002
|
label: (0, import_i18n39.__)("Underline", "elementor"),
|
|
2904
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3003
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(import_icons20.UnderlineIcon, { fontSize: size }),
|
|
2905
3004
|
showTooltip: true
|
|
2906
3005
|
},
|
|
2907
3006
|
{
|
|
2908
3007
|
value: "line-through",
|
|
2909
3008
|
label: (0, import_i18n39.__)("Line-through", "elementor"),
|
|
2910
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3009
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(import_icons20.StrikethroughIcon, { fontSize: size }),
|
|
2911
3010
|
showTooltip: true
|
|
2912
3011
|
},
|
|
2913
3012
|
{
|
|
2914
3013
|
value: "overline",
|
|
2915
3014
|
label: (0, import_i18n39.__)("Overline", "elementor"),
|
|
2916
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3015
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(import_icons20.OverlineIcon, { fontSize: size }),
|
|
2917
3016
|
showTooltip: true
|
|
2918
3017
|
}
|
|
2919
3018
|
];
|
|
2920
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
3019
|
+
var TextDecorationField = () => /* @__PURE__ */ React62.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, (0, import_i18n39.__)("Line decoration", "elementor"))), /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React62.createElement(import_editor_controls40.ToggleControl, { options: options9, exclusive: false }))));
|
|
2921
3020
|
|
|
2922
3021
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
2923
|
-
var
|
|
3022
|
+
var React63 = __toESM(require("react"));
|
|
2924
3023
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
2925
3024
|
var import_icons21 = require("@elementor/icons");
|
|
2926
|
-
var
|
|
3025
|
+
var import_ui52 = require("@elementor/ui");
|
|
2927
3026
|
var import_i18n40 = require("@wordpress/i18n");
|
|
2928
3027
|
var options10 = [
|
|
2929
3028
|
{
|
|
2930
3029
|
value: "ltr",
|
|
2931
3030
|
label: (0, import_i18n40.__)("Left to right", "elementor"),
|
|
2932
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3031
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(import_icons21.TextDirectionLtrIcon, { fontSize: size }),
|
|
2933
3032
|
showTooltip: true
|
|
2934
3033
|
},
|
|
2935
3034
|
{
|
|
2936
3035
|
value: "rtl",
|
|
2937
3036
|
label: (0, import_i18n40.__)("Right to left", "elementor"),
|
|
2938
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3037
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(import_icons21.TextDirectionRtlIcon, { fontSize: size }),
|
|
2939
3038
|
showTooltip: true
|
|
2940
3039
|
}
|
|
2941
3040
|
];
|
|
2942
3041
|
var TextDirectionField = () => {
|
|
2943
|
-
return /* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, (0, import_i18n40.__)("Direction", "elementor"))), /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React63.createElement(import_editor_controls41.ToggleControl, { options: options10 }))));
|
|
2944
3043
|
};
|
|
2945
3044
|
|
|
2946
3045
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
2947
|
-
var
|
|
3046
|
+
var React64 = __toESM(require("react"));
|
|
2948
3047
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
2949
3048
|
var import_i18n41 = require("@wordpress/i18n");
|
|
2950
3049
|
var initTextStroke = {
|
|
@@ -2972,7 +3071,7 @@ var TextStrokeField = () => {
|
|
|
2972
3071
|
setTextStroke(null);
|
|
2973
3072
|
};
|
|
2974
3073
|
const hasTextStroke = Boolean(textStroke);
|
|
2975
|
-
return /* @__PURE__ */
|
|
3074
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React64.createElement(
|
|
2976
3075
|
AddOrRemoveContent,
|
|
2977
3076
|
{
|
|
2978
3077
|
label: (0, import_i18n41.__)("Text stroke", "elementor"),
|
|
@@ -2980,56 +3079,56 @@ var TextStrokeField = () => {
|
|
|
2980
3079
|
onAdd: addTextStroke,
|
|
2981
3080
|
onRemove: removeTextStroke
|
|
2982
3081
|
},
|
|
2983
|
-
/* @__PURE__ */
|
|
3082
|
+
/* @__PURE__ */ React64.createElement(import_editor_controls42.StrokeControl, null)
|
|
2984
3083
|
));
|
|
2985
3084
|
};
|
|
2986
3085
|
|
|
2987
3086
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
2988
|
-
var
|
|
3087
|
+
var React65 = __toESM(require("react"));
|
|
2989
3088
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
2990
3089
|
var import_icons22 = require("@elementor/icons");
|
|
2991
|
-
var
|
|
3090
|
+
var import_ui53 = require("@elementor/ui");
|
|
2992
3091
|
var import_i18n42 = require("@wordpress/i18n");
|
|
2993
3092
|
var options11 = [
|
|
2994
3093
|
{
|
|
2995
3094
|
value: "none",
|
|
2996
3095
|
label: (0, import_i18n42.__)("None", "elementor"),
|
|
2997
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3096
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons22.MinusIcon, { fontSize: size }),
|
|
2998
3097
|
showTooltip: true
|
|
2999
3098
|
},
|
|
3000
3099
|
{
|
|
3001
3100
|
value: "capitalize",
|
|
3002
3101
|
label: (0, import_i18n42.__)("Capitalize", "elementor"),
|
|
3003
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3102
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons22.LetterCaseIcon, { fontSize: size }),
|
|
3004
3103
|
showTooltip: true
|
|
3005
3104
|
},
|
|
3006
3105
|
{
|
|
3007
3106
|
value: "uppercase",
|
|
3008
3107
|
label: (0, import_i18n42.__)("Uppercase", "elementor"),
|
|
3009
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3108
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons22.LetterCaseUpperIcon, { fontSize: size }),
|
|
3010
3109
|
showTooltip: true
|
|
3011
3110
|
},
|
|
3012
3111
|
{
|
|
3013
3112
|
value: "lowercase",
|
|
3014
3113
|
label: (0, import_i18n42.__)("Lowercase", "elementor"),
|
|
3015
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3114
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons22.LetterCaseLowerIcon, { fontSize: size }),
|
|
3016
3115
|
showTooltip: true
|
|
3017
3116
|
}
|
|
3018
3117
|
];
|
|
3019
|
-
var TransformField = () => /* @__PURE__ */
|
|
3118
|
+
var TransformField = () => /* @__PURE__ */ React65.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React65.createElement(import_ui53.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React65.createElement(import_ui53.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, (0, import_i18n42.__)("Text transform", "elementor"))), /* @__PURE__ */ React65.createElement(import_ui53.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React65.createElement(import_editor_controls43.ToggleControl, { options: options11 }))));
|
|
3020
3119
|
|
|
3021
3120
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
3022
|
-
var
|
|
3121
|
+
var React66 = __toESM(require("react"));
|
|
3023
3122
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
3024
|
-
var
|
|
3123
|
+
var import_ui54 = require("@elementor/ui");
|
|
3025
3124
|
var import_i18n43 = require("@wordpress/i18n");
|
|
3026
3125
|
var WordSpacingField = () => {
|
|
3027
|
-
return /* @__PURE__ */
|
|
3126
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React66.createElement(import_ui54.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React66.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ControlLabel, null, (0, import_i18n43.__)("Word spacing", "elementor"))), /* @__PURE__ */ React66.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(import_editor_controls44.SizeControl, null))));
|
|
3028
3127
|
};
|
|
3029
3128
|
|
|
3030
3129
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
3031
3130
|
var TypographySection = () => {
|
|
3032
|
-
return /* @__PURE__ */
|
|
3131
|
+
return /* @__PURE__ */ React67.createElement(SectionContent, null, /* @__PURE__ */ React67.createElement(FontFamilyField, null), /* @__PURE__ */ React67.createElement(FontWeightField, null), /* @__PURE__ */ React67.createElement(FontSizeField, null), /* @__PURE__ */ React67.createElement(PanelDivider, null), /* @__PURE__ */ React67.createElement(TextAlignmentField, null), /* @__PURE__ */ React67.createElement(TextColorField, null), /* @__PURE__ */ React67.createElement(CollapsibleContent, null, /* @__PURE__ */ React67.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React67.createElement(LineHeightField, null), /* @__PURE__ */ React67.createElement(LetterSpacingField, null), /* @__PURE__ */ React67.createElement(WordSpacingField, null), /* @__PURE__ */ React67.createElement(PanelDivider, null), /* @__PURE__ */ React67.createElement(TextDecorationField, null), /* @__PURE__ */ React67.createElement(TransformField, null), /* @__PURE__ */ React67.createElement(TextDirectionField, null), /* @__PURE__ */ React67.createElement(FontStyleField, null), /* @__PURE__ */ React67.createElement(TextStrokeField, null))));
|
|
3033
3132
|
};
|
|
3034
3133
|
|
|
3035
3134
|
// src/components/style-tab.tsx
|
|
@@ -3044,9 +3143,9 @@ var stickyHeaderStyles = {
|
|
|
3044
3143
|
var StyleTab = () => {
|
|
3045
3144
|
const currentClassesProp = useCurrentClassesProp();
|
|
3046
3145
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
|
|
3047
|
-
const [activeStyleState, setActiveStyleState] = (0,
|
|
3146
|
+
const [activeStyleState, setActiveStyleState] = (0, import_react23.useState)(null);
|
|
3048
3147
|
const breakpoint = (0, import_editor_responsive2.useActiveBreakpoint)();
|
|
3049
|
-
return /* @__PURE__ */
|
|
3148
|
+
return /* @__PURE__ */ React68.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React68.createElement(
|
|
3050
3149
|
StyleProvider,
|
|
3051
3150
|
{
|
|
3052
3151
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -3057,12 +3156,12 @@ var StyleTab = () => {
|
|
|
3057
3156
|
},
|
|
3058
3157
|
setMetaState: setActiveStyleState
|
|
3059
3158
|
},
|
|
3060
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ React68.createElement(import_session3.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React68.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React68.createElement(ClassesHeader, null, /* @__PURE__ */ React68.createElement(CssClassSelector, null), /* @__PURE__ */ React68.createElement(import_ui55.Divider, null)), /* @__PURE__ */ React68.createElement(SectionsList, null, /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Layout", "elementor") }, /* @__PURE__ */ React68.createElement(LayoutSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Spacing", "elementor") }, /* @__PURE__ */ React68.createElement(SpacingSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Size", "elementor") }, /* @__PURE__ */ React68.createElement(SizeSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Position", "elementor") }, /* @__PURE__ */ React68.createElement(PositionSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Typography", "elementor") }, /* @__PURE__ */ React68.createElement(TypographySection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Background", "elementor") }, /* @__PURE__ */ React68.createElement(BackgroundSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Border", "elementor") }, /* @__PURE__ */ React68.createElement(BorderSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: (0, import_i18n44.__)("Effects", "elementor") }, /* @__PURE__ */ React68.createElement(EffectsSection, null)))))
|
|
3061
3160
|
));
|
|
3062
3161
|
};
|
|
3063
3162
|
function ClassesHeader({ children }) {
|
|
3064
3163
|
const scrollDirection = useScrollDirection();
|
|
3065
|
-
return /* @__PURE__ */
|
|
3164
|
+
return /* @__PURE__ */ React68.createElement(import_ui55.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
3066
3165
|
}
|
|
3067
3166
|
function useCurrentClassesProp() {
|
|
3068
3167
|
const { elementType } = useElement();
|
|
@@ -3078,11 +3177,11 @@ function useCurrentClassesProp() {
|
|
|
3078
3177
|
// src/components/editing-panel-tabs.tsx
|
|
3079
3178
|
var EditingPanelTabs = () => {
|
|
3080
3179
|
const { element } = useElement();
|
|
3081
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
3180
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui56.useTabs)("settings");
|
|
3082
3181
|
return (
|
|
3083
3182
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
3084
3183
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
3085
|
-
/* @__PURE__ */
|
|
3184
|
+
/* @__PURE__ */ React69.createElement(import_react24.Fragment, { key: element.id }, /* @__PURE__ */ React69.createElement(ScrollProvider, null, /* @__PURE__ */ React69.createElement(import_ui56.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React69.createElement(import_ui56.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React69.createElement(import_ui56.Tabs, { variant: "fullWidth", size: "small", sx: { mt: 0.5 }, ...getTabsProps() }, /* @__PURE__ */ React69.createElement(import_ui56.Tab, { label: (0, import_i18n45.__)("General", "elementor"), ...getTabProps("settings") }), /* @__PURE__ */ React69.createElement(import_ui56.Tab, { label: (0, import_i18n45.__)("Style", "elementor"), ...getTabProps("style") })), /* @__PURE__ */ React69.createElement(import_ui56.Divider, null)), /* @__PURE__ */ React69.createElement(import_ui56.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React69.createElement(SettingsTab, null)), /* @__PURE__ */ React69.createElement(import_ui56.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React69.createElement(StyleTab, null)))))
|
|
3086
3185
|
);
|
|
3087
3186
|
};
|
|
3088
3187
|
|
|
@@ -3096,7 +3195,7 @@ var EditingPanel = () => {
|
|
|
3096
3195
|
return null;
|
|
3097
3196
|
}
|
|
3098
3197
|
const panelTitle = (0, import_i18n46.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
3099
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ React70.createElement(import_ui57.ErrorBoundary, { fallback: /* @__PURE__ */ React70.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React70.createElement(import_session4.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React70.createElement(import_editor_ui3.ThemeProvider, null, /* @__PURE__ */ React70.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React70.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React70.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React70.createElement(import_icons23.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React70.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React70.createElement(import_editor_controls45.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React70.createElement(import_editor_controls45.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React70.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React70.createElement(EditingPanelTabs, null)))))))));
|
|
3100
3199
|
};
|
|
3101
3200
|
|
|
3102
3201
|
// src/panel.ts
|
|
@@ -3112,7 +3211,7 @@ var import_editor_panels3 = require("@elementor/editor-panels");
|
|
|
3112
3211
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
3113
3212
|
|
|
3114
3213
|
// src/hooks/use-open-editor-panel.ts
|
|
3115
|
-
var
|
|
3214
|
+
var import_react25 = require("react");
|
|
3116
3215
|
var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
|
|
3117
3216
|
|
|
3118
3217
|
// src/sync/is-atomic-widget-selected.ts
|
|
@@ -3129,7 +3228,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
3129
3228
|
// src/hooks/use-open-editor-panel.ts
|
|
3130
3229
|
var useOpenEditorPanel = () => {
|
|
3131
3230
|
const { open } = usePanelActions();
|
|
3132
|
-
(0,
|
|
3231
|
+
(0, import_react25.useEffect)(() => {
|
|
3133
3232
|
return (0, import_editor_v1_adapters3.__privateListenTo)((0, import_editor_v1_adapters3.commandStartEvent)("panel/editor/open"), () => {
|
|
3134
3233
|
if (isAtomicWidgetSelected()) {
|
|
3135
3234
|
open();
|
|
@@ -3145,19 +3244,19 @@ var EditingPanelHooks = () => {
|
|
|
3145
3244
|
};
|
|
3146
3245
|
|
|
3147
3246
|
// src/dynamics/init.ts
|
|
3148
|
-
var
|
|
3247
|
+
var import_editor_canvas3 = require("@elementor/editor-canvas");
|
|
3149
3248
|
|
|
3150
3249
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
3151
|
-
var
|
|
3250
|
+
var React74 = __toESM(require("react"));
|
|
3152
3251
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
3153
3252
|
var import_icons25 = require("@elementor/icons");
|
|
3154
|
-
var
|
|
3253
|
+
var import_ui60 = require("@elementor/ui");
|
|
3155
3254
|
var import_i18n48 = require("@wordpress/i18n");
|
|
3156
3255
|
|
|
3157
3256
|
// src/components/popover-content.tsx
|
|
3158
|
-
var
|
|
3159
|
-
var
|
|
3160
|
-
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */
|
|
3257
|
+
var React71 = __toESM(require("react"));
|
|
3258
|
+
var import_ui58 = require("@elementor/ui");
|
|
3259
|
+
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React71.createElement(import_ui58.Stack, { alignItems, gap, p }, children);
|
|
3161
3260
|
|
|
3162
3261
|
// src/hooks/use-persist-dynamic-value.ts
|
|
3163
3262
|
var import_session5 = require("@elementor/session");
|
|
@@ -3168,14 +3267,14 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
3168
3267
|
};
|
|
3169
3268
|
|
|
3170
3269
|
// src/dynamics/dynamic-control.tsx
|
|
3171
|
-
var
|
|
3270
|
+
var React72 = __toESM(require("react"));
|
|
3172
3271
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
3173
3272
|
|
|
3174
3273
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
3175
|
-
var
|
|
3274
|
+
var import_react27 = require("react");
|
|
3176
3275
|
|
|
3177
3276
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
3178
|
-
var
|
|
3277
|
+
var import_react26 = require("react");
|
|
3179
3278
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
3180
3279
|
|
|
3181
3280
|
// src/dynamics/sync/get-elementor-config.ts
|
|
@@ -3227,7 +3326,7 @@ var usePropDynamicTags = () => {
|
|
|
3227
3326
|
const propDynamicType = getDynamicPropType(propType);
|
|
3228
3327
|
categories = propDynamicType?.settings.categories || [];
|
|
3229
3328
|
}
|
|
3230
|
-
return (0,
|
|
3329
|
+
return (0, import_react26.useMemo)(() => getDynamicTagsByCategories(categories), [categories.join()]);
|
|
3231
3330
|
};
|
|
3232
3331
|
var getDynamicTagsByCategories = (categories) => {
|
|
3233
3332
|
const dynamicTags = getAtomicDynamicTags();
|
|
@@ -3243,7 +3342,7 @@ var getDynamicTagsByCategories = (categories) => {
|
|
|
3243
3342
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
3244
3343
|
var useDynamicTag = (tagName) => {
|
|
3245
3344
|
const dynamicTags = usePropDynamicTags();
|
|
3246
|
-
return (0,
|
|
3345
|
+
return (0, import_react27.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
|
|
3247
3346
|
};
|
|
3248
3347
|
|
|
3249
3348
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -3267,19 +3366,19 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
3267
3366
|
});
|
|
3268
3367
|
};
|
|
3269
3368
|
const propType = createTopLevelOjectType({ schema: dynamicTag.props_schema });
|
|
3270
|
-
return /* @__PURE__ */
|
|
3369
|
+
return /* @__PURE__ */ React72.createElement(import_editor_controls47.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React72.createElement(import_editor_controls47.PropKeyProvider, { bind }, children));
|
|
3271
3370
|
};
|
|
3272
3371
|
|
|
3273
3372
|
// src/dynamics/components/dynamic-selection.tsx
|
|
3274
|
-
var
|
|
3275
|
-
var
|
|
3373
|
+
var React73 = __toESM(require("react"));
|
|
3374
|
+
var import_react28 = require("react");
|
|
3276
3375
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
3277
3376
|
var import_icons24 = require("@elementor/icons");
|
|
3278
|
-
var
|
|
3377
|
+
var import_ui59 = require("@elementor/ui");
|
|
3279
3378
|
var import_i18n47 = require("@wordpress/i18n");
|
|
3280
3379
|
var SIZE3 = "tiny";
|
|
3281
3380
|
var DynamicSelection = ({ onSelect }) => {
|
|
3282
|
-
const [searchValue, setSearchValue] = (0,
|
|
3381
|
+
const [searchValue, setSearchValue] = (0, import_react28.useState)("");
|
|
3283
3382
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
3284
3383
|
const { value: anyValue } = (0, import_editor_controls48.useBoundProp)();
|
|
3285
3384
|
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls48.useBoundProp)(dynamicPropTypeUtil);
|
|
@@ -3297,8 +3396,8 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3297
3396
|
setValue({ name: value, settings: { label } });
|
|
3298
3397
|
onSelect?.();
|
|
3299
3398
|
};
|
|
3300
|
-
return /* @__PURE__ */
|
|
3301
|
-
|
|
3399
|
+
return /* @__PURE__ */ React73.createElement(import_ui59.Stack, null, hasNoDynamicTags ? /* @__PURE__ */ React73.createElement(NoDynamicTags, null) : /* @__PURE__ */ React73.createElement(import_react28.Fragment, null, /* @__PURE__ */ React73.createElement(import_ui59.Box, { px: 1.5, pb: 1 }, /* @__PURE__ */ React73.createElement(
|
|
3400
|
+
import_ui59.TextField,
|
|
3302
3401
|
{
|
|
3303
3402
|
fullWidth: true,
|
|
3304
3403
|
size: SIZE3,
|
|
@@ -3306,19 +3405,19 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3306
3405
|
onChange: handleSearch,
|
|
3307
3406
|
placeholder: (0, import_i18n47.__)("Search dynamic tags\u2026", "elementor"),
|
|
3308
3407
|
InputProps: {
|
|
3309
|
-
startAdornment: /* @__PURE__ */
|
|
3408
|
+
startAdornment: /* @__PURE__ */ React73.createElement(import_ui59.InputAdornment, { position: "start" }, /* @__PURE__ */ React73.createElement(import_icons24.SearchIcon, { fontSize: SIZE3 }))
|
|
3310
3409
|
}
|
|
3311
3410
|
}
|
|
3312
|
-
)), /* @__PURE__ */
|
|
3313
|
-
|
|
3411
|
+
)), /* @__PURE__ */ React73.createElement(import_ui59.Divider, null), /* @__PURE__ */ React73.createElement(import_ui59.Box, { sx: { overflowY: "auto", height: 260, width: 220 } }, options12.length > 0 ? /* @__PURE__ */ React73.createElement(import_ui59.MenuList, { role: "listbox", tabIndex: 0 }, options12.map(([category, items3], index) => /* @__PURE__ */ React73.createElement(import_react28.Fragment, { key: index }, /* @__PURE__ */ React73.createElement(
|
|
3412
|
+
import_ui59.MenuSubheader,
|
|
3314
3413
|
{
|
|
3315
3414
|
sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
|
|
3316
3415
|
},
|
|
3317
3416
|
dynamicGroups?.[category]?.title || category
|
|
3318
3417
|
), items3.map(({ value, label: tagLabel }) => {
|
|
3319
3418
|
const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
|
|
3320
|
-
return /* @__PURE__ */
|
|
3321
|
-
|
|
3419
|
+
return /* @__PURE__ */ React73.createElement(
|
|
3420
|
+
import_ui59.MenuItem,
|
|
3322
3421
|
{
|
|
3323
3422
|
key: value,
|
|
3324
3423
|
selected: isSelected,
|
|
@@ -3328,10 +3427,10 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3328
3427
|
},
|
|
3329
3428
|
tagLabel
|
|
3330
3429
|
);
|
|
3331
|
-
})))) : /* @__PURE__ */
|
|
3430
|
+
})))) : /* @__PURE__ */ React73.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
|
|
3332
3431
|
};
|
|
3333
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
3334
|
-
|
|
3432
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React73.createElement(
|
|
3433
|
+
import_ui59.Stack,
|
|
3335
3434
|
{
|
|
3336
3435
|
gap: 1,
|
|
3337
3436
|
alignItems: "center",
|
|
@@ -3341,12 +3440,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React72.createElem
|
|
|
3341
3440
|
color: "text.secondary",
|
|
3342
3441
|
sx: { pb: 3.5 }
|
|
3343
3442
|
},
|
|
3344
|
-
/* @__PURE__ */
|
|
3345
|
-
/* @__PURE__ */
|
|
3346
|
-
/* @__PURE__ */
|
|
3443
|
+
/* @__PURE__ */ React73.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
3444
|
+
/* @__PURE__ */ React73.createElement(import_ui59.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n47.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React73.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
3445
|
+
/* @__PURE__ */ React73.createElement(import_ui59.Typography, { align: "center", variant: "caption" }, (0, import_i18n47.__)("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React73.createElement(import_ui59.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n47.__)("Clear & try again", "elementor")))
|
|
3347
3446
|
);
|
|
3348
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
3349
|
-
|
|
3447
|
+
var NoDynamicTags = () => /* @__PURE__ */ React73.createElement(import_ui59.Box, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React73.createElement(import_ui59.Divider, null), /* @__PURE__ */ React73.createElement(
|
|
3448
|
+
import_ui59.Stack,
|
|
3350
3449
|
{
|
|
3351
3450
|
gap: 1,
|
|
3352
3451
|
alignItems: "center",
|
|
@@ -3356,9 +3455,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React72.createElement(import_ui57.Box,
|
|
|
3356
3455
|
color: "text.secondary",
|
|
3357
3456
|
sx: { pb: 3.5 }
|
|
3358
3457
|
},
|
|
3359
|
-
/* @__PURE__ */
|
|
3360
|
-
/* @__PURE__ */
|
|
3361
|
-
/* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ React73.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
3459
|
+
/* @__PURE__ */ React73.createElement(import_ui59.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n47.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
3460
|
+
/* @__PURE__ */ React73.createElement(import_ui59.Typography, { align: "center", variant: "caption" }, (0, import_i18n47.__)("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
|
|
3362
3461
|
));
|
|
3363
3462
|
var useFilteredOptions = (searchValue) => {
|
|
3364
3463
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -3382,7 +3481,7 @@ var DynamicSelectionControl = () => {
|
|
|
3382
3481
|
const { setValue: setAnyValue } = (0, import_editor_controls49.useBoundProp)();
|
|
3383
3482
|
const { bind, value } = (0, import_editor_controls49.useBoundProp)(dynamicPropTypeUtil);
|
|
3384
3483
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
3385
|
-
const selectionPopoverState = (0,
|
|
3484
|
+
const selectionPopoverState = (0, import_ui60.usePopupState)({ variant: "popover" });
|
|
3386
3485
|
const { name: tagName = "" } = value;
|
|
3387
3486
|
const dynamicTag = useDynamicTag(tagName);
|
|
3388
3487
|
const removeDynamicTag = () => {
|
|
@@ -3391,62 +3490,62 @@ var DynamicSelectionControl = () => {
|
|
|
3391
3490
|
if (!dynamicTag) {
|
|
3392
3491
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
3393
3492
|
}
|
|
3394
|
-
return /* @__PURE__ */
|
|
3395
|
-
|
|
3493
|
+
return /* @__PURE__ */ React74.createElement(import_ui60.Box, null, /* @__PURE__ */ React74.createElement(
|
|
3494
|
+
import_ui60.UnstableTag,
|
|
3396
3495
|
{
|
|
3397
3496
|
fullWidth: true,
|
|
3398
3497
|
showActionsOnHover: true,
|
|
3399
3498
|
label: dynamicTag.label,
|
|
3400
|
-
startIcon: /* @__PURE__ */
|
|
3401
|
-
...(0,
|
|
3402
|
-
actions: /* @__PURE__ */
|
|
3403
|
-
|
|
3499
|
+
startIcon: /* @__PURE__ */ React74.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4 }),
|
|
3500
|
+
...(0, import_ui60.bindTrigger)(selectionPopoverState),
|
|
3501
|
+
actions: /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React74.createElement(
|
|
3502
|
+
import_ui60.IconButton,
|
|
3404
3503
|
{
|
|
3405
3504
|
size: SIZE4,
|
|
3406
3505
|
onClick: removeDynamicTag,
|
|
3407
3506
|
"aria-label": (0, import_i18n48.__)("Remove dynamic value", "elementor")
|
|
3408
3507
|
},
|
|
3409
|
-
/* @__PURE__ */
|
|
3508
|
+
/* @__PURE__ */ React74.createElement(import_icons25.XIcon, { fontSize: SIZE4 })
|
|
3410
3509
|
))
|
|
3411
3510
|
}
|
|
3412
|
-
), /* @__PURE__ */
|
|
3413
|
-
|
|
3511
|
+
), /* @__PURE__ */ React74.createElement(
|
|
3512
|
+
import_ui60.Popover,
|
|
3414
3513
|
{
|
|
3415
3514
|
disablePortal: true,
|
|
3416
3515
|
disableScrollLock: true,
|
|
3417
3516
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
3418
|
-
...(0,
|
|
3517
|
+
...(0, import_ui60.bindPopover)(selectionPopoverState)
|
|
3419
3518
|
},
|
|
3420
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ React74.createElement(import_ui60.Stack, null, /* @__PURE__ */ React74.createElement(import_ui60.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React74.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React74.createElement(import_ui60.Typography, { variant: "subtitle2" }, (0, import_i18n48.__)("Dynamic tags", "elementor")), /* @__PURE__ */ React74.createElement(import_ui60.IconButton, { size: SIZE4, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React74.createElement(import_icons25.XIcon, { fontSize: SIZE4 }))), /* @__PURE__ */ React74.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
|
|
3421
3520
|
));
|
|
3422
3521
|
};
|
|
3423
3522
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
3424
|
-
const popupState = (0,
|
|
3523
|
+
const popupState = (0, import_ui60.usePopupState)({ variant: "popover" });
|
|
3425
3524
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
3426
3525
|
if (!hasDynamicSettings) {
|
|
3427
3526
|
return null;
|
|
3428
3527
|
}
|
|
3429
|
-
return /* @__PURE__ */
|
|
3430
|
-
|
|
3528
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(import_ui60.IconButton, { size: SIZE4, ...(0, import_ui60.bindTrigger)(popupState), "aria-label": (0, import_i18n48.__)("Settings", "elementor") }, /* @__PURE__ */ React74.createElement(import_icons25.SettingsIcon, { fontSize: SIZE4 })), /* @__PURE__ */ React74.createElement(
|
|
3529
|
+
import_ui60.Popover,
|
|
3431
3530
|
{
|
|
3432
3531
|
disablePortal: true,
|
|
3433
3532
|
disableScrollLock: true,
|
|
3434
3533
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3435
|
-
...(0,
|
|
3534
|
+
...(0, import_ui60.bindPopover)(popupState)
|
|
3436
3535
|
},
|
|
3437
|
-
/* @__PURE__ */
|
|
3536
|
+
/* @__PURE__ */ React74.createElement(import_ui60.Paper, { component: import_ui60.Stack, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React74.createElement(import_ui60.Stack, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React74.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React74.createElement(import_ui60.Typography, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React74.createElement(import_ui60.IconButton, { sx: { ml: "auto" }, size: SIZE4, onClick: popupState.close }, /* @__PURE__ */ React74.createElement(import_icons25.XIcon, { fontSize: SIZE4 }))), /* @__PURE__ */ React74.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
3438
3537
|
));
|
|
3439
3538
|
};
|
|
3440
3539
|
var DynamicSettings = ({ controls }) => {
|
|
3441
3540
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
3442
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
3541
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui60.useTabs)(0);
|
|
3443
3542
|
if (!tabs.length) {
|
|
3444
3543
|
return null;
|
|
3445
3544
|
}
|
|
3446
|
-
return /* @__PURE__ */
|
|
3447
|
-
return /* @__PURE__ */
|
|
3545
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(import_ui60.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React74.createElement(import_ui60.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React74.createElement(import_ui60.Divider, null), tabs.map(({ value }, index) => {
|
|
3546
|
+
return /* @__PURE__ */ React74.createElement(import_ui60.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React74.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
3448
3547
|
if (item.type === "control") {
|
|
3449
|
-
return /* @__PURE__ */
|
|
3548
|
+
return /* @__PURE__ */ React74.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
3450
3549
|
}
|
|
3451
3550
|
return null;
|
|
3452
3551
|
})));
|
|
@@ -3456,11 +3555,11 @@ var Control3 = ({ control }) => {
|
|
|
3456
3555
|
if (!getControlByType(control.type)) {
|
|
3457
3556
|
return null;
|
|
3458
3557
|
}
|
|
3459
|
-
return /* @__PURE__ */
|
|
3558
|
+
return /* @__PURE__ */ React74.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React74.createElement(import_ui60.Grid, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React74.createElement(import_ui60.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React74.createElement(import_editor_controls49.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React74.createElement(import_ui60.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React74.createElement(Control, { type: control.type, props: control.props }))));
|
|
3460
3559
|
};
|
|
3461
3560
|
|
|
3462
3561
|
// src/dynamics/dynamic-transformer.ts
|
|
3463
|
-
var
|
|
3562
|
+
var import_editor_canvas2 = require("@elementor/editor-canvas");
|
|
3464
3563
|
var import_editor_props9 = require("@elementor/editor-props");
|
|
3465
3564
|
|
|
3466
3565
|
// src/dynamics/errors.ts
|
|
@@ -3471,7 +3570,7 @@ var DynamicTagsManagerNotFoundError = (0, import_utils8.createError)({
|
|
|
3471
3570
|
});
|
|
3472
3571
|
|
|
3473
3572
|
// src/dynamics/dynamic-transformer.ts
|
|
3474
|
-
var dynamicTransformer = (0,
|
|
3573
|
+
var dynamicTransformer = (0, import_editor_canvas2.createTransformer)((value) => {
|
|
3475
3574
|
if (!value.name) {
|
|
3476
3575
|
return null;
|
|
3477
3576
|
}
|
|
@@ -3509,7 +3608,7 @@ function getDynamicValue(name, settings) {
|
|
|
3509
3608
|
}
|
|
3510
3609
|
|
|
3511
3610
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
3512
|
-
var
|
|
3611
|
+
var React75 = __toESM(require("react"));
|
|
3513
3612
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
3514
3613
|
var import_icons26 = require("@elementor/icons");
|
|
3515
3614
|
var import_i18n49 = require("@wordpress/i18n");
|
|
@@ -3520,7 +3619,7 @@ var usePropDynamicAction = () => {
|
|
|
3520
3619
|
visible,
|
|
3521
3620
|
icon: import_icons26.DatabaseIcon,
|
|
3522
3621
|
title: (0, import_i18n49.__)("Dynamic tags", "elementor"),
|
|
3523
|
-
popoverContent: ({ closePopover }) => /* @__PURE__ */
|
|
3622
|
+
popoverContent: ({ closePopover }) => /* @__PURE__ */ React75.createElement(DynamicSelection, { onSelect: closePopover })
|
|
3524
3623
|
};
|
|
3525
3624
|
};
|
|
3526
3625
|
|
|
@@ -3535,8 +3634,8 @@ var init = () => {
|
|
|
3535
3634
|
id: "dynamic-tags",
|
|
3536
3635
|
useProps: usePropDynamicAction
|
|
3537
3636
|
});
|
|
3538
|
-
|
|
3539
|
-
|
|
3637
|
+
import_editor_canvas3.styleTransformersRegistry.register("dynamic", dynamicTransformer);
|
|
3638
|
+
import_editor_canvas3.settingsTransformersRegistry.register("dynamic", dynamicTransformer);
|
|
3540
3639
|
};
|
|
3541
3640
|
|
|
3542
3641
|
// src/init.ts
|