@elementor/editor-editing-panel 3.33.0-116 → 3.33.0-117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +879 -934
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +708 -762
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/components/style-tab.tsx +0 -14
- package/src/index.ts +0 -1
- package/src/components/custom-css-field.tsx +0 -20
- package/src/components/custom-css.tsx +0 -36
package/dist/index.mjs
CHANGED
|
@@ -1265,14 +1265,57 @@ import * as React12 from "react";
|
|
|
1265
1265
|
import { Stack as Stack4 } from "@elementor/ui";
|
|
1266
1266
|
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React12.createElement(Stack4, { gap, sx: { ...sx } }, children);
|
|
1267
1267
|
|
|
1268
|
-
// src/components/
|
|
1269
|
-
import
|
|
1270
|
-
import {
|
|
1271
|
-
|
|
1272
|
-
|
|
1268
|
+
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1269
|
+
import { useMemo as useMemo3 } from "react";
|
|
1270
|
+
import { __ as __6 } from "@wordpress/i18n";
|
|
1271
|
+
|
|
1272
|
+
// src/sync/get-elementor-globals.ts
|
|
1273
|
+
var getElementorConfig = () => {
|
|
1274
|
+
const extendedWindow = window;
|
|
1275
|
+
return extendedWindow.elementor?.config ?? {};
|
|
1276
|
+
};
|
|
1277
|
+
var getElementorFrontendConfig = () => {
|
|
1278
|
+
const extendedWindow = window;
|
|
1279
|
+
return extendedWindow.elementorFrontend?.config ?? {};
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1283
|
+
var supportedCategories = {
|
|
1284
|
+
system: __6("System", "elementor"),
|
|
1285
|
+
custom: __6("Custom Fonts", "elementor"),
|
|
1286
|
+
googlefonts: __6("Google Fonts", "elementor")
|
|
1287
|
+
};
|
|
1288
|
+
var getFontFamilies = () => {
|
|
1289
|
+
const { controls } = getElementorConfig();
|
|
1290
|
+
const options12 = controls?.font?.options;
|
|
1291
|
+
if (!options12) {
|
|
1292
|
+
return null;
|
|
1293
|
+
}
|
|
1294
|
+
return options12;
|
|
1295
|
+
};
|
|
1296
|
+
var useFontFamilies = () => {
|
|
1297
|
+
const fontFamilies = getFontFamilies();
|
|
1298
|
+
return useMemo3(() => {
|
|
1299
|
+
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
1300
|
+
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
1301
|
+
if (!supportedCategories[category]) {
|
|
1302
|
+
return acc;
|
|
1303
|
+
}
|
|
1304
|
+
const categoryIndex = categoriesOrder.indexOf(category);
|
|
1305
|
+
if (!acc[categoryIndex]) {
|
|
1306
|
+
acc[categoryIndex] = {
|
|
1307
|
+
label: supportedCategories[category],
|
|
1308
|
+
fonts: []
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
acc[categoryIndex].fonts.push(font);
|
|
1312
|
+
return acc;
|
|
1313
|
+
}, []).filter(Boolean);
|
|
1314
|
+
}, [fontFamilies]);
|
|
1315
|
+
};
|
|
1273
1316
|
|
|
1274
1317
|
// src/hooks/use-custom-css.ts
|
|
1275
|
-
import { useMemo as
|
|
1318
|
+
import { useMemo as useMemo5 } from "react";
|
|
1276
1319
|
import {
|
|
1277
1320
|
createElementStyle as createElementStyle2,
|
|
1278
1321
|
deleteElementStyle as deleteElementStyle3,
|
|
@@ -1287,7 +1330,7 @@ import { undoable as undoable3 } from "@elementor/editor-v1-adapters";
|
|
|
1287
1330
|
import { decodeString, encodeString } from "@elementor/utils";
|
|
1288
1331
|
|
|
1289
1332
|
// src/hooks/use-styles-fields.ts
|
|
1290
|
-
import { useMemo as
|
|
1333
|
+
import { useMemo as useMemo4 } from "react";
|
|
1291
1334
|
import {
|
|
1292
1335
|
createElementStyle,
|
|
1293
1336
|
deleteElementStyle as deleteElementStyle2,
|
|
@@ -1298,7 +1341,7 @@ import { getVariantByMeta } from "@elementor/editor-styles";
|
|
|
1298
1341
|
import { isElementsStylesProvider as isElementsStylesProvider5 } from "@elementor/editor-styles-repository";
|
|
1299
1342
|
import { ELEMENTS_STYLES_RESERVED_LABEL } from "@elementor/editor-styles-repository";
|
|
1300
1343
|
import { undoable as undoable2 } from "@elementor/editor-v1-adapters";
|
|
1301
|
-
import { __ as
|
|
1344
|
+
import { __ as __7 } from "@wordpress/i18n";
|
|
1302
1345
|
|
|
1303
1346
|
// src/hooks/use-styles-rerender.ts
|
|
1304
1347
|
import { useEffect as useEffect2, useReducer } from "react";
|
|
@@ -1345,7 +1388,7 @@ function useUndoableActions({
|
|
|
1345
1388
|
meta: { breakpoint, state }
|
|
1346
1389
|
}) {
|
|
1347
1390
|
const classesProp = useClassesProp();
|
|
1348
|
-
return
|
|
1391
|
+
return useMemo4(() => {
|
|
1349
1392
|
const meta = { breakpoint, state };
|
|
1350
1393
|
const createStyleArgs = { elementId, classesProp, meta, label: ELEMENTS_STYLES_RESERVED_LABEL };
|
|
1351
1394
|
return undoable2(
|
|
@@ -1411,21 +1454,21 @@ function getCurrentProps(style, meta) {
|
|
|
1411
1454
|
var defaultHistoryTitles = {
|
|
1412
1455
|
title: ({ provider }) => {
|
|
1413
1456
|
const providerLabel = provider.labels?.singular;
|
|
1414
|
-
return providerLabel ? capitalize(providerLabel) :
|
|
1457
|
+
return providerLabel ? capitalize(providerLabel) : __7("Style", "elementor");
|
|
1415
1458
|
},
|
|
1416
1459
|
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
1417
1460
|
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
1418
1461
|
if (!styleLabel) {
|
|
1419
1462
|
throw new Error(`Style ${styleId} not found`);
|
|
1420
1463
|
}
|
|
1421
|
-
return
|
|
1464
|
+
return __7(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
1422
1465
|
}
|
|
1423
1466
|
};
|
|
1424
1467
|
var localStyleHistoryTitles = {
|
|
1425
1468
|
title: ({ elementId }) => getElementLabel2(elementId),
|
|
1426
1469
|
subtitle: ({ propDisplayName }) => (
|
|
1427
1470
|
// translators: %s is the name of the style property being edited
|
|
1428
|
-
|
|
1471
|
+
__7(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
1429
1472
|
)
|
|
1430
1473
|
};
|
|
1431
1474
|
function capitalize(str) {
|
|
@@ -1484,7 +1527,7 @@ function useUndoableActions2({
|
|
|
1484
1527
|
meta: { breakpoint, state }
|
|
1485
1528
|
}) {
|
|
1486
1529
|
const classesProp = useClassesProp();
|
|
1487
|
-
return
|
|
1530
|
+
return useMemo5(() => {
|
|
1488
1531
|
const meta = { breakpoint, state };
|
|
1489
1532
|
const createStyleArgs = { elementId, classesProp, meta, label: ELEMENTS_STYLES_RESERVED_LABEL2 };
|
|
1490
1533
|
return undoable3(
|
|
@@ -1556,102 +1599,6 @@ function sanitize(raw) {
|
|
|
1556
1599
|
return stringPropTypeUtil.schema.safeParse(stringPropTypeUtil.create(raw)).data?.value?.trim() ?? "";
|
|
1557
1600
|
}
|
|
1558
1601
|
|
|
1559
|
-
// src/components/custom-css-field.tsx
|
|
1560
|
-
import * as React14 from "react";
|
|
1561
|
-
import { ControlAdornmentsProvider } from "@elementor/editor-controls";
|
|
1562
|
-
|
|
1563
|
-
// src/components/custom-css-indicator.tsx
|
|
1564
|
-
import * as React13 from "react";
|
|
1565
|
-
var CustomCssIndicator = () => {
|
|
1566
|
-
const { customCss } = useCustomCss();
|
|
1567
|
-
const hasContent = Boolean(customCss?.raw?.trim());
|
|
1568
|
-
if (!hasContent) {
|
|
1569
|
-
return null;
|
|
1570
|
-
}
|
|
1571
|
-
return /* @__PURE__ */ React13.createElement(StyleIndicator, { getColor: (theme) => theme.palette.accent.main });
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
// src/components/custom-css-field.tsx
|
|
1575
|
-
var CustomCssField = ({ children }) => {
|
|
1576
|
-
return /* @__PURE__ */ React14.createElement(
|
|
1577
|
-
ControlAdornmentsProvider,
|
|
1578
|
-
{
|
|
1579
|
-
items: [
|
|
1580
|
-
{
|
|
1581
|
-
id: "custom-css-indicator",
|
|
1582
|
-
Adornment: CustomCssIndicator
|
|
1583
|
-
}
|
|
1584
|
-
]
|
|
1585
|
-
},
|
|
1586
|
-
children
|
|
1587
|
-
);
|
|
1588
|
-
};
|
|
1589
|
-
|
|
1590
|
-
// src/components/custom-css.tsx
|
|
1591
|
-
var CustomCss = () => {
|
|
1592
|
-
const { customCss, setCustomCss } = useCustomCss();
|
|
1593
|
-
const [localState, setLocalState] = React15.useState({
|
|
1594
|
-
value: customCss?.raw || "",
|
|
1595
|
-
isValid: true
|
|
1596
|
-
});
|
|
1597
|
-
const handleChange = (value, isValid) => {
|
|
1598
|
-
setLocalState({ value, isValid });
|
|
1599
|
-
if (isValid) {
|
|
1600
|
-
setCustomCss(value, { history: { propDisplayName: "Custom CSS" } });
|
|
1601
|
-
}
|
|
1602
|
-
};
|
|
1603
|
-
return /* @__PURE__ */ React15.createElement(SectionContent, null, /* @__PURE__ */ React15.createElement(CustomCssField, null, /* @__PURE__ */ React15.createElement(Stack5, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React15.createElement(ControlFormLabel, null, __7("CSS code", "elementor")), /* @__PURE__ */ React15.createElement(ControlAdornments, null))), /* @__PURE__ */ React15.createElement(CssEditor, { value: localState.value, onChange: handleChange }));
|
|
1604
|
-
};
|
|
1605
|
-
|
|
1606
|
-
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1607
|
-
import { useMemo as useMemo5 } from "react";
|
|
1608
|
-
import { __ as __8 } from "@wordpress/i18n";
|
|
1609
|
-
|
|
1610
|
-
// src/sync/get-elementor-globals.ts
|
|
1611
|
-
var getElementorConfig = () => {
|
|
1612
|
-
const extendedWindow = window;
|
|
1613
|
-
return extendedWindow.elementor?.config ?? {};
|
|
1614
|
-
};
|
|
1615
|
-
var getElementorFrontendConfig = () => {
|
|
1616
|
-
const extendedWindow = window;
|
|
1617
|
-
return extendedWindow.elementorFrontend?.config ?? {};
|
|
1618
|
-
};
|
|
1619
|
-
|
|
1620
|
-
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1621
|
-
var supportedCategories = {
|
|
1622
|
-
system: __8("System", "elementor"),
|
|
1623
|
-
custom: __8("Custom Fonts", "elementor"),
|
|
1624
|
-
googlefonts: __8("Google Fonts", "elementor")
|
|
1625
|
-
};
|
|
1626
|
-
var getFontFamilies = () => {
|
|
1627
|
-
const { controls } = getElementorConfig();
|
|
1628
|
-
const options12 = controls?.font?.options;
|
|
1629
|
-
if (!options12) {
|
|
1630
|
-
return null;
|
|
1631
|
-
}
|
|
1632
|
-
return options12;
|
|
1633
|
-
};
|
|
1634
|
-
var useFontFamilies = () => {
|
|
1635
|
-
const fontFamilies = getFontFamilies();
|
|
1636
|
-
return useMemo5(() => {
|
|
1637
|
-
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
1638
|
-
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
1639
|
-
if (!supportedCategories[category]) {
|
|
1640
|
-
return acc;
|
|
1641
|
-
}
|
|
1642
|
-
const categoryIndex = categoriesOrder.indexOf(category);
|
|
1643
|
-
if (!acc[categoryIndex]) {
|
|
1644
|
-
acc[categoryIndex] = {
|
|
1645
|
-
label: supportedCategories[category],
|
|
1646
|
-
fonts: []
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
acc[categoryIndex].fonts.push(font);
|
|
1650
|
-
return acc;
|
|
1651
|
-
}, []).filter(Boolean);
|
|
1652
|
-
}, [fontFamilies]);
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
1602
|
// src/control-replacement.tsx
|
|
1656
1603
|
import { createControlReplacementsRegistry } from "@elementor/editor-controls";
|
|
1657
1604
|
var { registerControlReplacement, getControlReplacements } = createControlReplacementsRegistry();
|
|
@@ -1660,18 +1607,18 @@ var { registerControlReplacement, getControlReplacements } = createControlReplac
|
|
|
1660
1607
|
import { createMenu } from "@elementor/menus";
|
|
1661
1608
|
|
|
1662
1609
|
// src/action.tsx
|
|
1663
|
-
import * as
|
|
1610
|
+
import * as React13 from "react";
|
|
1664
1611
|
import { IconButton, Tooltip } from "@elementor/ui";
|
|
1665
1612
|
var SIZE = "tiny";
|
|
1666
1613
|
function Action({ title, visible = true, icon: Icon, onClick }) {
|
|
1667
1614
|
if (!visible) {
|
|
1668
1615
|
return null;
|
|
1669
1616
|
}
|
|
1670
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ React13.createElement(Tooltip, { placement: "top", title, arrow: true }, /* @__PURE__ */ React13.createElement(IconButton, { "aria-label": title, size: SIZE, onClick }, /* @__PURE__ */ React13.createElement(Icon, { fontSize: SIZE })));
|
|
1671
1618
|
}
|
|
1672
1619
|
|
|
1673
1620
|
// src/popover-action.tsx
|
|
1674
|
-
import * as
|
|
1621
|
+
import * as React14 from "react";
|
|
1675
1622
|
import { useFloatingActionsBar } from "@elementor/editor-controls";
|
|
1676
1623
|
import { bindPopover, bindTrigger as bindTrigger2, IconButton as IconButton2, Popover, Tooltip as Tooltip2, usePopupState as usePopupState2 } from "@elementor/ui";
|
|
1677
1624
|
var SIZE2 = "tiny";
|
|
@@ -1680,7 +1627,7 @@ function PopoverAction({ title, visible = true, icon: Icon, content: PopoverCont
|
|
|
1680
1627
|
if (!visible) {
|
|
1681
1628
|
return null;
|
|
1682
1629
|
}
|
|
1683
|
-
return /* @__PURE__ */
|
|
1630
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(Tooltip2, { placement: "top", title }, /* @__PURE__ */ React14.createElement(IconButton2, { "aria-label": title, size: SIZE2, ...triggerProps }, /* @__PURE__ */ React14.createElement(Icon, { fontSize: SIZE2 }))), /* @__PURE__ */ React14.createElement(
|
|
1684
1631
|
Popover,
|
|
1685
1632
|
{
|
|
1686
1633
|
disableScrollLock: true,
|
|
@@ -1697,7 +1644,7 @@ function PopoverAction({ title, visible = true, icon: Icon, content: PopoverCont
|
|
|
1697
1644
|
},
|
|
1698
1645
|
...popoverProps
|
|
1699
1646
|
},
|
|
1700
|
-
/* @__PURE__ */
|
|
1647
|
+
/* @__PURE__ */ React14.createElement(PopoverContent, { close: popupState.close })
|
|
1701
1648
|
));
|
|
1702
1649
|
}
|
|
1703
1650
|
function useFloatingActionsPopover() {
|
|
@@ -1745,7 +1692,7 @@ import { __privateListenTo as listenTo, commandStartEvent } from "@elementor/edi
|
|
|
1745
1692
|
import { __createPanel as createPanel } from "@elementor/editor-panels";
|
|
1746
1693
|
|
|
1747
1694
|
// src/components/editing-panel.tsx
|
|
1748
|
-
import * as
|
|
1695
|
+
import * as React89 from "react";
|
|
1749
1696
|
import { ControlActionsProvider, ControlReplacementsProvider } from "@elementor/editor-controls";
|
|
1750
1697
|
import { useSelectedElement as useSelectedElement2 } from "@elementor/editor-elements";
|
|
1751
1698
|
import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
|
|
@@ -1753,24 +1700,24 @@ import { ThemeProvider as ThemeProvider3 } from "@elementor/editor-ui";
|
|
|
1753
1700
|
import { AtomIcon } from "@elementor/icons";
|
|
1754
1701
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1755
1702
|
import { ErrorBoundary } from "@elementor/ui";
|
|
1756
|
-
import { __ as
|
|
1703
|
+
import { __ as __61 } from "@wordpress/i18n";
|
|
1757
1704
|
|
|
1758
1705
|
// src/components/editing-panel-error-fallback.tsx
|
|
1759
|
-
import * as
|
|
1706
|
+
import * as React15 from "react";
|
|
1760
1707
|
import { Alert, Box as Box3 } from "@elementor/ui";
|
|
1761
1708
|
function EditorPanelErrorFallback() {
|
|
1762
|
-
return /* @__PURE__ */
|
|
1709
|
+
return /* @__PURE__ */ React15.createElement(Box3, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React15.createElement(Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React15.createElement("strong", null, "Something went wrong")));
|
|
1763
1710
|
}
|
|
1764
1711
|
|
|
1765
1712
|
// src/components/editing-panel-tabs.tsx
|
|
1766
|
-
import * as
|
|
1713
|
+
import * as React88 from "react";
|
|
1767
1714
|
import { Fragment as Fragment9 } from "react";
|
|
1768
|
-
import { Divider as Divider6, Stack as
|
|
1769
|
-
import { __ as
|
|
1715
|
+
import { Divider as Divider6, Stack as Stack15, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1716
|
+
import { __ as __60 } from "@wordpress/i18n";
|
|
1770
1717
|
|
|
1771
1718
|
// src/contexts/scroll-context.tsx
|
|
1772
|
-
import * as
|
|
1773
|
-
import { createContext as createContext6, useContext as useContext6, useEffect as useEffect3, useRef as useRef2, useState as
|
|
1719
|
+
import * as React16 from "react";
|
|
1720
|
+
import { createContext as createContext6, useContext as useContext6, useEffect as useEffect3, useRef as useRef2, useState as useState5 } from "react";
|
|
1774
1721
|
import { styled as styled3 } from "@elementor/ui";
|
|
1775
1722
|
var ScrollContext = createContext6(void 0);
|
|
1776
1723
|
var ScrollPanel = styled3("div")`
|
|
@@ -1779,7 +1726,7 @@ var ScrollPanel = styled3("div")`
|
|
|
1779
1726
|
`;
|
|
1780
1727
|
var DEFAULT_SCROLL_DIRECTION = "up";
|
|
1781
1728
|
function ScrollProvider({ children }) {
|
|
1782
|
-
const [direction, setDirection] =
|
|
1729
|
+
const [direction, setDirection] = useState5(DEFAULT_SCROLL_DIRECTION);
|
|
1783
1730
|
const ref = useRef2(null);
|
|
1784
1731
|
const scrollPos = useRef2(0);
|
|
1785
1732
|
useEffect3(() => {
|
|
@@ -1801,7 +1748,7 @@ function ScrollProvider({ children }) {
|
|
|
1801
1748
|
scrollElement.removeEventListener("scroll", handleScroll);
|
|
1802
1749
|
};
|
|
1803
1750
|
});
|
|
1804
|
-
return /* @__PURE__ */
|
|
1751
|
+
return /* @__PURE__ */ React16.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React16.createElement(ScrollPanel, { ref }, children));
|
|
1805
1752
|
}
|
|
1806
1753
|
function useScrollDirection() {
|
|
1807
1754
|
return useContext6(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
|
|
@@ -1837,13 +1784,13 @@ var useDefaultPanelSettings = () => {
|
|
|
1837
1784
|
};
|
|
1838
1785
|
|
|
1839
1786
|
// src/hooks/use-state-by-element.ts
|
|
1840
|
-
import { useState as
|
|
1787
|
+
import { useState as useState6 } from "react";
|
|
1841
1788
|
import { getSessionStorageItem, setSessionStorageItem } from "@elementor/session";
|
|
1842
1789
|
var useStateByElement = (key, initialValue) => {
|
|
1843
1790
|
const { element } = useElement();
|
|
1844
1791
|
const lookup = `elementor/editor-state/${element.id}/${key}`;
|
|
1845
1792
|
const storedValue = getSessionStorageItem(lookup);
|
|
1846
|
-
const [value, setValue] =
|
|
1793
|
+
const [value, setValue] = useState6(storedValue ?? initialValue);
|
|
1847
1794
|
const doUpdate = (newValue) => {
|
|
1848
1795
|
setSessionStorageItem(lookup, newValue);
|
|
1849
1796
|
setValue(newValue);
|
|
@@ -1852,13 +1799,13 @@ var useStateByElement = (key, initialValue) => {
|
|
|
1852
1799
|
};
|
|
1853
1800
|
|
|
1854
1801
|
// src/components/settings-tab.tsx
|
|
1855
|
-
import * as
|
|
1856
|
-
import { ControlFormLabel
|
|
1802
|
+
import * as React23 from "react";
|
|
1803
|
+
import { ControlFormLabel } from "@elementor/editor-controls";
|
|
1857
1804
|
import { SessionStorageProvider } from "@elementor/session";
|
|
1858
1805
|
import { Divider as Divider3 } from "@elementor/ui";
|
|
1859
1806
|
|
|
1860
1807
|
// src/controls-registry/control.tsx
|
|
1861
|
-
import * as
|
|
1808
|
+
import * as React17 from "react";
|
|
1862
1809
|
|
|
1863
1810
|
// src/controls-registry/controls-registry.tsx
|
|
1864
1811
|
import {
|
|
@@ -1940,17 +1887,17 @@ var Control = ({ props, type }) => {
|
|
|
1940
1887
|
context: { controlType: type }
|
|
1941
1888
|
});
|
|
1942
1889
|
}
|
|
1943
|
-
return /* @__PURE__ */
|
|
1890
|
+
return /* @__PURE__ */ React17.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
1944
1891
|
};
|
|
1945
1892
|
|
|
1946
1893
|
// src/controls-registry/control-type-container.tsx
|
|
1947
|
-
import * as
|
|
1894
|
+
import * as React18 from "react";
|
|
1948
1895
|
import { Box as Box4, styled as styled4 } from "@elementor/ui";
|
|
1949
1896
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
1950
1897
|
if (layout === "custom") {
|
|
1951
1898
|
return children;
|
|
1952
1899
|
}
|
|
1953
|
-
return /* @__PURE__ */
|
|
1900
|
+
return /* @__PURE__ */ React18.createElement(StyledContainer, { layout }, children);
|
|
1954
1901
|
};
|
|
1955
1902
|
var StyledContainer = styled4(Box4, {
|
|
1956
1903
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
@@ -1968,7 +1915,7 @@ var getGridLayout = (layout) => ({
|
|
|
1968
1915
|
});
|
|
1969
1916
|
|
|
1970
1917
|
// src/controls-registry/settings-field.tsx
|
|
1971
|
-
import * as
|
|
1918
|
+
import * as React19 from "react";
|
|
1972
1919
|
import { useMemo as useMemo6 } from "react";
|
|
1973
1920
|
import { PropKeyProvider, PropProvider } from "@elementor/editor-controls";
|
|
1974
1921
|
import { setDocumentModifiedStatus as setDocumentModifiedStatus2 } from "@elementor/editor-documents";
|
|
@@ -1980,7 +1927,7 @@ import {
|
|
|
1980
1927
|
} from "@elementor/editor-elements";
|
|
1981
1928
|
import { isDependencyMet as isDependencyMet2 } from "@elementor/editor-props";
|
|
1982
1929
|
import { undoable as undoable4 } from "@elementor/editor-v1-adapters";
|
|
1983
|
-
import { __ as
|
|
1930
|
+
import { __ as __8 } from "@wordpress/i18n";
|
|
1984
1931
|
|
|
1985
1932
|
// src/utils/prop-dependency-utils.ts
|
|
1986
1933
|
import {
|
|
@@ -2129,7 +2076,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2129
2076
|
undoableUpdateElementProp(settings);
|
|
2130
2077
|
};
|
|
2131
2078
|
const isDisabled = (prop) => !isDependencyMet2(prop?.dependencies, elementSettingValues);
|
|
2132
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ React19.createElement(PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React19.createElement(PropKeyProvider, { bind }, children));
|
|
2133
2080
|
};
|
|
2134
2081
|
function useUndoableUpdateElementProp({
|
|
2135
2082
|
elementId,
|
|
@@ -2151,7 +2098,7 @@ function useUndoableUpdateElementProp({
|
|
|
2151
2098
|
{
|
|
2152
2099
|
title: getElementLabel3(elementId),
|
|
2153
2100
|
// translators: %s is the name of the property that was edited.
|
|
2154
|
-
subtitle:
|
|
2101
|
+
subtitle: __8("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2155
2102
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2156
2103
|
}
|
|
2157
2104
|
);
|
|
@@ -2159,9 +2106,9 @@ function useUndoableUpdateElementProp({
|
|
|
2159
2106
|
}
|
|
2160
2107
|
|
|
2161
2108
|
// src/components/section.tsx
|
|
2162
|
-
import * as
|
|
2109
|
+
import * as React21 from "react";
|
|
2163
2110
|
import { useId as useId2, useRef as useRef3 } from "react";
|
|
2164
|
-
import { Collapse as Collapse2, Divider as Divider2, ListItemButton, ListItemText, Stack as
|
|
2111
|
+
import { Collapse as Collapse2, Divider as Divider2, ListItemButton, ListItemText, Stack as Stack6 } from "@elementor/ui";
|
|
2165
2112
|
|
|
2166
2113
|
// src/components/collapse-icon.tsx
|
|
2167
2114
|
import { ChevronDownIcon } from "@elementor/icons";
|
|
@@ -2176,10 +2123,10 @@ var CollapseIcon = styled5(ChevronDownIcon, {
|
|
|
2176
2123
|
}));
|
|
2177
2124
|
|
|
2178
2125
|
// src/components/collapsible-content.tsx
|
|
2179
|
-
import * as
|
|
2180
|
-
import { useState as
|
|
2181
|
-
import { Button, Collapse, Stack as
|
|
2182
|
-
import { __ as
|
|
2126
|
+
import * as React20 from "react";
|
|
2127
|
+
import { useState as useState7 } from "react";
|
|
2128
|
+
import { Button, Collapse, Stack as Stack5, styled as styled6 } from "@elementor/ui";
|
|
2129
|
+
import { __ as __9 } from "@wordpress/i18n";
|
|
2183
2130
|
var IndicatorsWrapper = styled6("div")`
|
|
2184
2131
|
position: absolute;
|
|
2185
2132
|
top: 0;
|
|
@@ -2191,11 +2138,11 @@ var IndicatorsWrapper = styled6("div")`
|
|
|
2191
2138
|
justify-content: center;
|
|
2192
2139
|
`;
|
|
2193
2140
|
var CollapsibleContent = ({ children, defaultOpen = false, titleEnd = null }) => {
|
|
2194
|
-
const [open, setOpen] =
|
|
2141
|
+
const [open, setOpen] = useState7(defaultOpen);
|
|
2195
2142
|
const handleToggle = () => {
|
|
2196
2143
|
setOpen((prevOpen) => !prevOpen);
|
|
2197
2144
|
};
|
|
2198
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ React20.createElement(Stack5, null, /* @__PURE__ */ React20.createElement(Stack5, { sx: { position: "relative" } }, /* @__PURE__ */ React20.createElement(
|
|
2199
2146
|
Button,
|
|
2200
2147
|
{
|
|
2201
2148
|
fullWidth: true,
|
|
@@ -2203,11 +2150,11 @@ var CollapsibleContent = ({ children, defaultOpen = false, titleEnd = null }) =>
|
|
|
2203
2150
|
color: "secondary",
|
|
2204
2151
|
variant: "outlined",
|
|
2205
2152
|
onClick: handleToggle,
|
|
2206
|
-
endIcon: /* @__PURE__ */
|
|
2153
|
+
endIcon: /* @__PURE__ */ React20.createElement(CollapseIcon, { open }),
|
|
2207
2154
|
sx: { my: 0.5 }
|
|
2208
2155
|
},
|
|
2209
|
-
open ?
|
|
2210
|
-
), titleEnd && /* @__PURE__ */
|
|
2156
|
+
open ? __9("Show less", "elementor") : __9("Show more", "elementor")
|
|
2157
|
+
), titleEnd && /* @__PURE__ */ React20.createElement(IndicatorsWrapper, null, getCollapsibleValue(titleEnd, open))), /* @__PURE__ */ React20.createElement(Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
2211
2158
|
};
|
|
2212
2159
|
function getCollapsibleValue(value, isOpen) {
|
|
2213
2160
|
if (typeof value === "function") {
|
|
@@ -2226,7 +2173,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2226
2173
|
const id = useId2();
|
|
2227
2174
|
const labelId = `label-${id}`;
|
|
2228
2175
|
const contentId = `content-${id}`;
|
|
2229
|
-
return /* @__PURE__ */
|
|
2176
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
|
|
2230
2177
|
ListItemButton,
|
|
2231
2178
|
{
|
|
2232
2179
|
id: labelId,
|
|
@@ -2234,7 +2181,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2234
2181
|
onClick: handleClick,
|
|
2235
2182
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2236
2183
|
},
|
|
2237
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ React21.createElement(Stack6, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React21.createElement(
|
|
2238
2185
|
ListItemText,
|
|
2239
2186
|
{
|
|
2240
2187
|
secondary: title,
|
|
@@ -2242,8 +2189,8 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2242
2189
|
sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
|
|
2243
2190
|
}
|
|
2244
2191
|
), getCollapsibleValue(titleEnd, isOpen)),
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
), /* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ React21.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
2193
|
+
), /* @__PURE__ */ React21.createElement(
|
|
2247
2194
|
Collapse2,
|
|
2248
2195
|
{
|
|
2249
2196
|
id: contentId,
|
|
@@ -2252,15 +2199,15 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2252
2199
|
timeout: "auto",
|
|
2253
2200
|
unmountOnExit
|
|
2254
2201
|
},
|
|
2255
|
-
/* @__PURE__ */
|
|
2256
|
-
), /* @__PURE__ */
|
|
2202
|
+
/* @__PURE__ */ React21.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React21.createElement(Stack6, { ref, gap: 2.5, p: 2 }, children))
|
|
2203
|
+
), /* @__PURE__ */ React21.createElement(Divider2, null));
|
|
2257
2204
|
}
|
|
2258
2205
|
|
|
2259
2206
|
// src/components/sections-list.tsx
|
|
2260
|
-
import * as
|
|
2207
|
+
import * as React22 from "react";
|
|
2261
2208
|
import { List } from "@elementor/ui";
|
|
2262
2209
|
function SectionsList(props) {
|
|
2263
|
-
return /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ React22.createElement(List, { disablePadding: true, component: "div", ...props });
|
|
2264
2211
|
}
|
|
2265
2212
|
|
|
2266
2213
|
// src/components/settings-tab.tsx
|
|
@@ -2268,12 +2215,12 @@ var SettingsTab = () => {
|
|
|
2268
2215
|
const { elementType, element } = useElement();
|
|
2269
2216
|
const settingsDefault = useDefaultPanelSettings();
|
|
2270
2217
|
const isDefaultExpanded = (sectionId) => settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2271
|
-
return /* @__PURE__ */
|
|
2218
|
+
return /* @__PURE__ */ React23.createElement(SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React23.createElement(SectionsList, null, elementType.controls.map(({ type, value }, index) => {
|
|
2272
2219
|
if (type === "control") {
|
|
2273
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ React23.createElement(Control2, { key: value.bind, control: value });
|
|
2274
2221
|
}
|
|
2275
2222
|
if (type === "section") {
|
|
2276
|
-
return /* @__PURE__ */
|
|
2223
|
+
return /* @__PURE__ */ React23.createElement(
|
|
2277
2224
|
Section,
|
|
2278
2225
|
{
|
|
2279
2226
|
title: value.label,
|
|
@@ -2282,7 +2229,7 @@ var SettingsTab = () => {
|
|
|
2282
2229
|
},
|
|
2283
2230
|
value.items?.map((item) => {
|
|
2284
2231
|
if (item.type === "control") {
|
|
2285
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ React23.createElement(Control2, { key: item.value.bind, control: item.value });
|
|
2286
2233
|
}
|
|
2287
2234
|
return null;
|
|
2288
2235
|
})
|
|
@@ -2300,7 +2247,7 @@ var Control2 = ({ control }) => {
|
|
|
2300
2247
|
if (layout === "custom") {
|
|
2301
2248
|
controlProps.label = control.label;
|
|
2302
2249
|
}
|
|
2303
|
-
return /* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ React23.createElement(SettingsField, { bind: control.bind, propDisplayName: control.label || control.bind }, control.meta?.topDivider && /* @__PURE__ */ React23.createElement(Divider3, null), /* @__PURE__ */ React23.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React23.createElement(ControlFormLabel, null, control.label) : null, /* @__PURE__ */ React23.createElement(Control, { type: control.type, props: controlProps })));
|
|
2304
2251
|
};
|
|
2305
2252
|
function populateChildControlProps(props) {
|
|
2306
2253
|
if (props.childControlType) {
|
|
@@ -2319,18 +2266,17 @@ function populateChildControlProps(props) {
|
|
|
2319
2266
|
}
|
|
2320
2267
|
|
|
2321
2268
|
// src/components/style-tab.tsx
|
|
2322
|
-
import * as
|
|
2323
|
-
import { useState as
|
|
2269
|
+
import * as React87 from "react";
|
|
2270
|
+
import { useState as useState12 } from "react";
|
|
2324
2271
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2325
2272
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
2326
|
-
import { EXPERIMENTAL_FEATURES, isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
2327
2273
|
import { createLocation as createLocation3 } from "@elementor/locations";
|
|
2328
2274
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
2329
|
-
import { Box as Box7, Divider as Divider5, Stack as
|
|
2330
|
-
import { __ as
|
|
2275
|
+
import { Box as Box7, Divider as Divider5, Stack as Stack14 } from "@elementor/ui";
|
|
2276
|
+
import { __ as __59 } from "@wordpress/i18n";
|
|
2331
2277
|
|
|
2332
2278
|
// src/contexts/styles-inheritance-context.tsx
|
|
2333
|
-
import * as
|
|
2279
|
+
import * as React24 from "react";
|
|
2334
2280
|
import { createContext as createContext8, useContext as useContext8 } from "react";
|
|
2335
2281
|
import { getWidgetsCache, useElementSetting as useElementSetting2 } from "@elementor/editor-elements";
|
|
2336
2282
|
import { classesPropTypeUtil as classesPropTypeUtil3 } from "@elementor/editor-props";
|
|
@@ -2569,7 +2515,7 @@ function StyleInheritanceProvider({ children }) {
|
|
|
2569
2515
|
const styleDefs = useAppliedStyles();
|
|
2570
2516
|
const breakpointsTree = getBreakpointsTree();
|
|
2571
2517
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
2572
|
-
return /* @__PURE__ */
|
|
2518
|
+
return /* @__PURE__ */ React24.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
2573
2519
|
}
|
|
2574
2520
|
function useStylesInheritanceSnapshot() {
|
|
2575
2521
|
const context = useContext8(Context4);
|
|
@@ -2638,13 +2584,13 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
2638
2584
|
}
|
|
2639
2585
|
|
|
2640
2586
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2641
|
-
import * as
|
|
2587
|
+
import * as React32 from "react";
|
|
2642
2588
|
import { BackgroundControl } from "@elementor/editor-controls";
|
|
2643
|
-
import { __ as
|
|
2589
|
+
import { __ as __14 } from "@wordpress/i18n";
|
|
2644
2590
|
|
|
2645
2591
|
// src/controls-registry/styles-field.tsx
|
|
2646
|
-
import * as
|
|
2647
|
-
import { ControlAdornmentsProvider
|
|
2592
|
+
import * as React31 from "react";
|
|
2593
|
+
import { ControlAdornmentsProvider, PropKeyProvider as PropKeyProvider2, PropProvider as PropProvider2 } from "@elementor/editor-controls";
|
|
2648
2594
|
import { getStylesSchema as getStylesSchema2 } from "@elementor/editor-styles";
|
|
2649
2595
|
|
|
2650
2596
|
// src/hooks/use-styles-field.ts
|
|
@@ -2658,15 +2604,15 @@ function useStylesField(propName, meta) {
|
|
|
2658
2604
|
}
|
|
2659
2605
|
|
|
2660
2606
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
2661
|
-
import * as
|
|
2607
|
+
import * as React30 from "react";
|
|
2662
2608
|
import { useBoundProp } from "@elementor/editor-controls";
|
|
2663
2609
|
import { isEmpty as isEmpty2 } from "@elementor/editor-props";
|
|
2664
2610
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
2665
|
-
import { __ as
|
|
2611
|
+
import { __ as __13 } from "@wordpress/i18n";
|
|
2666
2612
|
|
|
2667
2613
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
2668
|
-
import * as
|
|
2669
|
-
import { useMemo as useMemo7, useState as
|
|
2614
|
+
import * as React29 from "react";
|
|
2615
|
+
import { useMemo as useMemo7, useState as useState9 } from "react";
|
|
2670
2616
|
import { createPropsResolver } from "@elementor/editor-canvas";
|
|
2671
2617
|
import { PopoverHeader } from "@elementor/editor-ui";
|
|
2672
2618
|
import {
|
|
@@ -2677,10 +2623,10 @@ import {
|
|
|
2677
2623
|
ClickAwayListener,
|
|
2678
2624
|
IconButton as IconButton3,
|
|
2679
2625
|
Infotip,
|
|
2680
|
-
Stack as
|
|
2626
|
+
Stack as Stack7,
|
|
2681
2627
|
Tooltip as Tooltip5
|
|
2682
2628
|
} from "@elementor/ui";
|
|
2683
|
-
import { __ as
|
|
2629
|
+
import { __ as __12 } from "@wordpress/i18n";
|
|
2684
2630
|
|
|
2685
2631
|
// src/hooks/use-direction.ts
|
|
2686
2632
|
import { useTheme } from "@elementor/ui";
|
|
@@ -2691,12 +2637,12 @@ function useDirection() {
|
|
|
2691
2637
|
}
|
|
2692
2638
|
|
|
2693
2639
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
2694
|
-
import { isValidElement, useEffect as useEffect4, useState as
|
|
2640
|
+
import { isValidElement, useEffect as useEffect4, useState as useState8 } from "react";
|
|
2695
2641
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
2696
|
-
import { __ as
|
|
2642
|
+
import { __ as __10 } from "@wordpress/i18n";
|
|
2697
2643
|
var MAXIMUM_ITEMS = 2;
|
|
2698
2644
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
2699
|
-
const [items3, setItems] =
|
|
2645
|
+
const [items3, setItems] = useState8([]);
|
|
2700
2646
|
useEffect4(() => {
|
|
2701
2647
|
(async () => {
|
|
2702
2648
|
const normalizedItems = await Promise.all(
|
|
@@ -2704,7 +2650,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
2704
2650
|
);
|
|
2705
2651
|
const validItems = normalizedItems.map((item) => ({
|
|
2706
2652
|
...item,
|
|
2707
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
2653
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __10("Base", "elementor")
|
|
2708
2654
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
2709
2655
|
setItems(validItems);
|
|
2710
2656
|
})();
|
|
@@ -2753,7 +2699,7 @@ import { createTransformersRegistry } from "@elementor/editor-canvas";
|
|
|
2753
2699
|
var stylesInheritanceTransformersRegistry = createTransformersRegistry();
|
|
2754
2700
|
|
|
2755
2701
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
2756
|
-
import * as
|
|
2702
|
+
import * as React25 from "react";
|
|
2757
2703
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
2758
2704
|
import {
|
|
2759
2705
|
DesktopIcon,
|
|
@@ -2784,20 +2730,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
2784
2730
|
return null;
|
|
2785
2731
|
}
|
|
2786
2732
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
2787
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ React25.createElement(Tooltip3, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React25.createElement(IconComponent, { fontSize: SIZE3, sx: { mt: "2px" } }));
|
|
2788
2734
|
};
|
|
2789
2735
|
|
|
2790
2736
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
2791
|
-
import * as
|
|
2737
|
+
import * as React26 from "react";
|
|
2792
2738
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
2793
2739
|
import { InfoCircleIcon } from "@elementor/icons";
|
|
2794
2740
|
import { Chip as Chip4, Tooltip as Tooltip4 } from "@elementor/ui";
|
|
2795
|
-
import { __ as
|
|
2741
|
+
import { __ as __11 } from "@wordpress/i18n";
|
|
2796
2742
|
var SIZE4 = "tiny";
|
|
2797
2743
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
2798
2744
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
2799
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
2800
|
-
return /* @__PURE__ */
|
|
2745
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React26.createElement(Tooltip4, { title: __11("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React26.createElement(InfoCircleIcon, { fontSize: SIZE4 })) : void 0;
|
|
2746
|
+
return /* @__PURE__ */ React26.createElement(
|
|
2801
2747
|
Chip4,
|
|
2802
2748
|
{
|
|
2803
2749
|
label: displayLabel,
|
|
@@ -2823,10 +2769,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
2823
2769
|
};
|
|
2824
2770
|
|
|
2825
2771
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
2826
|
-
import * as
|
|
2772
|
+
import * as React27 from "react";
|
|
2827
2773
|
import { Typography as Typography4 } from "@elementor/ui";
|
|
2828
2774
|
var ValueComponent = ({ index, value }) => {
|
|
2829
|
-
return /* @__PURE__ */
|
|
2775
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2830
2776
|
Typography4,
|
|
2831
2777
|
{
|
|
2832
2778
|
variant: "caption",
|
|
@@ -2845,9 +2791,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
2845
2791
|
};
|
|
2846
2792
|
|
|
2847
2793
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
2848
|
-
import * as
|
|
2794
|
+
import * as React28 from "react";
|
|
2849
2795
|
import { Box as Box5 } from "@elementor/ui";
|
|
2850
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
2796
|
+
var ActionIcons = () => /* @__PURE__ */ React28.createElement(Box5, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
2851
2797
|
|
|
2852
2798
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
2853
2799
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -2859,7 +2805,7 @@ var StylesInheritanceInfotip = ({
|
|
|
2859
2805
|
children,
|
|
2860
2806
|
isDisabled
|
|
2861
2807
|
}) => {
|
|
2862
|
-
const [showInfotip, setShowInfotip] =
|
|
2808
|
+
const [showInfotip, setShowInfotip] = useState9(false);
|
|
2863
2809
|
const toggleInfotip = () => {
|
|
2864
2810
|
if (isDisabled) {
|
|
2865
2811
|
return;
|
|
@@ -2881,7 +2827,7 @@ var StylesInheritanceInfotip = ({
|
|
|
2881
2827
|
});
|
|
2882
2828
|
}, [key, propType]);
|
|
2883
2829
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
2884
|
-
const infotipContent = /* @__PURE__ */
|
|
2830
|
+
const infotipContent = /* @__PURE__ */ React29.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React29.createElement(
|
|
2885
2831
|
Card,
|
|
2886
2832
|
{
|
|
2887
2833
|
elevation: 0,
|
|
@@ -2894,7 +2840,7 @@ var StylesInheritanceInfotip = ({
|
|
|
2894
2840
|
flexDirection: "column"
|
|
2895
2841
|
}
|
|
2896
2842
|
},
|
|
2897
|
-
/* @__PURE__ */
|
|
2843
|
+
/* @__PURE__ */ React29.createElement(
|
|
2898
2844
|
Box6,
|
|
2899
2845
|
{
|
|
2900
2846
|
sx: {
|
|
@@ -2904,9 +2850,9 @@ var StylesInheritanceInfotip = ({
|
|
|
2904
2850
|
backgroundColor: "background.paper"
|
|
2905
2851
|
}
|
|
2906
2852
|
},
|
|
2907
|
-
/* @__PURE__ */
|
|
2853
|
+
/* @__PURE__ */ React29.createElement(PopoverHeader, { title: __12("Style origin", "elementor"), onClose: closeInfotip })
|
|
2908
2854
|
),
|
|
2909
|
-
/* @__PURE__ */
|
|
2855
|
+
/* @__PURE__ */ React29.createElement(
|
|
2910
2856
|
CardContent,
|
|
2911
2857
|
{
|
|
2912
2858
|
sx: {
|
|
@@ -2920,29 +2866,29 @@ var StylesInheritanceInfotip = ({
|
|
|
2920
2866
|
}
|
|
2921
2867
|
}
|
|
2922
2868
|
},
|
|
2923
|
-
/* @__PURE__ */
|
|
2924
|
-
return /* @__PURE__ */
|
|
2869
|
+
/* @__PURE__ */ React29.createElement(Stack7, { gap: 1.5, sx: { pl: 3, pr: 1, pb: 2 }, role: "list" }, items3.map((item, index) => {
|
|
2870
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2925
2871
|
Box6,
|
|
2926
2872
|
{
|
|
2927
2873
|
key: item.id,
|
|
2928
2874
|
display: "flex",
|
|
2929
2875
|
gap: 0.5,
|
|
2930
2876
|
role: "listitem",
|
|
2931
|
-
"aria-label":
|
|
2877
|
+
"aria-label": __12("Inheritance item: %s", "elementor").replace(
|
|
2932
2878
|
"%s",
|
|
2933
2879
|
item.displayLabel
|
|
2934
2880
|
)
|
|
2935
2881
|
},
|
|
2936
|
-
/* @__PURE__ */
|
|
2937
|
-
/* @__PURE__ */
|
|
2882
|
+
/* @__PURE__ */ React29.createElement(Box6, { display: "flex", gap: 0.5, sx: { flexWrap: "wrap", width: "100%" } }, /* @__PURE__ */ React29.createElement(BreakpointIcon, { breakpoint: item.breakpoint }), /* @__PURE__ */ React29.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }), /* @__PURE__ */ React29.createElement(ValueComponent, { index, value: item.value })),
|
|
2883
|
+
/* @__PURE__ */ React29.createElement(ActionIcons, null)
|
|
2938
2884
|
);
|
|
2939
2885
|
}))
|
|
2940
2886
|
)
|
|
2941
2887
|
));
|
|
2942
2888
|
if (isDisabled) {
|
|
2943
|
-
return /* @__PURE__ */
|
|
2889
|
+
return /* @__PURE__ */ React29.createElement(Box6, { sx: { display: "inline-flex" } }, children);
|
|
2944
2890
|
}
|
|
2945
|
-
return /* @__PURE__ */
|
|
2891
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2946
2892
|
TooltipOrInfotip,
|
|
2947
2893
|
{
|
|
2948
2894
|
showInfotip,
|
|
@@ -2950,7 +2896,7 @@ var StylesInheritanceInfotip = ({
|
|
|
2950
2896
|
infotipContent,
|
|
2951
2897
|
isDisabled
|
|
2952
2898
|
},
|
|
2953
|
-
/* @__PURE__ */
|
|
2899
|
+
/* @__PURE__ */ React29.createElement(IconButton3, { onClick: toggleInfotip, "aria-label": label, sx: { my: "-1px" }, disabled: isDisabled }, children)
|
|
2954
2900
|
);
|
|
2955
2901
|
};
|
|
2956
2902
|
function TooltipOrInfotip({
|
|
@@ -2964,10 +2910,10 @@ function TooltipOrInfotip({
|
|
|
2964
2910
|
const isSiteRtl = direction.isSiteRtl;
|
|
2965
2911
|
const forceInfotipAlignLeft = isSiteRtl ? 9999999 : -9999999;
|
|
2966
2912
|
if (isDisabled) {
|
|
2967
|
-
return /* @__PURE__ */
|
|
2913
|
+
return /* @__PURE__ */ React29.createElement(Box6, { sx: { display: "inline-flex" } }, children);
|
|
2968
2914
|
}
|
|
2969
2915
|
if (showInfotip) {
|
|
2970
|
-
return /* @__PURE__ */
|
|
2916
|
+
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
|
|
2971
2917
|
Backdrop,
|
|
2972
2918
|
{
|
|
2973
2919
|
open: showInfotip,
|
|
@@ -2977,7 +2923,7 @@ function TooltipOrInfotip({
|
|
|
2977
2923
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
2978
2924
|
}
|
|
2979
2925
|
}
|
|
2980
|
-
), /* @__PURE__ */
|
|
2926
|
+
), /* @__PURE__ */ React29.createElement(
|
|
2981
2927
|
Infotip,
|
|
2982
2928
|
{
|
|
2983
2929
|
placement: "top",
|
|
@@ -3004,7 +2950,7 @@ function TooltipOrInfotip({
|
|
|
3004
2950
|
children
|
|
3005
2951
|
));
|
|
3006
2952
|
}
|
|
3007
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ React29.createElement(Tooltip5, { title: __12("Style origin", "elementor"), placement: "top" }, children);
|
|
3008
2954
|
}
|
|
3009
2955
|
|
|
3010
2956
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -3019,7 +2965,7 @@ var StylesInheritanceIndicator = ({
|
|
|
3019
2965
|
return null;
|
|
3020
2966
|
}
|
|
3021
2967
|
const isDisabled = path.some((pathItem) => disabledControls.includes(pathItem));
|
|
3022
|
-
return /* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ React30.createElement(
|
|
3023
2969
|
Indicator,
|
|
3024
2970
|
{
|
|
3025
2971
|
inheritanceChain,
|
|
@@ -3043,7 +2989,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
3043
2989
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
3044
2990
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
3045
2991
|
};
|
|
3046
|
-
return /* @__PURE__ */
|
|
2992
|
+
return /* @__PURE__ */ React30.createElement(
|
|
3047
2993
|
StylesInheritanceInfotip,
|
|
3048
2994
|
{
|
|
3049
2995
|
inheritanceChain,
|
|
@@ -3052,17 +2998,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
3052
2998
|
label,
|
|
3053
2999
|
isDisabled
|
|
3054
3000
|
},
|
|
3055
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ React30.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
3056
3002
|
);
|
|
3057
3003
|
};
|
|
3058
3004
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
3059
3005
|
if (isFinalValue) {
|
|
3060
|
-
return
|
|
3006
|
+
return __13("This is the final value", "elementor");
|
|
3061
3007
|
}
|
|
3062
3008
|
if (hasValue) {
|
|
3063
|
-
return
|
|
3009
|
+
return __13("This value is overridden by another style", "elementor");
|
|
3064
3010
|
}
|
|
3065
|
-
return
|
|
3011
|
+
return __13("This has value from another style", "elementor");
|
|
3066
3012
|
};
|
|
3067
3013
|
|
|
3068
3014
|
// src/controls-registry/conditional-field.tsx
|
|
@@ -3095,8 +3041,8 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3095
3041
|
const setValue = (newValue) => {
|
|
3096
3042
|
fields.setValue(newValue[bind]);
|
|
3097
3043
|
};
|
|
3098
|
-
return /* @__PURE__ */
|
|
3099
|
-
|
|
3044
|
+
return /* @__PURE__ */ React31.createElement(
|
|
3045
|
+
ControlAdornmentsProvider,
|
|
3100
3046
|
{
|
|
3101
3047
|
items: [
|
|
3102
3048
|
{
|
|
@@ -3105,7 +3051,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3105
3051
|
}
|
|
3106
3052
|
]
|
|
3107
3053
|
},
|
|
3108
|
-
/* @__PURE__ */
|
|
3054
|
+
/* @__PURE__ */ React31.createElement(
|
|
3109
3055
|
PropProvider2,
|
|
3110
3056
|
{
|
|
3111
3057
|
propType,
|
|
@@ -3114,34 +3060,34 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3114
3060
|
placeholder: placeholderValues,
|
|
3115
3061
|
isDisabled: () => !canEdit
|
|
3116
3062
|
},
|
|
3117
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ React31.createElement(PropKeyProvider2, { bind }, /* @__PURE__ */ React31.createElement(ConditionalField, null, children))
|
|
3118
3064
|
)
|
|
3119
3065
|
);
|
|
3120
3066
|
};
|
|
3121
3067
|
|
|
3122
3068
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3123
|
-
var BACKGROUND_LABEL =
|
|
3069
|
+
var BACKGROUND_LABEL = __14("Background", "elementor");
|
|
3124
3070
|
var BackgroundSection = () => {
|
|
3125
|
-
return /* @__PURE__ */
|
|
3071
|
+
return /* @__PURE__ */ React32.createElement(SectionContent, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React32.createElement(BackgroundControl, null)));
|
|
3126
3072
|
};
|
|
3127
3073
|
|
|
3128
3074
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3129
|
-
import * as
|
|
3075
|
+
import * as React43 from "react";
|
|
3130
3076
|
|
|
3131
3077
|
// src/components/panel-divider.tsx
|
|
3132
|
-
import * as
|
|
3078
|
+
import * as React33 from "react";
|
|
3133
3079
|
import { Divider as Divider4 } from "@elementor/ui";
|
|
3134
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3080
|
+
var PanelDivider = () => /* @__PURE__ */ React33.createElement(Divider4, { sx: { my: 0.5 } });
|
|
3135
3081
|
|
|
3136
3082
|
// src/components/style-sections/border-section/border-field.tsx
|
|
3137
|
-
import * as
|
|
3138
|
-
import { ControlFormLabel as
|
|
3139
|
-
import { __ as
|
|
3083
|
+
import * as React40 from "react";
|
|
3084
|
+
import { ControlFormLabel as ControlFormLabel3 } from "@elementor/editor-controls";
|
|
3085
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
3140
3086
|
|
|
3141
3087
|
// src/components/add-or-remove-content.tsx
|
|
3142
|
-
import * as
|
|
3088
|
+
import * as React34 from "react";
|
|
3143
3089
|
import { MinusIcon, PlusIcon } from "@elementor/icons";
|
|
3144
|
-
import { Collapse as Collapse3, IconButton as IconButton4, Stack as
|
|
3090
|
+
import { Collapse as Collapse3, IconButton as IconButton4, Stack as Stack8 } from "@elementor/ui";
|
|
3145
3091
|
var SIZE5 = "tiny";
|
|
3146
3092
|
var AddOrRemoveContent = ({
|
|
3147
3093
|
isAdded,
|
|
@@ -3151,8 +3097,8 @@ var AddOrRemoveContent = ({
|
|
|
3151
3097
|
disabled,
|
|
3152
3098
|
renderLabel
|
|
3153
3099
|
}) => {
|
|
3154
|
-
return /* @__PURE__ */
|
|
3155
|
-
|
|
3100
|
+
return /* @__PURE__ */ React34.createElement(SectionContent, null, /* @__PURE__ */ React34.createElement(
|
|
3101
|
+
Stack8,
|
|
3156
3102
|
{
|
|
3157
3103
|
direction: "row",
|
|
3158
3104
|
sx: {
|
|
@@ -3162,36 +3108,36 @@ var AddOrRemoveContent = ({
|
|
|
3162
3108
|
}
|
|
3163
3109
|
},
|
|
3164
3110
|
renderLabel(),
|
|
3165
|
-
isAdded ? /* @__PURE__ */
|
|
3166
|
-
), /* @__PURE__ */
|
|
3111
|
+
isAdded ? /* @__PURE__ */ React34.createElement(IconButton4, { size: SIZE5, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React34.createElement(MinusIcon, { fontSize: SIZE5 })) : /* @__PURE__ */ React34.createElement(IconButton4, { size: SIZE5, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React34.createElement(PlusIcon, { fontSize: SIZE5 }))
|
|
3112
|
+
), /* @__PURE__ */ React34.createElement(Collapse3, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React34.createElement(SectionContent, null, children)));
|
|
3167
3113
|
};
|
|
3168
3114
|
|
|
3169
3115
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3170
|
-
import * as
|
|
3116
|
+
import * as React37 from "react";
|
|
3171
3117
|
import { ColorControl } from "@elementor/editor-controls";
|
|
3172
|
-
import { __ as
|
|
3118
|
+
import { __ as __15 } from "@wordpress/i18n";
|
|
3173
3119
|
|
|
3174
3120
|
// src/components/styles-field-layout.tsx
|
|
3175
|
-
import * as
|
|
3176
|
-
import { Grid, Stack as
|
|
3121
|
+
import * as React36 from "react";
|
|
3122
|
+
import { Grid, Stack as Stack10 } from "@elementor/ui";
|
|
3177
3123
|
|
|
3178
3124
|
// src/components/control-label.tsx
|
|
3179
|
-
import * as
|
|
3180
|
-
import { ControlAdornments
|
|
3181
|
-
import { Stack as
|
|
3125
|
+
import * as React35 from "react";
|
|
3126
|
+
import { ControlAdornments, ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3127
|
+
import { Stack as Stack9 } from "@elementor/ui";
|
|
3182
3128
|
var ControlLabel = ({ children }) => {
|
|
3183
|
-
return /* @__PURE__ */
|
|
3129
|
+
return /* @__PURE__ */ React35.createElement(Stack9, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React35.createElement(ControlFormLabel2, null, children), /* @__PURE__ */ React35.createElement(ControlAdornments, null));
|
|
3184
3130
|
};
|
|
3185
3131
|
|
|
3186
3132
|
// src/components/styles-field-layout.tsx
|
|
3187
|
-
var StylesFieldLayout =
|
|
3133
|
+
var StylesFieldLayout = React36.forwardRef((props, ref) => {
|
|
3188
3134
|
const { direction = "row", children, label } = props;
|
|
3189
3135
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3190
|
-
return /* @__PURE__ */
|
|
3136
|
+
return /* @__PURE__ */ React36.createElement(LayoutComponent, { label, ref, children });
|
|
3191
3137
|
});
|
|
3192
|
-
var Row =
|
|
3138
|
+
var Row = React36.forwardRef(
|
|
3193
3139
|
({ label, children }, ref) => {
|
|
3194
|
-
return /* @__PURE__ */
|
|
3140
|
+
return /* @__PURE__ */ React36.createElement(Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref }, /* @__PURE__ */ React36.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(ControlLabel, null, label)), /* @__PURE__ */ React36.createElement(
|
|
3195
3141
|
Grid,
|
|
3196
3142
|
{
|
|
3197
3143
|
item: true,
|
|
@@ -3204,82 +3150,82 @@ var Row = React39.forwardRef(
|
|
|
3204
3150
|
));
|
|
3205
3151
|
}
|
|
3206
3152
|
);
|
|
3207
|
-
var Column =
|
|
3153
|
+
var Column = React36.forwardRef(
|
|
3208
3154
|
({ label, children }, ref) => {
|
|
3209
|
-
return /* @__PURE__ */
|
|
3155
|
+
return /* @__PURE__ */ React36.createElement(Stack10, { gap: 0.75, ref }, /* @__PURE__ */ React36.createElement(ControlLabel, null, label), children);
|
|
3210
3156
|
}
|
|
3211
3157
|
);
|
|
3212
3158
|
|
|
3213
3159
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3214
|
-
var BORDER_COLOR_LABEL =
|
|
3215
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3160
|
+
var BORDER_COLOR_LABEL = __15("Border color", "elementor");
|
|
3161
|
+
var BorderColorField = () => /* @__PURE__ */ React37.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React37.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React37.createElement(ColorControl, null)));
|
|
3216
3162
|
|
|
3217
3163
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3218
|
-
import * as
|
|
3164
|
+
import * as React38 from "react";
|
|
3219
3165
|
import { SelectControl as SelectControl2 } from "@elementor/editor-controls";
|
|
3220
|
-
import { __ as
|
|
3221
|
-
var BORDER_TYPE_LABEL =
|
|
3166
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
3167
|
+
var BORDER_TYPE_LABEL = __16("Border type", "elementor");
|
|
3222
3168
|
var borderStyles = [
|
|
3223
|
-
{ value: "none", label:
|
|
3224
|
-
{ value: "solid", label:
|
|
3225
|
-
{ value: "dashed", label:
|
|
3226
|
-
{ value: "dotted", label:
|
|
3227
|
-
{ value: "double", label:
|
|
3228
|
-
{ value: "groove", label:
|
|
3229
|
-
{ value: "ridge", label:
|
|
3230
|
-
{ value: "inset", label:
|
|
3231
|
-
{ value: "outset", label:
|
|
3169
|
+
{ value: "none", label: __16("None", "elementor") },
|
|
3170
|
+
{ value: "solid", label: __16("Solid", "elementor") },
|
|
3171
|
+
{ value: "dashed", label: __16("Dashed", "elementor") },
|
|
3172
|
+
{ value: "dotted", label: __16("Dotted", "elementor") },
|
|
3173
|
+
{ value: "double", label: __16("Double", "elementor") },
|
|
3174
|
+
{ value: "groove", label: __16("Groove", "elementor") },
|
|
3175
|
+
{ value: "ridge", label: __16("Ridge", "elementor") },
|
|
3176
|
+
{ value: "inset", label: __16("Inset", "elementor") },
|
|
3177
|
+
{ value: "outset", label: __16("Outset", "elementor") }
|
|
3232
3178
|
];
|
|
3233
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3179
|
+
var BorderStyleField = () => /* @__PURE__ */ React38.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React38.createElement(SelectControl2, { options: borderStyles })));
|
|
3234
3180
|
|
|
3235
3181
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3236
|
-
import * as
|
|
3182
|
+
import * as React39 from "react";
|
|
3237
3183
|
import { EqualUnequalSizesControl } from "@elementor/editor-controls";
|
|
3238
3184
|
import { borderWidthPropTypeUtil } from "@elementor/editor-props";
|
|
3239
3185
|
import { SideAllIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
3240
3186
|
import { withDirection } from "@elementor/ui";
|
|
3241
|
-
import { __ as
|
|
3242
|
-
var BORDER_WIDTH_LABEL =
|
|
3187
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
3188
|
+
var BORDER_WIDTH_LABEL = __17("Border width", "elementor");
|
|
3243
3189
|
var InlineStartIcon = withDirection(SideRightIcon);
|
|
3244
3190
|
var InlineEndIcon = withDirection(SideLeftIcon);
|
|
3245
3191
|
var getEdges = (isSiteRtl) => [
|
|
3246
3192
|
{
|
|
3247
|
-
label:
|
|
3248
|
-
icon: /* @__PURE__ */
|
|
3193
|
+
label: __17("Top", "elementor"),
|
|
3194
|
+
icon: /* @__PURE__ */ React39.createElement(SideTopIcon, { fontSize: "tiny" }),
|
|
3249
3195
|
bind: "block-start"
|
|
3250
3196
|
},
|
|
3251
3197
|
{
|
|
3252
|
-
label: isSiteRtl ?
|
|
3253
|
-
icon: /* @__PURE__ */
|
|
3198
|
+
label: isSiteRtl ? __17("Left", "elementor") : __17("Right", "elementor"),
|
|
3199
|
+
icon: /* @__PURE__ */ React39.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3254
3200
|
bind: "inline-end"
|
|
3255
3201
|
},
|
|
3256
3202
|
{
|
|
3257
|
-
label:
|
|
3258
|
-
icon: /* @__PURE__ */
|
|
3203
|
+
label: __17("Bottom", "elementor"),
|
|
3204
|
+
icon: /* @__PURE__ */ React39.createElement(SideBottomIcon, { fontSize: "tiny" }),
|
|
3259
3205
|
bind: "block-end"
|
|
3260
3206
|
},
|
|
3261
3207
|
{
|
|
3262
|
-
label: isSiteRtl ?
|
|
3263
|
-
icon: /* @__PURE__ */
|
|
3208
|
+
label: isSiteRtl ? __17("Right", "elementor") : __17("Left", "elementor"),
|
|
3209
|
+
icon: /* @__PURE__ */ React39.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3264
3210
|
bind: "inline-start"
|
|
3265
3211
|
}
|
|
3266
3212
|
];
|
|
3267
3213
|
var BorderWidthField = () => {
|
|
3268
3214
|
const { isSiteRtl } = useDirection();
|
|
3269
|
-
return /* @__PURE__ */
|
|
3215
|
+
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3270
3216
|
EqualUnequalSizesControl,
|
|
3271
3217
|
{
|
|
3272
3218
|
items: getEdges(isSiteRtl),
|
|
3273
3219
|
label: BORDER_WIDTH_LABEL,
|
|
3274
|
-
icon: /* @__PURE__ */
|
|
3275
|
-
tooltipLabel:
|
|
3220
|
+
icon: /* @__PURE__ */ React39.createElement(SideAllIcon, { fontSize: "tiny" }),
|
|
3221
|
+
tooltipLabel: __17("Adjust borders", "elementor"),
|
|
3276
3222
|
multiSizePropTypeUtil: borderWidthPropTypeUtil
|
|
3277
3223
|
}
|
|
3278
3224
|
));
|
|
3279
3225
|
};
|
|
3280
3226
|
|
|
3281
3227
|
// src/components/style-sections/border-section/border-field.tsx
|
|
3282
|
-
var BORDER_LABEL =
|
|
3228
|
+
var BORDER_LABEL = __18("Border", "elementor");
|
|
3283
3229
|
var initialBorder = {
|
|
3284
3230
|
"border-width": { $$type: "size", value: { size: 1, unit: "px" } },
|
|
3285
3231
|
"border-color": { $$type: "color", value: "#000000" },
|
|
@@ -3302,23 +3248,23 @@ var BorderField = () => {
|
|
|
3302
3248
|
);
|
|
3303
3249
|
};
|
|
3304
3250
|
const hasBorder = Object.values(values ?? {}).some(Boolean);
|
|
3305
|
-
return /* @__PURE__ */
|
|
3251
|
+
return /* @__PURE__ */ React40.createElement(
|
|
3306
3252
|
AddOrRemoveContent,
|
|
3307
3253
|
{
|
|
3308
3254
|
isAdded: hasBorder,
|
|
3309
3255
|
onAdd: addBorder,
|
|
3310
3256
|
onRemove: removeBorder,
|
|
3311
3257
|
disabled: !canEdit,
|
|
3312
|
-
renderLabel: () => /* @__PURE__ */
|
|
3258
|
+
renderLabel: () => /* @__PURE__ */ React40.createElement(ControlFormLabel3, null, BORDER_LABEL)
|
|
3313
3259
|
},
|
|
3314
|
-
/* @__PURE__ */
|
|
3315
|
-
/* @__PURE__ */
|
|
3316
|
-
/* @__PURE__ */
|
|
3260
|
+
/* @__PURE__ */ React40.createElement(BorderWidthField, null),
|
|
3261
|
+
/* @__PURE__ */ React40.createElement(BorderColorField, null),
|
|
3262
|
+
/* @__PURE__ */ React40.createElement(BorderStyleField, null)
|
|
3317
3263
|
);
|
|
3318
3264
|
};
|
|
3319
3265
|
|
|
3320
3266
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3321
|
-
import * as
|
|
3267
|
+
import * as React42 from "react";
|
|
3322
3268
|
import { EqualUnequalSizesControl as EqualUnequalSizesControl2 } from "@elementor/editor-controls";
|
|
3323
3269
|
import { borderRadiusPropTypeUtil } from "@elementor/editor-props";
|
|
3324
3270
|
import {
|
|
@@ -3329,67 +3275,67 @@ import {
|
|
|
3329
3275
|
RadiusTopRightIcon
|
|
3330
3276
|
} from "@elementor/icons";
|
|
3331
3277
|
import { withDirection as withDirection2 } from "@elementor/ui";
|
|
3332
|
-
import { __ as
|
|
3278
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
3333
3279
|
|
|
3334
3280
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3335
|
-
import * as
|
|
3281
|
+
import * as React41 from "react";
|
|
3336
3282
|
import { DirectionProvider, ThemeProvider as ThemeProvider2 } from "@elementor/ui";
|
|
3337
3283
|
var UiProviders = ({ children }) => {
|
|
3338
3284
|
const { isSiteRtl } = useDirection();
|
|
3339
|
-
return /* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ React41.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React41.createElement(ThemeProvider2, null, children));
|
|
3340
3286
|
};
|
|
3341
3287
|
|
|
3342
3288
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3343
|
-
var BORDER_RADIUS_LABEL =
|
|
3289
|
+
var BORDER_RADIUS_LABEL = __19("Border radius", "elementor");
|
|
3344
3290
|
var StartStartIcon = withDirection2(RadiusTopLeftIcon);
|
|
3345
3291
|
var StartEndIcon = withDirection2(RadiusTopRightIcon);
|
|
3346
3292
|
var EndStartIcon = withDirection2(RadiusBottomLeftIcon);
|
|
3347
3293
|
var EndEndIcon = withDirection2(RadiusBottomRightIcon);
|
|
3348
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
3349
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
3350
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
3351
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
3294
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? __19("Top right", "elementor") : __19("Top left", "elementor");
|
|
3295
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? __19("Top left", "elementor") : __19("Top right", "elementor");
|
|
3296
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? __19("Bottom right", "elementor") : __19("Bottom left", "elementor");
|
|
3297
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? __19("Bottom left", "elementor") : __19("Bottom right", "elementor");
|
|
3352
3298
|
var getCorners = (isSiteRtl) => [
|
|
3353
3299
|
{
|
|
3354
3300
|
label: getStartStartLabel(isSiteRtl),
|
|
3355
|
-
icon: /* @__PURE__ */
|
|
3301
|
+
icon: /* @__PURE__ */ React42.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3356
3302
|
bind: "start-start"
|
|
3357
3303
|
},
|
|
3358
3304
|
{
|
|
3359
3305
|
label: getStartEndLabel(isSiteRtl),
|
|
3360
|
-
icon: /* @__PURE__ */
|
|
3306
|
+
icon: /* @__PURE__ */ React42.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3361
3307
|
bind: "start-end"
|
|
3362
3308
|
},
|
|
3363
3309
|
{
|
|
3364
3310
|
label: getEndStartLabel(isSiteRtl),
|
|
3365
|
-
icon: /* @__PURE__ */
|
|
3311
|
+
icon: /* @__PURE__ */ React42.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3366
3312
|
bind: "end-start"
|
|
3367
3313
|
},
|
|
3368
3314
|
{
|
|
3369
3315
|
label: getEndEndLabel(isSiteRtl),
|
|
3370
|
-
icon: /* @__PURE__ */
|
|
3316
|
+
icon: /* @__PURE__ */ React42.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3371
3317
|
bind: "end-end"
|
|
3372
3318
|
}
|
|
3373
3319
|
];
|
|
3374
3320
|
var BorderRadiusField = () => {
|
|
3375
3321
|
const { isSiteRtl } = useDirection();
|
|
3376
|
-
return /* @__PURE__ */
|
|
3322
|
+
return /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React42.createElement(
|
|
3377
3323
|
EqualUnequalSizesControl2,
|
|
3378
3324
|
{
|
|
3379
3325
|
items: getCorners(isSiteRtl),
|
|
3380
3326
|
label: BORDER_RADIUS_LABEL,
|
|
3381
|
-
icon: /* @__PURE__ */
|
|
3382
|
-
tooltipLabel:
|
|
3327
|
+
icon: /* @__PURE__ */ React42.createElement(BorderCornersIcon, { fontSize: "tiny" }),
|
|
3328
|
+
tooltipLabel: __19("Adjust corners", "elementor"),
|
|
3383
3329
|
multiSizePropTypeUtil: borderRadiusPropTypeUtil
|
|
3384
3330
|
}
|
|
3385
3331
|
)));
|
|
3386
3332
|
};
|
|
3387
3333
|
|
|
3388
3334
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3389
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3335
|
+
var BorderSection = () => /* @__PURE__ */ React43.createElement(SectionContent, null, /* @__PURE__ */ React43.createElement(BorderRadiusField, null), /* @__PURE__ */ React43.createElement(PanelDivider, null), /* @__PURE__ */ React43.createElement(BorderField, null));
|
|
3390
3336
|
|
|
3391
3337
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3392
|
-
import * as
|
|
3338
|
+
import * as React45 from "react";
|
|
3393
3339
|
import {
|
|
3394
3340
|
BoxShadowRepeaterControl,
|
|
3395
3341
|
FilterRepeaterControl,
|
|
@@ -3397,7 +3343,7 @@ import {
|
|
|
3397
3343
|
TransitionRepeaterControl
|
|
3398
3344
|
} from "@elementor/editor-controls";
|
|
3399
3345
|
import { useSelectedElement } from "@elementor/editor-elements";
|
|
3400
|
-
import { __ as
|
|
3346
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
3401
3347
|
|
|
3402
3348
|
// src/utils/get-recently-used-styles.ts
|
|
3403
3349
|
import { createPropsResolver as createPropsResolver2, styleTransformersRegistry } from "@elementor/editor-canvas";
|
|
@@ -3428,39 +3374,39 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3428
3374
|
};
|
|
3429
3375
|
|
|
3430
3376
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3431
|
-
import * as
|
|
3377
|
+
import * as React44 from "react";
|
|
3432
3378
|
import { useRef as useRef4 } from "react";
|
|
3433
3379
|
import { SizeControl as SizeControl2 } from "@elementor/editor-controls";
|
|
3434
|
-
import { __ as
|
|
3435
|
-
var OPACITY_LABEL =
|
|
3380
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
3381
|
+
var OPACITY_LABEL = __20("Opacity", "elementor");
|
|
3436
3382
|
var OpacityControlField = () => {
|
|
3437
3383
|
const rowRef = useRef4(null);
|
|
3438
|
-
return /* @__PURE__ */
|
|
3384
|
+
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React44.createElement(SizeControl2, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3439
3385
|
};
|
|
3440
3386
|
|
|
3441
3387
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3442
|
-
var BOX_SHADOW_LABEL =
|
|
3443
|
-
var FILTER_LABEL =
|
|
3444
|
-
var TRANSFORM_LABEL =
|
|
3445
|
-
var BACKDROP_FILTER_LABEL =
|
|
3446
|
-
var TRANSITIONS_LABEL =
|
|
3388
|
+
var BOX_SHADOW_LABEL = __21("Box shadow", "elementor");
|
|
3389
|
+
var FILTER_LABEL = __21("Filters", "elementor");
|
|
3390
|
+
var TRANSFORM_LABEL = __21("Transform", "elementor");
|
|
3391
|
+
var BACKDROP_FILTER_LABEL = __21("Backdrop filters", "elementor");
|
|
3392
|
+
var TRANSITIONS_LABEL = __21("Transitions", "elementor");
|
|
3447
3393
|
var EffectsSection = () => {
|
|
3448
3394
|
const { element } = useSelectedElement();
|
|
3449
3395
|
const { meta } = useStyle();
|
|
3450
|
-
return /* @__PURE__ */
|
|
3396
|
+
return /* @__PURE__ */ React45.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React45.createElement(OpacityControlField, null), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React45.createElement(BoxShadowRepeaterControl, null)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React45.createElement(TransformRepeaterControl, null)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React45.createElement(
|
|
3451
3397
|
TransitionRepeaterControl,
|
|
3452
3398
|
{
|
|
3453
3399
|
currentStyleState: meta.state,
|
|
3454
3400
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3455
3401
|
}
|
|
3456
|
-
)), /* @__PURE__ */
|
|
3402
|
+
)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React45.createElement(FilterRepeaterControl, null)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React45.createElement(FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3457
3403
|
};
|
|
3458
3404
|
|
|
3459
3405
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3460
|
-
import * as
|
|
3461
|
-
import { ControlFormLabel as
|
|
3406
|
+
import * as React57 from "react";
|
|
3407
|
+
import { ControlFormLabel as ControlFormLabel4 } from "@elementor/editor-controls";
|
|
3462
3408
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3463
|
-
import { __ as
|
|
3409
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
3464
3410
|
|
|
3465
3411
|
// src/hooks/use-computed-style.ts
|
|
3466
3412
|
import { __privateUseListenTo as useListenTo, commandEndEvent, windowEvent } from "@elementor/editor-v1-adapters";
|
|
@@ -3488,7 +3434,7 @@ function useComputedStyle(elementId) {
|
|
|
3488
3434
|
}
|
|
3489
3435
|
|
|
3490
3436
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3491
|
-
import * as
|
|
3437
|
+
import * as React47 from "react";
|
|
3492
3438
|
import { ToggleControl } from "@elementor/editor-controls";
|
|
3493
3439
|
import {
|
|
3494
3440
|
JustifyBottomIcon,
|
|
@@ -3499,14 +3445,14 @@ import {
|
|
|
3499
3445
|
JustifyTopIcon
|
|
3500
3446
|
} from "@elementor/icons";
|
|
3501
3447
|
import { withDirection as withDirection3 } from "@elementor/ui";
|
|
3502
|
-
import { __ as
|
|
3448
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3503
3449
|
|
|
3504
3450
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3505
|
-
import * as
|
|
3451
|
+
import * as React46 from "react";
|
|
3506
3452
|
import { useRef as useRef5 } from "react";
|
|
3507
3453
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
3508
|
-
import { __ as
|
|
3509
|
-
var FLEX_DIRECTION_LABEL =
|
|
3454
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3455
|
+
var FLEX_DIRECTION_LABEL = __22("Flex direction", "elementor");
|
|
3510
3456
|
var CLOCKWISE_ANGLES = {
|
|
3511
3457
|
row: 0,
|
|
3512
3458
|
column: 90,
|
|
@@ -3528,7 +3474,7 @@ var RotatedIcon = ({
|
|
|
3528
3474
|
}) => {
|
|
3529
3475
|
const rotate = useRef5(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3530
3476
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3531
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ React46.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3532
3478
|
};
|
|
3533
3479
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3534
3480
|
const { value: direction } = useStylesField("flex-direction", {
|
|
@@ -3549,7 +3495,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3549
3495
|
};
|
|
3550
3496
|
|
|
3551
3497
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3552
|
-
var ALIGN_CONTENT_LABEL =
|
|
3498
|
+
var ALIGN_CONTENT_LABEL = __23("Align content", "elementor");
|
|
3553
3499
|
var StartIcon = withDirection3(JustifyTopIcon);
|
|
3554
3500
|
var EndIcon = withDirection3(JustifyBottomIcon);
|
|
3555
3501
|
var iconProps = {
|
|
@@ -3560,45 +3506,45 @@ var iconProps = {
|
|
|
3560
3506
|
var options = [
|
|
3561
3507
|
{
|
|
3562
3508
|
value: "start",
|
|
3563
|
-
label:
|
|
3564
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3509
|
+
label: __23("Start", "elementor"),
|
|
3510
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3565
3511
|
showTooltip: true
|
|
3566
3512
|
},
|
|
3567
3513
|
{
|
|
3568
3514
|
value: "center",
|
|
3569
|
-
label:
|
|
3570
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3515
|
+
label: __23("Center", "elementor"),
|
|
3516
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
3571
3517
|
showTooltip: true
|
|
3572
3518
|
},
|
|
3573
3519
|
{
|
|
3574
3520
|
value: "end",
|
|
3575
|
-
label:
|
|
3576
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3521
|
+
label: __23("End", "elementor"),
|
|
3522
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3577
3523
|
showTooltip: true
|
|
3578
3524
|
},
|
|
3579
3525
|
{
|
|
3580
3526
|
value: "space-between",
|
|
3581
|
-
label:
|
|
3582
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3527
|
+
label: __23("Space between", "elementor"),
|
|
3528
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
3583
3529
|
showTooltip: true
|
|
3584
3530
|
},
|
|
3585
3531
|
{
|
|
3586
3532
|
value: "space-around",
|
|
3587
|
-
label:
|
|
3588
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3533
|
+
label: __23("Space around", "elementor"),
|
|
3534
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
3589
3535
|
showTooltip: true
|
|
3590
3536
|
},
|
|
3591
3537
|
{
|
|
3592
3538
|
value: "space-evenly",
|
|
3593
|
-
label:
|
|
3594
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3539
|
+
label: __23("Space evenly", "elementor"),
|
|
3540
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
3595
3541
|
showTooltip: true
|
|
3596
3542
|
}
|
|
3597
3543
|
];
|
|
3598
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3544
|
+
var AlignContentField = () => /* @__PURE__ */ React47.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React47.createElement(UiProviders, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React47.createElement(ToggleControl, { options, fullWidth: true }))));
|
|
3599
3545
|
|
|
3600
3546
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3601
|
-
import * as
|
|
3547
|
+
import * as React48 from "react";
|
|
3602
3548
|
import { ToggleControl as ToggleControl2 } from "@elementor/editor-controls";
|
|
3603
3549
|
import {
|
|
3604
3550
|
LayoutAlignCenterIcon as CenterIcon2,
|
|
@@ -3607,8 +3553,8 @@ import {
|
|
|
3607
3553
|
LayoutDistributeVerticalIcon as JustifyIcon
|
|
3608
3554
|
} from "@elementor/icons";
|
|
3609
3555
|
import { withDirection as withDirection4 } from "@elementor/ui";
|
|
3610
|
-
import { __ as
|
|
3611
|
-
var ALIGN_ITEMS_LABEL =
|
|
3556
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3557
|
+
var ALIGN_ITEMS_LABEL = __24("Align items", "elementor");
|
|
3612
3558
|
var StartIcon2 = withDirection4(LayoutAlignLeftIcon);
|
|
3613
3559
|
var EndIcon2 = withDirection4(LayoutAlignRightIcon);
|
|
3614
3560
|
var iconProps2 = {
|
|
@@ -3618,35 +3564,35 @@ var iconProps2 = {
|
|
|
3618
3564
|
var options2 = [
|
|
3619
3565
|
{
|
|
3620
3566
|
value: "start",
|
|
3621
|
-
label:
|
|
3622
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3567
|
+
label: __24("Start", "elementor"),
|
|
3568
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3623
3569
|
showTooltip: true
|
|
3624
3570
|
},
|
|
3625
3571
|
{
|
|
3626
3572
|
value: "center",
|
|
3627
|
-
label:
|
|
3628
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3573
|
+
label: __24("Center", "elementor"),
|
|
3574
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
3629
3575
|
showTooltip: true
|
|
3630
3576
|
},
|
|
3631
3577
|
{
|
|
3632
3578
|
value: "end",
|
|
3633
|
-
label:
|
|
3634
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3579
|
+
label: __24("End", "elementor"),
|
|
3580
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3635
3581
|
showTooltip: true
|
|
3636
3582
|
},
|
|
3637
3583
|
{
|
|
3638
3584
|
value: "stretch",
|
|
3639
|
-
label:
|
|
3640
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3585
|
+
label: __24("Stretch", "elementor"),
|
|
3586
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
3641
3587
|
showTooltip: true
|
|
3642
3588
|
}
|
|
3643
3589
|
];
|
|
3644
3590
|
var AlignItemsField = () => {
|
|
3645
|
-
return /* @__PURE__ */
|
|
3591
|
+
return /* @__PURE__ */ React48.createElement(UiProviders, null, /* @__PURE__ */ React48.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React48.createElement(ToggleControl2, { options: options2 }))));
|
|
3646
3592
|
};
|
|
3647
3593
|
|
|
3648
3594
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3649
|
-
import * as
|
|
3595
|
+
import * as React49 from "react";
|
|
3650
3596
|
import { ToggleControl as ToggleControl3 } from "@elementor/editor-controls";
|
|
3651
3597
|
import {
|
|
3652
3598
|
LayoutAlignCenterIcon as CenterIcon3,
|
|
@@ -3655,8 +3601,8 @@ import {
|
|
|
3655
3601
|
LayoutDistributeVerticalIcon as JustifyIcon2
|
|
3656
3602
|
} from "@elementor/icons";
|
|
3657
3603
|
import { withDirection as withDirection5 } from "@elementor/ui";
|
|
3658
|
-
import { __ as
|
|
3659
|
-
var ALIGN_SELF_LABEL =
|
|
3604
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
3605
|
+
var ALIGN_SELF_LABEL = __25("Align self", "elementor");
|
|
3660
3606
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3661
3607
|
row: 90,
|
|
3662
3608
|
"row-reverse": 90,
|
|
@@ -3671,8 +3617,8 @@ var iconProps3 = {
|
|
|
3671
3617
|
var getOptions = (parentStyleDirection) => [
|
|
3672
3618
|
{
|
|
3673
3619
|
value: "start",
|
|
3674
|
-
label:
|
|
3675
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3620
|
+
label: __25("Start", "elementor"),
|
|
3621
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3676
3622
|
RotatedIcon,
|
|
3677
3623
|
{
|
|
3678
3624
|
icon: StartIcon3,
|
|
@@ -3685,8 +3631,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3685
3631
|
},
|
|
3686
3632
|
{
|
|
3687
3633
|
value: "center",
|
|
3688
|
-
label:
|
|
3689
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3634
|
+
label: __25("Center", "elementor"),
|
|
3635
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3690
3636
|
RotatedIcon,
|
|
3691
3637
|
{
|
|
3692
3638
|
icon: CenterIcon3,
|
|
@@ -3699,8 +3645,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3699
3645
|
},
|
|
3700
3646
|
{
|
|
3701
3647
|
value: "end",
|
|
3702
|
-
label:
|
|
3703
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3648
|
+
label: __25("End", "elementor"),
|
|
3649
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3704
3650
|
RotatedIcon,
|
|
3705
3651
|
{
|
|
3706
3652
|
icon: EndIcon3,
|
|
@@ -3713,8 +3659,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3713
3659
|
},
|
|
3714
3660
|
{
|
|
3715
3661
|
value: "stretch",
|
|
3716
|
-
label:
|
|
3717
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3662
|
+
label: __25("Stretch", "elementor"),
|
|
3663
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3718
3664
|
RotatedIcon,
|
|
3719
3665
|
{
|
|
3720
3666
|
icon: JustifyIcon2,
|
|
@@ -3726,97 +3672,97 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3726
3672
|
showTooltip: true
|
|
3727
3673
|
}
|
|
3728
3674
|
];
|
|
3729
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3675
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React49.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React49.createElement(ToggleControl3, { options: getOptions(parentStyleDirection) }))));
|
|
3730
3676
|
|
|
3731
3677
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3732
|
-
import * as
|
|
3678
|
+
import * as React50 from "react";
|
|
3733
3679
|
import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
|
|
3734
|
-
import { __ as
|
|
3735
|
-
var DISPLAY_LABEL =
|
|
3680
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
3681
|
+
var DISPLAY_LABEL = __26("Display", "elementor");
|
|
3736
3682
|
var displayFieldItems = [
|
|
3737
3683
|
{
|
|
3738
3684
|
value: "block",
|
|
3739
|
-
renderContent: () =>
|
|
3740
|
-
label:
|
|
3685
|
+
renderContent: () => __26("Block", "elementor"),
|
|
3686
|
+
label: __26("Block", "elementor"),
|
|
3741
3687
|
showTooltip: true
|
|
3742
3688
|
},
|
|
3743
3689
|
{
|
|
3744
3690
|
value: "flex",
|
|
3745
|
-
renderContent: () =>
|
|
3746
|
-
label:
|
|
3691
|
+
renderContent: () => __26("Flex", "elementor"),
|
|
3692
|
+
label: __26("Flex", "elementor"),
|
|
3747
3693
|
showTooltip: true
|
|
3748
3694
|
},
|
|
3749
3695
|
{
|
|
3750
3696
|
value: "inline-block",
|
|
3751
|
-
renderContent: () =>
|
|
3752
|
-
label:
|
|
3697
|
+
renderContent: () => __26("In-blk", "elementor"),
|
|
3698
|
+
label: __26("Inline-block", "elementor"),
|
|
3753
3699
|
showTooltip: true
|
|
3754
3700
|
},
|
|
3755
3701
|
{
|
|
3756
3702
|
value: "none",
|
|
3757
|
-
renderContent: () =>
|
|
3758
|
-
label:
|
|
3703
|
+
renderContent: () => __26("None", "elementor"),
|
|
3704
|
+
label: __26("None", "elementor"),
|
|
3759
3705
|
showTooltip: true
|
|
3760
3706
|
},
|
|
3761
3707
|
{
|
|
3762
3708
|
value: "inline-flex",
|
|
3763
|
-
renderContent: () =>
|
|
3764
|
-
label:
|
|
3709
|
+
renderContent: () => __26("In-flx", "elementor"),
|
|
3710
|
+
label: __26("Inline-flex", "elementor"),
|
|
3765
3711
|
showTooltip: true
|
|
3766
3712
|
}
|
|
3767
3713
|
];
|
|
3768
3714
|
var DisplayField = () => {
|
|
3769
3715
|
const placeholder = useDisplayPlaceholderValue();
|
|
3770
|
-
return /* @__PURE__ */
|
|
3716
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React50.createElement(ToggleControl4, { options: displayFieldItems, maxItems: 4, fullWidth: true })));
|
|
3771
3717
|
};
|
|
3772
3718
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3773
3719
|
|
|
3774
3720
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3775
|
-
import * as
|
|
3721
|
+
import * as React51 from "react";
|
|
3776
3722
|
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
3777
3723
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
3778
3724
|
import { withDirection as withDirection6 } from "@elementor/ui";
|
|
3779
|
-
import { __ as
|
|
3780
|
-
var FLEX_DIRECTION_LABEL2 =
|
|
3725
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
3726
|
+
var FLEX_DIRECTION_LABEL2 = __27("Direction", "elementor");
|
|
3781
3727
|
var options3 = [
|
|
3782
3728
|
{
|
|
3783
3729
|
value: "row",
|
|
3784
|
-
label:
|
|
3730
|
+
label: __27("Row", "elementor"),
|
|
3785
3731
|
renderContent: ({ size }) => {
|
|
3786
3732
|
const StartIcon5 = withDirection6(ArrowRightIcon);
|
|
3787
|
-
return /* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ React51.createElement(StartIcon5, { fontSize: size });
|
|
3788
3734
|
},
|
|
3789
3735
|
showTooltip: true
|
|
3790
3736
|
},
|
|
3791
3737
|
{
|
|
3792
3738
|
value: "column",
|
|
3793
|
-
label:
|
|
3794
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3739
|
+
label: __27("Column", "elementor"),
|
|
3740
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
3795
3741
|
showTooltip: true
|
|
3796
3742
|
},
|
|
3797
3743
|
{
|
|
3798
3744
|
value: "row-reverse",
|
|
3799
|
-
label:
|
|
3745
|
+
label: __27("Reversed row", "elementor"),
|
|
3800
3746
|
renderContent: ({ size }) => {
|
|
3801
3747
|
const EndIcon5 = withDirection6(ArrowLeftIcon);
|
|
3802
|
-
return /* @__PURE__ */
|
|
3748
|
+
return /* @__PURE__ */ React51.createElement(EndIcon5, { fontSize: size });
|
|
3803
3749
|
},
|
|
3804
3750
|
showTooltip: true
|
|
3805
3751
|
},
|
|
3806
3752
|
{
|
|
3807
3753
|
value: "column-reverse",
|
|
3808
|
-
label:
|
|
3809
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3754
|
+
label: __27("Reversed column", "elementor"),
|
|
3755
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
3810
3756
|
showTooltip: true
|
|
3811
3757
|
}
|
|
3812
3758
|
];
|
|
3813
3759
|
var FlexDirectionField = () => {
|
|
3814
|
-
return /* @__PURE__ */
|
|
3760
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React51.createElement(UiProviders, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React51.createElement(ToggleControl5, { options: options3 }))));
|
|
3815
3761
|
};
|
|
3816
3762
|
|
|
3817
3763
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3818
|
-
import * as
|
|
3819
|
-
import { useEffect as useEffect5, useMemo as useMemo8, useState as
|
|
3764
|
+
import * as React52 from "react";
|
|
3765
|
+
import { useEffect as useEffect5, useMemo as useMemo8, useState as useState10 } from "react";
|
|
3820
3766
|
import {
|
|
3821
3767
|
ControlToggleButtonGroup,
|
|
3822
3768
|
NumberControl as NumberControl2,
|
|
@@ -3824,8 +3770,8 @@ import {
|
|
|
3824
3770
|
} from "@elementor/editor-controls";
|
|
3825
3771
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
3826
3772
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
3827
|
-
import { __ as
|
|
3828
|
-
var ORDER_LABEL =
|
|
3773
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
3774
|
+
var ORDER_LABEL = __28("Order", "elementor");
|
|
3829
3775
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3830
3776
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3831
3777
|
var FIRST = "first";
|
|
@@ -3838,25 +3784,25 @@ var orderValueMap = {
|
|
|
3838
3784
|
var items = [
|
|
3839
3785
|
{
|
|
3840
3786
|
value: FIRST,
|
|
3841
|
-
label:
|
|
3842
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3787
|
+
label: __28("First", "elementor"),
|
|
3788
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
3843
3789
|
showTooltip: true
|
|
3844
3790
|
},
|
|
3845
3791
|
{
|
|
3846
3792
|
value: LAST,
|
|
3847
|
-
label:
|
|
3848
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3793
|
+
label: __28("Last", "elementor"),
|
|
3794
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
3849
3795
|
showTooltip: true
|
|
3850
3796
|
},
|
|
3851
3797
|
{
|
|
3852
3798
|
value: CUSTOM,
|
|
3853
|
-
label:
|
|
3854
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3799
|
+
label: __28("Custom", "elementor"),
|
|
3800
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(PencilIcon, { fontSize: size }),
|
|
3855
3801
|
showTooltip: true
|
|
3856
3802
|
}
|
|
3857
3803
|
];
|
|
3858
3804
|
var FlexOrderField = () => {
|
|
3859
|
-
return /* @__PURE__ */
|
|
3805
|
+
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React52.createElement(UiProviders, null, /* @__PURE__ */ React52.createElement(SectionContent, null, /* @__PURE__ */ React52.createElement(FlexOrderFieldContent, null))));
|
|
3860
3806
|
};
|
|
3861
3807
|
function FlexOrderFieldContent() {
|
|
3862
3808
|
const {
|
|
@@ -3869,8 +3815,8 @@ function FlexOrderFieldContent() {
|
|
|
3869
3815
|
const { placeholder } = useBoundProp3();
|
|
3870
3816
|
const placeholderValue = placeholder;
|
|
3871
3817
|
const currentGroup = useMemo8(() => getGroupControlValue(order?.value ?? null), [order]);
|
|
3872
|
-
const [activeGroup, setActiveGroup] =
|
|
3873
|
-
const [customLocked, setCustomLocked] =
|
|
3818
|
+
const [activeGroup, setActiveGroup] = useState10(currentGroup);
|
|
3819
|
+
const [customLocked, setCustomLocked] = useState10(false);
|
|
3874
3820
|
useEffect5(() => {
|
|
3875
3821
|
if (!customLocked) {
|
|
3876
3822
|
setActiveGroup(currentGroup);
|
|
@@ -3901,7 +3847,7 @@ function FlexOrderFieldContent() {
|
|
|
3901
3847
|
};
|
|
3902
3848
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
3903
3849
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
3904
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React52.createElement(
|
|
3905
3851
|
ControlToggleButtonGroup,
|
|
3906
3852
|
{
|
|
3907
3853
|
items,
|
|
@@ -3911,7 +3857,7 @@ function FlexOrderFieldContent() {
|
|
|
3911
3857
|
placeholder: groupPlaceholder,
|
|
3912
3858
|
disabled: !canEdit
|
|
3913
3859
|
}
|
|
3914
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3860
|
+
)), isCustomVisible && /* @__PURE__ */ React52.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, __28("Custom order", "elementor"))), /* @__PURE__ */ React52.createElement(Grid2, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React52.createElement(
|
|
3915
3861
|
NumberControl2,
|
|
3916
3862
|
{
|
|
3917
3863
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -3935,8 +3881,8 @@ var getGroupControlValue = (order) => {
|
|
|
3935
3881
|
};
|
|
3936
3882
|
|
|
3937
3883
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
3938
|
-
import * as
|
|
3939
|
-
import { useEffect as useEffect6, useMemo as useMemo9, useRef as useRef6, useState as
|
|
3884
|
+
import * as React53 from "react";
|
|
3885
|
+
import { useEffect as useEffect6, useMemo as useMemo9, useRef as useRef6, useState as useState11 } from "react";
|
|
3940
3886
|
import {
|
|
3941
3887
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
3942
3888
|
NumberControl as NumberControl3,
|
|
@@ -3947,31 +3893,31 @@ import {
|
|
|
3947
3893
|
} from "@elementor/editor-controls";
|
|
3948
3894
|
import { flexPropTypeUtil, numberPropTypeUtil as numberPropTypeUtil2 } from "@elementor/editor-props";
|
|
3949
3895
|
import { ExpandIcon, PencilIcon as PencilIcon2, ShrinkIcon } from "@elementor/icons";
|
|
3950
|
-
import { __ as
|
|
3951
|
-
var FLEX_SIZE_LABEL =
|
|
3896
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
3897
|
+
var FLEX_SIZE_LABEL = __29("Flex Size", "elementor");
|
|
3952
3898
|
var DEFAULT = 1;
|
|
3953
3899
|
var items2 = [
|
|
3954
3900
|
{
|
|
3955
3901
|
value: "flex-grow",
|
|
3956
|
-
label:
|
|
3957
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3902
|
+
label: __29("Grow", "elementor"),
|
|
3903
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(ExpandIcon, { fontSize: size }),
|
|
3958
3904
|
showTooltip: true
|
|
3959
3905
|
},
|
|
3960
3906
|
{
|
|
3961
3907
|
value: "flex-shrink",
|
|
3962
|
-
label:
|
|
3963
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3908
|
+
label: __29("Shrink", "elementor"),
|
|
3909
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(ShrinkIcon, { fontSize: size }),
|
|
3964
3910
|
showTooltip: true
|
|
3965
3911
|
},
|
|
3966
3912
|
{
|
|
3967
3913
|
value: "custom",
|
|
3968
|
-
label:
|
|
3969
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3914
|
+
label: __29("Custom", "elementor"),
|
|
3915
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(PencilIcon2, { fontSize: size }),
|
|
3970
3916
|
showTooltip: true
|
|
3971
3917
|
}
|
|
3972
3918
|
];
|
|
3973
3919
|
var FlexSizeField = () => {
|
|
3974
|
-
return /* @__PURE__ */
|
|
3920
|
+
return /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(SectionContent, null, /* @__PURE__ */ React53.createElement(StylesField, { bind: "flex", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React53.createElement(FlexSizeFieldContent, null))));
|
|
3975
3921
|
};
|
|
3976
3922
|
var FlexSizeFieldContent = () => {
|
|
3977
3923
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -3980,8 +3926,8 @@ var FlexSizeFieldContent = () => {
|
|
|
3980
3926
|
const { placeholder } = useBoundProp4();
|
|
3981
3927
|
const flexValues = extractFlexValues(value);
|
|
3982
3928
|
const currentGroup = useMemo9(() => getActiveGroup(flexValues), [flexValues]);
|
|
3983
|
-
const [activeGroup, setActiveGroup] =
|
|
3984
|
-
const [customLocked, setCustomLocked] =
|
|
3929
|
+
const [activeGroup, setActiveGroup] = useState11(currentGroup);
|
|
3930
|
+
const [customLocked, setCustomLocked] = useState11(false);
|
|
3985
3931
|
useEffect6(() => {
|
|
3986
3932
|
if (!customLocked) {
|
|
3987
3933
|
setActiveGroup(currentGroup);
|
|
@@ -4000,7 +3946,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4000
3946
|
};
|
|
4001
3947
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4002
3948
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4003
|
-
return /* @__PURE__ */
|
|
3949
|
+
return /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React53.createElement(
|
|
4004
3950
|
ControlToggleButtonGroup2,
|
|
4005
3951
|
{
|
|
4006
3952
|
value: activeGroup ?? null,
|
|
@@ -4010,7 +3956,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4010
3956
|
items: items2,
|
|
4011
3957
|
exclusive: true
|
|
4012
3958
|
}
|
|
4013
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3959
|
+
)), isCustomVisible && /* @__PURE__ */ React53.createElement(FlexCustomField, null));
|
|
4014
3960
|
};
|
|
4015
3961
|
function extractFlexValues(source) {
|
|
4016
3962
|
return {
|
|
@@ -4052,7 +3998,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4052
3998
|
var FlexCustomField = () => {
|
|
4053
3999
|
const flexBasisRowRef = useRef6(null);
|
|
4054
4000
|
const context = useBoundProp4(flexPropTypeUtil);
|
|
4055
|
-
return /* @__PURE__ */
|
|
4001
|
+
return /* @__PURE__ */ React53.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: __29("Grow", "elementor") }, /* @__PURE__ */ React53.createElement(PropKeyProvider3, { bind: "flexGrow" }, /* @__PURE__ */ React53.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: __29("Shrink", "elementor") }, /* @__PURE__ */ React53.createElement(PropKeyProvider3, { bind: "flexShrink" }, /* @__PURE__ */ React53.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: __29("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React53.createElement(PropKeyProvider3, { bind: "flexBasis" }, /* @__PURE__ */ React53.createElement(SizeControl3, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4056
4002
|
};
|
|
4057
4003
|
var getActiveGroup = ({
|
|
4058
4004
|
grow,
|
|
@@ -4075,16 +4021,16 @@ var getActiveGroup = ({
|
|
|
4075
4021
|
};
|
|
4076
4022
|
|
|
4077
4023
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4078
|
-
import * as
|
|
4024
|
+
import * as React54 from "react";
|
|
4079
4025
|
import { GapControl } from "@elementor/editor-controls";
|
|
4080
|
-
import { __ as
|
|
4081
|
-
var GAPS_LABEL =
|
|
4026
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4027
|
+
var GAPS_LABEL = __30("Gaps", "elementor");
|
|
4082
4028
|
var GapControlField = () => {
|
|
4083
|
-
return /* @__PURE__ */
|
|
4029
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React54.createElement(GapControl, { label: GAPS_LABEL }));
|
|
4084
4030
|
};
|
|
4085
4031
|
|
|
4086
4032
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4087
|
-
import * as
|
|
4033
|
+
import * as React55 from "react";
|
|
4088
4034
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
4089
4035
|
import {
|
|
4090
4036
|
JustifyBottomIcon as JustifyBottomIcon2,
|
|
@@ -4095,8 +4041,8 @@ import {
|
|
|
4095
4041
|
JustifyTopIcon as JustifyTopIcon2
|
|
4096
4042
|
} from "@elementor/icons";
|
|
4097
4043
|
import { withDirection as withDirection7 } from "@elementor/ui";
|
|
4098
|
-
import { __ as
|
|
4099
|
-
var JUSTIFY_CONTENT_LABEL =
|
|
4044
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
4045
|
+
var JUSTIFY_CONTENT_LABEL = __31("Justify content", "elementor");
|
|
4100
4046
|
var StartIcon4 = withDirection7(JustifyTopIcon2);
|
|
4101
4047
|
var EndIcon4 = withDirection7(JustifyBottomIcon2);
|
|
4102
4048
|
var iconProps4 = {
|
|
@@ -4106,76 +4052,76 @@ var iconProps4 = {
|
|
|
4106
4052
|
var options4 = [
|
|
4107
4053
|
{
|
|
4108
4054
|
value: "flex-start",
|
|
4109
|
-
label:
|
|
4110
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4055
|
+
label: __31("Start", "elementor"),
|
|
4056
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
4111
4057
|
showTooltip: true
|
|
4112
4058
|
},
|
|
4113
4059
|
{
|
|
4114
4060
|
value: "center",
|
|
4115
|
-
label:
|
|
4116
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4061
|
+
label: __31("Center", "elementor"),
|
|
4062
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: CenterIcon4, size, ...iconProps4 }),
|
|
4117
4063
|
showTooltip: true
|
|
4118
4064
|
},
|
|
4119
4065
|
{
|
|
4120
4066
|
value: "flex-end",
|
|
4121
|
-
label:
|
|
4122
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4067
|
+
label: __31("End", "elementor"),
|
|
4068
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
4123
4069
|
showTooltip: true
|
|
4124
4070
|
},
|
|
4125
4071
|
{
|
|
4126
4072
|
value: "space-between",
|
|
4127
|
-
label:
|
|
4128
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4073
|
+
label: __31("Space between", "elementor"),
|
|
4074
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
4129
4075
|
showTooltip: true
|
|
4130
4076
|
},
|
|
4131
4077
|
{
|
|
4132
4078
|
value: "space-around",
|
|
4133
|
-
label:
|
|
4134
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4079
|
+
label: __31("Space around", "elementor"),
|
|
4080
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
4135
4081
|
showTooltip: true
|
|
4136
4082
|
},
|
|
4137
4083
|
{
|
|
4138
4084
|
value: "space-evenly",
|
|
4139
|
-
label:
|
|
4140
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4085
|
+
label: __31("Space evenly", "elementor"),
|
|
4086
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
4141
4087
|
showTooltip: true
|
|
4142
4088
|
}
|
|
4143
4089
|
];
|
|
4144
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4090
|
+
var JustifyContentField = () => /* @__PURE__ */ React55.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React55.createElement(UiProviders, null, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React55.createElement(ToggleControl6, { options: options4, fullWidth: true }))));
|
|
4145
4091
|
|
|
4146
4092
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4147
|
-
import * as
|
|
4093
|
+
import * as React56 from "react";
|
|
4148
4094
|
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
4149
4095
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
4150
|
-
import { __ as
|
|
4151
|
-
var FLEX_WRAP_LABEL =
|
|
4096
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
4097
|
+
var FLEX_WRAP_LABEL = __32("Wrap", "elementor");
|
|
4152
4098
|
var options5 = [
|
|
4153
4099
|
{
|
|
4154
4100
|
value: "nowrap",
|
|
4155
|
-
label:
|
|
4156
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4101
|
+
label: __32("No wrap", "elementor"),
|
|
4102
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(ArrowRightIcon2, { fontSize: size }),
|
|
4157
4103
|
showTooltip: true
|
|
4158
4104
|
},
|
|
4159
4105
|
{
|
|
4160
4106
|
value: "wrap",
|
|
4161
|
-
label:
|
|
4162
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4107
|
+
label: __32("Wrap", "elementor"),
|
|
4108
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(ArrowBackIcon, { fontSize: size }),
|
|
4163
4109
|
showTooltip: true
|
|
4164
4110
|
},
|
|
4165
4111
|
{
|
|
4166
4112
|
value: "wrap-reverse",
|
|
4167
|
-
label:
|
|
4168
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4113
|
+
label: __32("Reversed wrap", "elementor"),
|
|
4114
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
4169
4115
|
showTooltip: true
|
|
4170
4116
|
}
|
|
4171
4117
|
];
|
|
4172
4118
|
var WrapField = () => {
|
|
4173
|
-
return /* @__PURE__ */
|
|
4119
|
+
return /* @__PURE__ */ React56.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React56.createElement(UiProviders, null, /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React56.createElement(ToggleControl7, { options: options5 }))));
|
|
4174
4120
|
};
|
|
4175
4121
|
|
|
4176
4122
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4177
|
-
var DISPLAY_LABEL2 =
|
|
4178
|
-
var FLEX_WRAP_LABEL2 =
|
|
4123
|
+
var DISPLAY_LABEL2 = __33("Display", "elementor");
|
|
4124
|
+
var FLEX_WRAP_LABEL2 = __33("Flex wrap", "elementor");
|
|
4179
4125
|
var LayoutSection = () => {
|
|
4180
4126
|
const { value: display } = useStylesField("display", {
|
|
4181
4127
|
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
@@ -4186,15 +4132,15 @@ var LayoutSection = () => {
|
|
|
4186
4132
|
const parent = useParentElement(element.id);
|
|
4187
4133
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
4188
4134
|
const parentStyleDirection = parentStyle?.flexDirection ?? "row";
|
|
4189
|
-
return /* @__PURE__ */
|
|
4135
|
+
return /* @__PURE__ */ React57.createElement(SectionContent, null, /* @__PURE__ */ React57.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React57.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React57.createElement(FlexChildFields, { parentStyleDirection }));
|
|
4190
4136
|
};
|
|
4191
4137
|
var FlexFields = () => {
|
|
4192
4138
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4193
4139
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4194
4140
|
});
|
|
4195
|
-
return /* @__PURE__ */
|
|
4141
|
+
return /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(FlexDirectionField, null), /* @__PURE__ */ React57.createElement(JustifyContentField, null), /* @__PURE__ */ React57.createElement(AlignItemsField, null), /* @__PURE__ */ React57.createElement(PanelDivider, null), /* @__PURE__ */ React57.createElement(GapControlField, null), /* @__PURE__ */ React57.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React57.createElement(AlignContentField, null));
|
|
4196
4142
|
};
|
|
4197
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4143
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(PanelDivider, null), /* @__PURE__ */ React57.createElement(ControlFormLabel4, null, __33("Flex child", "elementor")), /* @__PURE__ */ React57.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React57.createElement(FlexOrderField, null), /* @__PURE__ */ React57.createElement(FlexSizeField, null));
|
|
4198
4144
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4199
4145
|
const value = display?.value ?? local?.value;
|
|
4200
4146
|
if (!value) {
|
|
@@ -4204,38 +4150,38 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4204
4150
|
};
|
|
4205
4151
|
|
|
4206
4152
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4207
|
-
import * as
|
|
4153
|
+
import * as React62 from "react";
|
|
4208
4154
|
import { useSessionStorage as useSessionStorage3 } from "@elementor/session";
|
|
4209
|
-
import { __ as
|
|
4155
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
4210
4156
|
|
|
4211
4157
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4212
|
-
import * as
|
|
4158
|
+
import * as React58 from "react";
|
|
4213
4159
|
import { useRef as useRef7 } from "react";
|
|
4214
4160
|
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
4215
4161
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
4216
|
-
import { Grid as Grid3, Stack as
|
|
4217
|
-
import { __ as
|
|
4162
|
+
import { Grid as Grid3, Stack as Stack11, withDirection as withDirection8 } from "@elementor/ui";
|
|
4163
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
4218
4164
|
var InlineStartIcon2 = withDirection8(SideLeftIcon2);
|
|
4219
4165
|
var InlineEndIcon2 = withDirection8(SideRightIcon2);
|
|
4220
4166
|
var sideIcons = {
|
|
4221
|
-
"inset-block-start": /* @__PURE__ */
|
|
4222
|
-
"inset-block-end": /* @__PURE__ */
|
|
4223
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4224
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4167
|
+
"inset-block-start": /* @__PURE__ */ React58.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
4168
|
+
"inset-block-end": /* @__PURE__ */ React58.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
4169
|
+
"inset-inline-start": /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4170
|
+
"inset-inline-end": /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4225
4171
|
};
|
|
4226
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
4227
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
4172
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __34("Right", "elementor") : __34("Left", "elementor");
|
|
4173
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __34("Left", "elementor") : __34("Right", "elementor");
|
|
4228
4174
|
var DimensionsField = () => {
|
|
4229
4175
|
const { isSiteRtl } = useDirection();
|
|
4230
4176
|
const rowRefs = [useRef7(null), useRef7(null)];
|
|
4231
|
-
return /* @__PURE__ */
|
|
4177
|
+
return /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React58.createElement(DimensionField, { side: "inset-block-start", label: __34("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React58.createElement(
|
|
4232
4178
|
DimensionField,
|
|
4233
4179
|
{
|
|
4234
4180
|
side: "inset-inline-end",
|
|
4235
4181
|
label: getInlineEndLabel(isSiteRtl),
|
|
4236
4182
|
rowRef: rowRefs[0]
|
|
4237
4183
|
}
|
|
4238
|
-
)), /* @__PURE__ */
|
|
4184
|
+
)), /* @__PURE__ */ React58.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React58.createElement(DimensionField, { side: "inset-block-end", label: __34("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React58.createElement(
|
|
4239
4185
|
DimensionField,
|
|
4240
4186
|
{
|
|
4241
4187
|
side: "inset-inline-start",
|
|
@@ -4248,7 +4194,7 @@ var DimensionField = ({
|
|
|
4248
4194
|
side,
|
|
4249
4195
|
label,
|
|
4250
4196
|
rowRef
|
|
4251
|
-
}) => /* @__PURE__ */
|
|
4197
|
+
}) => /* @__PURE__ */ React58.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React58.createElement(Grid3, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React58.createElement(Grid3, { item: true, xs: 12 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, label)), /* @__PURE__ */ React58.createElement(Grid3, { item: true, xs: 12 }, /* @__PURE__ */ React58.createElement(
|
|
4252
4198
|
SizeControl4,
|
|
4253
4199
|
{
|
|
4254
4200
|
startIcon: sideIcons[side],
|
|
@@ -4259,45 +4205,45 @@ var DimensionField = ({
|
|
|
4259
4205
|
))));
|
|
4260
4206
|
|
|
4261
4207
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4262
|
-
import * as
|
|
4208
|
+
import * as React59 from "react";
|
|
4263
4209
|
import { useRef as useRef8 } from "react";
|
|
4264
4210
|
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
4265
|
-
import { __ as
|
|
4266
|
-
var OFFSET_LABEL =
|
|
4211
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
4212
|
+
var OFFSET_LABEL = __35("Anchor offset", "elementor");
|
|
4267
4213
|
var UNITS = ["px", "em", "rem", "vw", "vh"];
|
|
4268
4214
|
var OffsetField = () => {
|
|
4269
4215
|
const rowRef = useRef8(null);
|
|
4270
|
-
return /* @__PURE__ */
|
|
4216
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React59.createElement(SizeControl5, { units: UNITS, anchorRef: rowRef })));
|
|
4271
4217
|
};
|
|
4272
4218
|
|
|
4273
4219
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4274
|
-
import * as
|
|
4220
|
+
import * as React60 from "react";
|
|
4275
4221
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
4276
|
-
import { __ as
|
|
4277
|
-
var POSITION_LABEL =
|
|
4222
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
4223
|
+
var POSITION_LABEL = __36("Position", "elementor");
|
|
4278
4224
|
var positionOptions = [
|
|
4279
|
-
{ label:
|
|
4280
|
-
{ label:
|
|
4281
|
-
{ label:
|
|
4282
|
-
{ label:
|
|
4283
|
-
{ label:
|
|
4225
|
+
{ label: __36("Static", "elementor"), value: "static" },
|
|
4226
|
+
{ label: __36("Relative", "elementor"), value: "relative" },
|
|
4227
|
+
{ label: __36("Absolute", "elementor"), value: "absolute" },
|
|
4228
|
+
{ label: __36("Fixed", "elementor"), value: "fixed" },
|
|
4229
|
+
{ label: __36("Sticky", "elementor"), value: "sticky" }
|
|
4284
4230
|
];
|
|
4285
4231
|
var PositionField = ({ onChange }) => {
|
|
4286
|
-
return /* @__PURE__ */
|
|
4232
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React60.createElement(SelectControl3, { options: positionOptions, onChange })));
|
|
4287
4233
|
};
|
|
4288
4234
|
|
|
4289
4235
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4290
|
-
import * as
|
|
4236
|
+
import * as React61 from "react";
|
|
4291
4237
|
import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
|
|
4292
|
-
import { __ as
|
|
4293
|
-
var Z_INDEX_LABEL =
|
|
4238
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
4239
|
+
var Z_INDEX_LABEL = __37("Z-index", "elementor");
|
|
4294
4240
|
var ZIndexField = () => {
|
|
4295
|
-
return /* @__PURE__ */
|
|
4241
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React61.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React61.createElement(NumberControl4, null)));
|
|
4296
4242
|
};
|
|
4297
4243
|
|
|
4298
4244
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4299
|
-
var POSITION_LABEL2 =
|
|
4300
|
-
var DIMENSIONS_LABEL =
|
|
4245
|
+
var POSITION_LABEL2 = __38("Position", "elementor");
|
|
4246
|
+
var DIMENSIONS_LABEL = __38("Dimensions", "elementor");
|
|
4301
4247
|
var PositionSection = () => {
|
|
4302
4248
|
const { value: positionValue } = useStylesField("position", {
|
|
4303
4249
|
history: { propDisplayName: POSITION_LABEL2 }
|
|
@@ -4332,7 +4278,7 @@ var PositionSection = () => {
|
|
|
4332
4278
|
}
|
|
4333
4279
|
};
|
|
4334
4280
|
const isNotStatic = positionValue && positionValue?.value !== "static";
|
|
4335
|
-
return /* @__PURE__ */
|
|
4281
|
+
return /* @__PURE__ */ React62.createElement(SectionContent, null, /* @__PURE__ */ React62.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(DimensionsField, null), /* @__PURE__ */ React62.createElement(ZIndexField, null)) : null, /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(OffsetField, null));
|
|
4336
4282
|
};
|
|
4337
4283
|
var usePersistDimensions = () => {
|
|
4338
4284
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4342,25 +4288,38 @@ var usePersistDimensions = () => {
|
|
|
4342
4288
|
};
|
|
4343
4289
|
|
|
4344
4290
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4345
|
-
import * as
|
|
4291
|
+
import * as React68 from "react";
|
|
4346
4292
|
import { useRef as useRef9 } from "react";
|
|
4347
4293
|
import { AspectRatioControl, PositionControl, SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4348
|
-
import { Grid as Grid4, Stack as
|
|
4349
|
-
import { __ as
|
|
4294
|
+
import { Grid as Grid4, Stack as Stack13 } from "@elementor/ui";
|
|
4295
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4350
4296
|
|
|
4351
4297
|
// src/components/style-tab-collapsible-content.tsx
|
|
4352
|
-
import * as
|
|
4298
|
+
import * as React65 from "react";
|
|
4353
4299
|
|
|
4354
4300
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4355
|
-
import * as
|
|
4301
|
+
import * as React64 from "react";
|
|
4356
4302
|
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
4357
|
-
import { Stack as
|
|
4358
|
-
import { __ as
|
|
4303
|
+
import { Stack as Stack12, Tooltip as Tooltip6 } from "@elementor/ui";
|
|
4304
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4305
|
+
|
|
4306
|
+
// src/components/custom-css-indicator.tsx
|
|
4307
|
+
import * as React63 from "react";
|
|
4308
|
+
var CustomCssIndicator = () => {
|
|
4309
|
+
const { customCss } = useCustomCss();
|
|
4310
|
+
const hasContent = Boolean(customCss?.raw?.trim());
|
|
4311
|
+
if (!hasContent) {
|
|
4312
|
+
return null;
|
|
4313
|
+
}
|
|
4314
|
+
return /* @__PURE__ */ React63.createElement(StyleIndicator, { getColor: (theme) => theme.palette.accent.main });
|
|
4315
|
+
};
|
|
4316
|
+
|
|
4317
|
+
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4359
4318
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4360
4319
|
const { id, meta, provider } = useStyle();
|
|
4361
4320
|
const snapshot = useStylesInheritanceSnapshot();
|
|
4362
4321
|
if (fields.includes("custom_css")) {
|
|
4363
|
-
return /* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ React64.createElement(CustomCssIndicator, null);
|
|
4364
4323
|
}
|
|
4365
4324
|
const snapshotFields = Object.fromEntries(
|
|
4366
4325
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -4369,9 +4328,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4369
4328
|
if (!hasValues && !hasOverrides) {
|
|
4370
4329
|
return null;
|
|
4371
4330
|
}
|
|
4372
|
-
const hasValueLabel =
|
|
4373
|
-
const hasOverridesLabel =
|
|
4374
|
-
return /* @__PURE__ */
|
|
4331
|
+
const hasValueLabel = __39("Has effective styles", "elementor");
|
|
4332
|
+
const hasOverridesLabel = __39("Has overridden styles", "elementor");
|
|
4333
|
+
return /* @__PURE__ */ React64.createElement(Tooltip6, { title: __39("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React64.createElement(Stack12, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React64.createElement(
|
|
4375
4334
|
StyleIndicator,
|
|
4376
4335
|
{
|
|
4377
4336
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4379,7 +4338,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4379
4338
|
role: "listitem",
|
|
4380
4339
|
"aria-label": hasValueLabel
|
|
4381
4340
|
}
|
|
4382
|
-
), hasOverrides && /* @__PURE__ */
|
|
4341
|
+
), hasOverrides && /* @__PURE__ */ React64.createElement(
|
|
4383
4342
|
StyleIndicator,
|
|
4384
4343
|
{
|
|
4385
4344
|
isOverridden: true,
|
|
@@ -4419,59 +4378,59 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
4419
4378
|
|
|
4420
4379
|
// src/components/style-tab-collapsible-content.tsx
|
|
4421
4380
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4422
|
-
return /* @__PURE__ */
|
|
4381
|
+
return /* @__PURE__ */ React65.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4423
4382
|
};
|
|
4424
4383
|
function getStylesInheritanceIndicators(fields) {
|
|
4425
4384
|
if (fields.length === 0) {
|
|
4426
4385
|
return null;
|
|
4427
4386
|
}
|
|
4428
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
4387
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React65.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4429
4388
|
}
|
|
4430
4389
|
|
|
4431
4390
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4432
|
-
import * as
|
|
4391
|
+
import * as React66 from "react";
|
|
4433
4392
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4434
|
-
import { __ as
|
|
4435
|
-
var OBJECT_FIT_LABEL =
|
|
4393
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4394
|
+
var OBJECT_FIT_LABEL = __40("Object fit", "elementor");
|
|
4436
4395
|
var positionOptions2 = [
|
|
4437
|
-
{ label:
|
|
4438
|
-
{ label:
|
|
4439
|
-
{ label:
|
|
4440
|
-
{ label:
|
|
4441
|
-
{ label:
|
|
4396
|
+
{ label: __40("Fill", "elementor"), value: "fill" },
|
|
4397
|
+
{ label: __40("Cover", "elementor"), value: "cover" },
|
|
4398
|
+
{ label: __40("Contain", "elementor"), value: "contain" },
|
|
4399
|
+
{ label: __40("None", "elementor"), value: "none" },
|
|
4400
|
+
{ label: __40("Scale down", "elementor"), value: "scale-down" }
|
|
4442
4401
|
];
|
|
4443
4402
|
var ObjectFitField = () => {
|
|
4444
|
-
return /* @__PURE__ */
|
|
4403
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React66.createElement(SelectControl4, { options: positionOptions2 })));
|
|
4445
4404
|
};
|
|
4446
4405
|
|
|
4447
4406
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4448
|
-
import * as
|
|
4407
|
+
import * as React67 from "react";
|
|
4449
4408
|
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
4450
4409
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
4451
|
-
import { __ as
|
|
4452
|
-
var OVERFLOW_LABEL =
|
|
4410
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4411
|
+
var OVERFLOW_LABEL = __41("Overflow", "elementor");
|
|
4453
4412
|
var options6 = [
|
|
4454
4413
|
{
|
|
4455
4414
|
value: "visible",
|
|
4456
|
-
label:
|
|
4457
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4415
|
+
label: __41("Visible", "elementor"),
|
|
4416
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(EyeIcon, { fontSize: size }),
|
|
4458
4417
|
showTooltip: true
|
|
4459
4418
|
},
|
|
4460
4419
|
{
|
|
4461
4420
|
value: "hidden",
|
|
4462
|
-
label:
|
|
4463
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4421
|
+
label: __41("Hidden", "elementor"),
|
|
4422
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(EyeOffIcon, { fontSize: size }),
|
|
4464
4423
|
showTooltip: true
|
|
4465
4424
|
},
|
|
4466
4425
|
{
|
|
4467
4426
|
value: "auto",
|
|
4468
|
-
label:
|
|
4469
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4427
|
+
label: __41("Auto", "elementor"),
|
|
4428
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(LetterAIcon, { fontSize: size }),
|
|
4470
4429
|
showTooltip: true
|
|
4471
4430
|
}
|
|
4472
4431
|
];
|
|
4473
4432
|
var OverflowField = () => {
|
|
4474
|
-
return /* @__PURE__ */
|
|
4433
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React67.createElement(ToggleControl8, { options: options6 })));
|
|
4475
4434
|
};
|
|
4476
4435
|
|
|
4477
4436
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4479,52 +4438,52 @@ var CssSizeProps = [
|
|
|
4479
4438
|
[
|
|
4480
4439
|
{
|
|
4481
4440
|
bind: "width",
|
|
4482
|
-
label:
|
|
4441
|
+
label: __42("Width", "elementor")
|
|
4483
4442
|
},
|
|
4484
4443
|
{
|
|
4485
4444
|
bind: "height",
|
|
4486
|
-
label:
|
|
4445
|
+
label: __42("Height", "elementor")
|
|
4487
4446
|
}
|
|
4488
4447
|
],
|
|
4489
4448
|
[
|
|
4490
4449
|
{
|
|
4491
4450
|
bind: "min-width",
|
|
4492
|
-
label:
|
|
4451
|
+
label: __42("Min width", "elementor")
|
|
4493
4452
|
},
|
|
4494
4453
|
{
|
|
4495
4454
|
bind: "min-height",
|
|
4496
|
-
label:
|
|
4455
|
+
label: __42("Min height", "elementor")
|
|
4497
4456
|
}
|
|
4498
4457
|
],
|
|
4499
4458
|
[
|
|
4500
4459
|
{
|
|
4501
4460
|
bind: "max-width",
|
|
4502
|
-
label:
|
|
4461
|
+
label: __42("Max width", "elementor")
|
|
4503
4462
|
},
|
|
4504
4463
|
{
|
|
4505
4464
|
bind: "max-height",
|
|
4506
|
-
label:
|
|
4465
|
+
label: __42("Max height", "elementor")
|
|
4507
4466
|
}
|
|
4508
4467
|
]
|
|
4509
4468
|
];
|
|
4510
|
-
var ASPECT_RATIO_LABEL =
|
|
4469
|
+
var ASPECT_RATIO_LABEL = __42("Aspect Ratio", "elementor");
|
|
4511
4470
|
var SizeSection = () => {
|
|
4512
4471
|
const gridRowRefs = [useRef9(null), useRef9(null), useRef9(null)];
|
|
4513
|
-
return /* @__PURE__ */
|
|
4472
|
+
return /* @__PURE__ */ React68.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React68.createElement(Grid4, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React68.createElement(Grid4, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React68.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React68.createElement(PanelDivider, null), /* @__PURE__ */ React68.createElement(Stack13, null, /* @__PURE__ */ React68.createElement(OverflowField, null)), /* @__PURE__ */ React68.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React68.createElement(Stack13, { gap: 2, pt: 2 }, /* @__PURE__ */ React68.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React68.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React68.createElement(PanelDivider, null), /* @__PURE__ */ React68.createElement(ObjectFitField, null), /* @__PURE__ */ React68.createElement(StylesField, { bind: "object-position", propDisplayName: __42("Object position", "elementor") }, /* @__PURE__ */ React68.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(PositionControl, null))))));
|
|
4514
4473
|
};
|
|
4515
4474
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4516
|
-
return /* @__PURE__ */
|
|
4475
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React68.createElement(Grid4, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React68.createElement(Grid4, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(ControlLabel, null, label)), /* @__PURE__ */ React68.createElement(Grid4, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(SizeControl6, { extendedOptions, anchorRef: rowRef }))));
|
|
4517
4476
|
};
|
|
4518
4477
|
|
|
4519
4478
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4520
|
-
import * as
|
|
4479
|
+
import * as React69 from "react";
|
|
4521
4480
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
4522
|
-
import { __ as
|
|
4523
|
-
var MARGIN_LABEL =
|
|
4524
|
-
var PADDING_LABEL =
|
|
4481
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4482
|
+
var MARGIN_LABEL = __43("Margin", "elementor");
|
|
4483
|
+
var PADDING_LABEL = __43("Padding", "elementor");
|
|
4525
4484
|
var SpacingSection = () => {
|
|
4526
4485
|
const { isSiteRtl } = useDirection();
|
|
4527
|
-
return /* @__PURE__ */
|
|
4486
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, /* @__PURE__ */ React69.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React69.createElement(
|
|
4528
4487
|
LinkedDimensionsControl,
|
|
4529
4488
|
{
|
|
4530
4489
|
label: MARGIN_LABEL,
|
|
@@ -4532,234 +4491,234 @@ var SpacingSection = () => {
|
|
|
4532
4491
|
extendedOptions: ["auto"],
|
|
4533
4492
|
min: -Number.MAX_SAFE_INTEGER
|
|
4534
4493
|
}
|
|
4535
|
-
)), /* @__PURE__ */
|
|
4494
|
+
)), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React69.createElement(LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4536
4495
|
};
|
|
4537
4496
|
|
|
4538
4497
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4539
|
-
import * as
|
|
4498
|
+
import * as React85 from "react";
|
|
4540
4499
|
|
|
4541
4500
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4542
|
-
import * as
|
|
4501
|
+
import * as React70 from "react";
|
|
4543
4502
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
4544
|
-
import { __ as
|
|
4545
|
-
var COLUMN_COUNT_LABEL =
|
|
4503
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
4504
|
+
var COLUMN_COUNT_LABEL = __44("Columns", "elementor");
|
|
4546
4505
|
var ColumnCountField = () => {
|
|
4547
|
-
return /* @__PURE__ */
|
|
4506
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React70.createElement(NumberControl5, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4548
4507
|
};
|
|
4549
4508
|
|
|
4550
4509
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4551
|
-
import * as
|
|
4510
|
+
import * as React71 from "react";
|
|
4552
4511
|
import { useRef as useRef10 } from "react";
|
|
4553
4512
|
import { SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4554
|
-
import { __ as
|
|
4555
|
-
var COLUMN_GAP_LABEL =
|
|
4513
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
4514
|
+
var COLUMN_GAP_LABEL = __45("Column gap", "elementor");
|
|
4556
4515
|
var ColumnGapField = () => {
|
|
4557
4516
|
const rowRef = useRef10(null);
|
|
4558
|
-
return /* @__PURE__ */
|
|
4517
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React71.createElement(SizeControl7, { anchorRef: rowRef })));
|
|
4559
4518
|
};
|
|
4560
4519
|
|
|
4561
4520
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4562
|
-
import * as
|
|
4521
|
+
import * as React72 from "react";
|
|
4563
4522
|
import { FontFamilyControl } from "@elementor/editor-controls";
|
|
4564
|
-
import { __ as
|
|
4565
|
-
var FONT_FAMILY_LABEL =
|
|
4523
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
4524
|
+
var FONT_FAMILY_LABEL = __46("Font family", "elementor");
|
|
4566
4525
|
var FontFamilyField = () => {
|
|
4567
4526
|
const fontFamilies = useFontFamilies();
|
|
4568
4527
|
const sectionWidth = useSectionWidth();
|
|
4569
4528
|
if (fontFamilies.length === 0) {
|
|
4570
4529
|
return null;
|
|
4571
4530
|
}
|
|
4572
|
-
return /* @__PURE__ */
|
|
4531
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React72.createElement(FontFamilyControl, { fontFamilies, sectionWidth })));
|
|
4573
4532
|
};
|
|
4574
4533
|
|
|
4575
4534
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4576
|
-
import * as
|
|
4535
|
+
import * as React73 from "react";
|
|
4577
4536
|
import { useRef as useRef11 } from "react";
|
|
4578
4537
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
4579
|
-
import { __ as
|
|
4580
|
-
var FONT_SIZE_LABEL =
|
|
4538
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
4539
|
+
var FONT_SIZE_LABEL = __47("Font size", "elementor");
|
|
4581
4540
|
var FontSizeField = () => {
|
|
4582
4541
|
const rowRef = useRef11(null);
|
|
4583
|
-
return /* @__PURE__ */
|
|
4542
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React73.createElement(SizeControl8, { anchorRef: rowRef })));
|
|
4584
4543
|
};
|
|
4585
4544
|
|
|
4586
4545
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4587
|
-
import * as
|
|
4546
|
+
import * as React74 from "react";
|
|
4588
4547
|
import { ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
4589
4548
|
import { ItalicIcon, MinusIcon as MinusIcon2 } from "@elementor/icons";
|
|
4590
|
-
import { __ as
|
|
4591
|
-
var FONT_STYLE_LABEL =
|
|
4549
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
4550
|
+
var FONT_STYLE_LABEL = __48("Font style", "elementor");
|
|
4592
4551
|
var options7 = [
|
|
4593
4552
|
{
|
|
4594
4553
|
value: "normal",
|
|
4595
|
-
label:
|
|
4596
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4554
|
+
label: __48("Normal", "elementor"),
|
|
4555
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(MinusIcon2, { fontSize: size }),
|
|
4597
4556
|
showTooltip: true
|
|
4598
4557
|
},
|
|
4599
4558
|
{
|
|
4600
4559
|
value: "italic",
|
|
4601
|
-
label:
|
|
4602
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4560
|
+
label: __48("Italic", "elementor"),
|
|
4561
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(ItalicIcon, { fontSize: size }),
|
|
4603
4562
|
showTooltip: true
|
|
4604
4563
|
}
|
|
4605
4564
|
];
|
|
4606
4565
|
var FontStyleField = () => {
|
|
4607
|
-
return /* @__PURE__ */
|
|
4566
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React74.createElement(ToggleControl9, { options: options7 })));
|
|
4608
4567
|
};
|
|
4609
4568
|
|
|
4610
4569
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4611
|
-
import * as
|
|
4570
|
+
import * as React75 from "react";
|
|
4612
4571
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
4613
|
-
import { __ as
|
|
4614
|
-
var FONT_WEIGHT_LABEL =
|
|
4572
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
4573
|
+
var FONT_WEIGHT_LABEL = __49("Font weight", "elementor");
|
|
4615
4574
|
var fontWeightOptions = [
|
|
4616
|
-
{ value: "100", label:
|
|
4617
|
-
{ value: "200", label:
|
|
4618
|
-
{ value: "300", label:
|
|
4619
|
-
{ value: "400", label:
|
|
4620
|
-
{ value: "500", label:
|
|
4621
|
-
{ value: "600", label:
|
|
4622
|
-
{ value: "700", label:
|
|
4623
|
-
{ value: "800", label:
|
|
4624
|
-
{ value: "900", label:
|
|
4575
|
+
{ value: "100", label: __49("100 - Thin", "elementor") },
|
|
4576
|
+
{ value: "200", label: __49("200 - Extra light", "elementor") },
|
|
4577
|
+
{ value: "300", label: __49("300 - Light", "elementor") },
|
|
4578
|
+
{ value: "400", label: __49("400 - Normal", "elementor") },
|
|
4579
|
+
{ value: "500", label: __49("500 - Medium", "elementor") },
|
|
4580
|
+
{ value: "600", label: __49("600 - Semi bold", "elementor") },
|
|
4581
|
+
{ value: "700", label: __49("700 - Bold", "elementor") },
|
|
4582
|
+
{ value: "800", label: __49("800 - Extra bold", "elementor") },
|
|
4583
|
+
{ value: "900", label: __49("900 - Black", "elementor") }
|
|
4625
4584
|
];
|
|
4626
4585
|
var FontWeightField = () => {
|
|
4627
|
-
return /* @__PURE__ */
|
|
4586
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(SelectControl5, { options: fontWeightOptions })));
|
|
4628
4587
|
};
|
|
4629
4588
|
|
|
4630
4589
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4631
|
-
import * as
|
|
4590
|
+
import * as React76 from "react";
|
|
4632
4591
|
import { useRef as useRef12 } from "react";
|
|
4633
4592
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
4634
|
-
import { __ as
|
|
4635
|
-
var LETTER_SPACING_LABEL =
|
|
4593
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
4594
|
+
var LETTER_SPACING_LABEL = __50("Letter spacing", "elementor");
|
|
4636
4595
|
var LetterSpacingField = () => {
|
|
4637
4596
|
const rowRef = useRef12(null);
|
|
4638
|
-
return /* @__PURE__ */
|
|
4597
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React76.createElement(SizeControl9, { anchorRef: rowRef })));
|
|
4639
4598
|
};
|
|
4640
4599
|
|
|
4641
4600
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4642
|
-
import * as
|
|
4601
|
+
import * as React77 from "react";
|
|
4643
4602
|
import { useRef as useRef13 } from "react";
|
|
4644
4603
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
4645
|
-
import { __ as
|
|
4646
|
-
var LINE_HEIGHT_LABEL =
|
|
4604
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
4605
|
+
var LINE_HEIGHT_LABEL = __51("Line height", "elementor");
|
|
4647
4606
|
var LineHeightField = () => {
|
|
4648
4607
|
const rowRef = useRef13(null);
|
|
4649
|
-
return /* @__PURE__ */
|
|
4608
|
+
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React77.createElement(SizeControl10, { anchorRef: rowRef })));
|
|
4650
4609
|
};
|
|
4651
4610
|
|
|
4652
4611
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
4653
|
-
import * as
|
|
4612
|
+
import * as React78 from "react";
|
|
4654
4613
|
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
4655
4614
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
4656
4615
|
import { withDirection as withDirection9 } from "@elementor/ui";
|
|
4657
|
-
import { __ as
|
|
4658
|
-
var TEXT_ALIGNMENT_LABEL =
|
|
4616
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
4617
|
+
var TEXT_ALIGNMENT_LABEL = __52("Text align", "elementor");
|
|
4659
4618
|
var AlignStartIcon = withDirection9(AlignLeftIcon);
|
|
4660
4619
|
var AlignEndIcon = withDirection9(AlignRightIcon);
|
|
4661
4620
|
var options8 = [
|
|
4662
4621
|
{
|
|
4663
4622
|
value: "start",
|
|
4664
|
-
label:
|
|
4665
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4623
|
+
label: __52("Start", "elementor"),
|
|
4624
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignStartIcon, { fontSize: size }),
|
|
4666
4625
|
showTooltip: true
|
|
4667
4626
|
},
|
|
4668
4627
|
{
|
|
4669
4628
|
value: "center",
|
|
4670
|
-
label:
|
|
4671
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4629
|
+
label: __52("Center", "elementor"),
|
|
4630
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignCenterIcon, { fontSize: size }),
|
|
4672
4631
|
showTooltip: true
|
|
4673
4632
|
},
|
|
4674
4633
|
{
|
|
4675
4634
|
value: "end",
|
|
4676
|
-
label:
|
|
4677
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4635
|
+
label: __52("End", "elementor"),
|
|
4636
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignEndIcon, { fontSize: size }),
|
|
4678
4637
|
showTooltip: true
|
|
4679
4638
|
},
|
|
4680
4639
|
{
|
|
4681
4640
|
value: "justify",
|
|
4682
|
-
label:
|
|
4683
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4641
|
+
label: __52("Justify", "elementor"),
|
|
4642
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
4684
4643
|
showTooltip: true
|
|
4685
4644
|
}
|
|
4686
4645
|
];
|
|
4687
4646
|
var TextAlignmentField = () => {
|
|
4688
|
-
return /* @__PURE__ */
|
|
4647
|
+
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React78.createElement(UiProviders, null, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React78.createElement(ToggleControl10, { options: options8 }))));
|
|
4689
4648
|
};
|
|
4690
4649
|
|
|
4691
4650
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
4692
|
-
import * as
|
|
4651
|
+
import * as React79 from "react";
|
|
4693
4652
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
4694
|
-
import { __ as
|
|
4695
|
-
var TEXT_COLOR_LABEL =
|
|
4653
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
4654
|
+
var TEXT_COLOR_LABEL = __53("Text color", "elementor");
|
|
4696
4655
|
var TextColorField = () => {
|
|
4697
|
-
return /* @__PURE__ */
|
|
4656
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React79.createElement(ColorControl2, null)));
|
|
4698
4657
|
};
|
|
4699
4658
|
|
|
4700
4659
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
4701
|
-
import * as
|
|
4660
|
+
import * as React80 from "react";
|
|
4702
4661
|
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
4703
4662
|
import { MinusIcon as MinusIcon3, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
4704
|
-
import { __ as
|
|
4705
|
-
var TEXT_DECORATION_LABEL =
|
|
4663
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
4664
|
+
var TEXT_DECORATION_LABEL = __54("Line decoration", "elementor");
|
|
4706
4665
|
var options9 = [
|
|
4707
4666
|
{
|
|
4708
4667
|
value: "none",
|
|
4709
|
-
label:
|
|
4710
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4668
|
+
label: __54("None", "elementor"),
|
|
4669
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(MinusIcon3, { fontSize: size }),
|
|
4711
4670
|
showTooltip: true,
|
|
4712
4671
|
exclusive: true
|
|
4713
4672
|
},
|
|
4714
4673
|
{
|
|
4715
4674
|
value: "underline",
|
|
4716
|
-
label:
|
|
4717
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4675
|
+
label: __54("Underline", "elementor"),
|
|
4676
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(UnderlineIcon, { fontSize: size }),
|
|
4718
4677
|
showTooltip: true
|
|
4719
4678
|
},
|
|
4720
4679
|
{
|
|
4721
4680
|
value: "line-through",
|
|
4722
|
-
label:
|
|
4723
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4681
|
+
label: __54("Line-through", "elementor"),
|
|
4682
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(StrikethroughIcon, { fontSize: size }),
|
|
4724
4683
|
showTooltip: true
|
|
4725
4684
|
},
|
|
4726
4685
|
{
|
|
4727
4686
|
value: "overline",
|
|
4728
|
-
label:
|
|
4729
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4687
|
+
label: __54("Overline", "elementor"),
|
|
4688
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(OverlineIcon, { fontSize: size }),
|
|
4730
4689
|
showTooltip: true
|
|
4731
4690
|
}
|
|
4732
4691
|
];
|
|
4733
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
4692
|
+
var TextDecorationField = () => /* @__PURE__ */ React80.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React80.createElement(ToggleControl11, { options: options9, exclusive: false })));
|
|
4734
4693
|
|
|
4735
4694
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
4736
|
-
import * as
|
|
4695
|
+
import * as React81 from "react";
|
|
4737
4696
|
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
4738
4697
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
4739
|
-
import { __ as
|
|
4740
|
-
var TEXT_DIRECTION_LABEL =
|
|
4698
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
4699
|
+
var TEXT_DIRECTION_LABEL = __55("Direction", "elementor");
|
|
4741
4700
|
var options10 = [
|
|
4742
4701
|
{
|
|
4743
4702
|
value: "ltr",
|
|
4744
|
-
label:
|
|
4745
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4703
|
+
label: __55("Left to right", "elementor"),
|
|
4704
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
4746
4705
|
showTooltip: true
|
|
4747
4706
|
},
|
|
4748
4707
|
{
|
|
4749
4708
|
value: "rtl",
|
|
4750
|
-
label:
|
|
4751
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4709
|
+
label: __55("Right to left", "elementor"),
|
|
4710
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
4752
4711
|
showTooltip: true
|
|
4753
4712
|
}
|
|
4754
4713
|
];
|
|
4755
4714
|
var TextDirectionField = () => {
|
|
4756
|
-
return /* @__PURE__ */
|
|
4715
|
+
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React81.createElement(ToggleControl12, { options: options10 })));
|
|
4757
4716
|
};
|
|
4758
4717
|
|
|
4759
4718
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4760
|
-
import * as
|
|
4719
|
+
import * as React82 from "react";
|
|
4761
4720
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
4762
|
-
import { __ as
|
|
4721
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
4763
4722
|
var initTextStroke = {
|
|
4764
4723
|
$$type: "stroke",
|
|
4765
4724
|
value: {
|
|
@@ -4776,7 +4735,7 @@ var initTextStroke = {
|
|
|
4776
4735
|
}
|
|
4777
4736
|
}
|
|
4778
4737
|
};
|
|
4779
|
-
var TEXT_STROKE_LABEL =
|
|
4738
|
+
var TEXT_STROKE_LABEL = __56("Text stroke", "elementor");
|
|
4780
4739
|
var TextStrokeField = () => {
|
|
4781
4740
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
4782
4741
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -4788,67 +4747,67 @@ var TextStrokeField = () => {
|
|
|
4788
4747
|
setValue(null);
|
|
4789
4748
|
};
|
|
4790
4749
|
const hasTextStroke = Boolean(value);
|
|
4791
|
-
return /* @__PURE__ */
|
|
4750
|
+
return /* @__PURE__ */ React82.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React82.createElement(
|
|
4792
4751
|
AddOrRemoveContent,
|
|
4793
4752
|
{
|
|
4794
4753
|
isAdded: hasTextStroke,
|
|
4795
4754
|
onAdd: addTextStroke,
|
|
4796
4755
|
onRemove: removeTextStroke,
|
|
4797
4756
|
disabled: !canEdit,
|
|
4798
|
-
renderLabel: () => /* @__PURE__ */
|
|
4757
|
+
renderLabel: () => /* @__PURE__ */ React82.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
4799
4758
|
},
|
|
4800
|
-
/* @__PURE__ */
|
|
4759
|
+
/* @__PURE__ */ React82.createElement(StrokeControl, null)
|
|
4801
4760
|
));
|
|
4802
4761
|
};
|
|
4803
4762
|
|
|
4804
4763
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
4805
|
-
import * as
|
|
4764
|
+
import * as React83 from "react";
|
|
4806
4765
|
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
4807
4766
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
4808
|
-
import { __ as
|
|
4809
|
-
var TEXT_TRANSFORM_LABEL =
|
|
4767
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
4768
|
+
var TEXT_TRANSFORM_LABEL = __57("Text transform", "elementor");
|
|
4810
4769
|
var options11 = [
|
|
4811
4770
|
{
|
|
4812
4771
|
value: "none",
|
|
4813
|
-
label:
|
|
4814
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4772
|
+
label: __57("None", "elementor"),
|
|
4773
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(MinusIcon4, { fontSize: size }),
|
|
4815
4774
|
showTooltip: true
|
|
4816
4775
|
},
|
|
4817
4776
|
{
|
|
4818
4777
|
value: "capitalize",
|
|
4819
|
-
label:
|
|
4820
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4778
|
+
label: __57("Capitalize", "elementor"),
|
|
4779
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(LetterCaseIcon, { fontSize: size }),
|
|
4821
4780
|
showTooltip: true
|
|
4822
4781
|
},
|
|
4823
4782
|
{
|
|
4824
4783
|
value: "uppercase",
|
|
4825
|
-
label:
|
|
4826
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4784
|
+
label: __57("Uppercase", "elementor"),
|
|
4785
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
4827
4786
|
showTooltip: true
|
|
4828
4787
|
},
|
|
4829
4788
|
{
|
|
4830
4789
|
value: "lowercase",
|
|
4831
|
-
label:
|
|
4832
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4790
|
+
label: __57("Lowercase", "elementor"),
|
|
4791
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
4833
4792
|
showTooltip: true
|
|
4834
4793
|
}
|
|
4835
4794
|
];
|
|
4836
|
-
var TransformField = () => /* @__PURE__ */
|
|
4795
|
+
var TransformField = () => /* @__PURE__ */ React83.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React83.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React83.createElement(ToggleControl13, { options: options11 })));
|
|
4837
4796
|
|
|
4838
4797
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
4839
|
-
import * as
|
|
4798
|
+
import * as React84 from "react";
|
|
4840
4799
|
import { useRef as useRef14 } from "react";
|
|
4841
4800
|
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
4842
|
-
import { __ as
|
|
4843
|
-
var WORD_SPACING_LABEL =
|
|
4801
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
4802
|
+
var WORD_SPACING_LABEL = __58("Word spacing", "elementor");
|
|
4844
4803
|
var WordSpacingField = () => {
|
|
4845
4804
|
const rowRef = useRef14(null);
|
|
4846
|
-
return /* @__PURE__ */
|
|
4805
|
+
return /* @__PURE__ */ React84.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React84.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React84.createElement(SizeControl11, { anchorRef: rowRef })));
|
|
4847
4806
|
};
|
|
4848
4807
|
|
|
4849
4808
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4850
4809
|
var TypographySection = () => {
|
|
4851
|
-
return /* @__PURE__ */
|
|
4810
|
+
return /* @__PURE__ */ React85.createElement(SectionContent, null, /* @__PURE__ */ React85.createElement(FontFamilyField, null), /* @__PURE__ */ React85.createElement(FontWeightField, null), /* @__PURE__ */ React85.createElement(FontSizeField, null), /* @__PURE__ */ React85.createElement(PanelDivider, null), /* @__PURE__ */ React85.createElement(TextAlignmentField, null), /* @__PURE__ */ React85.createElement(TextColorField, null), /* @__PURE__ */ React85.createElement(
|
|
4852
4811
|
StyleTabCollapsibleContent,
|
|
4853
4812
|
{
|
|
4854
4813
|
fields: [
|
|
@@ -4863,18 +4822,18 @@ var TypographySection = () => {
|
|
|
4863
4822
|
"stroke"
|
|
4864
4823
|
]
|
|
4865
4824
|
},
|
|
4866
|
-
/* @__PURE__ */
|
|
4825
|
+
/* @__PURE__ */ React85.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React85.createElement(LineHeightField, null), /* @__PURE__ */ React85.createElement(LetterSpacingField, null), /* @__PURE__ */ React85.createElement(WordSpacingField, null), /* @__PURE__ */ React85.createElement(ColumnCountField, null), /* @__PURE__ */ React85.createElement(ColumnGapField, null), /* @__PURE__ */ React85.createElement(PanelDivider, null), /* @__PURE__ */ React85.createElement(TextDecorationField, null), /* @__PURE__ */ React85.createElement(TransformField, null), /* @__PURE__ */ React85.createElement(TextDirectionField, null), /* @__PURE__ */ React85.createElement(FontStyleField, null), /* @__PURE__ */ React85.createElement(TextStrokeField, null))
|
|
4867
4826
|
));
|
|
4868
4827
|
};
|
|
4869
4828
|
|
|
4870
4829
|
// src/components/style-tab-section.tsx
|
|
4871
|
-
import * as
|
|
4830
|
+
import * as React86 from "react";
|
|
4872
4831
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
4873
4832
|
const { component, name, title } = section;
|
|
4874
4833
|
const tabDefaults = useDefaultPanelSettings();
|
|
4875
4834
|
const SectionComponent = component;
|
|
4876
4835
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
4877
|
-
return /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ React86.createElement(
|
|
4878
4837
|
Section,
|
|
4879
4838
|
{
|
|
4880
4839
|
title,
|
|
@@ -4882,7 +4841,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
4882
4841
|
titleEnd: getStylesInheritanceIndicators(fields),
|
|
4883
4842
|
unmountOnExit
|
|
4884
4843
|
},
|
|
4885
|
-
/* @__PURE__ */
|
|
4844
|
+
/* @__PURE__ */ React86.createElement(SectionComponent, null)
|
|
4886
4845
|
);
|
|
4887
4846
|
};
|
|
4888
4847
|
|
|
@@ -4899,10 +4858,9 @@ var stickyHeaderStyles = {
|
|
|
4899
4858
|
var StyleTab = () => {
|
|
4900
4859
|
const currentClassesProp = useCurrentClassesProp();
|
|
4901
4860
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
|
|
4902
|
-
const [activeStyleState, setActiveStyleState] =
|
|
4861
|
+
const [activeStyleState, setActiveStyleState] = useState12(null);
|
|
4903
4862
|
const breakpoint = useActiveBreakpoint();
|
|
4904
|
-
|
|
4905
|
-
return /* @__PURE__ */ React89.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React89.createElement(
|
|
4863
|
+
return /* @__PURE__ */ React87.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React87.createElement(
|
|
4906
4864
|
StyleProvider,
|
|
4907
4865
|
{
|
|
4908
4866
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -4913,13 +4871,13 @@ var StyleTab = () => {
|
|
|
4913
4871
|
},
|
|
4914
4872
|
setMetaState: setActiveStyleState
|
|
4915
4873
|
},
|
|
4916
|
-
/* @__PURE__ */
|
|
4874
|
+
/* @__PURE__ */ React87.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React87.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React87.createElement(ClassesHeader, null, /* @__PURE__ */ React87.createElement(CssClassSelector, null), /* @__PURE__ */ React87.createElement(Divider5, null)), /* @__PURE__ */ React87.createElement(SectionsList, null, /* @__PURE__ */ React87.createElement(
|
|
4917
4875
|
StyleTabSection,
|
|
4918
4876
|
{
|
|
4919
4877
|
section: {
|
|
4920
4878
|
component: LayoutSection,
|
|
4921
4879
|
name: "Layout",
|
|
4922
|
-
title:
|
|
4880
|
+
title: __59("Layout", "elementor")
|
|
4923
4881
|
},
|
|
4924
4882
|
fields: [
|
|
4925
4883
|
"display",
|
|
@@ -4932,23 +4890,23 @@ var StyleTab = () => {
|
|
|
4932
4890
|
"gap"
|
|
4933
4891
|
]
|
|
4934
4892
|
}
|
|
4935
|
-
), /* @__PURE__ */
|
|
4893
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4936
4894
|
StyleTabSection,
|
|
4937
4895
|
{
|
|
4938
4896
|
section: {
|
|
4939
4897
|
component: SpacingSection,
|
|
4940
4898
|
name: "Spacing",
|
|
4941
|
-
title:
|
|
4899
|
+
title: __59("Spacing", "elementor")
|
|
4942
4900
|
},
|
|
4943
4901
|
fields: ["margin", "padding"]
|
|
4944
4902
|
}
|
|
4945
|
-
), /* @__PURE__ */
|
|
4903
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4946
4904
|
StyleTabSection,
|
|
4947
4905
|
{
|
|
4948
4906
|
section: {
|
|
4949
4907
|
component: SizeSection,
|
|
4950
4908
|
name: "Size",
|
|
4951
|
-
title:
|
|
4909
|
+
title: __59("Size", "elementor")
|
|
4952
4910
|
},
|
|
4953
4911
|
fields: [
|
|
4954
4912
|
"width",
|
|
@@ -4962,23 +4920,23 @@ var StyleTab = () => {
|
|
|
4962
4920
|
"object-fit"
|
|
4963
4921
|
]
|
|
4964
4922
|
}
|
|
4965
|
-
), /* @__PURE__ */
|
|
4923
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4966
4924
|
StyleTabSection,
|
|
4967
4925
|
{
|
|
4968
4926
|
section: {
|
|
4969
4927
|
component: PositionSection,
|
|
4970
4928
|
name: "Position",
|
|
4971
|
-
title:
|
|
4929
|
+
title: __59("Position", "elementor")
|
|
4972
4930
|
},
|
|
4973
4931
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
4974
4932
|
}
|
|
4975
|
-
), /* @__PURE__ */
|
|
4933
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4976
4934
|
StyleTabSection,
|
|
4977
4935
|
{
|
|
4978
4936
|
section: {
|
|
4979
4937
|
component: TypographySection,
|
|
4980
4938
|
name: "Typography",
|
|
4981
|
-
title:
|
|
4939
|
+
title: __59("Typography", "elementor")
|
|
4982
4940
|
},
|
|
4983
4941
|
fields: [
|
|
4984
4942
|
"font-family",
|
|
@@ -4997,33 +4955,33 @@ var StyleTab = () => {
|
|
|
4997
4955
|
"stroke"
|
|
4998
4956
|
]
|
|
4999
4957
|
}
|
|
5000
|
-
), /* @__PURE__ */
|
|
4958
|
+
), /* @__PURE__ */ React87.createElement(
|
|
5001
4959
|
StyleTabSection,
|
|
5002
4960
|
{
|
|
5003
4961
|
section: {
|
|
5004
4962
|
component: BackgroundSection,
|
|
5005
4963
|
name: "Background",
|
|
5006
|
-
title:
|
|
4964
|
+
title: __59("Background", "elementor")
|
|
5007
4965
|
},
|
|
5008
4966
|
fields: ["background"]
|
|
5009
4967
|
}
|
|
5010
|
-
), /* @__PURE__ */
|
|
4968
|
+
), /* @__PURE__ */ React87.createElement(
|
|
5011
4969
|
StyleTabSection,
|
|
5012
4970
|
{
|
|
5013
4971
|
section: {
|
|
5014
4972
|
component: BorderSection,
|
|
5015
4973
|
name: "Border",
|
|
5016
|
-
title:
|
|
4974
|
+
title: __59("Border", "elementor")
|
|
5017
4975
|
},
|
|
5018
4976
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5019
4977
|
}
|
|
5020
|
-
), /* @__PURE__ */
|
|
4978
|
+
), /* @__PURE__ */ React87.createElement(
|
|
5021
4979
|
StyleTabSection,
|
|
5022
4980
|
{
|
|
5023
4981
|
section: {
|
|
5024
4982
|
component: EffectsSection,
|
|
5025
4983
|
name: "Effects",
|
|
5026
|
-
title:
|
|
4984
|
+
title: __59("Effects", "elementor")
|
|
5027
4985
|
},
|
|
5028
4986
|
fields: [
|
|
5029
4987
|
"box-shadow",
|
|
@@ -5035,23 +4993,12 @@ var StyleTab = () => {
|
|
|
5035
4993
|
"transition"
|
|
5036
4994
|
]
|
|
5037
4995
|
}
|
|
5038
|
-
),
|
|
5039
|
-
StyleTabSection,
|
|
5040
|
-
{
|
|
5041
|
-
section: {
|
|
5042
|
-
component: CustomCss,
|
|
5043
|
-
name: "Custom CSS",
|
|
5044
|
-
title: __60("Custom CSS", "elementor")
|
|
5045
|
-
},
|
|
5046
|
-
fields: ["custom_css"],
|
|
5047
|
-
unmountOnExit: false
|
|
5048
|
-
}
|
|
5049
|
-
), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(Box7, { sx: { height: "150px" } })))
|
|
4996
|
+
), /* @__PURE__ */ React87.createElement(StyleTabSlot, null)), /* @__PURE__ */ React87.createElement(Box7, { sx: { height: "150px" } })))
|
|
5050
4997
|
));
|
|
5051
4998
|
};
|
|
5052
4999
|
function ClassesHeader({ children }) {
|
|
5053
5000
|
const scrollDirection = useScrollDirection();
|
|
5054
|
-
return /* @__PURE__ */
|
|
5001
|
+
return /* @__PURE__ */ React87.createElement(Stack14, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5055
5002
|
}
|
|
5056
5003
|
function useCurrentClassesProp() {
|
|
5057
5004
|
const { elementType } = useElement();
|
|
@@ -5070,7 +5017,7 @@ var EditingPanelTabs = () => {
|
|
|
5070
5017
|
return (
|
|
5071
5018
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5072
5019
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5073
|
-
/* @__PURE__ */
|
|
5020
|
+
/* @__PURE__ */ React88.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React88.createElement(PanelTabContent, null))
|
|
5074
5021
|
);
|
|
5075
5022
|
};
|
|
5076
5023
|
var PanelTabContent = () => {
|
|
@@ -5078,7 +5025,7 @@ var PanelTabContent = () => {
|
|
|
5078
5025
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
5079
5026
|
const [currentTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5080
5027
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5081
|
-
return /* @__PURE__ */
|
|
5028
|
+
return /* @__PURE__ */ React88.createElement(ScrollProvider, null, /* @__PURE__ */ React88.createElement(Stack15, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React88.createElement(Stack15, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React88.createElement(
|
|
5082
5029
|
Tabs,
|
|
5083
5030
|
{
|
|
5084
5031
|
variant: "fullWidth",
|
|
@@ -5090,9 +5037,9 @@ var PanelTabContent = () => {
|
|
|
5090
5037
|
setCurrentTab(newValue);
|
|
5091
5038
|
}
|
|
5092
5039
|
},
|
|
5093
|
-
/* @__PURE__ */
|
|
5094
|
-
/* @__PURE__ */
|
|
5095
|
-
), /* @__PURE__ */
|
|
5040
|
+
/* @__PURE__ */ React88.createElement(Tab, { label: __60("General", "elementor"), ...getTabProps("settings") }),
|
|
5041
|
+
/* @__PURE__ */ React88.createElement(Tab, { label: __60("Style", "elementor"), ...getTabProps("style") })
|
|
5042
|
+
), /* @__PURE__ */ React88.createElement(Divider6, null)), /* @__PURE__ */ React88.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React88.createElement(SettingsTab, null)), /* @__PURE__ */ React88.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React88.createElement(StyleTab, null))));
|
|
5096
5043
|
};
|
|
5097
5044
|
|
|
5098
5045
|
// src/components/editing-panel.tsx
|
|
@@ -5104,8 +5051,8 @@ var EditingPanel = () => {
|
|
|
5104
5051
|
if (!element || !elementType) {
|
|
5105
5052
|
return null;
|
|
5106
5053
|
}
|
|
5107
|
-
const panelTitle =
|
|
5108
|
-
return /* @__PURE__ */
|
|
5054
|
+
const panelTitle = __61("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5055
|
+
return /* @__PURE__ */ React89.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React89.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React89.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React89.createElement(ThemeProvider3, null, /* @__PURE__ */ React89.createElement(Panel, null, /* @__PURE__ */ React89.createElement(PanelHeader, null, /* @__PURE__ */ React89.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React89.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React89.createElement(PanelBody, null, /* @__PURE__ */ React89.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React89.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React89.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React89.createElement(EditingPanelTabs, null)))))))));
|
|
5109
5056
|
};
|
|
5110
5057
|
|
|
5111
5058
|
// src/panel.ts
|
|
@@ -5148,7 +5095,7 @@ import { settingsTransformersRegistry, styleTransformersRegistry as styleTransfo
|
|
|
5148
5095
|
import { injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel } from "@elementor/editor-controls";
|
|
5149
5096
|
|
|
5150
5097
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5151
|
-
import * as
|
|
5098
|
+
import * as React90 from "react";
|
|
5152
5099
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp6 } from "@elementor/editor-controls";
|
|
5153
5100
|
import {
|
|
5154
5101
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -5234,25 +5181,25 @@ var useDynamicTag = (tagName) => {
|
|
|
5234
5181
|
};
|
|
5235
5182
|
|
|
5236
5183
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5237
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
5184
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React90.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
5238
5185
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
5239
5186
|
const context = useBoundProp6(backgroundImageOverlayPropTypeUtil);
|
|
5240
|
-
return /* @__PURE__ */
|
|
5187
|
+
return /* @__PURE__ */ React90.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React90.createElement(Wrapper, { rawValue: value.value })));
|
|
5241
5188
|
};
|
|
5242
5189
|
var Wrapper = ({ rawValue }) => {
|
|
5243
5190
|
const { propType } = useBoundProp6();
|
|
5244
5191
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
5245
|
-
return /* @__PURE__ */
|
|
5192
|
+
return /* @__PURE__ */ React90.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React90.createElement(Content, { rawValue: rawValue.image })));
|
|
5246
5193
|
};
|
|
5247
5194
|
var Content = ({ rawValue }) => {
|
|
5248
5195
|
const src = rawValue.value.src;
|
|
5249
5196
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
5250
|
-
return /* @__PURE__ */
|
|
5197
|
+
return /* @__PURE__ */ React90.createElement(React90.Fragment, null, dynamicTag?.label);
|
|
5251
5198
|
};
|
|
5252
5199
|
|
|
5253
5200
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5254
|
-
import * as
|
|
5255
|
-
import { ControlFormLabel as
|
|
5201
|
+
import * as React93 from "react";
|
|
5202
|
+
import { ControlFormLabel as ControlFormLabel5, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
5256
5203
|
import { PopoverHeader as PopoverHeader3 } from "@elementor/editor-ui";
|
|
5257
5204
|
import { DatabaseIcon as DatabaseIcon3, SettingsIcon, XIcon } from "@elementor/icons";
|
|
5258
5205
|
import {
|
|
@@ -5263,7 +5210,7 @@ import {
|
|
|
5263
5210
|
Grid as Grid5,
|
|
5264
5211
|
IconButton as IconButton5,
|
|
5265
5212
|
Popover as Popover2,
|
|
5266
|
-
Stack as
|
|
5213
|
+
Stack as Stack17,
|
|
5267
5214
|
Tab as Tab2,
|
|
5268
5215
|
TabPanel as TabPanel2,
|
|
5269
5216
|
Tabs as Tabs2,
|
|
@@ -5271,7 +5218,7 @@ import {
|
|
|
5271
5218
|
usePopupState as usePopupState3,
|
|
5272
5219
|
useTabs as useTabs2
|
|
5273
5220
|
} from "@elementor/ui";
|
|
5274
|
-
import { __ as
|
|
5221
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
5275
5222
|
|
|
5276
5223
|
// src/hooks/use-persist-dynamic-value.ts
|
|
5277
5224
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
@@ -5282,7 +5229,7 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
5282
5229
|
};
|
|
5283
5230
|
|
|
5284
5231
|
// src/dynamics/dynamic-control.tsx
|
|
5285
|
-
import * as
|
|
5232
|
+
import * as React91 from "react";
|
|
5286
5233
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
|
|
5287
5234
|
var DynamicControl = ({ bind, children }) => {
|
|
5288
5235
|
const { value, setValue } = useBoundProp7(dynamicPropTypeUtil);
|
|
@@ -5304,20 +5251,20 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5304
5251
|
});
|
|
5305
5252
|
};
|
|
5306
5253
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5307
|
-
return /* @__PURE__ */
|
|
5254
|
+
return /* @__PURE__ */ React91.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React91.createElement(PropKeyProvider5, { bind }, children));
|
|
5308
5255
|
};
|
|
5309
5256
|
|
|
5310
5257
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5311
|
-
import { Fragment as Fragment11, useState as
|
|
5312
|
-
import * as
|
|
5258
|
+
import { Fragment as Fragment11, useState as useState13 } from "react";
|
|
5259
|
+
import * as React92 from "react";
|
|
5313
5260
|
import { useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
|
|
5314
5261
|
import { PopoverHeader as PopoverHeader2, PopoverMenuList, PopoverSearch } from "@elementor/editor-ui";
|
|
5315
5262
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
5316
|
-
import { Divider as Divider7, Link as Link2, Stack as
|
|
5317
|
-
import { __ as
|
|
5263
|
+
import { Divider as Divider7, Link as Link2, Stack as Stack16, Typography as Typography5, useTheme as useTheme3 } from "@elementor/ui";
|
|
5264
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
5318
5265
|
var SIZE6 = "tiny";
|
|
5319
5266
|
var DynamicSelection = ({ close: closePopover }) => {
|
|
5320
|
-
const [searchValue, setSearchValue] =
|
|
5267
|
+
const [searchValue, setSearchValue] = useState13("");
|
|
5321
5268
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
5322
5269
|
const theme = useTheme3();
|
|
5323
5270
|
const { value: anyValue } = useBoundProp8();
|
|
@@ -5349,21 +5296,21 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
5349
5296
|
label: item.label
|
|
5350
5297
|
}))
|
|
5351
5298
|
]);
|
|
5352
|
-
return /* @__PURE__ */
|
|
5299
|
+
return /* @__PURE__ */ React92.createElement(PopoverBody, null, /* @__PURE__ */ React92.createElement(
|
|
5353
5300
|
PopoverHeader2,
|
|
5354
5301
|
{
|
|
5355
|
-
title:
|
|
5302
|
+
title: __62("Dynamic tags", "elementor"),
|
|
5356
5303
|
onClose: closePopover,
|
|
5357
|
-
icon: /* @__PURE__ */
|
|
5304
|
+
icon: /* @__PURE__ */ React92.createElement(DatabaseIcon2, { fontSize: SIZE6 })
|
|
5358
5305
|
}
|
|
5359
|
-
), hasNoDynamicTags ? /* @__PURE__ */
|
|
5306
|
+
), hasNoDynamicTags ? /* @__PURE__ */ React92.createElement(NoDynamicTags, null) : /* @__PURE__ */ React92.createElement(Fragment11, null, /* @__PURE__ */ React92.createElement(
|
|
5360
5307
|
PopoverSearch,
|
|
5361
5308
|
{
|
|
5362
5309
|
value: searchValue,
|
|
5363
5310
|
onSearch: handleSearch,
|
|
5364
|
-
placeholder:
|
|
5311
|
+
placeholder: __62("Search dynamic tags\u2026", "elementor")
|
|
5365
5312
|
}
|
|
5366
|
-
), /* @__PURE__ */
|
|
5313
|
+
), /* @__PURE__ */ React92.createElement(Divider7, null), /* @__PURE__ */ React92.createElement(
|
|
5367
5314
|
PopoverMenuList,
|
|
5368
5315
|
{
|
|
5369
5316
|
items: virtualizedItems,
|
|
@@ -5371,12 +5318,12 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
5371
5318
|
onClose: closePopover,
|
|
5372
5319
|
selectedValue: dynamicValue?.name,
|
|
5373
5320
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
5374
|
-
noResultsComponent: /* @__PURE__ */
|
|
5321
|
+
noResultsComponent: /* @__PURE__ */ React92.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
5375
5322
|
}
|
|
5376
5323
|
)));
|
|
5377
5324
|
};
|
|
5378
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
5379
|
-
|
|
5325
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React92.createElement(
|
|
5326
|
+
Stack16,
|
|
5380
5327
|
{
|
|
5381
5328
|
gap: 1,
|
|
5382
5329
|
alignItems: "center",
|
|
@@ -5386,12 +5333,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React94.createElem
|
|
|
5386
5333
|
color: "text.secondary",
|
|
5387
5334
|
sx: { pb: 3.5 }
|
|
5388
5335
|
},
|
|
5389
|
-
/* @__PURE__ */
|
|
5390
|
-
/* @__PURE__ */
|
|
5391
|
-
/* @__PURE__ */
|
|
5336
|
+
/* @__PURE__ */ React92.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
5337
|
+
/* @__PURE__ */ React92.createElement(Typography5, { align: "center", variant: "subtitle2" }, __62("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React92.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
5338
|
+
/* @__PURE__ */ React92.createElement(Typography5, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __62("Try something else.", "elementor"), /* @__PURE__ */ React92.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __62("Clear & try again", "elementor")))
|
|
5392
5339
|
);
|
|
5393
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
5394
|
-
|
|
5340
|
+
var NoDynamicTags = () => /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(Divider7, null), /* @__PURE__ */ React92.createElement(
|
|
5341
|
+
Stack16,
|
|
5395
5342
|
{
|
|
5396
5343
|
gap: 1,
|
|
5397
5344
|
alignItems: "center",
|
|
@@ -5401,9 +5348,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React94.createElement(React94.Fragment
|
|
|
5401
5348
|
color: "text.secondary",
|
|
5402
5349
|
sx: { pb: 3.5 }
|
|
5403
5350
|
},
|
|
5404
|
-
/* @__PURE__ */
|
|
5405
|
-
/* @__PURE__ */
|
|
5406
|
-
/* @__PURE__ */
|
|
5351
|
+
/* @__PURE__ */ React92.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
5352
|
+
/* @__PURE__ */ React92.createElement(Typography5, { align: "center", variant: "subtitle2" }, __62("Streamline your workflow with dynamic tags", "elementor")),
|
|
5353
|
+
/* @__PURE__ */ React92.createElement(Typography5, { align: "center", variant: "caption" }, __62("You'll need Elementor Pro to use this feature.", "elementor"))
|
|
5407
5354
|
));
|
|
5408
5355
|
var useFilteredOptions = (searchValue) => {
|
|
5409
5356
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -5436,25 +5383,25 @@ var DynamicSelectionControl = () => {
|
|
|
5436
5383
|
if (!dynamicTag) {
|
|
5437
5384
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
5438
5385
|
}
|
|
5439
|
-
return /* @__PURE__ */
|
|
5386
|
+
return /* @__PURE__ */ React93.createElement(Box8, null, /* @__PURE__ */ React93.createElement(
|
|
5440
5387
|
Tag,
|
|
5441
5388
|
{
|
|
5442
5389
|
fullWidth: true,
|
|
5443
5390
|
showActionsOnHover: true,
|
|
5444
5391
|
label: dynamicTag.label,
|
|
5445
|
-
startIcon: /* @__PURE__ */
|
|
5392
|
+
startIcon: /* @__PURE__ */ React93.createElement(DatabaseIcon3, { fontSize: SIZE7 }),
|
|
5446
5393
|
...bindTrigger3(selectionPopoverState),
|
|
5447
|
-
actions: /* @__PURE__ */
|
|
5394
|
+
actions: /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React93.createElement(
|
|
5448
5395
|
IconButton5,
|
|
5449
5396
|
{
|
|
5450
5397
|
size: SIZE7,
|
|
5451
5398
|
onClick: removeDynamicTag,
|
|
5452
|
-
"aria-label":
|
|
5399
|
+
"aria-label": __63("Remove dynamic value", "elementor")
|
|
5453
5400
|
},
|
|
5454
|
-
/* @__PURE__ */
|
|
5401
|
+
/* @__PURE__ */ React93.createElement(XIcon, { fontSize: SIZE7 })
|
|
5455
5402
|
))
|
|
5456
5403
|
}
|
|
5457
|
-
), /* @__PURE__ */
|
|
5404
|
+
), /* @__PURE__ */ React93.createElement(
|
|
5458
5405
|
Popover2,
|
|
5459
5406
|
{
|
|
5460
5407
|
disablePortal: true,
|
|
@@ -5466,7 +5413,7 @@ var DynamicSelectionControl = () => {
|
|
|
5466
5413
|
},
|
|
5467
5414
|
...bindPopover2(selectionPopoverState)
|
|
5468
5415
|
},
|
|
5469
|
-
/* @__PURE__ */
|
|
5416
|
+
/* @__PURE__ */ React93.createElement(PopoverBody, null, /* @__PURE__ */ React93.createElement(DynamicSelection, { close: selectionPopoverState.close }))
|
|
5470
5417
|
));
|
|
5471
5418
|
};
|
|
5472
5419
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
@@ -5475,7 +5422,7 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
5475
5422
|
if (!hasDynamicSettings) {
|
|
5476
5423
|
return null;
|
|
5477
5424
|
}
|
|
5478
|
-
return /* @__PURE__ */
|
|
5425
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(IconButton5, { size: SIZE7, ...bindTrigger3(popupState), "aria-label": __63("Settings", "elementor") }, /* @__PURE__ */ React93.createElement(SettingsIcon, { fontSize: SIZE7 })), /* @__PURE__ */ React93.createElement(
|
|
5479
5426
|
Popover2,
|
|
5480
5427
|
{
|
|
5481
5428
|
disablePortal: true,
|
|
@@ -5487,14 +5434,14 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
5487
5434
|
},
|
|
5488
5435
|
...bindPopover2(popupState)
|
|
5489
5436
|
},
|
|
5490
|
-
/* @__PURE__ */
|
|
5437
|
+
/* @__PURE__ */ React93.createElement(PopoverBody, null, /* @__PURE__ */ React93.createElement(
|
|
5491
5438
|
PopoverHeader3,
|
|
5492
5439
|
{
|
|
5493
5440
|
title: dynamicTag.label,
|
|
5494
5441
|
onClose: popupState.close,
|
|
5495
|
-
icon: /* @__PURE__ */
|
|
5442
|
+
icon: /* @__PURE__ */ React93.createElement(DatabaseIcon3, { fontSize: SIZE7 })
|
|
5496
5443
|
}
|
|
5497
|
-
), /* @__PURE__ */
|
|
5444
|
+
), /* @__PURE__ */ React93.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
5498
5445
|
));
|
|
5499
5446
|
};
|
|
5500
5447
|
var DynamicSettings = ({ controls }) => {
|
|
@@ -5503,17 +5450,17 @@ var DynamicSettings = ({ controls }) => {
|
|
|
5503
5450
|
if (!tabs.length) {
|
|
5504
5451
|
return null;
|
|
5505
5452
|
}
|
|
5506
|
-
return /* @__PURE__ */
|
|
5507
|
-
return /* @__PURE__ */
|
|
5453
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React93.createElement(Tab2, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React93.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
5454
|
+
return /* @__PURE__ */ React93.createElement(
|
|
5508
5455
|
TabPanel2,
|
|
5509
5456
|
{
|
|
5510
5457
|
key: index,
|
|
5511
5458
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
5512
5459
|
...getTabPanelProps(index)
|
|
5513
5460
|
},
|
|
5514
|
-
/* @__PURE__ */
|
|
5461
|
+
/* @__PURE__ */ React93.createElement(Stack17, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
5515
5462
|
if (item.type === "control") {
|
|
5516
|
-
return /* @__PURE__ */
|
|
5463
|
+
return /* @__PURE__ */ React93.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
5517
5464
|
}
|
|
5518
5465
|
return null;
|
|
5519
5466
|
}))
|
|
@@ -5531,15 +5478,15 @@ var Control3 = ({ control }) => {
|
|
|
5531
5478
|
return null;
|
|
5532
5479
|
}
|
|
5533
5480
|
const layout = getLayout(control);
|
|
5534
|
-
return /* @__PURE__ */
|
|
5481
|
+
return /* @__PURE__ */ React93.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React93.createElement(
|
|
5535
5482
|
Grid5,
|
|
5536
5483
|
{
|
|
5537
5484
|
container: true,
|
|
5538
5485
|
gap: 0.75,
|
|
5539
5486
|
sx: layout === "two-columns" ? { display: "grid", gridTemplateColumns: "1fr 1fr" } : {}
|
|
5540
5487
|
},
|
|
5541
|
-
control.label ? /* @__PURE__ */
|
|
5542
|
-
/* @__PURE__ */
|
|
5488
|
+
control.label ? /* @__PURE__ */ React93.createElement(Grid5, { item: true, xs: 12 }, /* @__PURE__ */ React93.createElement(ControlFormLabel5, null, control.label)) : null,
|
|
5489
|
+
/* @__PURE__ */ React93.createElement(Grid5, { item: true, xs: 12 }, /* @__PURE__ */ React93.createElement(Control, { type: control.type, props: control.props }))
|
|
5543
5490
|
));
|
|
5544
5491
|
};
|
|
5545
5492
|
|
|
@@ -5593,18 +5540,18 @@ function getDynamicValue(name, settings) {
|
|
|
5593
5540
|
}
|
|
5594
5541
|
|
|
5595
5542
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
5596
|
-
import * as
|
|
5543
|
+
import * as React94 from "react";
|
|
5597
5544
|
import { useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
|
|
5598
5545
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
5599
|
-
import { __ as
|
|
5546
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
5600
5547
|
var usePropDynamicAction = () => {
|
|
5601
5548
|
const { propType } = useBoundProp10();
|
|
5602
5549
|
const visible = !!propType && supportsDynamic(propType);
|
|
5603
5550
|
return {
|
|
5604
5551
|
visible,
|
|
5605
5552
|
icon: DatabaseIcon4,
|
|
5606
|
-
title:
|
|
5607
|
-
content: ({ close }) => /* @__PURE__ */
|
|
5553
|
+
title: __64("Dynamic tags", "elementor"),
|
|
5554
|
+
content: ({ close }) => /* @__PURE__ */ React94.createElement(DynamicSelection, { close })
|
|
5608
5555
|
};
|
|
5609
5556
|
};
|
|
5610
5557
|
|
|
@@ -5636,7 +5583,7 @@ var init = () => {
|
|
|
5636
5583
|
// src/reset-style-props.tsx
|
|
5637
5584
|
import { useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
|
|
5638
5585
|
import { BrushBigIcon } from "@elementor/icons";
|
|
5639
|
-
import { __ as
|
|
5586
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
5640
5587
|
var { registerAction } = controlActionsMenu;
|
|
5641
5588
|
function initResetStyleProps() {
|
|
5642
5589
|
registerAction({
|
|
@@ -5650,7 +5597,7 @@ function useResetStyleValueProps() {
|
|
|
5650
5597
|
const isInRepeater = path?.some((key) => !isNaN(Number(key)));
|
|
5651
5598
|
return {
|
|
5652
5599
|
visible: isStyle && value !== null && value !== void 0 && !isInRepeater,
|
|
5653
|
-
title:
|
|
5600
|
+
title: __65("Clear", "elementor"),
|
|
5654
5601
|
icon: BrushBigIcon,
|
|
5655
5602
|
onClick: () => setValue(null)
|
|
5656
5603
|
};
|
|
@@ -5674,16 +5621,16 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
5674
5621
|
]);
|
|
5675
5622
|
|
|
5676
5623
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
5677
|
-
import * as
|
|
5624
|
+
import * as React95 from "react";
|
|
5678
5625
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
5679
|
-
import { Stack as
|
|
5680
|
-
var backgroundColorOverlayTransformer = createTransformer2((value) => /* @__PURE__ */
|
|
5626
|
+
import { Stack as Stack18, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
|
|
5627
|
+
var backgroundColorOverlayTransformer = createTransformer2((value) => /* @__PURE__ */ React95.createElement(Stack18, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React95.createElement(ItemIconColor, { value }), /* @__PURE__ */ React95.createElement(ItemLabelColor, { value })));
|
|
5681
5628
|
var ItemIconColor = ({ value }) => {
|
|
5682
5629
|
const { color } = value;
|
|
5683
|
-
return /* @__PURE__ */
|
|
5630
|
+
return /* @__PURE__ */ React95.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: color });
|
|
5684
5631
|
};
|
|
5685
5632
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
5686
|
-
return /* @__PURE__ */
|
|
5633
|
+
return /* @__PURE__ */ React95.createElement("span", null, color);
|
|
5687
5634
|
};
|
|
5688
5635
|
var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
|
|
5689
5636
|
width: "1em",
|
|
@@ -5694,20 +5641,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
|
|
|
5694
5641
|
}));
|
|
5695
5642
|
|
|
5696
5643
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
5697
|
-
import * as
|
|
5644
|
+
import * as React96 from "react";
|
|
5698
5645
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
5699
|
-
import { Stack as
|
|
5700
|
-
import { __ as
|
|
5701
|
-
var backgroundGradientOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
5646
|
+
import { Stack as Stack19 } from "@elementor/ui";
|
|
5647
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
5648
|
+
var backgroundGradientOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React96.createElement(Stack19, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React96.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React96.createElement(ItemLabelGradient, { value })));
|
|
5702
5649
|
var ItemIconGradient = ({ value }) => {
|
|
5703
5650
|
const gradient = getGradientValue(value);
|
|
5704
|
-
return /* @__PURE__ */
|
|
5651
|
+
return /* @__PURE__ */ React96.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
5705
5652
|
};
|
|
5706
5653
|
var ItemLabelGradient = ({ value }) => {
|
|
5707
5654
|
if (value.type === "linear") {
|
|
5708
|
-
return /* @__PURE__ */
|
|
5655
|
+
return /* @__PURE__ */ React96.createElement("span", null, __66("Linear gradient", "elementor"));
|
|
5709
5656
|
}
|
|
5710
|
-
return /* @__PURE__ */
|
|
5657
|
+
return /* @__PURE__ */ React96.createElement("span", null, __66("Radial gradient", "elementor"));
|
|
5711
5658
|
};
|
|
5712
5659
|
var getGradientValue = (gradient) => {
|
|
5713
5660
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -5718,15 +5665,15 @@ var getGradientValue = (gradient) => {
|
|
|
5718
5665
|
};
|
|
5719
5666
|
|
|
5720
5667
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
5721
|
-
import * as
|
|
5668
|
+
import * as React97 from "react";
|
|
5722
5669
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
5723
5670
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
5724
|
-
import { CardMedia, Stack as
|
|
5671
|
+
import { CardMedia, Stack as Stack20 } from "@elementor/ui";
|
|
5725
5672
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
5726
|
-
var backgroundImageOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
5673
|
+
var backgroundImageOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React97.createElement(Stack20, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React97.createElement(ItemIconImage, { value }), /* @__PURE__ */ React97.createElement(ItemLabelImage, { value })));
|
|
5727
5674
|
var ItemIconImage = ({ value }) => {
|
|
5728
5675
|
const { imageUrl } = useImage(value);
|
|
5729
|
-
return /* @__PURE__ */
|
|
5676
|
+
return /* @__PURE__ */ React97.createElement(
|
|
5730
5677
|
CardMedia,
|
|
5731
5678
|
{
|
|
5732
5679
|
image: imageUrl,
|
|
@@ -5742,7 +5689,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
5742
5689
|
};
|
|
5743
5690
|
var ItemLabelImage = ({ value }) => {
|
|
5744
5691
|
const { imageTitle } = useImage(value);
|
|
5745
|
-
return /* @__PURE__ */
|
|
5692
|
+
return /* @__PURE__ */ React97.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React97.createElement("span", null, imageTitle));
|
|
5746
5693
|
};
|
|
5747
5694
|
var useImage = (image) => {
|
|
5748
5695
|
let imageTitle, imageUrl = null;
|
|
@@ -5767,20 +5714,20 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
5767
5714
|
};
|
|
5768
5715
|
|
|
5769
5716
|
// src/styles-inheritance/transformers/background-overlay-transformer.tsx
|
|
5770
|
-
import * as
|
|
5717
|
+
import * as React98 from "react";
|
|
5771
5718
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
5772
|
-
import { Stack as
|
|
5719
|
+
import { Stack as Stack21 } from "@elementor/ui";
|
|
5773
5720
|
var backgroundOverlayTransformer = createTransformer5((values) => {
|
|
5774
5721
|
if (!values || values.length === 0) {
|
|
5775
5722
|
return null;
|
|
5776
5723
|
}
|
|
5777
|
-
return /* @__PURE__ */
|
|
5724
|
+
return /* @__PURE__ */ React98.createElement(Stack21, { direction: "column" }, values.map((item, index) => /* @__PURE__ */ React98.createElement(Stack21, { key: index }, item)));
|
|
5778
5725
|
});
|
|
5779
5726
|
|
|
5780
5727
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
5781
|
-
import * as
|
|
5728
|
+
import * as React99 from "react";
|
|
5782
5729
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
5783
|
-
import { Stack as
|
|
5730
|
+
import { Stack as Stack22, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
5784
5731
|
function isValidCSSColor(value) {
|
|
5785
5732
|
if (!value.trim()) {
|
|
5786
5733
|
return false;
|
|
@@ -5798,7 +5745,7 @@ var colorTransformer = createTransformer6((value) => {
|
|
|
5798
5745
|
if (!isValidCSSColor(value)) {
|
|
5799
5746
|
return value;
|
|
5800
5747
|
}
|
|
5801
|
-
return /* @__PURE__ */
|
|
5748
|
+
return /* @__PURE__ */ React99.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React99.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React99.createElement("span", null, value));
|
|
5802
5749
|
});
|
|
5803
5750
|
|
|
5804
5751
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -5852,7 +5799,6 @@ var blockV1Panel = () => {
|
|
|
5852
5799
|
});
|
|
5853
5800
|
};
|
|
5854
5801
|
export {
|
|
5855
|
-
CustomCss,
|
|
5856
5802
|
CustomCssIndicator,
|
|
5857
5803
|
HISTORY_DEBOUNCE_WAIT,
|
|
5858
5804
|
PopoverBody,
|