@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.mjs
CHANGED
|
@@ -896,7 +896,7 @@ function useHandleApply(appliedIds, setAppliedIds) {
|
|
|
896
896
|
import { __createPanel as createPanel } from "@elementor/editor-panels";
|
|
897
897
|
|
|
898
898
|
// src/components/editing-panel.tsx
|
|
899
|
-
import * as
|
|
899
|
+
import * as React70 from "react";
|
|
900
900
|
import { ControlActionsProvider, ControlReplacementsProvider } from "@elementor/editor-controls";
|
|
901
901
|
import { useSelectedElement } from "@elementor/editor-elements";
|
|
902
902
|
import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
|
|
@@ -960,7 +960,7 @@ function EditorPanelErrorFallback() {
|
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
// src/components/editing-panel-tabs.tsx
|
|
963
|
-
import * as
|
|
963
|
+
import * as React69 from "react";
|
|
964
964
|
import { Fragment as Fragment8 } from "react";
|
|
965
965
|
import { Divider as Divider5, Stack as Stack17, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
966
966
|
import { __ as __45 } from "@wordpress/i18n";
|
|
@@ -1181,8 +1181,8 @@ var Control2 = ({ control }) => {
|
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
1183
|
// src/components/style-tab.tsx
|
|
1184
|
-
import * as
|
|
1185
|
-
import { useState as
|
|
1184
|
+
import * as React68 from "react";
|
|
1185
|
+
import { useState as useState12 } from "react";
|
|
1186
1186
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
1187
1187
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
1188
1188
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
@@ -1429,13 +1429,13 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
1431
|
// src/components/style-sections/background-section/background-section.tsx
|
|
1432
|
-
import * as
|
|
1432
|
+
import * as React21 from "react";
|
|
1433
1433
|
import { BackgroundControl } from "@elementor/editor-controls";
|
|
1434
1434
|
|
|
1435
1435
|
// src/controls-registry/styles-field.tsx
|
|
1436
|
-
import * as
|
|
1436
|
+
import * as React20 from "react";
|
|
1437
1437
|
import { ControlAdornmentsProvider, PropKeyProvider as PropKeyProvider2, PropProvider as PropProvider2 } from "@elementor/editor-controls";
|
|
1438
|
-
import { getStylesSchema } from "@elementor/editor-styles";
|
|
1438
|
+
import { getStylesSchema as getStylesSchema2 } from "@elementor/editor-styles";
|
|
1439
1439
|
|
|
1440
1440
|
// src/hooks/use-styles-fields.ts
|
|
1441
1441
|
import { useMemo as useMemo2 } from "react";
|
|
@@ -1578,11 +1578,87 @@ function useStylesField(propName) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
// src/styles-inheritance/styles-inheritance-indicator.tsx
|
|
1581
|
-
import * as
|
|
1581
|
+
import * as React19 from "react";
|
|
1582
|
+
import { useState as useState8 } from "react";
|
|
1582
1583
|
import { useBoundProp } from "@elementor/editor-controls";
|
|
1583
1584
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY, isElementsStylesProvider as isElementsStylesProvider3 } from "@elementor/editor-styles-repository";
|
|
1585
|
+
import { IconButton as IconButton2, Infotip } from "@elementor/ui";
|
|
1584
1586
|
import { __ as __5 } from "@wordpress/i18n";
|
|
1587
|
+
|
|
1588
|
+
// src/sync/get-experiments-config.ts
|
|
1589
|
+
var getExperimentsConfig = () => {
|
|
1590
|
+
const extendedWindow = window;
|
|
1591
|
+
return extendedWindow.elementorCommon?.config?.experimentalFeatures ?? {};
|
|
1592
|
+
};
|
|
1593
|
+
|
|
1594
|
+
// src/styles-inheritance/styles-inheritance-infotip.tsx
|
|
1595
|
+
import * as React18 from "react";
|
|
1596
|
+
import { useMemo as useMemo3 } from "react";
|
|
1597
|
+
import { createPropsResolver, styleTransformersRegistry } from "@elementor/editor-canvas";
|
|
1598
|
+
import { getStylesSchema } from "@elementor/editor-styles";
|
|
1599
|
+
import { Card, CardContent, List as List2, ListItem, ListItemText as ListItemText2 } from "@elementor/ui";
|
|
1600
|
+
|
|
1601
|
+
// src/hooks/use-normalized-inheritance-chain-items.tsx
|
|
1602
|
+
import { useEffect as useEffect3, useState as useState7 } from "react";
|
|
1603
|
+
var MAXIMUM_ITEMS = 2;
|
|
1604
|
+
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
1605
|
+
const [items3, setItems] = useState7([]);
|
|
1606
|
+
useEffect3(() => {
|
|
1607
|
+
(async () => {
|
|
1608
|
+
const normalizedItems = await Promise.all(
|
|
1609
|
+
inheritanceChain.filter((item) => item.style?.label).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
|
|
1610
|
+
);
|
|
1611
|
+
const validItems = normalizedItems.filter((item) => item.value !== "").slice(0, MAXIMUM_ITEMS);
|
|
1612
|
+
setItems(validItems);
|
|
1613
|
+
})();
|
|
1614
|
+
}, [inheritanceChain, bind, resolve]);
|
|
1615
|
+
return items3;
|
|
1616
|
+
};
|
|
1617
|
+
var normalizeInheritanceItem = async (item, index, bind, resolve) => {
|
|
1618
|
+
const state = item.variant?.meta?.state || "";
|
|
1619
|
+
const label = item.style?.label || "";
|
|
1620
|
+
const displayLabel = state ? `${label}:${state}` : label;
|
|
1621
|
+
return {
|
|
1622
|
+
id: item.style?.id ? item.style?.id + state : index,
|
|
1623
|
+
breakpoint: item.variant?.meta?.breakpoint,
|
|
1624
|
+
displayLabel,
|
|
1625
|
+
value: await getTransformedValue(item, bind, resolve)
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
var getTransformedValue = async (item, bind, resolve) => {
|
|
1629
|
+
try {
|
|
1630
|
+
const result = await resolve({
|
|
1631
|
+
props: {
|
|
1632
|
+
[bind]: item.value
|
|
1633
|
+
}
|
|
1634
|
+
});
|
|
1635
|
+
return Object.values(result).join(" ");
|
|
1636
|
+
} catch {
|
|
1637
|
+
return "";
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1641
|
+
// src/styles-inheritance/styles-inheritance-infotip.tsx
|
|
1642
|
+
var StyleIndicatorInfotip = ({ inheritanceChain, bind }) => {
|
|
1643
|
+
const resolve = useMemo3(() => {
|
|
1644
|
+
const stylesSchema = getStylesSchema();
|
|
1645
|
+
return createPropsResolver({
|
|
1646
|
+
transformers: styleTransformersRegistry,
|
|
1647
|
+
schema: { [bind]: stylesSchema[bind] }
|
|
1648
|
+
});
|
|
1649
|
+
}, [bind]);
|
|
1650
|
+
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, bind, resolve);
|
|
1651
|
+
return /* @__PURE__ */ React18.createElement(Card, { elevation: 0, sx: { maxWidth: 320 } }, /* @__PURE__ */ React18.createElement(CardContent, { sx: { p: 1.5, pb: 2.5 } }, /* @__PURE__ */ React18.createElement(List2, null, items3.map((item) => /* @__PURE__ */ React18.createElement(ListItem, { key: item.id }, /* @__PURE__ */ React18.createElement(
|
|
1652
|
+
ListItemText2,
|
|
1653
|
+
{
|
|
1654
|
+
primary: `${item.breakpoint} | ${item.displayLabel}. ${item.value}`
|
|
1655
|
+
}
|
|
1656
|
+
))))));
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
// src/styles-inheritance/styles-inheritance-indicator.tsx
|
|
1585
1660
|
var StylesInheritanceIndicator = () => {
|
|
1661
|
+
const [open, setOpen] = useState8(false);
|
|
1586
1662
|
const { value, path } = useBoundProp();
|
|
1587
1663
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
1588
1664
|
const [bind] = path;
|
|
@@ -1595,38 +1671,61 @@ var StylesInheritanceIndicator = () => {
|
|
|
1595
1671
|
return null;
|
|
1596
1672
|
}
|
|
1597
1673
|
const { breakpoint, state } = variant.meta;
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1674
|
+
const isFinalValue = style.id === currentStyleId && breakpoint === currentStyleMeta.breakpoint && state === currentStyleMeta.state;
|
|
1675
|
+
const hasValue = value !== null && value !== void 0;
|
|
1676
|
+
const label = getLabel({ isFinalValue, hasValue });
|
|
1677
|
+
const variantType = getVariant({ isFinalValue, hasValue, currentStyleProvider });
|
|
1678
|
+
const { e_indications_popover: eIndicationsPopover } = getExperimentsConfig();
|
|
1679
|
+
if (!eIndicationsPopover) {
|
|
1680
|
+
return /* @__PURE__ */ React19.createElement(StyleIndicator, { variant: variantType, "aria-label": label });
|
|
1681
|
+
}
|
|
1682
|
+
const toggleOpen = () => setOpen((prev) => !prev);
|
|
1683
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1684
|
+
Infotip,
|
|
1685
|
+
{
|
|
1686
|
+
placement: "top",
|
|
1687
|
+
content: /* @__PURE__ */ React19.createElement(StyleIndicatorInfotip, { inheritanceChain, bind }),
|
|
1688
|
+
open,
|
|
1689
|
+
onClose: () => setOpen(false),
|
|
1690
|
+
trigger: "manual"
|
|
1691
|
+
},
|
|
1692
|
+
/* @__PURE__ */ React19.createElement(IconButton2, { onClick: toggleOpen, "aria-label": label }, /* @__PURE__ */ React19.createElement(StyleIndicator, { variant: variantType }))
|
|
1693
|
+
);
|
|
1694
|
+
};
|
|
1695
|
+
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
1696
|
+
if (isFinalValue) {
|
|
1697
|
+
return __5("This is the final value", "elementor");
|
|
1606
1698
|
}
|
|
1607
|
-
if (
|
|
1608
|
-
return
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1699
|
+
if (hasValue) {
|
|
1700
|
+
return __5("This value is overridden by another style", "elementor");
|
|
1701
|
+
}
|
|
1702
|
+
return __5("This has value from another style", "elementor");
|
|
1703
|
+
};
|
|
1704
|
+
var getVariant = ({
|
|
1705
|
+
isFinalValue,
|
|
1706
|
+
hasValue,
|
|
1707
|
+
currentStyleProvider
|
|
1708
|
+
}) => {
|
|
1709
|
+
if (isFinalValue) {
|
|
1710
|
+
return isElementsStylesProvider3(currentStyleProvider?.getKey?.()) ? "local" : "global";
|
|
1711
|
+
}
|
|
1712
|
+
if (hasValue) {
|
|
1713
|
+
return "overridden";
|
|
1615
1714
|
}
|
|
1616
|
-
return
|
|
1715
|
+
return void 0;
|
|
1617
1716
|
};
|
|
1618
1717
|
|
|
1619
1718
|
// src/controls-registry/styles-field.tsx
|
|
1620
1719
|
var StylesField = ({ bind, placeholder, children }) => {
|
|
1621
1720
|
const [value, setValue] = useStylesField(bind);
|
|
1622
|
-
const stylesSchema =
|
|
1721
|
+
const stylesSchema = getStylesSchema2();
|
|
1623
1722
|
const propType = createTopLevelOjectType({ schema: stylesSchema });
|
|
1624
1723
|
const values = { [bind]: value };
|
|
1625
1724
|
const placeholderValues = { [bind]: placeholder };
|
|
1626
1725
|
const setValues = (newValue) => {
|
|
1627
1726
|
setValue(newValue[bind]);
|
|
1628
1727
|
};
|
|
1629
|
-
return /* @__PURE__ */
|
|
1728
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1630
1729
|
ControlAdornmentsProvider,
|
|
1631
1730
|
{
|
|
1632
1731
|
items: [
|
|
@@ -1636,7 +1735,7 @@ var StylesField = ({ bind, placeholder, children }) => {
|
|
|
1636
1735
|
}
|
|
1637
1736
|
]
|
|
1638
1737
|
},
|
|
1639
|
-
/* @__PURE__ */
|
|
1738
|
+
/* @__PURE__ */ React20.createElement(
|
|
1640
1739
|
PropProvider2,
|
|
1641
1740
|
{
|
|
1642
1741
|
propType,
|
|
@@ -1644,50 +1743,50 @@ var StylesField = ({ bind, placeholder, children }) => {
|
|
|
1644
1743
|
setValue: setValues,
|
|
1645
1744
|
placeholder: placeholderValues
|
|
1646
1745
|
},
|
|
1647
|
-
/* @__PURE__ */
|
|
1746
|
+
/* @__PURE__ */ React20.createElement(PropKeyProvider2, { bind }, children)
|
|
1648
1747
|
)
|
|
1649
1748
|
);
|
|
1650
1749
|
};
|
|
1651
1750
|
|
|
1652
1751
|
// src/components/style-sections/background-section/background-section.tsx
|
|
1653
1752
|
var BackgroundSection = () => {
|
|
1654
|
-
return /* @__PURE__ */
|
|
1753
|
+
return /* @__PURE__ */ React21.createElement(StylesField, { bind: "background" }, /* @__PURE__ */ React21.createElement(BackgroundControl, null));
|
|
1655
1754
|
};
|
|
1656
1755
|
|
|
1657
1756
|
// src/components/style-sections/border-section/border-section.tsx
|
|
1658
|
-
import * as
|
|
1757
|
+
import * as React31 from "react";
|
|
1659
1758
|
|
|
1660
1759
|
// src/components/panel-divider.tsx
|
|
1661
|
-
import * as
|
|
1760
|
+
import * as React22 from "react";
|
|
1662
1761
|
import { Divider as Divider3 } from "@elementor/ui";
|
|
1663
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
1762
|
+
var PanelDivider = () => /* @__PURE__ */ React22.createElement(Divider3, { sx: { my: 0.5 } });
|
|
1664
1763
|
|
|
1665
1764
|
// src/components/section-content.tsx
|
|
1666
|
-
import * as
|
|
1765
|
+
import * as React23 from "react";
|
|
1667
1766
|
import { Stack as Stack6 } from "@elementor/ui";
|
|
1668
|
-
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */
|
|
1767
|
+
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React23.createElement(Stack6, { gap, sx: { ...sx } }, children);
|
|
1669
1768
|
|
|
1670
1769
|
// src/components/style-sections/border-section/border-field.tsx
|
|
1671
|
-
import * as
|
|
1770
|
+
import * as React29 from "react";
|
|
1672
1771
|
import { __ as __9 } from "@wordpress/i18n";
|
|
1673
1772
|
|
|
1674
1773
|
// src/components/add-or-remove-content.tsx
|
|
1675
|
-
import * as
|
|
1774
|
+
import * as React25 from "react";
|
|
1676
1775
|
import { MinusIcon, PlusIcon } from "@elementor/icons";
|
|
1677
|
-
import { Collapse as Collapse2, IconButton as
|
|
1776
|
+
import { Collapse as Collapse2, IconButton as IconButton3, Stack as Stack8 } from "@elementor/ui";
|
|
1678
1777
|
|
|
1679
1778
|
// src/components/control-label.tsx
|
|
1680
|
-
import * as
|
|
1779
|
+
import * as React24 from "react";
|
|
1681
1780
|
import { ControlAdornments, ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
1682
1781
|
import { Stack as Stack7 } from "@elementor/ui";
|
|
1683
1782
|
var ControlLabel = ({ children }) => {
|
|
1684
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ React24.createElement(Stack7, { direction: "row", alignItems: "center", justifyItems: "start", gap: 1 }, /* @__PURE__ */ React24.createElement(ControlFormLabel2, null, children), /* @__PURE__ */ React24.createElement(ControlAdornments, null));
|
|
1685
1784
|
};
|
|
1686
1785
|
|
|
1687
1786
|
// src/components/add-or-remove-content.tsx
|
|
1688
1787
|
var SIZE2 = "tiny";
|
|
1689
1788
|
var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
|
|
1690
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ React25.createElement(SectionContent, null, /* @__PURE__ */ React25.createElement(
|
|
1691
1790
|
Stack8,
|
|
1692
1791
|
{
|
|
1693
1792
|
direction: "row",
|
|
@@ -1697,22 +1796,22 @@ var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
|
|
|
1697
1796
|
marginInlineEnd: -0.75
|
|
1698
1797
|
}
|
|
1699
1798
|
},
|
|
1700
|
-
/* @__PURE__ */
|
|
1701
|
-
isAdded ? /* @__PURE__ */
|
|
1702
|
-
), /* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ React25.createElement(ControlLabel, null, label),
|
|
1800
|
+
isAdded ? /* @__PURE__ */ React25.createElement(IconButton3, { size: SIZE2, onClick: onRemove, "aria-label": "Remove" }, /* @__PURE__ */ React25.createElement(MinusIcon, { fontSize: SIZE2 })) : /* @__PURE__ */ React25.createElement(IconButton3, { size: SIZE2, onClick: onAdd, "aria-label": "Add" }, /* @__PURE__ */ React25.createElement(PlusIcon, { fontSize: SIZE2 }))
|
|
1801
|
+
), /* @__PURE__ */ React25.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React25.createElement(SectionContent, null, children)));
|
|
1703
1802
|
};
|
|
1704
1803
|
|
|
1705
1804
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
1706
|
-
import * as
|
|
1805
|
+
import * as React26 from "react";
|
|
1707
1806
|
import { ColorControl } from "@elementor/editor-controls";
|
|
1708
1807
|
import { Grid } from "@elementor/ui";
|
|
1709
1808
|
import { __ as __6 } from "@wordpress/i18n";
|
|
1710
1809
|
var BorderColorField = () => {
|
|
1711
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ React26.createElement(StylesField, { bind: "border-color" }, /* @__PURE__ */ React26.createElement(Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React26.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React26.createElement(ControlLabel, null, __6("Border color", "elementor"))), /* @__PURE__ */ React26.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React26.createElement(ColorControl, null))));
|
|
1712
1811
|
};
|
|
1713
1812
|
|
|
1714
1813
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
1715
|
-
import * as
|
|
1814
|
+
import * as React27 from "react";
|
|
1716
1815
|
import { SelectControl as SelectControl2 } from "@elementor/editor-controls";
|
|
1717
1816
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
1718
1817
|
import { __ as __7 } from "@wordpress/i18n";
|
|
@@ -1728,11 +1827,11 @@ var borderStyles = [
|
|
|
1728
1827
|
{ value: "outset", label: __7("Outset", "elementor") }
|
|
1729
1828
|
];
|
|
1730
1829
|
var BorderStyleField = () => {
|
|
1731
|
-
return /* @__PURE__ */
|
|
1830
|
+
return /* @__PURE__ */ React27.createElement(StylesField, { bind: "border-style" }, /* @__PURE__ */ React27.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React27.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React27.createElement(ControlLabel, null, __7("Border type", "elementor"))), /* @__PURE__ */ React27.createElement(Grid2, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React27.createElement(SelectControl2, { options: borderStyles }))));
|
|
1732
1831
|
};
|
|
1733
1832
|
|
|
1734
1833
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
1735
|
-
import * as
|
|
1834
|
+
import * as React28 from "react";
|
|
1736
1835
|
import { EqualUnequalSizesControl } from "@elementor/editor-controls";
|
|
1737
1836
|
import { borderWidthPropTypeUtil } from "@elementor/editor-props";
|
|
1738
1837
|
import { SideAllIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
@@ -1753,33 +1852,33 @@ var InlineEndIcon = withDirection(SideLeftIcon);
|
|
|
1753
1852
|
var getEdges = (isSiteRtl) => [
|
|
1754
1853
|
{
|
|
1755
1854
|
label: __8("Top", "elementor"),
|
|
1756
|
-
icon: /* @__PURE__ */
|
|
1855
|
+
icon: /* @__PURE__ */ React28.createElement(SideTopIcon, { fontSize: "tiny" }),
|
|
1757
1856
|
bind: "block-start"
|
|
1758
1857
|
},
|
|
1759
1858
|
{
|
|
1760
1859
|
label: isSiteRtl ? __8("Left", "elementor") : __8("Right", "elementor"),
|
|
1761
|
-
icon: /* @__PURE__ */
|
|
1860
|
+
icon: /* @__PURE__ */ React28.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
1762
1861
|
bind: "inline-end"
|
|
1763
1862
|
},
|
|
1764
1863
|
{
|
|
1765
1864
|
label: __8("Bottom", "elementor"),
|
|
1766
|
-
icon: /* @__PURE__ */
|
|
1865
|
+
icon: /* @__PURE__ */ React28.createElement(SideBottomIcon, { fontSize: "tiny" }),
|
|
1767
1866
|
bind: "block-end"
|
|
1768
1867
|
},
|
|
1769
1868
|
{
|
|
1770
1869
|
label: isSiteRtl ? __8("Right", "elementor") : __8("Left", "elementor"),
|
|
1771
|
-
icon: /* @__PURE__ */
|
|
1870
|
+
icon: /* @__PURE__ */ React28.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
1772
1871
|
bind: "inline-start"
|
|
1773
1872
|
}
|
|
1774
1873
|
];
|
|
1775
1874
|
var BorderWidthField = () => {
|
|
1776
1875
|
const { isSiteRtl } = useDirection();
|
|
1777
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ React28.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React28.createElement(
|
|
1778
1877
|
EqualUnequalSizesControl,
|
|
1779
1878
|
{
|
|
1780
1879
|
items: getEdges(isSiteRtl),
|
|
1781
1880
|
label: __8("Border width", "elementor"),
|
|
1782
|
-
icon: /* @__PURE__ */
|
|
1881
|
+
icon: /* @__PURE__ */ React28.createElement(SideAllIcon, { fontSize: "tiny" }),
|
|
1783
1882
|
tooltipLabel: __8("Adjust borders", "elementor"),
|
|
1784
1883
|
multiSizePropTypeUtil: borderWidthPropTypeUtil
|
|
1785
1884
|
}
|
|
@@ -1805,7 +1904,7 @@ var BorderField = () => {
|
|
|
1805
1904
|
});
|
|
1806
1905
|
};
|
|
1807
1906
|
const hasBorder = Object.values(border ?? {}).some(Boolean);
|
|
1808
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ React29.createElement(
|
|
1809
1908
|
AddOrRemoveContent,
|
|
1810
1909
|
{
|
|
1811
1910
|
label: __9("Border", "elementor"),
|
|
@@ -1813,14 +1912,14 @@ var BorderField = () => {
|
|
|
1813
1912
|
onAdd: addBorder,
|
|
1814
1913
|
onRemove: removeBorder
|
|
1815
1914
|
},
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
/* @__PURE__ */
|
|
1818
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ React29.createElement(BorderWidthField, null),
|
|
1916
|
+
/* @__PURE__ */ React29.createElement(BorderColorField, null),
|
|
1917
|
+
/* @__PURE__ */ React29.createElement(BorderStyleField, null)
|
|
1819
1918
|
);
|
|
1820
1919
|
};
|
|
1821
1920
|
|
|
1822
1921
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
1823
|
-
import * as
|
|
1922
|
+
import * as React30 from "react";
|
|
1824
1923
|
import { EqualUnequalSizesControl as EqualUnequalSizesControl2 } from "@elementor/editor-controls";
|
|
1825
1924
|
import { borderRadiusPropTypeUtil } from "@elementor/editor-props";
|
|
1826
1925
|
import {
|
|
@@ -1843,33 +1942,33 @@ var getEndEndLabel = (isSiteRtl) => isSiteRtl ? __10("Bottom left", "elementor")
|
|
|
1843
1942
|
var getCorners = (isSiteRtl) => [
|
|
1844
1943
|
{
|
|
1845
1944
|
label: getStartStartLabel(isSiteRtl),
|
|
1846
|
-
icon: /* @__PURE__ */
|
|
1945
|
+
icon: /* @__PURE__ */ React30.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
1847
1946
|
bind: "start-start"
|
|
1848
1947
|
},
|
|
1849
1948
|
{
|
|
1850
1949
|
label: getStartEndLabel(isSiteRtl),
|
|
1851
|
-
icon: /* @__PURE__ */
|
|
1950
|
+
icon: /* @__PURE__ */ React30.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
1852
1951
|
bind: "start-end"
|
|
1853
1952
|
},
|
|
1854
1953
|
{
|
|
1855
1954
|
label: getEndStartLabel(isSiteRtl),
|
|
1856
|
-
icon: /* @__PURE__ */
|
|
1955
|
+
icon: /* @__PURE__ */ React30.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
1857
1956
|
bind: "end-start"
|
|
1858
1957
|
},
|
|
1859
1958
|
{
|
|
1860
1959
|
label: getEndEndLabel(isSiteRtl),
|
|
1861
|
-
icon: /* @__PURE__ */
|
|
1960
|
+
icon: /* @__PURE__ */ React30.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
1862
1961
|
bind: "end-end"
|
|
1863
1962
|
}
|
|
1864
1963
|
];
|
|
1865
1964
|
var BorderRadiusField = () => {
|
|
1866
1965
|
const { isSiteRtl } = useDirection();
|
|
1867
|
-
return /* @__PURE__ */
|
|
1966
|
+
return /* @__PURE__ */ React30.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React30.createElement(
|
|
1868
1967
|
EqualUnequalSizesControl2,
|
|
1869
1968
|
{
|
|
1870
1969
|
items: getCorners(isSiteRtl),
|
|
1871
1970
|
label: __10("Border radius", "elementor"),
|
|
1872
|
-
icon: /* @__PURE__ */
|
|
1971
|
+
icon: /* @__PURE__ */ React30.createElement(BorderCornersIcon, { fontSize: "tiny" }),
|
|
1873
1972
|
tooltipLabel: __10("Adjust corners", "elementor"),
|
|
1874
1973
|
multiSizePropTypeUtil: borderRadiusPropTypeUtil
|
|
1875
1974
|
}
|
|
@@ -1877,17 +1976,17 @@ var BorderRadiusField = () => {
|
|
|
1877
1976
|
};
|
|
1878
1977
|
|
|
1879
1978
|
// src/components/style-sections/border-section/border-section.tsx
|
|
1880
|
-
var BorderSection = () => /* @__PURE__ */
|
|
1979
|
+
var BorderSection = () => /* @__PURE__ */ React31.createElement(SectionContent, null, /* @__PURE__ */ React31.createElement(BorderRadiusField, null), /* @__PURE__ */ React31.createElement(PanelDivider, null), /* @__PURE__ */ React31.createElement(BorderField, null));
|
|
1881
1980
|
|
|
1882
1981
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
1883
|
-
import * as
|
|
1982
|
+
import * as React32 from "react";
|
|
1884
1983
|
import { BoxShadowRepeaterControl } from "@elementor/editor-controls";
|
|
1885
1984
|
var EffectsSection = () => {
|
|
1886
|
-
return /* @__PURE__ */
|
|
1985
|
+
return /* @__PURE__ */ React32.createElement(SectionContent, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React32.createElement(BoxShadowRepeaterControl, null)));
|
|
1887
1986
|
};
|
|
1888
1987
|
|
|
1889
1988
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
1890
|
-
import * as
|
|
1989
|
+
import * as React44 from "react";
|
|
1891
1990
|
import { ControlFormLabel as ControlFormLabel3 } from "@elementor/editor-controls";
|
|
1892
1991
|
import { useParentElement } from "@elementor/editor-elements";
|
|
1893
1992
|
import { __ as __21 } from "@wordpress/i18n";
|
|
@@ -1918,7 +2017,7 @@ function useComputedStyle(elementId) {
|
|
|
1918
2017
|
}
|
|
1919
2018
|
|
|
1920
2019
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
1921
|
-
import * as
|
|
2020
|
+
import * as React34 from "react";
|
|
1922
2021
|
import { ToggleControl } from "@elementor/editor-controls";
|
|
1923
2022
|
import {
|
|
1924
2023
|
JustifyBottomIcon,
|
|
@@ -1932,7 +2031,7 @@ import { DirectionProvider, Stack as Stack9, ThemeProvider, withDirection as wit
|
|
|
1932
2031
|
import { __ as __11 } from "@wordpress/i18n";
|
|
1933
2032
|
|
|
1934
2033
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
1935
|
-
import * as
|
|
2034
|
+
import * as React33 from "react";
|
|
1936
2035
|
import { useRef as useRef2 } from "react";
|
|
1937
2036
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
1938
2037
|
var CLOCKWISE_ANGLES = {
|
|
@@ -1956,7 +2055,7 @@ var RotatedIcon = ({
|
|
|
1956
2055
|
}) => {
|
|
1957
2056
|
const rotate = useRef2(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
1958
2057
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
1959
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ React33.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
1960
2059
|
};
|
|
1961
2060
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
1962
2061
|
const [direction] = useStylesField("flex-direction");
|
|
@@ -1986,47 +2085,47 @@ var options = [
|
|
|
1986
2085
|
{
|
|
1987
2086
|
value: "start",
|
|
1988
2087
|
label: __11("Start", "elementor"),
|
|
1989
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2088
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
1990
2089
|
showTooltip: true
|
|
1991
2090
|
},
|
|
1992
2091
|
{
|
|
1993
2092
|
value: "center",
|
|
1994
2093
|
label: __11("Center", "elementor"),
|
|
1995
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2094
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
1996
2095
|
showTooltip: true
|
|
1997
2096
|
},
|
|
1998
2097
|
{
|
|
1999
2098
|
value: "end",
|
|
2000
2099
|
label: __11("End", "elementor"),
|
|
2001
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2100
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
2002
2101
|
showTooltip: true
|
|
2003
2102
|
},
|
|
2004
2103
|
{
|
|
2005
2104
|
value: "space-between",
|
|
2006
2105
|
label: __11("Space between", "elementor"),
|
|
2007
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2106
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
2008
2107
|
showTooltip: true
|
|
2009
2108
|
},
|
|
2010
2109
|
{
|
|
2011
2110
|
value: "space-around",
|
|
2012
2111
|
label: __11("Space around", "elementor"),
|
|
2013
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2112
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
2014
2113
|
showTooltip: true
|
|
2015
2114
|
},
|
|
2016
2115
|
{
|
|
2017
2116
|
value: "space-evenly",
|
|
2018
2117
|
label: __11("Space evenly", "elementor"),
|
|
2019
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2118
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
2020
2119
|
showTooltip: true
|
|
2021
2120
|
}
|
|
2022
2121
|
];
|
|
2023
2122
|
var AlignContentField = () => {
|
|
2024
2123
|
const { isSiteRtl } = useDirection();
|
|
2025
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ React34.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React34.createElement(ThemeProvider, null, /* @__PURE__ */ React34.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React34.createElement(Stack9, { gap: 1 }, /* @__PURE__ */ React34.createElement(ControlLabel, null, __11("Align content", "elementor")), /* @__PURE__ */ React34.createElement(ToggleControl, { options, fullWidth: true })))));
|
|
2026
2125
|
};
|
|
2027
2126
|
|
|
2028
2127
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
2029
|
-
import * as
|
|
2128
|
+
import * as React35 from "react";
|
|
2030
2129
|
import { ToggleControl as ToggleControl2 } from "@elementor/editor-controls";
|
|
2031
2130
|
import {
|
|
2032
2131
|
LayoutAlignCenterIcon as CenterIcon2,
|
|
@@ -2046,35 +2145,35 @@ var options2 = [
|
|
|
2046
2145
|
{
|
|
2047
2146
|
value: "start",
|
|
2048
2147
|
label: __12("Start", "elementor"),
|
|
2049
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2148
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
2050
2149
|
showTooltip: true
|
|
2051
2150
|
},
|
|
2052
2151
|
{
|
|
2053
2152
|
value: "center",
|
|
2054
2153
|
label: __12("Center", "elementor"),
|
|
2055
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2154
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
2056
2155
|
showTooltip: true
|
|
2057
2156
|
},
|
|
2058
2157
|
{
|
|
2059
2158
|
value: "end",
|
|
2060
2159
|
label: __12("End", "elementor"),
|
|
2061
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2160
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
2062
2161
|
showTooltip: true
|
|
2063
2162
|
},
|
|
2064
2163
|
{
|
|
2065
2164
|
value: "stretch",
|
|
2066
2165
|
label: __12("Stretch", "elementor"),
|
|
2067
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2166
|
+
renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
2068
2167
|
showTooltip: true
|
|
2069
2168
|
}
|
|
2070
2169
|
];
|
|
2071
2170
|
var AlignItemsField = () => {
|
|
2072
2171
|
const { isSiteRtl } = useDirection();
|
|
2073
|
-
return /* @__PURE__ */
|
|
2172
|
+
return /* @__PURE__ */ React35.createElement(DirectionProvider2, { rtl: isSiteRtl }, /* @__PURE__ */ React35.createElement(ThemeProvider2, null, /* @__PURE__ */ React35.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React35.createElement(Grid3, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React35.createElement(Grid3, { item: true, xs: 6 }, /* @__PURE__ */ React35.createElement(ControlLabel, null, __12("Align items", "elementor"))), /* @__PURE__ */ React35.createElement(Grid3, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React35.createElement(ToggleControl2, { options: options2 }))))));
|
|
2074
2173
|
};
|
|
2075
2174
|
|
|
2076
2175
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
2077
|
-
import * as
|
|
2176
|
+
import * as React36 from "react";
|
|
2078
2177
|
import { ToggleControl as ToggleControl3 } from "@elementor/editor-controls";
|
|
2079
2178
|
import {
|
|
2080
2179
|
LayoutAlignCenterIcon as CenterIcon3,
|
|
@@ -2099,7 +2198,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2099
2198
|
{
|
|
2100
2199
|
value: "start",
|
|
2101
2200
|
label: __13("Start", "elementor"),
|
|
2102
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2201
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2103
2202
|
RotatedIcon,
|
|
2104
2203
|
{
|
|
2105
2204
|
icon: StartIcon3,
|
|
@@ -2113,7 +2212,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2113
2212
|
{
|
|
2114
2213
|
value: "center",
|
|
2115
2214
|
label: __13("Center", "elementor"),
|
|
2116
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2215
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2117
2216
|
RotatedIcon,
|
|
2118
2217
|
{
|
|
2119
2218
|
icon: CenterIcon3,
|
|
@@ -2127,7 +2226,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2127
2226
|
{
|
|
2128
2227
|
value: "end",
|
|
2129
2228
|
label: __13("End", "elementor"),
|
|
2130
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2229
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2131
2230
|
RotatedIcon,
|
|
2132
2231
|
{
|
|
2133
2232
|
icon: EndIcon3,
|
|
@@ -2141,7 +2240,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2141
2240
|
{
|
|
2142
2241
|
value: "stretch",
|
|
2143
2242
|
label: __13("Stretch", "elementor"),
|
|
2144
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2243
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(
|
|
2145
2244
|
RotatedIcon,
|
|
2146
2245
|
{
|
|
2147
2246
|
icon: JustifyIcon2,
|
|
@@ -2155,11 +2254,11 @@ var getOptions = (parentStyleDirection) => [
|
|
|
2155
2254
|
];
|
|
2156
2255
|
var AlignSelfChild = ({ parentStyleDirection }) => {
|
|
2157
2256
|
const { isSiteRtl } = useDirection();
|
|
2158
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ React36.createElement(DirectionProvider3, { rtl: isSiteRtl }, /* @__PURE__ */ React36.createElement(ThemeProvider3, null, /* @__PURE__ */ React36.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React36.createElement(Grid4, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React36.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(ControlLabel, null, __13("Align self", "elementor"))), /* @__PURE__ */ React36.createElement(Grid4, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React36.createElement(ToggleControl3, { options: getOptions(parentStyleDirection) }))))));
|
|
2159
2258
|
};
|
|
2160
2259
|
|
|
2161
2260
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
2162
|
-
import * as
|
|
2261
|
+
import * as React37 from "react";
|
|
2163
2262
|
import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
|
|
2164
2263
|
import { Stack as Stack10 } from "@elementor/ui";
|
|
2165
2264
|
import { __ as __14 } from "@wordpress/i18n";
|
|
@@ -2191,12 +2290,12 @@ var displayFieldOptions = [
|
|
|
2191
2290
|
];
|
|
2192
2291
|
var DisplayField = () => {
|
|
2193
2292
|
const placeholder = useDisplayPlaceholderValue();
|
|
2194
|
-
return /* @__PURE__ */
|
|
2293
|
+
return /* @__PURE__ */ React37.createElement(StylesField, { bind: "display", placeholder }, /* @__PURE__ */ React37.createElement(Stack10, { gap: 0.75 }, /* @__PURE__ */ React37.createElement(ControlLabel, null, __14("Display", "elementor")), /* @__PURE__ */ React37.createElement(ToggleControl4, { options: displayFieldOptions, fullWidth: true })));
|
|
2195
2294
|
};
|
|
2196
2295
|
var useDisplayPlaceholderValue = () => useStylesInheritanceField("display")[0]?.value ?? void 0;
|
|
2197
2296
|
|
|
2198
2297
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
2199
|
-
import * as
|
|
2298
|
+
import * as React38 from "react";
|
|
2200
2299
|
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
2201
2300
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
2202
2301
|
import { DirectionProvider as DirectionProvider4, Grid as Grid5, ThemeProvider as ThemeProvider4, withDirection as withDirection6 } from "@elementor/ui";
|
|
@@ -2207,14 +2306,14 @@ var options3 = [
|
|
|
2207
2306
|
label: __15("Row", "elementor"),
|
|
2208
2307
|
renderContent: ({ size }) => {
|
|
2209
2308
|
const StartIcon5 = withDirection6(ArrowRightIcon);
|
|
2210
|
-
return /* @__PURE__ */
|
|
2309
|
+
return /* @__PURE__ */ React38.createElement(StartIcon5, { fontSize: size });
|
|
2211
2310
|
},
|
|
2212
2311
|
showTooltip: true
|
|
2213
2312
|
},
|
|
2214
2313
|
{
|
|
2215
2314
|
value: "column",
|
|
2216
2315
|
label: __15("Column", "elementor"),
|
|
2217
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2316
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
2218
2317
|
showTooltip: true
|
|
2219
2318
|
},
|
|
2220
2319
|
{
|
|
@@ -2222,25 +2321,25 @@ var options3 = [
|
|
|
2222
2321
|
label: __15("Reversed row", "elementor"),
|
|
2223
2322
|
renderContent: ({ size }) => {
|
|
2224
2323
|
const EndIcon5 = withDirection6(ArrowLeftIcon);
|
|
2225
|
-
return /* @__PURE__ */
|
|
2324
|
+
return /* @__PURE__ */ React38.createElement(EndIcon5, { fontSize: size });
|
|
2226
2325
|
},
|
|
2227
2326
|
showTooltip: true
|
|
2228
2327
|
},
|
|
2229
2328
|
{
|
|
2230
2329
|
value: "column-reverse",
|
|
2231
2330
|
label: __15("Reversed column", "elementor"),
|
|
2232
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2331
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
2233
2332
|
showTooltip: true
|
|
2234
2333
|
}
|
|
2235
2334
|
];
|
|
2236
2335
|
var FlexDirectionField = () => {
|
|
2237
2336
|
const { isSiteRtl } = useDirection();
|
|
2238
|
-
return /* @__PURE__ */
|
|
2337
|
+
return /* @__PURE__ */ React38.createElement(DirectionProvider4, { rtl: isSiteRtl }, /* @__PURE__ */ React38.createElement(ThemeProvider4, null, /* @__PURE__ */ React38.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React38.createElement(Grid5, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React38.createElement(ControlLabel, null, __15("Direction", "elementor"))), /* @__PURE__ */ React38.createElement(Grid5, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React38.createElement(ToggleControl5, { options: options3 }))))));
|
|
2239
2338
|
};
|
|
2240
2339
|
|
|
2241
2340
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
2242
|
-
import * as
|
|
2243
|
-
import { useState as
|
|
2341
|
+
import * as React39 from "react";
|
|
2342
|
+
import { useState as useState9 } from "react";
|
|
2244
2343
|
import { ControlToggleButtonGroup, NumberControl } from "@elementor/editor-controls";
|
|
2245
2344
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
2246
2345
|
import { DirectionProvider as DirectionProvider5, Grid as Grid6, ThemeProvider as ThemeProvider5 } from "@elementor/ui";
|
|
@@ -2258,25 +2357,25 @@ var items = [
|
|
|
2258
2357
|
{
|
|
2259
2358
|
value: FIRST,
|
|
2260
2359
|
label: __16("First", "elementor"),
|
|
2261
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2360
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
2262
2361
|
showTooltip: true
|
|
2263
2362
|
},
|
|
2264
2363
|
{
|
|
2265
2364
|
value: LAST,
|
|
2266
2365
|
label: __16("Last", "elementor"),
|
|
2267
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2366
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
2268
2367
|
showTooltip: true
|
|
2269
2368
|
},
|
|
2270
2369
|
{
|
|
2271
2370
|
value: CUSTOM,
|
|
2272
2371
|
label: __16("Custom", "elementor"),
|
|
2273
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2372
|
+
renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(PencilIcon, { fontSize: size }),
|
|
2274
2373
|
showTooltip: true
|
|
2275
2374
|
}
|
|
2276
2375
|
];
|
|
2277
2376
|
var FlexOrderField = () => {
|
|
2278
2377
|
const { isSiteRtl } = useDirection(), [order, setOrder] = useStylesField("order");
|
|
2279
|
-
const [groupControlValue, setGroupControlValue] =
|
|
2378
|
+
const [groupControlValue, setGroupControlValue] = useState9(getGroupControlValue(order?.value || null));
|
|
2280
2379
|
const handleToggleButtonChange = (group) => {
|
|
2281
2380
|
setGroupControlValue(group);
|
|
2282
2381
|
if (!group || group === CUSTOM) {
|
|
@@ -2285,7 +2384,7 @@ var FlexOrderField = () => {
|
|
|
2285
2384
|
}
|
|
2286
2385
|
setOrder({ $$type: "number", value: orderValueMap[group] });
|
|
2287
2386
|
};
|
|
2288
|
-
return /* @__PURE__ */
|
|
2387
|
+
return /* @__PURE__ */ React39.createElement(DirectionProvider5, { rtl: isSiteRtl }, /* @__PURE__ */ React39.createElement(ThemeProvider5, null, /* @__PURE__ */ React39.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React39.createElement(SectionContent, null, /* @__PURE__ */ React39.createElement(Grid6, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React39.createElement(Grid6, { item: true, xs: 6 }, /* @__PURE__ */ React39.createElement(ControlLabel, null, __16("Order", "elementor"))), /* @__PURE__ */ React39.createElement(Grid6, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React39.createElement(
|
|
2289
2388
|
ControlToggleButtonGroup,
|
|
2290
2389
|
{
|
|
2291
2390
|
items,
|
|
@@ -2293,7 +2392,7 @@ var FlexOrderField = () => {
|
|
|
2293
2392
|
onChange: handleToggleButtonChange,
|
|
2294
2393
|
exclusive: true
|
|
2295
2394
|
}
|
|
2296
|
-
))), CUSTOM === groupControlValue && /* @__PURE__ */
|
|
2395
|
+
))), CUSTOM === groupControlValue && /* @__PURE__ */ React39.createElement(Grid6, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React39.createElement(Grid6, { item: true, xs: 6 }, /* @__PURE__ */ React39.createElement(ControlLabel, null, __16("Custom order", "elementor"))), /* @__PURE__ */ React39.createElement(Grid6, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React39.createElement(
|
|
2297
2396
|
NumberControl,
|
|
2298
2397
|
{
|
|
2299
2398
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -2313,8 +2412,8 @@ var getGroupControlValue = (order) => {
|
|
|
2313
2412
|
};
|
|
2314
2413
|
|
|
2315
2414
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
2316
|
-
import * as
|
|
2317
|
-
import { useMemo as
|
|
2415
|
+
import * as React40 from "react";
|
|
2416
|
+
import { useMemo as useMemo4, useState as useState10 } from "react";
|
|
2318
2417
|
import {
|
|
2319
2418
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
2320
2419
|
NumberControl as NumberControl2,
|
|
@@ -2329,19 +2428,19 @@ var items2 = [
|
|
|
2329
2428
|
{
|
|
2330
2429
|
value: "flex-grow",
|
|
2331
2430
|
label: __17("Grow", "elementor"),
|
|
2332
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2431
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(ExpandIcon, { fontSize: size }),
|
|
2333
2432
|
showTooltip: true
|
|
2334
2433
|
},
|
|
2335
2434
|
{
|
|
2336
2435
|
value: "flex-shrink",
|
|
2337
2436
|
label: __17("Shrink", "elementor"),
|
|
2338
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2437
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(ShrinkIcon, { fontSize: size }),
|
|
2339
2438
|
showTooltip: true
|
|
2340
2439
|
},
|
|
2341
2440
|
{
|
|
2342
2441
|
value: "custom",
|
|
2343
2442
|
label: __17("Custom", "elementor"),
|
|
2344
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2443
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(PencilIcon2, { fontSize: size }),
|
|
2345
2444
|
showTooltip: true
|
|
2346
2445
|
}
|
|
2347
2446
|
];
|
|
@@ -2351,7 +2450,7 @@ var FlexSizeField = () => {
|
|
|
2351
2450
|
const grow = fields?.["flex-grow"]?.value || null;
|
|
2352
2451
|
const shrink = fields?.["flex-shrink"]?.value || null;
|
|
2353
2452
|
const basis = fields?.["flex-basis"]?.value || null;
|
|
2354
|
-
const currentGroup =
|
|
2453
|
+
const currentGroup = useMemo4(() => getActiveGroup({ grow, shrink, basis }), [grow, shrink, basis]), [activeGroup, setActiveGroup] = useState10(currentGroup);
|
|
2355
2454
|
const onChangeGroup = (group = null) => {
|
|
2356
2455
|
setActiveGroup(group);
|
|
2357
2456
|
if (!group || group === "custom") {
|
|
@@ -2376,7 +2475,7 @@ var FlexSizeField = () => {
|
|
|
2376
2475
|
"flex-shrink": numberPropTypeUtil.create(DEFAULT)
|
|
2377
2476
|
});
|
|
2378
2477
|
};
|
|
2379
|
-
return /* @__PURE__ */
|
|
2478
|
+
return /* @__PURE__ */ React40.createElement(DirectionProvider6, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(ThemeProvider6, null, /* @__PURE__ */ React40.createElement(SectionContent, null, /* @__PURE__ */ React40.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(StylesField, { bind: activeGroup ?? "" }, /* @__PURE__ */ React40.createElement(ControlLabel, null, __17("Size", "elementor")))), /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(
|
|
2380
2479
|
ControlToggleButtonGroup2,
|
|
2381
2480
|
{
|
|
2382
2481
|
value: activeGroup,
|
|
@@ -2384,9 +2483,9 @@ var FlexSizeField = () => {
|
|
|
2384
2483
|
items: items2,
|
|
2385
2484
|
exclusive: true
|
|
2386
2485
|
}
|
|
2387
|
-
))), "custom" === activeGroup && /* @__PURE__ */
|
|
2486
|
+
))), "custom" === activeGroup && /* @__PURE__ */ React40.createElement(FlexCustomField, null))));
|
|
2388
2487
|
};
|
|
2389
|
-
var FlexCustomField = () => /* @__PURE__ */
|
|
2488
|
+
var FlexCustomField = () => /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React40.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, __17("Grow", "elementor"))), /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(NumberControl2, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React40.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, __17("Shrink", "elementor"))), /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(NumberControl2, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React40.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React40.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, __17("Basis", "elementor"))), /* @__PURE__ */ React40.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(SizeControl2, { extendedValues: ["auto"] })))));
|
|
2390
2489
|
var getActiveGroup = ({
|
|
2391
2490
|
grow,
|
|
2392
2491
|
shrink,
|
|
@@ -2408,16 +2507,16 @@ var getActiveGroup = ({
|
|
|
2408
2507
|
};
|
|
2409
2508
|
|
|
2410
2509
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
2411
|
-
import * as
|
|
2510
|
+
import * as React41 from "react";
|
|
2412
2511
|
import { GapControl } from "@elementor/editor-controls";
|
|
2413
2512
|
import { Stack as Stack11 } from "@elementor/ui";
|
|
2414
2513
|
import { __ as __18 } from "@wordpress/i18n";
|
|
2415
2514
|
var GapControlField = () => {
|
|
2416
|
-
return /* @__PURE__ */
|
|
2515
|
+
return /* @__PURE__ */ React41.createElement(Stack11, { gap: 1 }, /* @__PURE__ */ React41.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React41.createElement(GapControl, { label: __18("Gaps", "elementor") })));
|
|
2417
2516
|
};
|
|
2418
2517
|
|
|
2419
2518
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
2420
|
-
import * as
|
|
2519
|
+
import * as React42 from "react";
|
|
2421
2520
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
2422
2521
|
import {
|
|
2423
2522
|
JustifyBottomIcon as JustifyBottomIcon2,
|
|
@@ -2439,47 +2538,47 @@ var options4 = [
|
|
|
2439
2538
|
{
|
|
2440
2539
|
value: "flex-start",
|
|
2441
2540
|
label: __19("Start", "elementor"),
|
|
2442
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2541
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
2443
2542
|
showTooltip: true
|
|
2444
2543
|
},
|
|
2445
2544
|
{
|
|
2446
2545
|
value: "center",
|
|
2447
2546
|
label: __19("Center", "elementor"),
|
|
2448
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2547
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: CenterIcon4, size, ...iconProps4 }),
|
|
2449
2548
|
showTooltip: true
|
|
2450
2549
|
},
|
|
2451
2550
|
{
|
|
2452
2551
|
value: "flex-end",
|
|
2453
2552
|
label: __19("End", "elementor"),
|
|
2454
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2553
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
2455
2554
|
showTooltip: true
|
|
2456
2555
|
},
|
|
2457
2556
|
{
|
|
2458
2557
|
value: "space-between",
|
|
2459
2558
|
label: __19("Space between", "elementor"),
|
|
2460
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2559
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
2461
2560
|
showTooltip: true
|
|
2462
2561
|
},
|
|
2463
2562
|
{
|
|
2464
2563
|
value: "space-around",
|
|
2465
2564
|
label: __19("Space around", "elementor"),
|
|
2466
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2565
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
2467
2566
|
showTooltip: true
|
|
2468
2567
|
},
|
|
2469
2568
|
{
|
|
2470
2569
|
value: "space-evenly",
|
|
2471
2570
|
label: __19("Space evenly", "elementor"),
|
|
2472
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2571
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
2473
2572
|
showTooltip: true
|
|
2474
2573
|
}
|
|
2475
2574
|
];
|
|
2476
2575
|
var JustifyContentField = () => {
|
|
2477
2576
|
const { isSiteRtl } = useDirection();
|
|
2478
|
-
return /* @__PURE__ */
|
|
2577
|
+
return /* @__PURE__ */ React42.createElement(DirectionProvider7, { rtl: isSiteRtl }, /* @__PURE__ */ React42.createElement(ThemeProvider7, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React42.createElement(Stack12, { gap: 0.75 }, /* @__PURE__ */ React42.createElement(ControlLabel, null, __19("Justify content", "elementor")), /* @__PURE__ */ React42.createElement(ToggleControl6, { options: options4, fullWidth: true })))));
|
|
2479
2578
|
};
|
|
2480
2579
|
|
|
2481
2580
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
2482
|
-
import * as
|
|
2581
|
+
import * as React43 from "react";
|
|
2483
2582
|
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
2484
2583
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
2485
2584
|
import { DirectionProvider as DirectionProvider8, Grid as Grid8, ThemeProvider as ThemeProvider8 } from "@elementor/ui";
|
|
@@ -2488,25 +2587,25 @@ var options5 = [
|
|
|
2488
2587
|
{
|
|
2489
2588
|
value: "nowrap",
|
|
2490
2589
|
label: __20("No wrap", "elementor"),
|
|
2491
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2590
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(ArrowRightIcon2, { fontSize: size }),
|
|
2492
2591
|
showTooltip: true
|
|
2493
2592
|
},
|
|
2494
2593
|
{
|
|
2495
2594
|
value: "wrap",
|
|
2496
2595
|
label: __20("Wrap", "elementor"),
|
|
2497
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2596
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(ArrowBackIcon, { fontSize: size }),
|
|
2498
2597
|
showTooltip: true
|
|
2499
2598
|
},
|
|
2500
2599
|
{
|
|
2501
2600
|
value: "wrap-reverse",
|
|
2502
2601
|
label: __20("Reversed wrap", "elementor"),
|
|
2503
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2602
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
2504
2603
|
showTooltip: true
|
|
2505
2604
|
}
|
|
2506
2605
|
];
|
|
2507
2606
|
var WrapField = () => {
|
|
2508
2607
|
const { isSiteRtl } = useDirection();
|
|
2509
|
-
return /* @__PURE__ */
|
|
2608
|
+
return /* @__PURE__ */ React43.createElement(DirectionProvider8, { rtl: isSiteRtl }, /* @__PURE__ */ React43.createElement(ThemeProvider8, null, /* @__PURE__ */ React43.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React43.createElement(Grid8, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React43.createElement(Grid8, { item: true, xs: 6 }, /* @__PURE__ */ React43.createElement(ControlLabel, null, __20("Wrap", "elementor"))), /* @__PURE__ */ React43.createElement(Grid8, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React43.createElement(ToggleControl7, { options: options5 }))))));
|
|
2510
2609
|
};
|
|
2511
2610
|
|
|
2512
2611
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -2518,13 +2617,13 @@ var LayoutSection = () => {
|
|
|
2518
2617
|
const parent = useParentElement(element.id);
|
|
2519
2618
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
2520
2619
|
const parentStyleDirection = parentStyle?.flexDirection ?? "row";
|
|
2521
|
-
return /* @__PURE__ */
|
|
2620
|
+
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 }));
|
|
2522
2621
|
};
|
|
2523
2622
|
var FlexFields = () => {
|
|
2524
2623
|
const [flexWrap] = useStylesField("flex-wrap");
|
|
2525
|
-
return /* @__PURE__ */
|
|
2624
|
+
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));
|
|
2526
2625
|
};
|
|
2527
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
2626
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(PanelDivider, null), /* @__PURE__ */ React44.createElement(ControlFormLabel3, null, __21("Flex child", "elementor")), /* @__PURE__ */ React44.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React44.createElement(FlexOrderField, null), /* @__PURE__ */ React44.createElement(FlexSizeField, null));
|
|
2528
2627
|
var shouldDisplayFlexFields = (display, local) => {
|
|
2529
2628
|
const value = display?.value ?? local?.value;
|
|
2530
2629
|
if (!value) {
|
|
@@ -2534,11 +2633,11 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
2534
2633
|
};
|
|
2535
2634
|
|
|
2536
2635
|
// src/components/style-sections/position-section/position-section.tsx
|
|
2537
|
-
import * as
|
|
2636
|
+
import * as React49 from "react";
|
|
2538
2637
|
import { useSessionStorage } from "@elementor/session";
|
|
2539
2638
|
|
|
2540
2639
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
2541
|
-
import * as
|
|
2640
|
+
import * as React45 from "react";
|
|
2542
2641
|
import { SizeControl as SizeControl3 } from "@elementor/editor-controls";
|
|
2543
2642
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
2544
2643
|
import { Grid as Grid9, Stack as Stack13, withDirection as withDirection8 } from "@elementor/ui";
|
|
@@ -2546,32 +2645,32 @@ import { __ as __22 } from "@wordpress/i18n";
|
|
|
2546
2645
|
var InlineStartIcon2 = withDirection8(SideLeftIcon2);
|
|
2547
2646
|
var InlineEndIcon2 = withDirection8(SideRightIcon2);
|
|
2548
2647
|
var sideIcons = {
|
|
2549
|
-
"inset-block-start": /* @__PURE__ */
|
|
2550
|
-
"inset-block-end": /* @__PURE__ */
|
|
2551
|
-
"inset-inline-start": /* @__PURE__ */
|
|
2552
|
-
"inset-inline-end": /* @__PURE__ */
|
|
2648
|
+
"inset-block-start": /* @__PURE__ */ React45.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
2649
|
+
"inset-block-end": /* @__PURE__ */ React45.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
2650
|
+
"inset-inline-start": /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
2651
|
+
"inset-inline-end": /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
2553
2652
|
};
|
|
2554
2653
|
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __22("Right", "elementor") : __22("Left", "elementor");
|
|
2555
2654
|
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __22("Left", "elementor") : __22("Right", "elementor");
|
|
2556
2655
|
var DimensionsField = () => {
|
|
2557
2656
|
const { isSiteRtl } = useDirection();
|
|
2558
|
-
return /* @__PURE__ */
|
|
2657
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(Stack13, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-block-start", label: __22("Top", "elementor") }), /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React45.createElement(Stack13, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-block-end", label: __22("Bottom", "elementor") }), /* @__PURE__ */ React45.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
|
|
2559
2658
|
};
|
|
2560
2659
|
var DimensionField = ({ side, label }) => {
|
|
2561
|
-
return /* @__PURE__ */
|
|
2660
|
+
return /* @__PURE__ */ React45.createElement(Grid9, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React45.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, label)), /* @__PURE__ */ React45.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React45.createElement(StylesField, { bind: side }, /* @__PURE__ */ React45.createElement(SizeControl3, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
|
|
2562
2661
|
};
|
|
2563
2662
|
|
|
2564
2663
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
2565
|
-
import * as
|
|
2664
|
+
import * as React46 from "react";
|
|
2566
2665
|
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
2567
2666
|
import { Grid as Grid10 } from "@elementor/ui";
|
|
2568
2667
|
import { __ as __23 } from "@wordpress/i18n";
|
|
2569
2668
|
var OffsetField = () => {
|
|
2570
|
-
return /* @__PURE__ */
|
|
2669
|
+
return /* @__PURE__ */ React46.createElement(StylesField, { bind: "scroll-margin-top" }, /* @__PURE__ */ React46.createElement(Grid10, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(Grid10, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, __23("Anchor offset", "elementor"))), /* @__PURE__ */ React46.createElement(Grid10, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(SizeControl4, { units: ["px", "em", "rem", "vw", "vh"] }))));
|
|
2571
2670
|
};
|
|
2572
2671
|
|
|
2573
2672
|
// src/components/style-sections/position-section/position-field.tsx
|
|
2574
|
-
import * as
|
|
2673
|
+
import * as React47 from "react";
|
|
2575
2674
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
2576
2675
|
import { Grid as Grid11 } from "@elementor/ui";
|
|
2577
2676
|
import { __ as __24 } from "@wordpress/i18n";
|
|
@@ -2583,16 +2682,16 @@ var positionOptions = [
|
|
|
2583
2682
|
{ label: __24("Sticky", "elementor"), value: "sticky" }
|
|
2584
2683
|
];
|
|
2585
2684
|
var PositionField = ({ onChange }) => {
|
|
2586
|
-
return /* @__PURE__ */
|
|
2685
|
+
return /* @__PURE__ */ React47.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React47.createElement(Grid11, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(Grid11, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, __24("Position", "elementor"))), /* @__PURE__ */ React47.createElement(Grid11, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React47.createElement(SelectControl3, { options: positionOptions, onChange }))));
|
|
2587
2686
|
};
|
|
2588
2687
|
|
|
2589
2688
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
2590
|
-
import * as
|
|
2689
|
+
import * as React48 from "react";
|
|
2591
2690
|
import { NumberControl as NumberControl3 } from "@elementor/editor-controls";
|
|
2592
2691
|
import { Grid as Grid12 } from "@elementor/ui";
|
|
2593
2692
|
import { __ as __25 } from "@wordpress/i18n";
|
|
2594
2693
|
var ZIndexField = () => {
|
|
2595
|
-
return /* @__PURE__ */
|
|
2694
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React48.createElement(Grid12, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React48.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(ControlLabel, null, __25("Z-index", "elementor"))), /* @__PURE__ */ React48.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(NumberControl3, null))));
|
|
2596
2695
|
};
|
|
2597
2696
|
|
|
2598
2697
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -2624,7 +2723,7 @@ var PositionSection = () => {
|
|
|
2624
2723
|
}
|
|
2625
2724
|
};
|
|
2626
2725
|
const isNotStatic = positionValue && positionValue?.value !== "static";
|
|
2627
|
-
return /* @__PURE__ */
|
|
2726
|
+
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));
|
|
2628
2727
|
};
|
|
2629
2728
|
var usePersistDimensions = () => {
|
|
2630
2729
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -2634,13 +2733,13 @@ var usePersistDimensions = () => {
|
|
|
2634
2733
|
};
|
|
2635
2734
|
|
|
2636
2735
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2637
|
-
import * as
|
|
2736
|
+
import * as React51 from "react";
|
|
2638
2737
|
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
2639
2738
|
import { Grid as Grid14, Stack as Stack14 } from "@elementor/ui";
|
|
2640
2739
|
import { __ as __27 } from "@wordpress/i18n";
|
|
2641
2740
|
|
|
2642
2741
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
2643
|
-
import * as
|
|
2742
|
+
import * as React50 from "react";
|
|
2644
2743
|
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
2645
2744
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
2646
2745
|
import { Grid as Grid13 } from "@elementor/ui";
|
|
@@ -2649,78 +2748,78 @@ var options6 = [
|
|
|
2649
2748
|
{
|
|
2650
2749
|
value: "visible",
|
|
2651
2750
|
label: __26("Visible", "elementor"),
|
|
2652
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2751
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(EyeIcon, { fontSize: size }),
|
|
2653
2752
|
showTooltip: true
|
|
2654
2753
|
},
|
|
2655
2754
|
{
|
|
2656
2755
|
value: "hidden",
|
|
2657
2756
|
label: __26("Hidden", "elementor"),
|
|
2658
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2757
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(EyeOffIcon, { fontSize: size }),
|
|
2659
2758
|
showTooltip: true
|
|
2660
2759
|
},
|
|
2661
2760
|
{
|
|
2662
2761
|
value: "auto",
|
|
2663
2762
|
label: __26("Auto", "elementor"),
|
|
2664
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2763
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(LetterAIcon, { fontSize: size }),
|
|
2665
2764
|
showTooltip: true
|
|
2666
2765
|
}
|
|
2667
2766
|
];
|
|
2668
2767
|
var OverflowField = () => {
|
|
2669
|
-
return /* @__PURE__ */
|
|
2768
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React50.createElement(Grid13, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, __26("Overflow", "elementor"))), /* @__PURE__ */ React50.createElement(Grid13, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React50.createElement(ToggleControl8, { options: options6 }))));
|
|
2670
2769
|
};
|
|
2671
2770
|
|
|
2672
2771
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2673
2772
|
var SizeSection = () => {
|
|
2674
|
-
return /* @__PURE__ */
|
|
2773
|
+
return /* @__PURE__ */ React51.createElement(SectionContent, null, /* @__PURE__ */ React51.createElement(Grid14, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "width", label: __27("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "height", label: __27("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React51.createElement(Grid14, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(
|
|
2675
2774
|
SizeField,
|
|
2676
2775
|
{
|
|
2677
2776
|
bind: "min-width",
|
|
2678
2777
|
label: __27("Min width", "elementor"),
|
|
2679
2778
|
extendedValues: ["auto"]
|
|
2680
2779
|
}
|
|
2681
|
-
)), /* @__PURE__ */
|
|
2780
|
+
)), /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(
|
|
2682
2781
|
SizeField,
|
|
2683
2782
|
{
|
|
2684
2783
|
bind: "min-height",
|
|
2685
2784
|
label: __27("Min height", "elementor"),
|
|
2686
2785
|
extendedValues: ["auto"]
|
|
2687
2786
|
}
|
|
2688
|
-
))), /* @__PURE__ */
|
|
2787
|
+
))), /* @__PURE__ */ React51.createElement(Grid14, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "max-width", label: __27("Max width", "elementor") })), /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(SizeField, { bind: "max-height", label: __27("Max height", "elementor") }))), /* @__PURE__ */ React51.createElement(PanelDivider, null), /* @__PURE__ */ React51.createElement(Stack14, null, /* @__PURE__ */ React51.createElement(OverflowField, null)));
|
|
2689
2788
|
};
|
|
2690
2789
|
var SizeField = ({ label, bind, extendedValues }) => {
|
|
2691
|
-
return /* @__PURE__ */
|
|
2790
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind }, /* @__PURE__ */ React51.createElement(Grid14, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(ControlLabel, null, label)), /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(SizeControl5, { extendedValues }))));
|
|
2692
2791
|
};
|
|
2693
2792
|
|
|
2694
2793
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
2695
|
-
import * as
|
|
2794
|
+
import * as React52 from "react";
|
|
2696
2795
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
2697
2796
|
import { __ as __28 } from "@wordpress/i18n";
|
|
2698
2797
|
var SpacingSection = () => {
|
|
2699
2798
|
const { isSiteRtl } = useDirection();
|
|
2700
|
-
return /* @__PURE__ */
|
|
2799
|
+
return /* @__PURE__ */ React52.createElement(SectionContent, null, /* @__PURE__ */ React52.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React52.createElement(
|
|
2701
2800
|
LinkedDimensionsControl,
|
|
2702
2801
|
{
|
|
2703
2802
|
label: __28("Margin", "elementor"),
|
|
2704
2803
|
isSiteRtl,
|
|
2705
2804
|
extendedValues: ["auto"]
|
|
2706
2805
|
}
|
|
2707
|
-
)), /* @__PURE__ */
|
|
2806
|
+
)), /* @__PURE__ */ React52.createElement(PanelDivider, null), /* @__PURE__ */ React52.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React52.createElement(LinkedDimensionsControl, { label: __28("Padding", "elementor"), isSiteRtl })));
|
|
2708
2807
|
};
|
|
2709
2808
|
|
|
2710
2809
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
2711
|
-
import * as
|
|
2810
|
+
import * as React67 from "react";
|
|
2712
2811
|
|
|
2713
2812
|
// src/components/collapsible-content.tsx
|
|
2714
|
-
import * as
|
|
2715
|
-
import { useState as
|
|
2813
|
+
import * as React53 from "react";
|
|
2814
|
+
import { useState as useState11 } from "react";
|
|
2716
2815
|
import { Button, Collapse as Collapse3, Stack as Stack15 } from "@elementor/ui";
|
|
2717
2816
|
import { __ as __29 } from "@wordpress/i18n";
|
|
2718
2817
|
var CollapsibleContent = ({ children, defaultOpen = false }) => {
|
|
2719
|
-
const [open, setOpen] =
|
|
2818
|
+
const [open, setOpen] = useState11(defaultOpen);
|
|
2720
2819
|
const handleToggle = () => {
|
|
2721
2820
|
setOpen((prevOpen) => !prevOpen);
|
|
2722
2821
|
};
|
|
2723
|
-
return /* @__PURE__ */
|
|
2822
|
+
return /* @__PURE__ */ React53.createElement(Stack15, null, /* @__PURE__ */ React53.createElement(
|
|
2724
2823
|
Button,
|
|
2725
2824
|
{
|
|
2726
2825
|
fullWidth: true,
|
|
@@ -2728,21 +2827,21 @@ var CollapsibleContent = ({ children, defaultOpen = false }) => {
|
|
|
2728
2827
|
color: "secondary",
|
|
2729
2828
|
variant: "outlined",
|
|
2730
2829
|
onClick: handleToggle,
|
|
2731
|
-
endIcon: /* @__PURE__ */
|
|
2830
|
+
endIcon: /* @__PURE__ */ React53.createElement(CollapseIcon, { open }),
|
|
2732
2831
|
sx: { my: 0.5 }
|
|
2733
2832
|
},
|
|
2734
2833
|
open ? __29("Show less", "elementor") : __29("Show more", "elementor")
|
|
2735
|
-
), /* @__PURE__ */
|
|
2834
|
+
), /* @__PURE__ */ React53.createElement(Collapse3, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
2736
2835
|
};
|
|
2737
2836
|
|
|
2738
2837
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
2739
|
-
import * as
|
|
2838
|
+
import * as React54 from "react";
|
|
2740
2839
|
import { FontFamilyControl } from "@elementor/editor-controls";
|
|
2741
2840
|
import { Grid as Grid15 } from "@elementor/ui";
|
|
2742
2841
|
import { __ as __31 } from "@wordpress/i18n";
|
|
2743
2842
|
|
|
2744
2843
|
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
2745
|
-
import { useMemo as
|
|
2844
|
+
import { useMemo as useMemo5 } from "react";
|
|
2746
2845
|
import { __ as __30 } from "@wordpress/i18n";
|
|
2747
2846
|
|
|
2748
2847
|
// src/sync/get-elementor-config.ts
|
|
@@ -2767,7 +2866,7 @@ var getFontFamilies = () => {
|
|
|
2767
2866
|
};
|
|
2768
2867
|
var useFontFamilies = () => {
|
|
2769
2868
|
const fontFamilies = getFontFamilies();
|
|
2770
|
-
return
|
|
2869
|
+
return useMemo5(() => {
|
|
2771
2870
|
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
2772
2871
|
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
2773
2872
|
if (!supportedCategories[category]) {
|
|
@@ -2792,20 +2891,20 @@ var FontFamilyField = () => {
|
|
|
2792
2891
|
if (fontFamilies.length === 0) {
|
|
2793
2892
|
return null;
|
|
2794
2893
|
}
|
|
2795
|
-
return /* @__PURE__ */
|
|
2894
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React54.createElement(Grid15, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(ControlLabel, null, __31("Font family", "elementor"))), /* @__PURE__ */ React54.createElement(Grid15, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React54.createElement(FontFamilyControl, { fontFamilies }))));
|
|
2796
2895
|
};
|
|
2797
2896
|
|
|
2798
2897
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
2799
|
-
import * as
|
|
2898
|
+
import * as React55 from "react";
|
|
2800
2899
|
import { SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
2801
2900
|
import { Grid as Grid16 } from "@elementor/ui";
|
|
2802
2901
|
import { __ as __32 } from "@wordpress/i18n";
|
|
2803
2902
|
var FontSizeField = () => {
|
|
2804
|
-
return /* @__PURE__ */
|
|
2903
|
+
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React55.createElement(Grid16, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(ControlLabel, null, __32("Font size", "elementor"))), /* @__PURE__ */ React55.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(SizeControl6, null))));
|
|
2805
2904
|
};
|
|
2806
2905
|
|
|
2807
2906
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
2808
|
-
import * as
|
|
2907
|
+
import * as React56 from "react";
|
|
2809
2908
|
import { ControlFormLabel as ControlFormLabel4, ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
2810
2909
|
import { ItalicIcon, MinusIcon as MinusIcon2 } from "@elementor/icons";
|
|
2811
2910
|
import { Grid as Grid17 } from "@elementor/ui";
|
|
@@ -2814,20 +2913,20 @@ var options7 = [
|
|
|
2814
2913
|
{
|
|
2815
2914
|
value: "normal",
|
|
2816
2915
|
label: __33("Normal", "elementor"),
|
|
2817
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2916
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(MinusIcon2, { fontSize: size }),
|
|
2818
2917
|
showTooltip: true
|
|
2819
2918
|
},
|
|
2820
2919
|
{
|
|
2821
2920
|
value: "italic",
|
|
2822
2921
|
label: __33("Italic", "elementor"),
|
|
2823
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2922
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(ItalicIcon, { fontSize: size }),
|
|
2824
2923
|
showTooltip: true
|
|
2825
2924
|
}
|
|
2826
2925
|
];
|
|
2827
|
-
var FontStyleField = () => /* @__PURE__ */
|
|
2926
|
+
var FontStyleField = () => /* @__PURE__ */ React56.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React56.createElement(Grid17, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React56.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(ControlFormLabel4, null, __33("Font style", "elementor"))), /* @__PURE__ */ React56.createElement(Grid17, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React56.createElement(ToggleControl9, { options: options7 }))));
|
|
2828
2927
|
|
|
2829
2928
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
2830
|
-
import * as
|
|
2929
|
+
import * as React57 from "react";
|
|
2831
2930
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
2832
2931
|
import { Grid as Grid18 } from "@elementor/ui";
|
|
2833
2932
|
import { __ as __34 } from "@wordpress/i18n";
|
|
@@ -2843,29 +2942,29 @@ var fontWeightOptions = [
|
|
|
2843
2942
|
{ value: "900", label: __34("900 - Black", "elementor") }
|
|
2844
2943
|
];
|
|
2845
2944
|
var FontWeightField = () => {
|
|
2846
|
-
return /* @__PURE__ */
|
|
2945
|
+
return /* @__PURE__ */ React57.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React57.createElement(Grid18, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, __34("Font weight", "elementor"))), /* @__PURE__ */ React57.createElement(Grid18, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React57.createElement(SelectControl4, { options: fontWeightOptions }))));
|
|
2847
2946
|
};
|
|
2848
2947
|
|
|
2849
2948
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
2850
|
-
import * as
|
|
2949
|
+
import * as React58 from "react";
|
|
2851
2950
|
import { SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
2852
2951
|
import { Grid as Grid19 } from "@elementor/ui";
|
|
2853
2952
|
import { __ as __35 } from "@wordpress/i18n";
|
|
2854
2953
|
var LetterSpacingField = () => {
|
|
2855
|
-
return /* @__PURE__ */
|
|
2954
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React58.createElement(Grid19, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, __35("Letter spacing", "elementor"))), /* @__PURE__ */ React58.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(SizeControl7, null))));
|
|
2856
2955
|
};
|
|
2857
2956
|
|
|
2858
2957
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
2859
|
-
import * as
|
|
2958
|
+
import * as React59 from "react";
|
|
2860
2959
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
2861
2960
|
import { Grid as Grid20 } from "@elementor/ui";
|
|
2862
2961
|
import { __ as __36 } from "@wordpress/i18n";
|
|
2863
2962
|
var LineHeightField = () => {
|
|
2864
|
-
return /* @__PURE__ */
|
|
2963
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React59.createElement(Grid20, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(ControlLabel, null, __36("Line height", "elementor"))), /* @__PURE__ */ React59.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(SizeControl8, null))));
|
|
2865
2964
|
};
|
|
2866
2965
|
|
|
2867
2966
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
2868
|
-
import * as
|
|
2967
|
+
import * as React60 from "react";
|
|
2869
2968
|
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
2870
2969
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
2871
2970
|
import { Grid as Grid21, withDirection as withDirection9 } from "@elementor/ui";
|
|
@@ -2876,43 +2975,43 @@ var options8 = [
|
|
|
2876
2975
|
{
|
|
2877
2976
|
value: "start",
|
|
2878
2977
|
label: __37("Start", "elementor"),
|
|
2879
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2978
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(AlignStartIcon, { fontSize: size }),
|
|
2880
2979
|
showTooltip: true
|
|
2881
2980
|
},
|
|
2882
2981
|
{
|
|
2883
2982
|
value: "center",
|
|
2884
2983
|
label: __37("Center", "elementor"),
|
|
2885
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2984
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(AlignCenterIcon, { fontSize: size }),
|
|
2886
2985
|
showTooltip: true
|
|
2887
2986
|
},
|
|
2888
2987
|
{
|
|
2889
2988
|
value: "end",
|
|
2890
2989
|
label: __37("End", "elementor"),
|
|
2891
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2990
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(AlignEndIcon, { fontSize: size }),
|
|
2892
2991
|
showTooltip: true
|
|
2893
2992
|
},
|
|
2894
2993
|
{
|
|
2895
2994
|
value: "justify",
|
|
2896
2995
|
label: __37("Justify", "elementor"),
|
|
2897
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2996
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
2898
2997
|
showTooltip: true
|
|
2899
2998
|
}
|
|
2900
2999
|
];
|
|
2901
3000
|
var TextAlignmentField = () => {
|
|
2902
|
-
return /* @__PURE__ */
|
|
3001
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React60.createElement(Grid21, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(Grid21, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(ControlLabel, null, __37("Text align", "elementor"))), /* @__PURE__ */ React60.createElement(Grid21, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React60.createElement(ToggleControl10, { options: options8 }))));
|
|
2903
3002
|
};
|
|
2904
3003
|
|
|
2905
3004
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
2906
|
-
import * as
|
|
3005
|
+
import * as React61 from "react";
|
|
2907
3006
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
2908
3007
|
import { Grid as Grid22 } from "@elementor/ui";
|
|
2909
3008
|
import { __ as __38 } from "@wordpress/i18n";
|
|
2910
3009
|
var TextColorField = () => {
|
|
2911
|
-
return /* @__PURE__ */
|
|
3010
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React61.createElement(Grid22, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React61.createElement(Grid22, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(ControlLabel, null, __38("Text color", "elementor"))), /* @__PURE__ */ React61.createElement(Grid22, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(ColorControl2, null))));
|
|
2912
3011
|
};
|
|
2913
3012
|
|
|
2914
3013
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
2915
|
-
import * as
|
|
3014
|
+
import * as React62 from "react";
|
|
2916
3015
|
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
2917
3016
|
import { MinusIcon as MinusIcon3, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
2918
3017
|
import { Grid as Grid23 } from "@elementor/ui";
|
|
@@ -2921,33 +3020,33 @@ var options9 = [
|
|
|
2921
3020
|
{
|
|
2922
3021
|
value: "none",
|
|
2923
3022
|
label: __39("None", "elementor"),
|
|
2924
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3023
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(MinusIcon3, { fontSize: size }),
|
|
2925
3024
|
showTooltip: true,
|
|
2926
3025
|
exclusive: true
|
|
2927
3026
|
},
|
|
2928
3027
|
{
|
|
2929
3028
|
value: "underline",
|
|
2930
3029
|
label: __39("Underline", "elementor"),
|
|
2931
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3030
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(UnderlineIcon, { fontSize: size }),
|
|
2932
3031
|
showTooltip: true
|
|
2933
3032
|
},
|
|
2934
3033
|
{
|
|
2935
3034
|
value: "line-through",
|
|
2936
3035
|
label: __39("Line-through", "elementor"),
|
|
2937
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3036
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(StrikethroughIcon, { fontSize: size }),
|
|
2938
3037
|
showTooltip: true
|
|
2939
3038
|
},
|
|
2940
3039
|
{
|
|
2941
3040
|
value: "overline",
|
|
2942
3041
|
label: __39("Overline", "elementor"),
|
|
2943
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3042
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(OverlineIcon, { fontSize: size }),
|
|
2944
3043
|
showTooltip: true
|
|
2945
3044
|
}
|
|
2946
3045
|
];
|
|
2947
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
3046
|
+
var TextDecorationField = () => /* @__PURE__ */ React62.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React62.createElement(Grid23, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(Grid23, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, __39("Line decoration", "elementor"))), /* @__PURE__ */ React62.createElement(Grid23, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React62.createElement(ToggleControl11, { options: options9, exclusive: false }))));
|
|
2948
3047
|
|
|
2949
3048
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
2950
|
-
import * as
|
|
3049
|
+
import * as React63 from "react";
|
|
2951
3050
|
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
2952
3051
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
2953
3052
|
import { Grid as Grid24 } from "@elementor/ui";
|
|
@@ -2956,22 +3055,22 @@ var options10 = [
|
|
|
2956
3055
|
{
|
|
2957
3056
|
value: "ltr",
|
|
2958
3057
|
label: __40("Left to right", "elementor"),
|
|
2959
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3058
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
2960
3059
|
showTooltip: true
|
|
2961
3060
|
},
|
|
2962
3061
|
{
|
|
2963
3062
|
value: "rtl",
|
|
2964
3063
|
label: __40("Right to left", "elementor"),
|
|
2965
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3064
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
2966
3065
|
showTooltip: true
|
|
2967
3066
|
}
|
|
2968
3067
|
];
|
|
2969
3068
|
var TextDirectionField = () => {
|
|
2970
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React63.createElement(Grid24, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React63.createElement(Grid24, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, __40("Direction", "elementor"))), /* @__PURE__ */ React63.createElement(Grid24, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React63.createElement(ToggleControl12, { options: options10 }))));
|
|
2971
3070
|
};
|
|
2972
3071
|
|
|
2973
3072
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
2974
|
-
import * as
|
|
3073
|
+
import * as React64 from "react";
|
|
2975
3074
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
2976
3075
|
import { __ as __41 } from "@wordpress/i18n";
|
|
2977
3076
|
var initTextStroke = {
|
|
@@ -2999,7 +3098,7 @@ var TextStrokeField = () => {
|
|
|
2999
3098
|
setTextStroke(null);
|
|
3000
3099
|
};
|
|
3001
3100
|
const hasTextStroke = Boolean(textStroke);
|
|
3002
|
-
return /* @__PURE__ */
|
|
3101
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React64.createElement(
|
|
3003
3102
|
AddOrRemoveContent,
|
|
3004
3103
|
{
|
|
3005
3104
|
label: __41("Text stroke", "elementor"),
|
|
@@ -3007,12 +3106,12 @@ var TextStrokeField = () => {
|
|
|
3007
3106
|
onAdd: addTextStroke,
|
|
3008
3107
|
onRemove: removeTextStroke
|
|
3009
3108
|
},
|
|
3010
|
-
/* @__PURE__ */
|
|
3109
|
+
/* @__PURE__ */ React64.createElement(StrokeControl, null)
|
|
3011
3110
|
));
|
|
3012
3111
|
};
|
|
3013
3112
|
|
|
3014
3113
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
3015
|
-
import * as
|
|
3114
|
+
import * as React65 from "react";
|
|
3016
3115
|
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
3017
3116
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
3018
3117
|
import { Grid as Grid25 } from "@elementor/ui";
|
|
@@ -3021,42 +3120,42 @@ var options11 = [
|
|
|
3021
3120
|
{
|
|
3022
3121
|
value: "none",
|
|
3023
3122
|
label: __42("None", "elementor"),
|
|
3024
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3123
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(MinusIcon4, { fontSize: size }),
|
|
3025
3124
|
showTooltip: true
|
|
3026
3125
|
},
|
|
3027
3126
|
{
|
|
3028
3127
|
value: "capitalize",
|
|
3029
3128
|
label: __42("Capitalize", "elementor"),
|
|
3030
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3129
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(LetterCaseIcon, { fontSize: size }),
|
|
3031
3130
|
showTooltip: true
|
|
3032
3131
|
},
|
|
3033
3132
|
{
|
|
3034
3133
|
value: "uppercase",
|
|
3035
3134
|
label: __42("Uppercase", "elementor"),
|
|
3036
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3135
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
3037
3136
|
showTooltip: true
|
|
3038
3137
|
},
|
|
3039
3138
|
{
|
|
3040
3139
|
value: "lowercase",
|
|
3041
3140
|
label: __42("Lowercase", "elementor"),
|
|
3042
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3141
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
3043
3142
|
showTooltip: true
|
|
3044
3143
|
}
|
|
3045
3144
|
];
|
|
3046
|
-
var TransformField = () => /* @__PURE__ */
|
|
3145
|
+
var TransformField = () => /* @__PURE__ */ React65.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React65.createElement(Grid25, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React65.createElement(Grid25, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, __42("Text transform", "elementor"))), /* @__PURE__ */ React65.createElement(Grid25, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React65.createElement(ToggleControl13, { options: options11 }))));
|
|
3047
3146
|
|
|
3048
3147
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
3049
|
-
import * as
|
|
3148
|
+
import * as React66 from "react";
|
|
3050
3149
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
3051
3150
|
import { Grid as Grid26 } from "@elementor/ui";
|
|
3052
3151
|
import { __ as __43 } from "@wordpress/i18n";
|
|
3053
3152
|
var WordSpacingField = () => {
|
|
3054
|
-
return /* @__PURE__ */
|
|
3153
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React66.createElement(Grid26, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React66.createElement(Grid26, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ControlLabel, null, __43("Word spacing", "elementor"))), /* @__PURE__ */ React66.createElement(Grid26, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(SizeControl9, null))));
|
|
3055
3154
|
};
|
|
3056
3155
|
|
|
3057
3156
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
3058
3157
|
var TypographySection = () => {
|
|
3059
|
-
return /* @__PURE__ */
|
|
3158
|
+
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))));
|
|
3060
3159
|
};
|
|
3061
3160
|
|
|
3062
3161
|
// src/components/style-tab.tsx
|
|
@@ -3071,9 +3170,9 @@ var stickyHeaderStyles = {
|
|
|
3071
3170
|
var StyleTab = () => {
|
|
3072
3171
|
const currentClassesProp = useCurrentClassesProp();
|
|
3073
3172
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
|
|
3074
|
-
const [activeStyleState, setActiveStyleState] =
|
|
3173
|
+
const [activeStyleState, setActiveStyleState] = useState12(null);
|
|
3075
3174
|
const breakpoint = useActiveBreakpoint();
|
|
3076
|
-
return /* @__PURE__ */
|
|
3175
|
+
return /* @__PURE__ */ React68.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React68.createElement(
|
|
3077
3176
|
StyleProvider,
|
|
3078
3177
|
{
|
|
3079
3178
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -3084,12 +3183,12 @@ var StyleTab = () => {
|
|
|
3084
3183
|
},
|
|
3085
3184
|
setMetaState: setActiveStyleState
|
|
3086
3185
|
},
|
|
3087
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ React68.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React68.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React68.createElement(ClassesHeader, null, /* @__PURE__ */ React68.createElement(CssClassSelector, null), /* @__PURE__ */ React68.createElement(Divider4, null)), /* @__PURE__ */ React68.createElement(SectionsList, null, /* @__PURE__ */ React68.createElement(Section, { title: __44("Layout", "elementor") }, /* @__PURE__ */ React68.createElement(LayoutSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Spacing", "elementor") }, /* @__PURE__ */ React68.createElement(SpacingSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Size", "elementor") }, /* @__PURE__ */ React68.createElement(SizeSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Position", "elementor") }, /* @__PURE__ */ React68.createElement(PositionSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Typography", "elementor") }, /* @__PURE__ */ React68.createElement(TypographySection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Background", "elementor") }, /* @__PURE__ */ React68.createElement(BackgroundSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Border", "elementor") }, /* @__PURE__ */ React68.createElement(BorderSection, null)), /* @__PURE__ */ React68.createElement(Section, { title: __44("Effects", "elementor") }, /* @__PURE__ */ React68.createElement(EffectsSection, null)))))
|
|
3088
3187
|
));
|
|
3089
3188
|
};
|
|
3090
3189
|
function ClassesHeader({ children }) {
|
|
3091
3190
|
const scrollDirection = useScrollDirection();
|
|
3092
|
-
return /* @__PURE__ */
|
|
3191
|
+
return /* @__PURE__ */ React68.createElement(Stack16, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
3093
3192
|
}
|
|
3094
3193
|
function useCurrentClassesProp() {
|
|
3095
3194
|
const { elementType } = useElement();
|
|
@@ -3109,7 +3208,7 @@ var EditingPanelTabs = () => {
|
|
|
3109
3208
|
return (
|
|
3110
3209
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
3111
3210
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
3112
|
-
/* @__PURE__ */
|
|
3211
|
+
/* @__PURE__ */ React69.createElement(Fragment8, { key: element.id }, /* @__PURE__ */ React69.createElement(ScrollProvider, null, /* @__PURE__ */ React69.createElement(Stack17, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React69.createElement(Stack17, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React69.createElement(Tabs, { variant: "fullWidth", size: "small", sx: { mt: 0.5 }, ...getTabsProps() }, /* @__PURE__ */ React69.createElement(Tab, { label: __45("General", "elementor"), ...getTabProps("settings") }), /* @__PURE__ */ React69.createElement(Tab, { label: __45("Style", "elementor"), ...getTabProps("style") })), /* @__PURE__ */ React69.createElement(Divider5, null)), /* @__PURE__ */ React69.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React69.createElement(SettingsTab, null)), /* @__PURE__ */ React69.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React69.createElement(StyleTab, null)))))
|
|
3113
3212
|
);
|
|
3114
3213
|
};
|
|
3115
3214
|
|
|
@@ -3123,7 +3222,7 @@ var EditingPanel = () => {
|
|
|
3123
3222
|
return null;
|
|
3124
3223
|
}
|
|
3125
3224
|
const panelTitle = __46("Edit %s", "elementor").replace("%s", elementType.title);
|
|
3126
|
-
return /* @__PURE__ */
|
|
3225
|
+
return /* @__PURE__ */ React70.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React70.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React70.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React70.createElement(ThemeProvider9, null, /* @__PURE__ */ React70.createElement(Panel, null, /* @__PURE__ */ React70.createElement(PanelHeader, null, /* @__PURE__ */ React70.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React70.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React70.createElement(PanelBody, null, /* @__PURE__ */ React70.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React70.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React70.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React70.createElement(EditingPanelTabs, null)))))))));
|
|
3127
3226
|
};
|
|
3128
3227
|
|
|
3129
3228
|
// src/panel.ts
|
|
@@ -3139,7 +3238,7 @@ import { __registerPanel as registerPanel } from "@elementor/editor-panels";
|
|
|
3139
3238
|
import { blockCommand } from "@elementor/editor-v1-adapters";
|
|
3140
3239
|
|
|
3141
3240
|
// src/hooks/use-open-editor-panel.ts
|
|
3142
|
-
import { useEffect as
|
|
3241
|
+
import { useEffect as useEffect4 } from "react";
|
|
3143
3242
|
import { __privateListenTo as listenTo, commandStartEvent } from "@elementor/editor-v1-adapters";
|
|
3144
3243
|
|
|
3145
3244
|
// src/sync/is-atomic-widget-selected.ts
|
|
@@ -3156,7 +3255,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
3156
3255
|
// src/hooks/use-open-editor-panel.ts
|
|
3157
3256
|
var useOpenEditorPanel = () => {
|
|
3158
3257
|
const { open } = usePanelActions();
|
|
3159
|
-
|
|
3258
|
+
useEffect4(() => {
|
|
3160
3259
|
return listenTo(commandStartEvent("panel/editor/open"), () => {
|
|
3161
3260
|
if (isAtomicWidgetSelected()) {
|
|
3162
3261
|
open();
|
|
@@ -3172,10 +3271,10 @@ var EditingPanelHooks = () => {
|
|
|
3172
3271
|
};
|
|
3173
3272
|
|
|
3174
3273
|
// src/dynamics/init.ts
|
|
3175
|
-
import { settingsTransformersRegistry, styleTransformersRegistry } from "@elementor/editor-canvas";
|
|
3274
|
+
import { settingsTransformersRegistry, styleTransformersRegistry as styleTransformersRegistry2 } from "@elementor/editor-canvas";
|
|
3176
3275
|
|
|
3177
3276
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
3178
|
-
import * as
|
|
3277
|
+
import * as React74 from "react";
|
|
3179
3278
|
import { ControlFormLabel as ControlFormLabel5, useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
|
|
3180
3279
|
import { DatabaseIcon as DatabaseIcon2, SettingsIcon, XIcon as XIcon2 } from "@elementor/icons";
|
|
3181
3280
|
import {
|
|
@@ -3184,7 +3283,7 @@ import {
|
|
|
3184
3283
|
Box as Box5,
|
|
3185
3284
|
Divider as Divider7,
|
|
3186
3285
|
Grid as Grid27,
|
|
3187
|
-
IconButton as
|
|
3286
|
+
IconButton as IconButton4,
|
|
3188
3287
|
Paper,
|
|
3189
3288
|
Popover as Popover2,
|
|
3190
3289
|
Stack as Stack20,
|
|
@@ -3199,9 +3298,9 @@ import {
|
|
|
3199
3298
|
import { __ as __48 } from "@wordpress/i18n";
|
|
3200
3299
|
|
|
3201
3300
|
// src/components/popover-content.tsx
|
|
3202
|
-
import * as
|
|
3301
|
+
import * as React71 from "react";
|
|
3203
3302
|
import { Stack as Stack18 } from "@elementor/ui";
|
|
3204
|
-
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */
|
|
3303
|
+
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React71.createElement(Stack18, { alignItems, gap, p }, children);
|
|
3205
3304
|
|
|
3206
3305
|
// src/hooks/use-persist-dynamic-value.ts
|
|
3207
3306
|
import { useSessionStorage as useSessionStorage2 } from "@elementor/session";
|
|
@@ -3212,14 +3311,14 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
3212
3311
|
};
|
|
3213
3312
|
|
|
3214
3313
|
// src/dynamics/dynamic-control.tsx
|
|
3215
|
-
import * as
|
|
3314
|
+
import * as React72 from "react";
|
|
3216
3315
|
import { PropKeyProvider as PropKeyProvider3, PropProvider as PropProvider3, useBoundProp as useBoundProp3 } from "@elementor/editor-controls";
|
|
3217
3316
|
|
|
3218
3317
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
3219
|
-
import { useMemo as
|
|
3318
|
+
import { useMemo as useMemo7 } from "react";
|
|
3220
3319
|
|
|
3221
3320
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
3222
|
-
import { useMemo as
|
|
3321
|
+
import { useMemo as useMemo6 } from "react";
|
|
3223
3322
|
import { useBoundProp as useBoundProp2 } from "@elementor/editor-controls";
|
|
3224
3323
|
|
|
3225
3324
|
// src/dynamics/sync/get-elementor-config.ts
|
|
@@ -3274,7 +3373,7 @@ var usePropDynamicTags = () => {
|
|
|
3274
3373
|
const propDynamicType = getDynamicPropType(propType);
|
|
3275
3374
|
categories = propDynamicType?.settings.categories || [];
|
|
3276
3375
|
}
|
|
3277
|
-
return
|
|
3376
|
+
return useMemo6(() => getDynamicTagsByCategories(categories), [categories.join()]);
|
|
3278
3377
|
};
|
|
3279
3378
|
var getDynamicTagsByCategories = (categories) => {
|
|
3280
3379
|
const dynamicTags = getAtomicDynamicTags();
|
|
@@ -3290,7 +3389,7 @@ var getDynamicTagsByCategories = (categories) => {
|
|
|
3290
3389
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
3291
3390
|
var useDynamicTag = (tagName) => {
|
|
3292
3391
|
const dynamicTags = usePropDynamicTags();
|
|
3293
|
-
return
|
|
3392
|
+
return useMemo7(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
|
|
3294
3393
|
};
|
|
3295
3394
|
|
|
3296
3395
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -3314,12 +3413,12 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
3314
3413
|
});
|
|
3315
3414
|
};
|
|
3316
3415
|
const propType = createTopLevelOjectType({ schema: dynamicTag.props_schema });
|
|
3317
|
-
return /* @__PURE__ */
|
|
3416
|
+
return /* @__PURE__ */ React72.createElement(PropProvider3, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React72.createElement(PropKeyProvider3, { bind }, children));
|
|
3318
3417
|
};
|
|
3319
3418
|
|
|
3320
3419
|
// src/dynamics/components/dynamic-selection.tsx
|
|
3321
|
-
import * as
|
|
3322
|
-
import { Fragment as Fragment9, useState as
|
|
3420
|
+
import * as React73 from "react";
|
|
3421
|
+
import { Fragment as Fragment9, useState as useState13 } from "react";
|
|
3323
3422
|
import { useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
|
|
3324
3423
|
import { DatabaseIcon, SearchIcon } from "@elementor/icons";
|
|
3325
3424
|
import {
|
|
@@ -3337,7 +3436,7 @@ import {
|
|
|
3337
3436
|
import { __ as __47 } from "@wordpress/i18n";
|
|
3338
3437
|
var SIZE3 = "tiny";
|
|
3339
3438
|
var DynamicSelection = ({ onSelect }) => {
|
|
3340
|
-
const [searchValue, setSearchValue] =
|
|
3439
|
+
const [searchValue, setSearchValue] = useState13("");
|
|
3341
3440
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
3342
3441
|
const { value: anyValue } = useBoundProp4();
|
|
3343
3442
|
const { bind, value: dynamicValue, setValue } = useBoundProp4(dynamicPropTypeUtil);
|
|
@@ -3355,7 +3454,7 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3355
3454
|
setValue({ name: value, settings: { label } });
|
|
3356
3455
|
onSelect?.();
|
|
3357
3456
|
};
|
|
3358
|
-
return /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ React73.createElement(Stack19, null, hasNoDynamicTags ? /* @__PURE__ */ React73.createElement(NoDynamicTags, null) : /* @__PURE__ */ React73.createElement(Fragment9, null, /* @__PURE__ */ React73.createElement(Box4, { px: 1.5, pb: 1 }, /* @__PURE__ */ React73.createElement(
|
|
3359
3458
|
TextField2,
|
|
3360
3459
|
{
|
|
3361
3460
|
fullWidth: true,
|
|
@@ -3364,10 +3463,10 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3364
3463
|
onChange: handleSearch,
|
|
3365
3464
|
placeholder: __47("Search dynamic tags\u2026", "elementor"),
|
|
3366
3465
|
InputProps: {
|
|
3367
|
-
startAdornment: /* @__PURE__ */
|
|
3466
|
+
startAdornment: /* @__PURE__ */ React73.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React73.createElement(SearchIcon, { fontSize: SIZE3 }))
|
|
3368
3467
|
}
|
|
3369
3468
|
}
|
|
3370
|
-
)), /* @__PURE__ */
|
|
3469
|
+
)), /* @__PURE__ */ React73.createElement(Divider6, null), /* @__PURE__ */ React73.createElement(Box4, { sx: { overflowY: "auto", height: 260, width: 220 } }, options12.length > 0 ? /* @__PURE__ */ React73.createElement(MenuList, { role: "listbox", tabIndex: 0 }, options12.map(([category, items3], index) => /* @__PURE__ */ React73.createElement(Fragment9, { key: index }, /* @__PURE__ */ React73.createElement(
|
|
3371
3470
|
MenuSubheader2,
|
|
3372
3471
|
{
|
|
3373
3472
|
sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
|
|
@@ -3375,7 +3474,7 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3375
3474
|
dynamicGroups?.[category]?.title || category
|
|
3376
3475
|
), items3.map(({ value, label: tagLabel }) => {
|
|
3377
3476
|
const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
|
|
3378
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ React73.createElement(
|
|
3379
3478
|
MenuItem,
|
|
3380
3479
|
{
|
|
3381
3480
|
key: value,
|
|
@@ -3386,9 +3485,9 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
3386
3485
|
},
|
|
3387
3486
|
tagLabel
|
|
3388
3487
|
);
|
|
3389
|
-
})))) : /* @__PURE__ */
|
|
3488
|
+
})))) : /* @__PURE__ */ React73.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
|
|
3390
3489
|
};
|
|
3391
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
3490
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React73.createElement(
|
|
3392
3491
|
Stack19,
|
|
3393
3492
|
{
|
|
3394
3493
|
gap: 1,
|
|
@@ -3399,11 +3498,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React72.createElem
|
|
|
3399
3498
|
color: "text.secondary",
|
|
3400
3499
|
sx: { pb: 3.5 }
|
|
3401
3500
|
},
|
|
3402
|
-
/* @__PURE__ */
|
|
3403
|
-
/* @__PURE__ */
|
|
3404
|
-
/* @__PURE__ */
|
|
3501
|
+
/* @__PURE__ */ React73.createElement(DatabaseIcon, { fontSize: "large" }),
|
|
3502
|
+
/* @__PURE__ */ React73.createElement(Typography4, { align: "center", variant: "subtitle2" }, __47("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React73.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
3503
|
+
/* @__PURE__ */ React73.createElement(Typography4, { align: "center", variant: "caption" }, __47("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React73.createElement(Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __47("Clear & try again", "elementor")))
|
|
3405
3504
|
);
|
|
3406
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
3505
|
+
var NoDynamicTags = () => /* @__PURE__ */ React73.createElement(Box4, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React73.createElement(Divider6, null), /* @__PURE__ */ React73.createElement(
|
|
3407
3506
|
Stack19,
|
|
3408
3507
|
{
|
|
3409
3508
|
gap: 1,
|
|
@@ -3414,9 +3513,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React72.createElement(Box4, { sx: { ov
|
|
|
3414
3513
|
color: "text.secondary",
|
|
3415
3514
|
sx: { pb: 3.5 }
|
|
3416
3515
|
},
|
|
3417
|
-
/* @__PURE__ */
|
|
3418
|
-
/* @__PURE__ */
|
|
3419
|
-
/* @__PURE__ */
|
|
3516
|
+
/* @__PURE__ */ React73.createElement(DatabaseIcon, { fontSize: "large" }),
|
|
3517
|
+
/* @__PURE__ */ React73.createElement(Typography4, { align: "center", variant: "subtitle2" }, __47("Streamline your workflow with dynamic tags", "elementor")),
|
|
3518
|
+
/* @__PURE__ */ React73.createElement(Typography4, { align: "center", variant: "caption" }, __47("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
|
|
3420
3519
|
));
|
|
3421
3520
|
var useFilteredOptions = (searchValue) => {
|
|
3422
3521
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -3449,25 +3548,25 @@ var DynamicSelectionControl = () => {
|
|
|
3449
3548
|
if (!dynamicTag) {
|
|
3450
3549
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
3451
3550
|
}
|
|
3452
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ React74.createElement(Box5, null, /* @__PURE__ */ React74.createElement(
|
|
3453
3552
|
Tag,
|
|
3454
3553
|
{
|
|
3455
3554
|
fullWidth: true,
|
|
3456
3555
|
showActionsOnHover: true,
|
|
3457
3556
|
label: dynamicTag.label,
|
|
3458
|
-
startIcon: /* @__PURE__ */
|
|
3557
|
+
startIcon: /* @__PURE__ */ React74.createElement(DatabaseIcon2, { fontSize: SIZE4 }),
|
|
3459
3558
|
...bindTrigger2(selectionPopoverState),
|
|
3460
|
-
actions: /* @__PURE__ */
|
|
3461
|
-
|
|
3559
|
+
actions: /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React74.createElement(
|
|
3560
|
+
IconButton4,
|
|
3462
3561
|
{
|
|
3463
3562
|
size: SIZE4,
|
|
3464
3563
|
onClick: removeDynamicTag,
|
|
3465
3564
|
"aria-label": __48("Remove dynamic value", "elementor")
|
|
3466
3565
|
},
|
|
3467
|
-
/* @__PURE__ */
|
|
3566
|
+
/* @__PURE__ */ React74.createElement(XIcon2, { fontSize: SIZE4 })
|
|
3468
3567
|
))
|
|
3469
3568
|
}
|
|
3470
|
-
), /* @__PURE__ */
|
|
3569
|
+
), /* @__PURE__ */ React74.createElement(
|
|
3471
3570
|
Popover2,
|
|
3472
3571
|
{
|
|
3473
3572
|
disablePortal: true,
|
|
@@ -3475,7 +3574,7 @@ var DynamicSelectionControl = () => {
|
|
|
3475
3574
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
3476
3575
|
...bindPopover2(selectionPopoverState)
|
|
3477
3576
|
},
|
|
3478
|
-
/* @__PURE__ */
|
|
3577
|
+
/* @__PURE__ */ React74.createElement(Stack20, null, /* @__PURE__ */ React74.createElement(Stack20, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React74.createElement(DatabaseIcon2, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React74.createElement(Typography5, { variant: "subtitle2" }, __48("Dynamic tags", "elementor")), /* @__PURE__ */ React74.createElement(IconButton4, { size: SIZE4, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React74.createElement(XIcon2, { fontSize: SIZE4 }))), /* @__PURE__ */ React74.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
|
|
3479
3578
|
));
|
|
3480
3579
|
};
|
|
3481
3580
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
@@ -3484,7 +3583,7 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
3484
3583
|
if (!hasDynamicSettings) {
|
|
3485
3584
|
return null;
|
|
3486
3585
|
}
|
|
3487
|
-
return /* @__PURE__ */
|
|
3586
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(IconButton4, { size: SIZE4, ...bindTrigger2(popupState), "aria-label": __48("Settings", "elementor") }, /* @__PURE__ */ React74.createElement(SettingsIcon, { fontSize: SIZE4 })), /* @__PURE__ */ React74.createElement(
|
|
3488
3587
|
Popover2,
|
|
3489
3588
|
{
|
|
3490
3589
|
disablePortal: true,
|
|
@@ -3492,7 +3591,7 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
3492
3591
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3493
3592
|
...bindPopover2(popupState)
|
|
3494
3593
|
},
|
|
3495
|
-
/* @__PURE__ */
|
|
3594
|
+
/* @__PURE__ */ React74.createElement(Paper, { component: Stack20, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React74.createElement(Stack20, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React74.createElement(DatabaseIcon2, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React74.createElement(Typography5, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React74.createElement(IconButton4, { sx: { ml: "auto" }, size: SIZE4, onClick: popupState.close }, /* @__PURE__ */ React74.createElement(XIcon2, { fontSize: SIZE4 }))), /* @__PURE__ */ React74.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
3496
3595
|
));
|
|
3497
3596
|
};
|
|
3498
3597
|
var DynamicSettings = ({ controls }) => {
|
|
@@ -3501,10 +3600,10 @@ var DynamicSettings = ({ controls }) => {
|
|
|
3501
3600
|
if (!tabs.length) {
|
|
3502
3601
|
return null;
|
|
3503
3602
|
}
|
|
3504
|
-
return /* @__PURE__ */
|
|
3505
|
-
return /* @__PURE__ */
|
|
3603
|
+
return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React74.createElement(Tab2, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React74.createElement(Divider7, null), tabs.map(({ value }, index) => {
|
|
3604
|
+
return /* @__PURE__ */ React74.createElement(TabPanel2, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React74.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
3506
3605
|
if (item.type === "control") {
|
|
3507
|
-
return /* @__PURE__ */
|
|
3606
|
+
return /* @__PURE__ */ React74.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
3508
3607
|
}
|
|
3509
3608
|
return null;
|
|
3510
3609
|
})));
|
|
@@ -3514,7 +3613,7 @@ var Control3 = ({ control }) => {
|
|
|
3514
3613
|
if (!getControlByType(control.type)) {
|
|
3515
3614
|
return null;
|
|
3516
3615
|
}
|
|
3517
|
-
return /* @__PURE__ */
|
|
3616
|
+
return /* @__PURE__ */ React74.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React74.createElement(Grid27, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React74.createElement(Grid27, { item: true, xs: 12 }, /* @__PURE__ */ React74.createElement(ControlFormLabel5, null, control.label)) : null, /* @__PURE__ */ React74.createElement(Grid27, { item: true, xs: 12 }, /* @__PURE__ */ React74.createElement(Control, { type: control.type, props: control.props }))));
|
|
3518
3617
|
};
|
|
3519
3618
|
|
|
3520
3619
|
// src/dynamics/dynamic-transformer.ts
|
|
@@ -3567,7 +3666,7 @@ function getDynamicValue(name, settings) {
|
|
|
3567
3666
|
}
|
|
3568
3667
|
|
|
3569
3668
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
3570
|
-
import * as
|
|
3669
|
+
import * as React75 from "react";
|
|
3571
3670
|
import { useBoundProp as useBoundProp6 } from "@elementor/editor-controls";
|
|
3572
3671
|
import { DatabaseIcon as DatabaseIcon3 } from "@elementor/icons";
|
|
3573
3672
|
import { __ as __49 } from "@wordpress/i18n";
|
|
@@ -3578,7 +3677,7 @@ var usePropDynamicAction = () => {
|
|
|
3578
3677
|
visible,
|
|
3579
3678
|
icon: DatabaseIcon3,
|
|
3580
3679
|
title: __49("Dynamic tags", "elementor"),
|
|
3581
|
-
popoverContent: ({ closePopover }) => /* @__PURE__ */
|
|
3680
|
+
popoverContent: ({ closePopover }) => /* @__PURE__ */ React75.createElement(DynamicSelection, { onSelect: closePopover })
|
|
3582
3681
|
};
|
|
3583
3682
|
};
|
|
3584
3683
|
|
|
@@ -3593,7 +3692,7 @@ var init = () => {
|
|
|
3593
3692
|
id: "dynamic-tags",
|
|
3594
3693
|
useProps: usePropDynamicAction
|
|
3595
3694
|
});
|
|
3596
|
-
|
|
3695
|
+
styleTransformersRegistry2.register("dynamic", dynamicTransformer);
|
|
3597
3696
|
settingsTransformersRegistry.register("dynamic", dynamicTransformer);
|
|
3598
3697
|
};
|
|
3599
3698
|
|