@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.js
CHANGED
|
@@ -30,7 +30,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
-
CustomCss: () => CustomCss,
|
|
34
33
|
CustomCssIndicator: () => CustomCssIndicator,
|
|
35
34
|
HISTORY_DEBOUNCE_WAIT: () => HISTORY_DEBOUNCE_WAIT,
|
|
36
35
|
PopoverBody: () => PopoverBody,
|
|
@@ -49,7 +48,7 @@ __export(index_exports, {
|
|
|
49
48
|
registerControlReplacement: () => registerControlReplacement,
|
|
50
49
|
registerStyleProviderToColors: () => registerStyleProviderToColors,
|
|
51
50
|
stylesInheritanceTransformersRegistry: () => stylesInheritanceTransformersRegistry,
|
|
52
|
-
useBoundProp: () =>
|
|
51
|
+
useBoundProp: () => import_editor_controls61.useBoundProp,
|
|
53
52
|
useClassesProp: () => useClassesProp,
|
|
54
53
|
useCustomCss: () => useCustomCss,
|
|
55
54
|
useElement: () => useElement,
|
|
@@ -61,7 +60,7 @@ __export(index_exports, {
|
|
|
61
60
|
useStylesRerender: () => useStylesRerender
|
|
62
61
|
});
|
|
63
62
|
module.exports = __toCommonJS(index_exports);
|
|
64
|
-
var
|
|
63
|
+
var import_editor_controls61 = require("@elementor/editor-controls");
|
|
65
64
|
|
|
66
65
|
// src/components/css-classes/css-class-convert-local.tsx
|
|
67
66
|
var React4 = __toESM(require("react"));
|
|
@@ -1295,14 +1294,57 @@ var React12 = __toESM(require("react"));
|
|
|
1295
1294
|
var import_ui8 = require("@elementor/ui");
|
|
1296
1295
|
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React12.createElement(import_ui8.Stack, { gap, sx: { ...sx } }, children);
|
|
1297
1296
|
|
|
1298
|
-
// src/components/
|
|
1299
|
-
var
|
|
1300
|
-
var
|
|
1301
|
-
|
|
1302
|
-
|
|
1297
|
+
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1298
|
+
var import_react12 = require("react");
|
|
1299
|
+
var import_i18n6 = require("@wordpress/i18n");
|
|
1300
|
+
|
|
1301
|
+
// src/sync/get-elementor-globals.ts
|
|
1302
|
+
var getElementorConfig = () => {
|
|
1303
|
+
const extendedWindow = window;
|
|
1304
|
+
return extendedWindow.elementor?.config ?? {};
|
|
1305
|
+
};
|
|
1306
|
+
var getElementorFrontendConfig = () => {
|
|
1307
|
+
const extendedWindow = window;
|
|
1308
|
+
return extendedWindow.elementorFrontend?.config ?? {};
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1312
|
+
var supportedCategories = {
|
|
1313
|
+
system: (0, import_i18n6.__)("System", "elementor"),
|
|
1314
|
+
custom: (0, import_i18n6.__)("Custom Fonts", "elementor"),
|
|
1315
|
+
googlefonts: (0, import_i18n6.__)("Google Fonts", "elementor")
|
|
1316
|
+
};
|
|
1317
|
+
var getFontFamilies = () => {
|
|
1318
|
+
const { controls } = getElementorConfig();
|
|
1319
|
+
const options12 = controls?.font?.options;
|
|
1320
|
+
if (!options12) {
|
|
1321
|
+
return null;
|
|
1322
|
+
}
|
|
1323
|
+
return options12;
|
|
1324
|
+
};
|
|
1325
|
+
var useFontFamilies = () => {
|
|
1326
|
+
const fontFamilies = getFontFamilies();
|
|
1327
|
+
return (0, import_react12.useMemo)(() => {
|
|
1328
|
+
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
1329
|
+
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
1330
|
+
if (!supportedCategories[category]) {
|
|
1331
|
+
return acc;
|
|
1332
|
+
}
|
|
1333
|
+
const categoryIndex = categoriesOrder.indexOf(category);
|
|
1334
|
+
if (!acc[categoryIndex]) {
|
|
1335
|
+
acc[categoryIndex] = {
|
|
1336
|
+
label: supportedCategories[category],
|
|
1337
|
+
fonts: []
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
acc[categoryIndex].fonts.push(font);
|
|
1341
|
+
return acc;
|
|
1342
|
+
}, []).filter(Boolean);
|
|
1343
|
+
}, [fontFamilies]);
|
|
1344
|
+
};
|
|
1303
1345
|
|
|
1304
1346
|
// src/hooks/use-custom-css.ts
|
|
1305
|
-
var
|
|
1347
|
+
var import_react15 = require("react");
|
|
1306
1348
|
var import_editor_elements5 = require("@elementor/editor-elements");
|
|
1307
1349
|
var import_editor_props3 = require("@elementor/editor-props");
|
|
1308
1350
|
var import_editor_styles2 = require("@elementor/editor-styles");
|
|
@@ -1311,20 +1353,20 @@ var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
|
|
|
1311
1353
|
var import_utils2 = require("@elementor/utils");
|
|
1312
1354
|
|
|
1313
1355
|
// src/hooks/use-styles-fields.ts
|
|
1314
|
-
var
|
|
1356
|
+
var import_react14 = require("react");
|
|
1315
1357
|
var import_editor_elements4 = require("@elementor/editor-elements");
|
|
1316
1358
|
var import_editor_styles = require("@elementor/editor-styles");
|
|
1317
1359
|
var import_editor_styles_repository8 = require("@elementor/editor-styles-repository");
|
|
1318
1360
|
var import_editor_styles_repository9 = require("@elementor/editor-styles-repository");
|
|
1319
1361
|
var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
|
|
1320
|
-
var
|
|
1362
|
+
var import_i18n7 = require("@wordpress/i18n");
|
|
1321
1363
|
|
|
1322
1364
|
// src/hooks/use-styles-rerender.ts
|
|
1323
|
-
var
|
|
1365
|
+
var import_react13 = require("react");
|
|
1324
1366
|
var useStylesRerender = () => {
|
|
1325
1367
|
const { provider } = useStyle();
|
|
1326
|
-
const [, reRender] = (0,
|
|
1327
|
-
(0,
|
|
1368
|
+
const [, reRender] = (0, import_react13.useReducer)((p) => !p, false);
|
|
1369
|
+
(0, import_react13.useEffect)(() => provider?.subscribe(reRender), [provider]);
|
|
1328
1370
|
};
|
|
1329
1371
|
|
|
1330
1372
|
// src/hooks/use-styles-fields.ts
|
|
@@ -1364,7 +1406,7 @@ function useUndoableActions({
|
|
|
1364
1406
|
meta: { breakpoint, state }
|
|
1365
1407
|
}) {
|
|
1366
1408
|
const classesProp = useClassesProp();
|
|
1367
|
-
return (0,
|
|
1409
|
+
return (0, import_react14.useMemo)(() => {
|
|
1368
1410
|
const meta = { breakpoint, state };
|
|
1369
1411
|
const createStyleArgs = { elementId, classesProp, meta, label: import_editor_styles_repository9.ELEMENTS_STYLES_RESERVED_LABEL };
|
|
1370
1412
|
return (0, import_editor_v1_adapters2.undoable)(
|
|
@@ -1430,21 +1472,21 @@ function getCurrentProps(style, meta) {
|
|
|
1430
1472
|
var defaultHistoryTitles = {
|
|
1431
1473
|
title: ({ provider }) => {
|
|
1432
1474
|
const providerLabel = provider.labels?.singular;
|
|
1433
|
-
return providerLabel ? capitalize(providerLabel) : (0,
|
|
1475
|
+
return providerLabel ? capitalize(providerLabel) : (0, import_i18n7.__)("Style", "elementor");
|
|
1434
1476
|
},
|
|
1435
1477
|
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
1436
1478
|
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
1437
1479
|
if (!styleLabel) {
|
|
1438
1480
|
throw new Error(`Style ${styleId} not found`);
|
|
1439
1481
|
}
|
|
1440
|
-
return (0,
|
|
1482
|
+
return (0, import_i18n7.__)(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
1441
1483
|
}
|
|
1442
1484
|
};
|
|
1443
1485
|
var localStyleHistoryTitles = {
|
|
1444
1486
|
title: ({ elementId }) => (0, import_editor_elements4.getElementLabel)(elementId),
|
|
1445
1487
|
subtitle: ({ propDisplayName }) => (
|
|
1446
1488
|
// translators: %s is the name of the style property being edited
|
|
1447
|
-
(0,
|
|
1489
|
+
(0, import_i18n7.__)(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
1448
1490
|
)
|
|
1449
1491
|
};
|
|
1450
1492
|
function capitalize(str) {
|
|
@@ -1503,7 +1545,7 @@ function useUndoableActions2({
|
|
|
1503
1545
|
meta: { breakpoint, state }
|
|
1504
1546
|
}) {
|
|
1505
1547
|
const classesProp = useClassesProp();
|
|
1506
|
-
return (0,
|
|
1548
|
+
return (0, import_react15.useMemo)(() => {
|
|
1507
1549
|
const meta = { breakpoint, state };
|
|
1508
1550
|
const createStyleArgs = { elementId, classesProp, meta, label: import_editor_styles_repository10.ELEMENTS_STYLES_RESERVED_LABEL };
|
|
1509
1551
|
return (0, import_editor_v1_adapters3.undoable)(
|
|
@@ -1575,132 +1617,36 @@ function sanitize(raw) {
|
|
|
1575
1617
|
return import_editor_props3.stringPropTypeUtil.schema.safeParse(import_editor_props3.stringPropTypeUtil.create(raw)).data?.value?.trim() ?? "";
|
|
1576
1618
|
}
|
|
1577
1619
|
|
|
1578
|
-
// src/components/custom-css-field.tsx
|
|
1579
|
-
var React14 = __toESM(require("react"));
|
|
1580
|
-
var import_editor_controls = require("@elementor/editor-controls");
|
|
1581
|
-
|
|
1582
|
-
// src/components/custom-css-indicator.tsx
|
|
1583
|
-
var React13 = __toESM(require("react"));
|
|
1584
|
-
var CustomCssIndicator = () => {
|
|
1585
|
-
const { customCss } = useCustomCss();
|
|
1586
|
-
const hasContent = Boolean(customCss?.raw?.trim());
|
|
1587
|
-
if (!hasContent) {
|
|
1588
|
-
return null;
|
|
1589
|
-
}
|
|
1590
|
-
return /* @__PURE__ */ React13.createElement(StyleIndicator, { getColor: (theme) => theme.palette.accent.main });
|
|
1591
|
-
};
|
|
1592
|
-
|
|
1593
|
-
// src/components/custom-css-field.tsx
|
|
1594
|
-
var CustomCssField = ({ children }) => {
|
|
1595
|
-
return /* @__PURE__ */ React14.createElement(
|
|
1596
|
-
import_editor_controls.ControlAdornmentsProvider,
|
|
1597
|
-
{
|
|
1598
|
-
items: [
|
|
1599
|
-
{
|
|
1600
|
-
id: "custom-css-indicator",
|
|
1601
|
-
Adornment: CustomCssIndicator
|
|
1602
|
-
}
|
|
1603
|
-
]
|
|
1604
|
-
},
|
|
1605
|
-
children
|
|
1606
|
-
);
|
|
1607
|
-
};
|
|
1608
|
-
|
|
1609
|
-
// src/components/custom-css.tsx
|
|
1610
|
-
var CustomCss = () => {
|
|
1611
|
-
const { customCss, setCustomCss } = useCustomCss();
|
|
1612
|
-
const [localState, setLocalState] = React15.useState({
|
|
1613
|
-
value: customCss?.raw || "",
|
|
1614
|
-
isValid: true
|
|
1615
|
-
});
|
|
1616
|
-
const handleChange = (value, isValid) => {
|
|
1617
|
-
setLocalState({ value, isValid });
|
|
1618
|
-
if (isValid) {
|
|
1619
|
-
setCustomCss(value, { history: { propDisplayName: "Custom CSS" } });
|
|
1620
|
-
}
|
|
1621
|
-
};
|
|
1622
|
-
return /* @__PURE__ */ React15.createElement(SectionContent, null, /* @__PURE__ */ React15.createElement(CustomCssField, null, /* @__PURE__ */ React15.createElement(import_ui9.Stack, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React15.createElement(import_editor_controls2.ControlFormLabel, null, (0, import_i18n7.__)("CSS code", "elementor")), /* @__PURE__ */ React15.createElement(import_editor_controls2.ControlAdornments, null))), /* @__PURE__ */ React15.createElement(import_editor_controls2.CssEditor, { value: localState.value, onChange: handleChange }));
|
|
1623
|
-
};
|
|
1624
|
-
|
|
1625
|
-
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1626
|
-
var import_react15 = require("react");
|
|
1627
|
-
var import_i18n8 = require("@wordpress/i18n");
|
|
1628
|
-
|
|
1629
|
-
// src/sync/get-elementor-globals.ts
|
|
1630
|
-
var getElementorConfig = () => {
|
|
1631
|
-
const extendedWindow = window;
|
|
1632
|
-
return extendedWindow.elementor?.config ?? {};
|
|
1633
|
-
};
|
|
1634
|
-
var getElementorFrontendConfig = () => {
|
|
1635
|
-
const extendedWindow = window;
|
|
1636
|
-
return extendedWindow.elementorFrontend?.config ?? {};
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
|
-
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
1640
|
-
var supportedCategories = {
|
|
1641
|
-
system: (0, import_i18n8.__)("System", "elementor"),
|
|
1642
|
-
custom: (0, import_i18n8.__)("Custom Fonts", "elementor"),
|
|
1643
|
-
googlefonts: (0, import_i18n8.__)("Google Fonts", "elementor")
|
|
1644
|
-
};
|
|
1645
|
-
var getFontFamilies = () => {
|
|
1646
|
-
const { controls } = getElementorConfig();
|
|
1647
|
-
const options12 = controls?.font?.options;
|
|
1648
|
-
if (!options12) {
|
|
1649
|
-
return null;
|
|
1650
|
-
}
|
|
1651
|
-
return options12;
|
|
1652
|
-
};
|
|
1653
|
-
var useFontFamilies = () => {
|
|
1654
|
-
const fontFamilies = getFontFamilies();
|
|
1655
|
-
return (0, import_react15.useMemo)(() => {
|
|
1656
|
-
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
1657
|
-
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
1658
|
-
if (!supportedCategories[category]) {
|
|
1659
|
-
return acc;
|
|
1660
|
-
}
|
|
1661
|
-
const categoryIndex = categoriesOrder.indexOf(category);
|
|
1662
|
-
if (!acc[categoryIndex]) {
|
|
1663
|
-
acc[categoryIndex] = {
|
|
1664
|
-
label: supportedCategories[category],
|
|
1665
|
-
fonts: []
|
|
1666
|
-
};
|
|
1667
|
-
}
|
|
1668
|
-
acc[categoryIndex].fonts.push(font);
|
|
1669
|
-
return acc;
|
|
1670
|
-
}, []).filter(Boolean);
|
|
1671
|
-
}, [fontFamilies]);
|
|
1672
|
-
};
|
|
1673
|
-
|
|
1674
1620
|
// src/control-replacement.tsx
|
|
1675
|
-
var
|
|
1676
|
-
var { registerControlReplacement, getControlReplacements } = (0,
|
|
1621
|
+
var import_editor_controls = require("@elementor/editor-controls");
|
|
1622
|
+
var { registerControlReplacement, getControlReplacements } = (0, import_editor_controls.createControlReplacementsRegistry)();
|
|
1677
1623
|
|
|
1678
1624
|
// src/controls-actions.ts
|
|
1679
1625
|
var import_menus = require("@elementor/menus");
|
|
1680
1626
|
|
|
1681
1627
|
// src/action.tsx
|
|
1682
|
-
var
|
|
1683
|
-
var
|
|
1628
|
+
var React13 = __toESM(require("react"));
|
|
1629
|
+
var import_ui9 = require("@elementor/ui");
|
|
1684
1630
|
var SIZE = "tiny";
|
|
1685
1631
|
function Action({ title, visible = true, icon: Icon, onClick }) {
|
|
1686
1632
|
if (!visible) {
|
|
1687
1633
|
return null;
|
|
1688
1634
|
}
|
|
1689
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ React13.createElement(import_ui9.Tooltip, { placement: "top", title, arrow: true }, /* @__PURE__ */ React13.createElement(import_ui9.IconButton, { "aria-label": title, size: SIZE, onClick }, /* @__PURE__ */ React13.createElement(Icon, { fontSize: SIZE })));
|
|
1690
1636
|
}
|
|
1691
1637
|
|
|
1692
1638
|
// src/popover-action.tsx
|
|
1693
|
-
var
|
|
1694
|
-
var
|
|
1695
|
-
var
|
|
1639
|
+
var React14 = __toESM(require("react"));
|
|
1640
|
+
var import_editor_controls2 = require("@elementor/editor-controls");
|
|
1641
|
+
var import_ui10 = require("@elementor/ui");
|
|
1696
1642
|
var SIZE2 = "tiny";
|
|
1697
1643
|
function PopoverAction({ title, visible = true, icon: Icon, content: PopoverContent }) {
|
|
1698
1644
|
const { popupState, triggerProps, popoverProps } = useFloatingActionsPopover();
|
|
1699
1645
|
if (!visible) {
|
|
1700
1646
|
return null;
|
|
1701
1647
|
}
|
|
1702
|
-
return /* @__PURE__ */
|
|
1703
|
-
|
|
1648
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(import_ui10.Tooltip, { placement: "top", title }, /* @__PURE__ */ React14.createElement(import_ui10.IconButton, { "aria-label": title, size: SIZE2, ...triggerProps }, /* @__PURE__ */ React14.createElement(Icon, { fontSize: SIZE2 }))), /* @__PURE__ */ React14.createElement(
|
|
1649
|
+
import_ui10.Popover,
|
|
1704
1650
|
{
|
|
1705
1651
|
disableScrollLock: true,
|
|
1706
1652
|
anchorOrigin: {
|
|
@@ -1716,14 +1662,14 @@ function PopoverAction({ title, visible = true, icon: Icon, content: PopoverCont
|
|
|
1716
1662
|
},
|
|
1717
1663
|
...popoverProps
|
|
1718
1664
|
},
|
|
1719
|
-
/* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ React14.createElement(PopoverContent, { close: popupState.close })
|
|
1720
1666
|
));
|
|
1721
1667
|
}
|
|
1722
1668
|
function useFloatingActionsPopover() {
|
|
1723
|
-
const { setOpen } = (0,
|
|
1724
|
-
const popupState = (0,
|
|
1725
|
-
const triggerProps = (0,
|
|
1726
|
-
const popoverProps = (0,
|
|
1669
|
+
const { setOpen } = (0, import_editor_controls2.useFloatingActionsBar)();
|
|
1670
|
+
const popupState = (0, import_ui10.usePopupState)({ variant: "popover" });
|
|
1671
|
+
const triggerProps = (0, import_ui10.bindTrigger)(popupState);
|
|
1672
|
+
const popoverProps = (0, import_ui10.bindPopover)(popupState);
|
|
1727
1673
|
const onClick = (e) => {
|
|
1728
1674
|
triggerProps.onClick(e);
|
|
1729
1675
|
setOpen(true);
|
|
@@ -1754,45 +1700,45 @@ var controlActionsMenu = (0, import_menus.createMenu)({
|
|
|
1754
1700
|
// src/init.ts
|
|
1755
1701
|
var import_editor = require("@elementor/editor");
|
|
1756
1702
|
var import_editor_panels3 = require("@elementor/editor-panels");
|
|
1757
|
-
var
|
|
1703
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
1758
1704
|
|
|
1759
1705
|
// src/hooks/use-open-editor-panel.ts
|
|
1760
1706
|
var import_react39 = require("react");
|
|
1761
|
-
var
|
|
1707
|
+
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
1762
1708
|
|
|
1763
1709
|
// src/panel.ts
|
|
1764
1710
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
1765
1711
|
|
|
1766
1712
|
// src/components/editing-panel.tsx
|
|
1767
|
-
var
|
|
1768
|
-
var
|
|
1713
|
+
var React89 = __toESM(require("react"));
|
|
1714
|
+
var import_editor_controls52 = require("@elementor/editor-controls");
|
|
1769
1715
|
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
1770
1716
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1771
1717
|
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
1772
1718
|
var import_icons24 = require("@elementor/icons");
|
|
1773
1719
|
var import_session7 = require("@elementor/session");
|
|
1774
|
-
var
|
|
1775
|
-
var
|
|
1720
|
+
var import_ui45 = require("@elementor/ui");
|
|
1721
|
+
var import_i18n61 = require("@wordpress/i18n");
|
|
1776
1722
|
|
|
1777
1723
|
// src/components/editing-panel-error-fallback.tsx
|
|
1778
|
-
var
|
|
1779
|
-
var
|
|
1724
|
+
var React15 = __toESM(require("react"));
|
|
1725
|
+
var import_ui11 = require("@elementor/ui");
|
|
1780
1726
|
function EditorPanelErrorFallback() {
|
|
1781
|
-
return /* @__PURE__ */
|
|
1727
|
+
return /* @__PURE__ */ React15.createElement(import_ui11.Box, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React15.createElement(import_ui11.Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React15.createElement("strong", null, "Something went wrong")));
|
|
1782
1728
|
}
|
|
1783
1729
|
|
|
1784
1730
|
// src/components/editing-panel-tabs.tsx
|
|
1785
|
-
var
|
|
1731
|
+
var React88 = __toESM(require("react"));
|
|
1786
1732
|
var import_react38 = require("react");
|
|
1787
|
-
var
|
|
1788
|
-
var
|
|
1733
|
+
var import_ui44 = require("@elementor/ui");
|
|
1734
|
+
var import_i18n60 = require("@wordpress/i18n");
|
|
1789
1735
|
|
|
1790
1736
|
// src/contexts/scroll-context.tsx
|
|
1791
|
-
var
|
|
1737
|
+
var React16 = __toESM(require("react"));
|
|
1792
1738
|
var import_react16 = require("react");
|
|
1793
|
-
var
|
|
1739
|
+
var import_ui12 = require("@elementor/ui");
|
|
1794
1740
|
var ScrollContext = (0, import_react16.createContext)(void 0);
|
|
1795
|
-
var ScrollPanel = (0,
|
|
1741
|
+
var ScrollPanel = (0, import_ui12.styled)("div")`
|
|
1796
1742
|
height: 100%;
|
|
1797
1743
|
overflow-y: auto;
|
|
1798
1744
|
`;
|
|
@@ -1820,7 +1766,7 @@ function ScrollProvider({ children }) {
|
|
|
1820
1766
|
scrollElement.removeEventListener("scroll", handleScroll);
|
|
1821
1767
|
};
|
|
1822
1768
|
});
|
|
1823
|
-
return /* @__PURE__ */
|
|
1769
|
+
return /* @__PURE__ */ React16.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React16.createElement(ScrollPanel, { ref }, children));
|
|
1824
1770
|
}
|
|
1825
1771
|
function useScrollDirection() {
|
|
1826
1772
|
return (0, import_react16.useContext)(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
|
|
@@ -1871,30 +1817,30 @@ var useStateByElement = (key, initialValue) => {
|
|
|
1871
1817
|
};
|
|
1872
1818
|
|
|
1873
1819
|
// src/components/settings-tab.tsx
|
|
1874
|
-
var
|
|
1875
|
-
var
|
|
1820
|
+
var React23 = __toESM(require("react"));
|
|
1821
|
+
var import_editor_controls5 = require("@elementor/editor-controls");
|
|
1876
1822
|
var import_session4 = require("@elementor/session");
|
|
1877
|
-
var
|
|
1823
|
+
var import_ui18 = require("@elementor/ui");
|
|
1878
1824
|
|
|
1879
1825
|
// src/controls-registry/control.tsx
|
|
1880
|
-
var
|
|
1826
|
+
var React17 = __toESM(require("react"));
|
|
1881
1827
|
|
|
1882
1828
|
// src/controls-registry/controls-registry.tsx
|
|
1883
|
-
var
|
|
1829
|
+
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
1884
1830
|
var import_editor_props4 = require("@elementor/editor-props");
|
|
1885
1831
|
var controlTypes = {
|
|
1886
|
-
image: { component:
|
|
1887
|
-
"svg-media": { component:
|
|
1888
|
-
text: { component:
|
|
1889
|
-
textarea: { component:
|
|
1890
|
-
size: { component:
|
|
1891
|
-
select: { component:
|
|
1892
|
-
link: { component:
|
|
1893
|
-
url: { component:
|
|
1894
|
-
switch: { component:
|
|
1895
|
-
number: { component:
|
|
1896
|
-
repeatable: { component:
|
|
1897
|
-
"key-value": { component:
|
|
1832
|
+
image: { component: import_editor_controls3.ImageControl, layout: "full", propTypeUtil: import_editor_props4.imagePropTypeUtil },
|
|
1833
|
+
"svg-media": { component: import_editor_controls3.SvgMediaControl, layout: "full", propTypeUtil: import_editor_props4.imageSrcPropTypeUtil },
|
|
1834
|
+
text: { component: import_editor_controls3.TextControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
1835
|
+
textarea: { component: import_editor_controls3.TextAreaControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
1836
|
+
size: { component: import_editor_controls3.SizeControl, layout: "two-columns", propTypeUtil: import_editor_props4.sizePropTypeUtil },
|
|
1837
|
+
select: { component: import_editor_controls3.SelectControl, layout: "two-columns", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
1838
|
+
link: { component: import_editor_controls3.LinkControl, layout: "custom", propTypeUtil: import_editor_props4.linkPropTypeUtil },
|
|
1839
|
+
url: { component: import_editor_controls3.UrlControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
1840
|
+
switch: { component: import_editor_controls3.SwitchControl, layout: "two-columns", propTypeUtil: import_editor_props4.booleanPropTypeUtil },
|
|
1841
|
+
number: { component: import_editor_controls3.NumberControl, layout: "two-columns", propTypeUtil: import_editor_props4.numberPropTypeUtil },
|
|
1842
|
+
repeatable: { component: import_editor_controls3.RepeatableControl, layout: "full", propTypeUtil: void 0 },
|
|
1843
|
+
"key-value": { component: import_editor_controls3.KeyValueControl, layout: "full", propTypeUtil: import_editor_props4.keyValuePropTypeUtil }
|
|
1898
1844
|
};
|
|
1899
1845
|
var ControlsRegistry = class {
|
|
1900
1846
|
constructor(controlsRegistry2 = controlTypes) {
|
|
@@ -1937,19 +1883,19 @@ var Control = ({ props, type }) => {
|
|
|
1937
1883
|
context: { controlType: type }
|
|
1938
1884
|
});
|
|
1939
1885
|
}
|
|
1940
|
-
return /* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ React17.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
1941
1887
|
};
|
|
1942
1888
|
|
|
1943
1889
|
// src/controls-registry/control-type-container.tsx
|
|
1944
|
-
var
|
|
1945
|
-
var
|
|
1890
|
+
var React18 = __toESM(require("react"));
|
|
1891
|
+
var import_ui13 = require("@elementor/ui");
|
|
1946
1892
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
1947
1893
|
if (layout === "custom") {
|
|
1948
1894
|
return children;
|
|
1949
1895
|
}
|
|
1950
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ React18.createElement(StyledContainer, { layout }, children);
|
|
1951
1897
|
};
|
|
1952
|
-
var StyledContainer = (0,
|
|
1898
|
+
var StyledContainer = (0, import_ui13.styled)(import_ui13.Box, {
|
|
1953
1899
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
1954
1900
|
})(({ layout, theme }) => ({
|
|
1955
1901
|
display: "grid",
|
|
@@ -1965,14 +1911,14 @@ var getGridLayout = (layout) => ({
|
|
|
1965
1911
|
});
|
|
1966
1912
|
|
|
1967
1913
|
// src/controls-registry/settings-field.tsx
|
|
1968
|
-
var
|
|
1914
|
+
var React19 = __toESM(require("react"));
|
|
1969
1915
|
var import_react19 = require("react");
|
|
1970
|
-
var
|
|
1916
|
+
var import_editor_controls4 = require("@elementor/editor-controls");
|
|
1971
1917
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
1972
1918
|
var import_editor_elements6 = require("@elementor/editor-elements");
|
|
1973
1919
|
var import_editor_props6 = require("@elementor/editor-props");
|
|
1974
1920
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
1975
|
-
var
|
|
1921
|
+
var import_i18n8 = require("@wordpress/i18n");
|
|
1976
1922
|
|
|
1977
1923
|
// src/utils/prop-dependency-utils.ts
|
|
1978
1924
|
var import_editor_props5 = require("@elementor/editor-props");
|
|
@@ -2118,7 +2064,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2118
2064
|
undoableUpdateElementProp(settings);
|
|
2119
2065
|
};
|
|
2120
2066
|
const isDisabled = (prop) => !(0, import_editor_props6.isDependencyMet)(prop?.dependencies, elementSettingValues);
|
|
2121
|
-
return /* @__PURE__ */
|
|
2067
|
+
return /* @__PURE__ */ React19.createElement(import_editor_controls4.PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React19.createElement(import_editor_controls4.PropKeyProvider, { bind }, children));
|
|
2122
2068
|
};
|
|
2123
2069
|
function useUndoableUpdateElementProp({
|
|
2124
2070
|
elementId,
|
|
@@ -2140,7 +2086,7 @@ function useUndoableUpdateElementProp({
|
|
|
2140
2086
|
{
|
|
2141
2087
|
title: (0, import_editor_elements6.getElementLabel)(elementId),
|
|
2142
2088
|
// translators: %s is the name of the property that was edited.
|
|
2143
|
-
subtitle: (0,
|
|
2089
|
+
subtitle: (0, import_i18n8.__)("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2144
2090
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2145
2091
|
}
|
|
2146
2092
|
);
|
|
@@ -2148,14 +2094,14 @@ function useUndoableUpdateElementProp({
|
|
|
2148
2094
|
}
|
|
2149
2095
|
|
|
2150
2096
|
// src/components/section.tsx
|
|
2151
|
-
var
|
|
2097
|
+
var React21 = __toESM(require("react"));
|
|
2152
2098
|
var import_react21 = require("react");
|
|
2153
|
-
var
|
|
2099
|
+
var import_ui16 = require("@elementor/ui");
|
|
2154
2100
|
|
|
2155
2101
|
// src/components/collapse-icon.tsx
|
|
2156
2102
|
var import_icons3 = require("@elementor/icons");
|
|
2157
|
-
var
|
|
2158
|
-
var CollapseIcon = (0,
|
|
2103
|
+
var import_ui14 = require("@elementor/ui");
|
|
2104
|
+
var CollapseIcon = (0, import_ui14.styled)(import_icons3.ChevronDownIcon, {
|
|
2159
2105
|
shouldForwardProp: (prop) => prop !== "open"
|
|
2160
2106
|
})(({ theme, open }) => ({
|
|
2161
2107
|
transform: open ? "rotate(180deg)" : "rotate(0deg)",
|
|
@@ -2165,11 +2111,11 @@ var CollapseIcon = (0, import_ui15.styled)(import_icons3.ChevronDownIcon, {
|
|
|
2165
2111
|
}));
|
|
2166
2112
|
|
|
2167
2113
|
// src/components/collapsible-content.tsx
|
|
2168
|
-
var
|
|
2114
|
+
var React20 = __toESM(require("react"));
|
|
2169
2115
|
var import_react20 = require("react");
|
|
2170
|
-
var
|
|
2171
|
-
var
|
|
2172
|
-
var IndicatorsWrapper = (0,
|
|
2116
|
+
var import_ui15 = require("@elementor/ui");
|
|
2117
|
+
var import_i18n9 = require("@wordpress/i18n");
|
|
2118
|
+
var IndicatorsWrapper = (0, import_ui15.styled)("div")`
|
|
2173
2119
|
position: absolute;
|
|
2174
2120
|
top: 0;
|
|
2175
2121
|
right: ${({ theme }) => theme.spacing(3)};
|
|
@@ -2184,19 +2130,19 @@ var CollapsibleContent = ({ children, defaultOpen = false, titleEnd = null }) =>
|
|
|
2184
2130
|
const handleToggle = () => {
|
|
2185
2131
|
setOpen((prevOpen) => !prevOpen);
|
|
2186
2132
|
};
|
|
2187
|
-
return /* @__PURE__ */
|
|
2188
|
-
|
|
2133
|
+
return /* @__PURE__ */ React20.createElement(import_ui15.Stack, null, /* @__PURE__ */ React20.createElement(import_ui15.Stack, { sx: { position: "relative" } }, /* @__PURE__ */ React20.createElement(
|
|
2134
|
+
import_ui15.Button,
|
|
2189
2135
|
{
|
|
2190
2136
|
fullWidth: true,
|
|
2191
2137
|
size: "small",
|
|
2192
2138
|
color: "secondary",
|
|
2193
2139
|
variant: "outlined",
|
|
2194
2140
|
onClick: handleToggle,
|
|
2195
|
-
endIcon: /* @__PURE__ */
|
|
2141
|
+
endIcon: /* @__PURE__ */ React20.createElement(CollapseIcon, { open }),
|
|
2196
2142
|
sx: { my: 0.5 }
|
|
2197
2143
|
},
|
|
2198
|
-
open ? (0,
|
|
2199
|
-
), titleEnd && /* @__PURE__ */
|
|
2144
|
+
open ? (0, import_i18n9.__)("Show less", "elementor") : (0, import_i18n9.__)("Show more", "elementor")
|
|
2145
|
+
), titleEnd && /* @__PURE__ */ React20.createElement(IndicatorsWrapper, null, getCollapsibleValue(titleEnd, open))), /* @__PURE__ */ React20.createElement(import_ui15.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
2200
2146
|
};
|
|
2201
2147
|
function getCollapsibleValue(value, isOpen) {
|
|
2202
2148
|
if (typeof value === "function") {
|
|
@@ -2215,25 +2161,25 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2215
2161
|
const id = (0, import_react21.useId)();
|
|
2216
2162
|
const labelId = `label-${id}`;
|
|
2217
2163
|
const contentId = `content-${id}`;
|
|
2218
|
-
return /* @__PURE__ */
|
|
2219
|
-
|
|
2164
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
|
|
2165
|
+
import_ui16.ListItemButton,
|
|
2220
2166
|
{
|
|
2221
2167
|
id: labelId,
|
|
2222
2168
|
"aria-controls": contentId,
|
|
2223
2169
|
onClick: handleClick,
|
|
2224
2170
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2225
2171
|
},
|
|
2226
|
-
/* @__PURE__ */
|
|
2227
|
-
|
|
2172
|
+
/* @__PURE__ */ React21.createElement(import_ui16.Stack, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React21.createElement(
|
|
2173
|
+
import_ui16.ListItemText,
|
|
2228
2174
|
{
|
|
2229
2175
|
secondary: title,
|
|
2230
2176
|
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
|
|
2231
2177
|
sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
|
|
2232
2178
|
}
|
|
2233
2179
|
), getCollapsibleValue(titleEnd, isOpen)),
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
), /* @__PURE__ */
|
|
2236
|
-
|
|
2180
|
+
/* @__PURE__ */ React21.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
2181
|
+
), /* @__PURE__ */ React21.createElement(
|
|
2182
|
+
import_ui16.Collapse,
|
|
2237
2183
|
{
|
|
2238
2184
|
id: contentId,
|
|
2239
2185
|
"aria-labelledby": labelId,
|
|
@@ -2241,15 +2187,15 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2241
2187
|
timeout: "auto",
|
|
2242
2188
|
unmountOnExit
|
|
2243
2189
|
},
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
), /* @__PURE__ */
|
|
2190
|
+
/* @__PURE__ */ React21.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React21.createElement(import_ui16.Stack, { ref, gap: 2.5, p: 2 }, children))
|
|
2191
|
+
), /* @__PURE__ */ React21.createElement(import_ui16.Divider, null));
|
|
2246
2192
|
}
|
|
2247
2193
|
|
|
2248
2194
|
// src/components/sections-list.tsx
|
|
2249
|
-
var
|
|
2250
|
-
var
|
|
2195
|
+
var React22 = __toESM(require("react"));
|
|
2196
|
+
var import_ui17 = require("@elementor/ui");
|
|
2251
2197
|
function SectionsList(props) {
|
|
2252
|
-
return /* @__PURE__ */
|
|
2198
|
+
return /* @__PURE__ */ React22.createElement(import_ui17.List, { disablePadding: true, component: "div", ...props });
|
|
2253
2199
|
}
|
|
2254
2200
|
|
|
2255
2201
|
// src/components/settings-tab.tsx
|
|
@@ -2257,12 +2203,12 @@ var SettingsTab = () => {
|
|
|
2257
2203
|
const { elementType, element } = useElement();
|
|
2258
2204
|
const settingsDefault = useDefaultPanelSettings();
|
|
2259
2205
|
const isDefaultExpanded = (sectionId) => settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2260
|
-
return /* @__PURE__ */
|
|
2206
|
+
return /* @__PURE__ */ React23.createElement(import_session4.SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React23.createElement(SectionsList, null, elementType.controls.map(({ type, value }, index) => {
|
|
2261
2207
|
if (type === "control") {
|
|
2262
|
-
return /* @__PURE__ */
|
|
2208
|
+
return /* @__PURE__ */ React23.createElement(Control2, { key: value.bind, control: value });
|
|
2263
2209
|
}
|
|
2264
2210
|
if (type === "section") {
|
|
2265
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ React23.createElement(
|
|
2266
2212
|
Section,
|
|
2267
2213
|
{
|
|
2268
2214
|
title: value.label,
|
|
@@ -2271,7 +2217,7 @@ var SettingsTab = () => {
|
|
|
2271
2217
|
},
|
|
2272
2218
|
value.items?.map((item) => {
|
|
2273
2219
|
if (item.type === "control") {
|
|
2274
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ React23.createElement(Control2, { key: item.value.bind, control: item.value });
|
|
2275
2221
|
}
|
|
2276
2222
|
return null;
|
|
2277
2223
|
})
|
|
@@ -2289,7 +2235,7 @@ var Control2 = ({ control }) => {
|
|
|
2289
2235
|
if (layout === "custom") {
|
|
2290
2236
|
controlProps.label = control.label;
|
|
2291
2237
|
}
|
|
2292
|
-
return /* @__PURE__ */
|
|
2238
|
+
return /* @__PURE__ */ React23.createElement(SettingsField, { bind: control.bind, propDisplayName: control.label || control.bind }, control.meta?.topDivider && /* @__PURE__ */ React23.createElement(import_ui18.Divider, null), /* @__PURE__ */ React23.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React23.createElement(import_editor_controls5.ControlFormLabel, null, control.label) : null, /* @__PURE__ */ React23.createElement(Control, { type: control.type, props: controlProps })));
|
|
2293
2239
|
};
|
|
2294
2240
|
function populateChildControlProps(props) {
|
|
2295
2241
|
if (props.childControlType) {
|
|
@@ -2308,18 +2254,17 @@ function populateChildControlProps(props) {
|
|
|
2308
2254
|
}
|
|
2309
2255
|
|
|
2310
2256
|
// src/components/style-tab.tsx
|
|
2311
|
-
var
|
|
2257
|
+
var React87 = __toESM(require("react"));
|
|
2312
2258
|
var import_react37 = require("react");
|
|
2313
2259
|
var import_editor_props15 = require("@elementor/editor-props");
|
|
2314
2260
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2315
|
-
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
2316
2261
|
var import_locations3 = require("@elementor/locations");
|
|
2317
2262
|
var import_session6 = require("@elementor/session");
|
|
2318
|
-
var
|
|
2319
|
-
var
|
|
2263
|
+
var import_ui43 = require("@elementor/ui");
|
|
2264
|
+
var import_i18n59 = require("@wordpress/i18n");
|
|
2320
2265
|
|
|
2321
2266
|
// src/contexts/styles-inheritance-context.tsx
|
|
2322
|
-
var
|
|
2267
|
+
var React24 = __toESM(require("react"));
|
|
2323
2268
|
var import_react22 = require("react");
|
|
2324
2269
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
2325
2270
|
var import_editor_props9 = require("@elementor/editor-props");
|
|
@@ -2555,7 +2500,7 @@ function StyleInheritanceProvider({ children }) {
|
|
|
2555
2500
|
const styleDefs = useAppliedStyles();
|
|
2556
2501
|
const breakpointsTree = (0, import_editor_responsive.getBreakpointsTree)();
|
|
2557
2502
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
2558
|
-
return /* @__PURE__ */
|
|
2503
|
+
return /* @__PURE__ */ React24.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
2559
2504
|
}
|
|
2560
2505
|
function useStylesInheritanceSnapshot() {
|
|
2561
2506
|
const context = (0, import_react22.useContext)(Context4);
|
|
@@ -2624,13 +2569,13 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
2624
2569
|
}
|
|
2625
2570
|
|
|
2626
2571
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2627
|
-
var
|
|
2628
|
-
var
|
|
2629
|
-
var
|
|
2572
|
+
var React32 = __toESM(require("react"));
|
|
2573
|
+
var import_editor_controls9 = require("@elementor/editor-controls");
|
|
2574
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
2630
2575
|
|
|
2631
2576
|
// src/controls-registry/styles-field.tsx
|
|
2632
|
-
var
|
|
2633
|
-
var
|
|
2577
|
+
var React31 = __toESM(require("react"));
|
|
2578
|
+
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
2634
2579
|
var import_editor_styles4 = require("@elementor/editor-styles");
|
|
2635
2580
|
|
|
2636
2581
|
// src/hooks/use-styles-field.ts
|
|
@@ -2644,24 +2589,24 @@ function useStylesField(propName, meta) {
|
|
|
2644
2589
|
}
|
|
2645
2590
|
|
|
2646
2591
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
2647
|
-
var
|
|
2648
|
-
var
|
|
2592
|
+
var React30 = __toESM(require("react"));
|
|
2593
|
+
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
2649
2594
|
var import_editor_props10 = require("@elementor/editor-props");
|
|
2650
2595
|
var import_editor_styles_repository14 = require("@elementor/editor-styles-repository");
|
|
2651
|
-
var
|
|
2596
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
2652
2597
|
|
|
2653
2598
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
2654
|
-
var
|
|
2599
|
+
var React29 = __toESM(require("react"));
|
|
2655
2600
|
var import_react24 = require("react");
|
|
2656
2601
|
var import_editor_canvas2 = require("@elementor/editor-canvas");
|
|
2657
2602
|
var import_editor_ui5 = require("@elementor/editor-ui");
|
|
2658
|
-
var
|
|
2659
|
-
var
|
|
2603
|
+
var import_ui24 = require("@elementor/ui");
|
|
2604
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
2660
2605
|
|
|
2661
2606
|
// src/hooks/use-direction.ts
|
|
2662
|
-
var
|
|
2607
|
+
var import_ui19 = require("@elementor/ui");
|
|
2663
2608
|
function useDirection() {
|
|
2664
|
-
const theme = (0,
|
|
2609
|
+
const theme = (0, import_ui19.useTheme)();
|
|
2665
2610
|
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!getElementorFrontendConfig()?.is_rtl;
|
|
2666
2611
|
return { isSiteRtl, isUiRtl };
|
|
2667
2612
|
}
|
|
@@ -2669,7 +2614,7 @@ function useDirection() {
|
|
|
2669
2614
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
2670
2615
|
var import_react23 = require("react");
|
|
2671
2616
|
var import_editor_styles_repository12 = require("@elementor/editor-styles-repository");
|
|
2672
|
-
var
|
|
2617
|
+
var import_i18n10 = require("@wordpress/i18n");
|
|
2673
2618
|
var MAXIMUM_ITEMS = 2;
|
|
2674
2619
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
2675
2620
|
const [items3, setItems] = (0, import_react23.useState)([]);
|
|
@@ -2680,7 +2625,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
2680
2625
|
);
|
|
2681
2626
|
const validItems = normalizedItems.map((item) => ({
|
|
2682
2627
|
...item,
|
|
2683
|
-
displayLabel: import_editor_styles_repository12.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0,
|
|
2628
|
+
displayLabel: import_editor_styles_repository12.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n10.__)("Base", "elementor")
|
|
2684
2629
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
2685
2630
|
setItems(validItems);
|
|
2686
2631
|
})();
|
|
@@ -2729,10 +2674,10 @@ var import_editor_canvas = require("@elementor/editor-canvas");
|
|
|
2729
2674
|
var stylesInheritanceTransformersRegistry = (0, import_editor_canvas.createTransformersRegistry)();
|
|
2730
2675
|
|
|
2731
2676
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
2732
|
-
var
|
|
2677
|
+
var React25 = __toESM(require("react"));
|
|
2733
2678
|
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
2734
2679
|
var import_icons4 = require("@elementor/icons");
|
|
2735
|
-
var
|
|
2680
|
+
var import_ui20 = require("@elementor/ui");
|
|
2736
2681
|
var SIZE3 = "tiny";
|
|
2737
2682
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
2738
2683
|
var breakpointIconMap = {
|
|
@@ -2752,21 +2697,21 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
2752
2697
|
return null;
|
|
2753
2698
|
}
|
|
2754
2699
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
2755
|
-
return /* @__PURE__ */
|
|
2700
|
+
return /* @__PURE__ */ React25.createElement(import_ui20.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React25.createElement(IconComponent, { fontSize: SIZE3, sx: { mt: "2px" } }));
|
|
2756
2701
|
};
|
|
2757
2702
|
|
|
2758
2703
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
2759
|
-
var
|
|
2704
|
+
var React26 = __toESM(require("react"));
|
|
2760
2705
|
var import_editor_styles_repository13 = require("@elementor/editor-styles-repository");
|
|
2761
2706
|
var import_icons5 = require("@elementor/icons");
|
|
2762
|
-
var
|
|
2763
|
-
var
|
|
2707
|
+
var import_ui21 = require("@elementor/ui");
|
|
2708
|
+
var import_i18n11 = require("@wordpress/i18n");
|
|
2764
2709
|
var SIZE4 = "tiny";
|
|
2765
2710
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
2766
2711
|
const isBaseStyle = provider === import_editor_styles_repository13.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
2767
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
2768
|
-
return /* @__PURE__ */
|
|
2769
|
-
|
|
2712
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React26.createElement(import_ui21.Tooltip, { title: (0, import_i18n11.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React26.createElement(import_icons5.InfoCircleIcon, { fontSize: SIZE4 })) : void 0;
|
|
2713
|
+
return /* @__PURE__ */ React26.createElement(
|
|
2714
|
+
import_ui21.Chip,
|
|
2770
2715
|
{
|
|
2771
2716
|
label: displayLabel,
|
|
2772
2717
|
size: SIZE4,
|
|
@@ -2791,11 +2736,11 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
2791
2736
|
};
|
|
2792
2737
|
|
|
2793
2738
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
2794
|
-
var
|
|
2795
|
-
var
|
|
2796
|
-
var ValueComponent = ({ index, value }) => {
|
|
2797
|
-
return /* @__PURE__ */
|
|
2798
|
-
|
|
2739
|
+
var React27 = __toESM(require("react"));
|
|
2740
|
+
var import_ui22 = require("@elementor/ui");
|
|
2741
|
+
var ValueComponent = ({ index, value }) => {
|
|
2742
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2743
|
+
import_ui22.Typography,
|
|
2799
2744
|
{
|
|
2800
2745
|
variant: "caption",
|
|
2801
2746
|
color: "text.tertiary",
|
|
@@ -2813,9 +2758,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
2813
2758
|
};
|
|
2814
2759
|
|
|
2815
2760
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
2816
|
-
var
|
|
2817
|
-
var
|
|
2818
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
2761
|
+
var React28 = __toESM(require("react"));
|
|
2762
|
+
var import_ui23 = require("@elementor/ui");
|
|
2763
|
+
var ActionIcons = () => /* @__PURE__ */ React28.createElement(import_ui23.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
2819
2764
|
|
|
2820
2765
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
2821
2766
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -2849,8 +2794,8 @@ var StylesInheritanceInfotip = ({
|
|
|
2849
2794
|
});
|
|
2850
2795
|
}, [key, propType]);
|
|
2851
2796
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
2852
|
-
const infotipContent = /* @__PURE__ */
|
|
2853
|
-
|
|
2797
|
+
const infotipContent = /* @__PURE__ */ React29.createElement(import_ui24.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React29.createElement(
|
|
2798
|
+
import_ui24.Card,
|
|
2854
2799
|
{
|
|
2855
2800
|
elevation: 0,
|
|
2856
2801
|
sx: {
|
|
@@ -2862,8 +2807,8 @@ var StylesInheritanceInfotip = ({
|
|
|
2862
2807
|
flexDirection: "column"
|
|
2863
2808
|
}
|
|
2864
2809
|
},
|
|
2865
|
-
/* @__PURE__ */
|
|
2866
|
-
|
|
2810
|
+
/* @__PURE__ */ React29.createElement(
|
|
2811
|
+
import_ui24.Box,
|
|
2867
2812
|
{
|
|
2868
2813
|
sx: {
|
|
2869
2814
|
position: "sticky",
|
|
@@ -2872,10 +2817,10 @@ var StylesInheritanceInfotip = ({
|
|
|
2872
2817
|
backgroundColor: "background.paper"
|
|
2873
2818
|
}
|
|
2874
2819
|
},
|
|
2875
|
-
/* @__PURE__ */
|
|
2820
|
+
/* @__PURE__ */ React29.createElement(import_editor_ui5.PopoverHeader, { title: (0, import_i18n12.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
2876
2821
|
),
|
|
2877
|
-
/* @__PURE__ */
|
|
2878
|
-
|
|
2822
|
+
/* @__PURE__ */ React29.createElement(
|
|
2823
|
+
import_ui24.CardContent,
|
|
2879
2824
|
{
|
|
2880
2825
|
sx: {
|
|
2881
2826
|
display: "flex",
|
|
@@ -2888,29 +2833,29 @@ var StylesInheritanceInfotip = ({
|
|
|
2888
2833
|
}
|
|
2889
2834
|
}
|
|
2890
2835
|
},
|
|
2891
|
-
/* @__PURE__ */
|
|
2892
|
-
return /* @__PURE__ */
|
|
2893
|
-
|
|
2836
|
+
/* @__PURE__ */ React29.createElement(import_ui24.Stack, { gap: 1.5, sx: { pl: 3, pr: 1, pb: 2 }, role: "list" }, items3.map((item, index) => {
|
|
2837
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2838
|
+
import_ui24.Box,
|
|
2894
2839
|
{
|
|
2895
2840
|
key: item.id,
|
|
2896
2841
|
display: "flex",
|
|
2897
2842
|
gap: 0.5,
|
|
2898
2843
|
role: "listitem",
|
|
2899
|
-
"aria-label": (0,
|
|
2844
|
+
"aria-label": (0, import_i18n12.__)("Inheritance item: %s", "elementor").replace(
|
|
2900
2845
|
"%s",
|
|
2901
2846
|
item.displayLabel
|
|
2902
2847
|
)
|
|
2903
2848
|
},
|
|
2904
|
-
/* @__PURE__ */
|
|
2905
|
-
/* @__PURE__ */
|
|
2849
|
+
/* @__PURE__ */ React29.createElement(import_ui24.Box, { 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 })),
|
|
2850
|
+
/* @__PURE__ */ React29.createElement(ActionIcons, null)
|
|
2906
2851
|
);
|
|
2907
2852
|
}))
|
|
2908
2853
|
)
|
|
2909
2854
|
));
|
|
2910
2855
|
if (isDisabled) {
|
|
2911
|
-
return /* @__PURE__ */
|
|
2856
|
+
return /* @__PURE__ */ React29.createElement(import_ui24.Box, { sx: { display: "inline-flex" } }, children);
|
|
2912
2857
|
}
|
|
2913
|
-
return /* @__PURE__ */
|
|
2858
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2914
2859
|
TooltipOrInfotip,
|
|
2915
2860
|
{
|
|
2916
2861
|
showInfotip,
|
|
@@ -2918,7 +2863,7 @@ var StylesInheritanceInfotip = ({
|
|
|
2918
2863
|
infotipContent,
|
|
2919
2864
|
isDisabled
|
|
2920
2865
|
},
|
|
2921
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ React29.createElement(import_ui24.IconButton, { onClick: toggleInfotip, "aria-label": label, sx: { my: "-1px" }, disabled: isDisabled }, children)
|
|
2922
2867
|
);
|
|
2923
2868
|
};
|
|
2924
2869
|
function TooltipOrInfotip({
|
|
@@ -2932,11 +2877,11 @@ function TooltipOrInfotip({
|
|
|
2932
2877
|
const isSiteRtl = direction.isSiteRtl;
|
|
2933
2878
|
const forceInfotipAlignLeft = isSiteRtl ? 9999999 : -9999999;
|
|
2934
2879
|
if (isDisabled) {
|
|
2935
|
-
return /* @__PURE__ */
|
|
2880
|
+
return /* @__PURE__ */ React29.createElement(import_ui24.Box, { sx: { display: "inline-flex" } }, children);
|
|
2936
2881
|
}
|
|
2937
2882
|
if (showInfotip) {
|
|
2938
|
-
return /* @__PURE__ */
|
|
2939
|
-
|
|
2883
|
+
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
|
|
2884
|
+
import_ui24.Backdrop,
|
|
2940
2885
|
{
|
|
2941
2886
|
open: showInfotip,
|
|
2942
2887
|
onClick: onClose,
|
|
@@ -2945,8 +2890,8 @@ function TooltipOrInfotip({
|
|
|
2945
2890
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
2946
2891
|
}
|
|
2947
2892
|
}
|
|
2948
|
-
), /* @__PURE__ */
|
|
2949
|
-
|
|
2893
|
+
), /* @__PURE__ */ React29.createElement(
|
|
2894
|
+
import_ui24.Infotip,
|
|
2950
2895
|
{
|
|
2951
2896
|
placement: "top",
|
|
2952
2897
|
content: infotipContent,
|
|
@@ -2972,7 +2917,7 @@ function TooltipOrInfotip({
|
|
|
2972
2917
|
children
|
|
2973
2918
|
));
|
|
2974
2919
|
}
|
|
2975
|
-
return /* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ React29.createElement(import_ui24.Tooltip, { title: (0, import_i18n12.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
2976
2921
|
}
|
|
2977
2922
|
|
|
2978
2923
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -2980,14 +2925,14 @@ var disabledControls = ["box-shadow", "background-overlay", "filter", "backdrop-
|
|
|
2980
2925
|
var StylesInheritanceIndicator = ({
|
|
2981
2926
|
customContext
|
|
2982
2927
|
}) => {
|
|
2983
|
-
const context = (0,
|
|
2928
|
+
const context = (0, import_editor_controls6.useBoundProp)();
|
|
2984
2929
|
const { path, propType } = customContext || context;
|
|
2985
2930
|
const inheritanceChain = useStylesInheritanceChain(path);
|
|
2986
2931
|
if (!path || !inheritanceChain.length) {
|
|
2987
2932
|
return null;
|
|
2988
2933
|
}
|
|
2989
2934
|
const isDisabled = path.some((pathItem) => disabledControls.includes(pathItem));
|
|
2990
|
-
return /* @__PURE__ */
|
|
2935
|
+
return /* @__PURE__ */ React30.createElement(
|
|
2991
2936
|
Indicator,
|
|
2992
2937
|
{
|
|
2993
2938
|
inheritanceChain,
|
|
@@ -3011,7 +2956,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
3011
2956
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
3012
2957
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
3013
2958
|
};
|
|
3014
|
-
return /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ React30.createElement(
|
|
3015
2960
|
StylesInheritanceInfotip,
|
|
3016
2961
|
{
|
|
3017
2962
|
inheritanceChain,
|
|
@@ -3020,24 +2965,24 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
3020
2965
|
label,
|
|
3021
2966
|
isDisabled
|
|
3022
2967
|
},
|
|
3023
|
-
/* @__PURE__ */
|
|
2968
|
+
/* @__PURE__ */ React30.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
3024
2969
|
);
|
|
3025
2970
|
};
|
|
3026
2971
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
3027
2972
|
if (isFinalValue) {
|
|
3028
|
-
return (0,
|
|
2973
|
+
return (0, import_i18n13.__)("This is the final value", "elementor");
|
|
3029
2974
|
}
|
|
3030
2975
|
if (hasValue) {
|
|
3031
|
-
return (0,
|
|
2976
|
+
return (0, import_i18n13.__)("This value is overridden by another style", "elementor");
|
|
3032
2977
|
}
|
|
3033
|
-
return (0,
|
|
2978
|
+
return (0, import_i18n13.__)("This has value from another style", "elementor");
|
|
3034
2979
|
};
|
|
3035
2980
|
|
|
3036
2981
|
// src/controls-registry/conditional-field.tsx
|
|
3037
|
-
var
|
|
2982
|
+
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
3038
2983
|
var import_editor_props11 = require("@elementor/editor-props");
|
|
3039
2984
|
var ConditionalField = ({ children }) => {
|
|
3040
|
-
const { propType } = (0,
|
|
2985
|
+
const { propType } = (0, import_editor_controls7.useBoundProp)();
|
|
3041
2986
|
const depList = getDependencies(propType);
|
|
3042
2987
|
const { values: depValues } = useStylesFields(depList);
|
|
3043
2988
|
const isHidden = !(0, import_editor_props11.isDependencyMet)(propType?.dependencies, depValues);
|
|
@@ -3063,8 +3008,8 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3063
3008
|
const setValue = (newValue) => {
|
|
3064
3009
|
fields.setValue(newValue[bind]);
|
|
3065
3010
|
};
|
|
3066
|
-
return /* @__PURE__ */
|
|
3067
|
-
|
|
3011
|
+
return /* @__PURE__ */ React31.createElement(
|
|
3012
|
+
import_editor_controls8.ControlAdornmentsProvider,
|
|
3068
3013
|
{
|
|
3069
3014
|
items: [
|
|
3070
3015
|
{
|
|
@@ -3073,8 +3018,8 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3073
3018
|
}
|
|
3074
3019
|
]
|
|
3075
3020
|
},
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
|
|
3021
|
+
/* @__PURE__ */ React31.createElement(
|
|
3022
|
+
import_editor_controls8.PropProvider,
|
|
3078
3023
|
{
|
|
3079
3024
|
propType,
|
|
3080
3025
|
value: { [bind]: value },
|
|
@@ -3082,34 +3027,34 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3082
3027
|
placeholder: placeholderValues,
|
|
3083
3028
|
isDisabled: () => !canEdit
|
|
3084
3029
|
},
|
|
3085
|
-
/* @__PURE__ */
|
|
3030
|
+
/* @__PURE__ */ React31.createElement(import_editor_controls8.PropKeyProvider, { bind }, /* @__PURE__ */ React31.createElement(ConditionalField, null, children))
|
|
3086
3031
|
)
|
|
3087
3032
|
);
|
|
3088
3033
|
};
|
|
3089
3034
|
|
|
3090
3035
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3091
|
-
var BACKGROUND_LABEL = (0,
|
|
3036
|
+
var BACKGROUND_LABEL = (0, import_i18n14.__)("Background", "elementor");
|
|
3092
3037
|
var BackgroundSection = () => {
|
|
3093
|
-
return /* @__PURE__ */
|
|
3038
|
+
return /* @__PURE__ */ React32.createElement(SectionContent, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React32.createElement(import_editor_controls9.BackgroundControl, null)));
|
|
3094
3039
|
};
|
|
3095
3040
|
|
|
3096
3041
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3097
|
-
var
|
|
3042
|
+
var React43 = __toESM(require("react"));
|
|
3098
3043
|
|
|
3099
3044
|
// src/components/panel-divider.tsx
|
|
3100
|
-
var
|
|
3101
|
-
var
|
|
3102
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3045
|
+
var React33 = __toESM(require("react"));
|
|
3046
|
+
var import_ui25 = require("@elementor/ui");
|
|
3047
|
+
var PanelDivider = () => /* @__PURE__ */ React33.createElement(import_ui25.Divider, { sx: { my: 0.5 } });
|
|
3103
3048
|
|
|
3104
3049
|
// src/components/style-sections/border-section/border-field.tsx
|
|
3105
|
-
var
|
|
3106
|
-
var
|
|
3107
|
-
var
|
|
3050
|
+
var React40 = __toESM(require("react"));
|
|
3051
|
+
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
3052
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
3108
3053
|
|
|
3109
3054
|
// src/components/add-or-remove-content.tsx
|
|
3110
|
-
var
|
|
3055
|
+
var React34 = __toESM(require("react"));
|
|
3111
3056
|
var import_icons6 = require("@elementor/icons");
|
|
3112
|
-
var
|
|
3057
|
+
var import_ui26 = require("@elementor/ui");
|
|
3113
3058
|
var SIZE5 = "tiny";
|
|
3114
3059
|
var AddOrRemoveContent = ({
|
|
3115
3060
|
isAdded,
|
|
@@ -3119,8 +3064,8 @@ var AddOrRemoveContent = ({
|
|
|
3119
3064
|
disabled,
|
|
3120
3065
|
renderLabel
|
|
3121
3066
|
}) => {
|
|
3122
|
-
return /* @__PURE__ */
|
|
3123
|
-
|
|
3067
|
+
return /* @__PURE__ */ React34.createElement(SectionContent, null, /* @__PURE__ */ React34.createElement(
|
|
3068
|
+
import_ui26.Stack,
|
|
3124
3069
|
{
|
|
3125
3070
|
direction: "row",
|
|
3126
3071
|
sx: {
|
|
@@ -3130,37 +3075,37 @@ var AddOrRemoveContent = ({
|
|
|
3130
3075
|
}
|
|
3131
3076
|
},
|
|
3132
3077
|
renderLabel(),
|
|
3133
|
-
isAdded ? /* @__PURE__ */
|
|
3134
|
-
), /* @__PURE__ */
|
|
3078
|
+
isAdded ? /* @__PURE__ */ React34.createElement(import_ui26.IconButton, { size: SIZE5, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React34.createElement(import_icons6.MinusIcon, { fontSize: SIZE5 })) : /* @__PURE__ */ React34.createElement(import_ui26.IconButton, { size: SIZE5, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React34.createElement(import_icons6.PlusIcon, { fontSize: SIZE5 }))
|
|
3079
|
+
), /* @__PURE__ */ React34.createElement(import_ui26.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React34.createElement(SectionContent, null, children)));
|
|
3135
3080
|
};
|
|
3136
3081
|
|
|
3137
3082
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3138
|
-
var
|
|
3139
|
-
var
|
|
3140
|
-
var
|
|
3083
|
+
var React37 = __toESM(require("react"));
|
|
3084
|
+
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
3085
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
3141
3086
|
|
|
3142
3087
|
// src/components/styles-field-layout.tsx
|
|
3143
|
-
var
|
|
3144
|
-
var
|
|
3088
|
+
var React36 = __toESM(require("react"));
|
|
3089
|
+
var import_ui28 = require("@elementor/ui");
|
|
3145
3090
|
|
|
3146
3091
|
// src/components/control-label.tsx
|
|
3147
|
-
var
|
|
3148
|
-
var
|
|
3149
|
-
var
|
|
3092
|
+
var React35 = __toESM(require("react"));
|
|
3093
|
+
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
3094
|
+
var import_ui27 = require("@elementor/ui");
|
|
3150
3095
|
var ControlLabel = ({ children }) => {
|
|
3151
|
-
return /* @__PURE__ */
|
|
3096
|
+
return /* @__PURE__ */ React35.createElement(import_ui27.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React35.createElement(import_editor_controls10.ControlFormLabel, null, children), /* @__PURE__ */ React35.createElement(import_editor_controls10.ControlAdornments, null));
|
|
3152
3097
|
};
|
|
3153
3098
|
|
|
3154
3099
|
// src/components/styles-field-layout.tsx
|
|
3155
|
-
var StylesFieldLayout =
|
|
3100
|
+
var StylesFieldLayout = React36.forwardRef((props, ref) => {
|
|
3156
3101
|
const { direction = "row", children, label } = props;
|
|
3157
3102
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3158
|
-
return /* @__PURE__ */
|
|
3103
|
+
return /* @__PURE__ */ React36.createElement(LayoutComponent, { label, ref, children });
|
|
3159
3104
|
});
|
|
3160
|
-
var Row =
|
|
3105
|
+
var Row = React36.forwardRef(
|
|
3161
3106
|
({ label, children }, ref) => {
|
|
3162
|
-
return /* @__PURE__ */
|
|
3163
|
-
|
|
3107
|
+
return /* @__PURE__ */ React36.createElement(import_ui28.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref }, /* @__PURE__ */ React36.createElement(import_ui28.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(ControlLabel, null, label)), /* @__PURE__ */ React36.createElement(
|
|
3108
|
+
import_ui28.Grid,
|
|
3164
3109
|
{
|
|
3165
3110
|
item: true,
|
|
3166
3111
|
xs: 6,
|
|
@@ -3172,82 +3117,82 @@ var Row = React39.forwardRef(
|
|
|
3172
3117
|
));
|
|
3173
3118
|
}
|
|
3174
3119
|
);
|
|
3175
|
-
var Column =
|
|
3120
|
+
var Column = React36.forwardRef(
|
|
3176
3121
|
({ label, children }, ref) => {
|
|
3177
|
-
return /* @__PURE__ */
|
|
3122
|
+
return /* @__PURE__ */ React36.createElement(import_ui28.Stack, { gap: 0.75, ref }, /* @__PURE__ */ React36.createElement(ControlLabel, null, label), children);
|
|
3178
3123
|
}
|
|
3179
3124
|
);
|
|
3180
3125
|
|
|
3181
3126
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3182
|
-
var BORDER_COLOR_LABEL = (0,
|
|
3183
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3127
|
+
var BORDER_COLOR_LABEL = (0, import_i18n15.__)("Border color", "elementor");
|
|
3128
|
+
var BorderColorField = () => /* @__PURE__ */ React37.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React37.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React37.createElement(import_editor_controls11.ColorControl, null)));
|
|
3184
3129
|
|
|
3185
3130
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3186
|
-
var
|
|
3187
|
-
var
|
|
3188
|
-
var
|
|
3189
|
-
var BORDER_TYPE_LABEL = (0,
|
|
3131
|
+
var React38 = __toESM(require("react"));
|
|
3132
|
+
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
3133
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
3134
|
+
var BORDER_TYPE_LABEL = (0, import_i18n16.__)("Border type", "elementor");
|
|
3190
3135
|
var borderStyles = [
|
|
3191
|
-
{ value: "none", label: (0,
|
|
3192
|
-
{ value: "solid", label: (0,
|
|
3193
|
-
{ value: "dashed", label: (0,
|
|
3194
|
-
{ value: "dotted", label: (0,
|
|
3195
|
-
{ value: "double", label: (0,
|
|
3196
|
-
{ value: "groove", label: (0,
|
|
3197
|
-
{ value: "ridge", label: (0,
|
|
3198
|
-
{ value: "inset", label: (0,
|
|
3199
|
-
{ value: "outset", label: (0,
|
|
3136
|
+
{ value: "none", label: (0, import_i18n16.__)("None", "elementor") },
|
|
3137
|
+
{ value: "solid", label: (0, import_i18n16.__)("Solid", "elementor") },
|
|
3138
|
+
{ value: "dashed", label: (0, import_i18n16.__)("Dashed", "elementor") },
|
|
3139
|
+
{ value: "dotted", label: (0, import_i18n16.__)("Dotted", "elementor") },
|
|
3140
|
+
{ value: "double", label: (0, import_i18n16.__)("Double", "elementor") },
|
|
3141
|
+
{ value: "groove", label: (0, import_i18n16.__)("Groove", "elementor") },
|
|
3142
|
+
{ value: "ridge", label: (0, import_i18n16.__)("Ridge", "elementor") },
|
|
3143
|
+
{ value: "inset", label: (0, import_i18n16.__)("Inset", "elementor") },
|
|
3144
|
+
{ value: "outset", label: (0, import_i18n16.__)("Outset", "elementor") }
|
|
3200
3145
|
];
|
|
3201
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3146
|
+
var BorderStyleField = () => /* @__PURE__ */ React38.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React38.createElement(import_editor_controls12.SelectControl, { options: borderStyles })));
|
|
3202
3147
|
|
|
3203
3148
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3204
|
-
var
|
|
3205
|
-
var
|
|
3149
|
+
var React39 = __toESM(require("react"));
|
|
3150
|
+
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3206
3151
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
3207
3152
|
var import_icons7 = require("@elementor/icons");
|
|
3208
|
-
var
|
|
3209
|
-
var
|
|
3210
|
-
var BORDER_WIDTH_LABEL = (0,
|
|
3211
|
-
var InlineStartIcon = (0,
|
|
3212
|
-
var InlineEndIcon = (0,
|
|
3153
|
+
var import_ui29 = require("@elementor/ui");
|
|
3154
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
3155
|
+
var BORDER_WIDTH_LABEL = (0, import_i18n17.__)("Border width", "elementor");
|
|
3156
|
+
var InlineStartIcon = (0, import_ui29.withDirection)(import_icons7.SideRightIcon);
|
|
3157
|
+
var InlineEndIcon = (0, import_ui29.withDirection)(import_icons7.SideLeftIcon);
|
|
3213
3158
|
var getEdges = (isSiteRtl) => [
|
|
3214
3159
|
{
|
|
3215
|
-
label: (0,
|
|
3216
|
-
icon: /* @__PURE__ */
|
|
3160
|
+
label: (0, import_i18n17.__)("Top", "elementor"),
|
|
3161
|
+
icon: /* @__PURE__ */ React39.createElement(import_icons7.SideTopIcon, { fontSize: "tiny" }),
|
|
3217
3162
|
bind: "block-start"
|
|
3218
3163
|
},
|
|
3219
3164
|
{
|
|
3220
|
-
label: isSiteRtl ? (0,
|
|
3221
|
-
icon: /* @__PURE__ */
|
|
3165
|
+
label: isSiteRtl ? (0, import_i18n17.__)("Left", "elementor") : (0, import_i18n17.__)("Right", "elementor"),
|
|
3166
|
+
icon: /* @__PURE__ */ React39.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3222
3167
|
bind: "inline-end"
|
|
3223
3168
|
},
|
|
3224
3169
|
{
|
|
3225
|
-
label: (0,
|
|
3226
|
-
icon: /* @__PURE__ */
|
|
3170
|
+
label: (0, import_i18n17.__)("Bottom", "elementor"),
|
|
3171
|
+
icon: /* @__PURE__ */ React39.createElement(import_icons7.SideBottomIcon, { fontSize: "tiny" }),
|
|
3227
3172
|
bind: "block-end"
|
|
3228
3173
|
},
|
|
3229
3174
|
{
|
|
3230
|
-
label: isSiteRtl ? (0,
|
|
3231
|
-
icon: /* @__PURE__ */
|
|
3175
|
+
label: isSiteRtl ? (0, import_i18n17.__)("Right", "elementor") : (0, import_i18n17.__)("Left", "elementor"),
|
|
3176
|
+
icon: /* @__PURE__ */ React39.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3232
3177
|
bind: "inline-start"
|
|
3233
3178
|
}
|
|
3234
3179
|
];
|
|
3235
3180
|
var BorderWidthField = () => {
|
|
3236
3181
|
const { isSiteRtl } = useDirection();
|
|
3237
|
-
return /* @__PURE__ */
|
|
3238
|
-
|
|
3182
|
+
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3183
|
+
import_editor_controls13.EqualUnequalSizesControl,
|
|
3239
3184
|
{
|
|
3240
3185
|
items: getEdges(isSiteRtl),
|
|
3241
3186
|
label: BORDER_WIDTH_LABEL,
|
|
3242
|
-
icon: /* @__PURE__ */
|
|
3243
|
-
tooltipLabel: (0,
|
|
3187
|
+
icon: /* @__PURE__ */ React39.createElement(import_icons7.SideAllIcon, { fontSize: "tiny" }),
|
|
3188
|
+
tooltipLabel: (0, import_i18n17.__)("Adjust borders", "elementor"),
|
|
3244
3189
|
multiSizePropTypeUtil: import_editor_props12.borderWidthPropTypeUtil
|
|
3245
3190
|
}
|
|
3246
3191
|
));
|
|
3247
3192
|
};
|
|
3248
3193
|
|
|
3249
3194
|
// src/components/style-sections/border-section/border-field.tsx
|
|
3250
|
-
var BORDER_LABEL = (0,
|
|
3195
|
+
var BORDER_LABEL = (0, import_i18n18.__)("Border", "elementor");
|
|
3251
3196
|
var initialBorder = {
|
|
3252
3197
|
"border-width": { $$type: "size", value: { size: 1, unit: "px" } },
|
|
3253
3198
|
"border-color": { $$type: "color", value: "#000000" },
|
|
@@ -3270,91 +3215,91 @@ var BorderField = () => {
|
|
|
3270
3215
|
);
|
|
3271
3216
|
};
|
|
3272
3217
|
const hasBorder = Object.values(values ?? {}).some(Boolean);
|
|
3273
|
-
return /* @__PURE__ */
|
|
3218
|
+
return /* @__PURE__ */ React40.createElement(
|
|
3274
3219
|
AddOrRemoveContent,
|
|
3275
3220
|
{
|
|
3276
3221
|
isAdded: hasBorder,
|
|
3277
3222
|
onAdd: addBorder,
|
|
3278
3223
|
onRemove: removeBorder,
|
|
3279
3224
|
disabled: !canEdit,
|
|
3280
|
-
renderLabel: () => /* @__PURE__ */
|
|
3225
|
+
renderLabel: () => /* @__PURE__ */ React40.createElement(import_editor_controls14.ControlFormLabel, null, BORDER_LABEL)
|
|
3281
3226
|
},
|
|
3282
|
-
/* @__PURE__ */
|
|
3283
|
-
/* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3227
|
+
/* @__PURE__ */ React40.createElement(BorderWidthField, null),
|
|
3228
|
+
/* @__PURE__ */ React40.createElement(BorderColorField, null),
|
|
3229
|
+
/* @__PURE__ */ React40.createElement(BorderStyleField, null)
|
|
3285
3230
|
);
|
|
3286
3231
|
};
|
|
3287
3232
|
|
|
3288
3233
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3289
|
-
var
|
|
3290
|
-
var
|
|
3234
|
+
var React42 = __toESM(require("react"));
|
|
3235
|
+
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
3291
3236
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3292
3237
|
var import_icons8 = require("@elementor/icons");
|
|
3293
|
-
var
|
|
3294
|
-
var
|
|
3238
|
+
var import_ui31 = require("@elementor/ui");
|
|
3239
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
3295
3240
|
|
|
3296
3241
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3297
|
-
var
|
|
3298
|
-
var
|
|
3242
|
+
var React41 = __toESM(require("react"));
|
|
3243
|
+
var import_ui30 = require("@elementor/ui");
|
|
3299
3244
|
var UiProviders = ({ children }) => {
|
|
3300
3245
|
const { isSiteRtl } = useDirection();
|
|
3301
|
-
return /* @__PURE__ */
|
|
3246
|
+
return /* @__PURE__ */ React41.createElement(import_ui30.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React41.createElement(import_ui30.ThemeProvider, null, children));
|
|
3302
3247
|
};
|
|
3303
3248
|
|
|
3304
3249
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3305
|
-
var BORDER_RADIUS_LABEL = (0,
|
|
3306
|
-
var StartStartIcon = (0,
|
|
3307
|
-
var StartEndIcon = (0,
|
|
3308
|
-
var EndStartIcon = (0,
|
|
3309
|
-
var EndEndIcon = (0,
|
|
3310
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3311
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3312
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3313
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3250
|
+
var BORDER_RADIUS_LABEL = (0, import_i18n19.__)("Border radius", "elementor");
|
|
3251
|
+
var StartStartIcon = (0, import_ui31.withDirection)(import_icons8.RadiusTopLeftIcon);
|
|
3252
|
+
var StartEndIcon = (0, import_ui31.withDirection)(import_icons8.RadiusTopRightIcon);
|
|
3253
|
+
var EndStartIcon = (0, import_ui31.withDirection)(import_icons8.RadiusBottomLeftIcon);
|
|
3254
|
+
var EndEndIcon = (0, import_ui31.withDirection)(import_icons8.RadiusBottomRightIcon);
|
|
3255
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n19.__)("Top right", "elementor") : (0, import_i18n19.__)("Top left", "elementor");
|
|
3256
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n19.__)("Top left", "elementor") : (0, import_i18n19.__)("Top right", "elementor");
|
|
3257
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n19.__)("Bottom right", "elementor") : (0, import_i18n19.__)("Bottom left", "elementor");
|
|
3258
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n19.__)("Bottom left", "elementor") : (0, import_i18n19.__)("Bottom right", "elementor");
|
|
3314
3259
|
var getCorners = (isSiteRtl) => [
|
|
3315
3260
|
{
|
|
3316
3261
|
label: getStartStartLabel(isSiteRtl),
|
|
3317
|
-
icon: /* @__PURE__ */
|
|
3262
|
+
icon: /* @__PURE__ */ React42.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3318
3263
|
bind: "start-start"
|
|
3319
3264
|
},
|
|
3320
3265
|
{
|
|
3321
3266
|
label: getStartEndLabel(isSiteRtl),
|
|
3322
|
-
icon: /* @__PURE__ */
|
|
3267
|
+
icon: /* @__PURE__ */ React42.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3323
3268
|
bind: "start-end"
|
|
3324
3269
|
},
|
|
3325
3270
|
{
|
|
3326
3271
|
label: getEndStartLabel(isSiteRtl),
|
|
3327
|
-
icon: /* @__PURE__ */
|
|
3272
|
+
icon: /* @__PURE__ */ React42.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3328
3273
|
bind: "end-start"
|
|
3329
3274
|
},
|
|
3330
3275
|
{
|
|
3331
3276
|
label: getEndEndLabel(isSiteRtl),
|
|
3332
|
-
icon: /* @__PURE__ */
|
|
3277
|
+
icon: /* @__PURE__ */ React42.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3333
3278
|
bind: "end-end"
|
|
3334
3279
|
}
|
|
3335
3280
|
];
|
|
3336
3281
|
var BorderRadiusField = () => {
|
|
3337
3282
|
const { isSiteRtl } = useDirection();
|
|
3338
|
-
return /* @__PURE__ */
|
|
3339
|
-
|
|
3283
|
+
return /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React42.createElement(
|
|
3284
|
+
import_editor_controls15.EqualUnequalSizesControl,
|
|
3340
3285
|
{
|
|
3341
3286
|
items: getCorners(isSiteRtl),
|
|
3342
3287
|
label: BORDER_RADIUS_LABEL,
|
|
3343
|
-
icon: /* @__PURE__ */
|
|
3344
|
-
tooltipLabel: (0,
|
|
3288
|
+
icon: /* @__PURE__ */ React42.createElement(import_icons8.BorderCornersIcon, { fontSize: "tiny" }),
|
|
3289
|
+
tooltipLabel: (0, import_i18n19.__)("Adjust corners", "elementor"),
|
|
3345
3290
|
multiSizePropTypeUtil: import_editor_props13.borderRadiusPropTypeUtil
|
|
3346
3291
|
}
|
|
3347
3292
|
)));
|
|
3348
3293
|
};
|
|
3349
3294
|
|
|
3350
3295
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3351
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3296
|
+
var BorderSection = () => /* @__PURE__ */ React43.createElement(SectionContent, null, /* @__PURE__ */ React43.createElement(BorderRadiusField, null), /* @__PURE__ */ React43.createElement(PanelDivider, null), /* @__PURE__ */ React43.createElement(BorderField, null));
|
|
3352
3297
|
|
|
3353
3298
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3354
|
-
var
|
|
3355
|
-
var
|
|
3299
|
+
var React45 = __toESM(require("react"));
|
|
3300
|
+
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3356
3301
|
var import_editor_elements10 = require("@elementor/editor-elements");
|
|
3357
|
-
var
|
|
3302
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
3358
3303
|
|
|
3359
3304
|
// src/utils/get-recently-used-styles.ts
|
|
3360
3305
|
var import_editor_canvas3 = require("@elementor/editor-canvas");
|
|
@@ -3385,39 +3330,39 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3385
3330
|
};
|
|
3386
3331
|
|
|
3387
3332
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3388
|
-
var
|
|
3333
|
+
var React44 = __toESM(require("react"));
|
|
3389
3334
|
var import_react25 = require("react");
|
|
3390
|
-
var
|
|
3391
|
-
var
|
|
3392
|
-
var OPACITY_LABEL = (0,
|
|
3335
|
+
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
3336
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
3337
|
+
var OPACITY_LABEL = (0, import_i18n20.__)("Opacity", "elementor");
|
|
3393
3338
|
var OpacityControlField = () => {
|
|
3394
3339
|
const rowRef = (0, import_react25.useRef)(null);
|
|
3395
|
-
return /* @__PURE__ */
|
|
3340
|
+
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React44.createElement(import_editor_controls16.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3396
3341
|
};
|
|
3397
3342
|
|
|
3398
3343
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3399
|
-
var BOX_SHADOW_LABEL = (0,
|
|
3400
|
-
var FILTER_LABEL = (0,
|
|
3401
|
-
var TRANSFORM_LABEL = (0,
|
|
3402
|
-
var BACKDROP_FILTER_LABEL = (0,
|
|
3403
|
-
var TRANSITIONS_LABEL = (0,
|
|
3344
|
+
var BOX_SHADOW_LABEL = (0, import_i18n21.__)("Box shadow", "elementor");
|
|
3345
|
+
var FILTER_LABEL = (0, import_i18n21.__)("Filters", "elementor");
|
|
3346
|
+
var TRANSFORM_LABEL = (0, import_i18n21.__)("Transform", "elementor");
|
|
3347
|
+
var BACKDROP_FILTER_LABEL = (0, import_i18n21.__)("Backdrop filters", "elementor");
|
|
3348
|
+
var TRANSITIONS_LABEL = (0, import_i18n21.__)("Transitions", "elementor");
|
|
3404
3349
|
var EffectsSection = () => {
|
|
3405
3350
|
const { element } = (0, import_editor_elements10.useSelectedElement)();
|
|
3406
3351
|
const { meta } = useStyle();
|
|
3407
|
-
return /* @__PURE__ */
|
|
3408
|
-
|
|
3352
|
+
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(import_editor_controls17.BoxShadowRepeaterControl, null)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React45.createElement(import_editor_controls17.TransformRepeaterControl, null)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React45.createElement(
|
|
3353
|
+
import_editor_controls17.TransitionRepeaterControl,
|
|
3409
3354
|
{
|
|
3410
3355
|
currentStyleState: meta.state,
|
|
3411
3356
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3412
3357
|
}
|
|
3413
|
-
)), /* @__PURE__ */
|
|
3358
|
+
)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React45.createElement(import_editor_controls17.FilterRepeaterControl, null)), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React45.createElement(import_editor_controls17.FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3414
3359
|
};
|
|
3415
3360
|
|
|
3416
3361
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3417
|
-
var
|
|
3418
|
-
var
|
|
3362
|
+
var React57 = __toESM(require("react"));
|
|
3363
|
+
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
3419
3364
|
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3420
|
-
var
|
|
3365
|
+
var import_i18n33 = require("@wordpress/i18n");
|
|
3421
3366
|
|
|
3422
3367
|
// src/hooks/use-computed-style.ts
|
|
3423
3368
|
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
@@ -3445,18 +3390,18 @@ function useComputedStyle(elementId) {
|
|
|
3445
3390
|
}
|
|
3446
3391
|
|
|
3447
3392
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3448
|
-
var
|
|
3449
|
-
var
|
|
3393
|
+
var React47 = __toESM(require("react"));
|
|
3394
|
+
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3450
3395
|
var import_icons9 = require("@elementor/icons");
|
|
3451
|
-
var
|
|
3452
|
-
var
|
|
3396
|
+
var import_ui33 = require("@elementor/ui");
|
|
3397
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
3453
3398
|
|
|
3454
3399
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3455
|
-
var
|
|
3400
|
+
var React46 = __toESM(require("react"));
|
|
3456
3401
|
var import_react26 = require("react");
|
|
3457
|
-
var
|
|
3458
|
-
var
|
|
3459
|
-
var FLEX_DIRECTION_LABEL = (0,
|
|
3402
|
+
var import_ui32 = require("@elementor/ui");
|
|
3403
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
3404
|
+
var FLEX_DIRECTION_LABEL = (0, import_i18n22.__)("Flex direction", "elementor");
|
|
3460
3405
|
var CLOCKWISE_ANGLES = {
|
|
3461
3406
|
row: 0,
|
|
3462
3407
|
column: 90,
|
|
@@ -3478,13 +3423,13 @@ var RotatedIcon = ({
|
|
|
3478
3423
|
}) => {
|
|
3479
3424
|
const rotate = (0, import_react26.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3480
3425
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3481
|
-
return /* @__PURE__ */
|
|
3426
|
+
return /* @__PURE__ */ React46.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3482
3427
|
};
|
|
3483
3428
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3484
3429
|
const { value: direction } = useStylesField("flex-direction", {
|
|
3485
3430
|
history: { propDisplayName: FLEX_DIRECTION_LABEL }
|
|
3486
3431
|
});
|
|
3487
|
-
const isRtl = "rtl" === (0,
|
|
3432
|
+
const isRtl = "rtl" === (0, import_ui32.useTheme)().direction;
|
|
3488
3433
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
3489
3434
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
3490
3435
|
const currentDirection = direction?.value || "row";
|
|
@@ -3499,9 +3444,9 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3499
3444
|
};
|
|
3500
3445
|
|
|
3501
3446
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3502
|
-
var ALIGN_CONTENT_LABEL = (0,
|
|
3503
|
-
var StartIcon = (0,
|
|
3504
|
-
var EndIcon = (0,
|
|
3447
|
+
var ALIGN_CONTENT_LABEL = (0, import_i18n23.__)("Align content", "elementor");
|
|
3448
|
+
var StartIcon = (0, import_ui33.withDirection)(import_icons9.JustifyTopIcon);
|
|
3449
|
+
var EndIcon = (0, import_ui33.withDirection)(import_icons9.JustifyBottomIcon);
|
|
3505
3450
|
var iconProps = {
|
|
3506
3451
|
isClockwise: false,
|
|
3507
3452
|
offset: 0,
|
|
@@ -3510,52 +3455,52 @@ var iconProps = {
|
|
|
3510
3455
|
var options = [
|
|
3511
3456
|
{
|
|
3512
3457
|
value: "start",
|
|
3513
|
-
label: (0,
|
|
3514
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3458
|
+
label: (0, import_i18n23.__)("Start", "elementor"),
|
|
3459
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3515
3460
|
showTooltip: true
|
|
3516
3461
|
},
|
|
3517
3462
|
{
|
|
3518
3463
|
value: "center",
|
|
3519
|
-
label: (0,
|
|
3520
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3464
|
+
label: (0, import_i18n23.__)("Center", "elementor"),
|
|
3465
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: import_icons9.JustifyCenterIcon, size, ...iconProps }),
|
|
3521
3466
|
showTooltip: true
|
|
3522
3467
|
},
|
|
3523
3468
|
{
|
|
3524
3469
|
value: "end",
|
|
3525
|
-
label: (0,
|
|
3526
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3470
|
+
label: (0, import_i18n23.__)("End", "elementor"),
|
|
3471
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3527
3472
|
showTooltip: true
|
|
3528
3473
|
},
|
|
3529
3474
|
{
|
|
3530
3475
|
value: "space-between",
|
|
3531
|
-
label: (0,
|
|
3532
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3476
|
+
label: (0, import_i18n23.__)("Space between", "elementor"),
|
|
3477
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: import_icons9.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
3533
3478
|
showTooltip: true
|
|
3534
3479
|
},
|
|
3535
3480
|
{
|
|
3536
3481
|
value: "space-around",
|
|
3537
|
-
label: (0,
|
|
3538
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3482
|
+
label: (0, import_i18n23.__)("Space around", "elementor"),
|
|
3483
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: import_icons9.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
3539
3484
|
showTooltip: true
|
|
3540
3485
|
},
|
|
3541
3486
|
{
|
|
3542
3487
|
value: "space-evenly",
|
|
3543
|
-
label: (0,
|
|
3544
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3488
|
+
label: (0, import_i18n23.__)("Space evenly", "elementor"),
|
|
3489
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon, { icon: import_icons9.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
3545
3490
|
showTooltip: true
|
|
3546
3491
|
}
|
|
3547
3492
|
];
|
|
3548
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3493
|
+
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(import_editor_controls18.ToggleControl, { options, fullWidth: true }))));
|
|
3549
3494
|
|
|
3550
3495
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3551
|
-
var
|
|
3552
|
-
var
|
|
3496
|
+
var React48 = __toESM(require("react"));
|
|
3497
|
+
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3553
3498
|
var import_icons10 = require("@elementor/icons");
|
|
3554
|
-
var
|
|
3555
|
-
var
|
|
3556
|
-
var ALIGN_ITEMS_LABEL = (0,
|
|
3557
|
-
var StartIcon2 = (0,
|
|
3558
|
-
var EndIcon2 = (0,
|
|
3499
|
+
var import_ui34 = require("@elementor/ui");
|
|
3500
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
3501
|
+
var ALIGN_ITEMS_LABEL = (0, import_i18n24.__)("Align items", "elementor");
|
|
3502
|
+
var StartIcon2 = (0, import_ui34.withDirection)(import_icons10.LayoutAlignLeftIcon);
|
|
3503
|
+
var EndIcon2 = (0, import_ui34.withDirection)(import_icons10.LayoutAlignRightIcon);
|
|
3559
3504
|
var iconProps2 = {
|
|
3560
3505
|
isClockwise: false,
|
|
3561
3506
|
offset: 90
|
|
@@ -3563,56 +3508,56 @@ var iconProps2 = {
|
|
|
3563
3508
|
var options2 = [
|
|
3564
3509
|
{
|
|
3565
3510
|
value: "start",
|
|
3566
|
-
label: (0,
|
|
3567
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3511
|
+
label: (0, import_i18n24.__)("Start", "elementor"),
|
|
3512
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3568
3513
|
showTooltip: true
|
|
3569
3514
|
},
|
|
3570
3515
|
{
|
|
3571
3516
|
value: "center",
|
|
3572
|
-
label: (0,
|
|
3573
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3517
|
+
label: (0, import_i18n24.__)("Center", "elementor"),
|
|
3518
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons10.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
3574
3519
|
showTooltip: true
|
|
3575
3520
|
},
|
|
3576
3521
|
{
|
|
3577
3522
|
value: "end",
|
|
3578
|
-
label: (0,
|
|
3579
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3523
|
+
label: (0, import_i18n24.__)("End", "elementor"),
|
|
3524
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3580
3525
|
showTooltip: true
|
|
3581
3526
|
},
|
|
3582
3527
|
{
|
|
3583
3528
|
value: "stretch",
|
|
3584
|
-
label: (0,
|
|
3585
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3529
|
+
label: (0, import_i18n24.__)("Stretch", "elementor"),
|
|
3530
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons10.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
3586
3531
|
showTooltip: true
|
|
3587
3532
|
}
|
|
3588
3533
|
];
|
|
3589
3534
|
var AlignItemsField = () => {
|
|
3590
|
-
return /* @__PURE__ */
|
|
3535
|
+
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(import_editor_controls19.ToggleControl, { options: options2 }))));
|
|
3591
3536
|
};
|
|
3592
3537
|
|
|
3593
3538
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3594
|
-
var
|
|
3595
|
-
var
|
|
3539
|
+
var React49 = __toESM(require("react"));
|
|
3540
|
+
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
3596
3541
|
var import_icons11 = require("@elementor/icons");
|
|
3597
|
-
var
|
|
3598
|
-
var
|
|
3599
|
-
var ALIGN_SELF_LABEL = (0,
|
|
3542
|
+
var import_ui35 = require("@elementor/ui");
|
|
3543
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
3544
|
+
var ALIGN_SELF_LABEL = (0, import_i18n25.__)("Align self", "elementor");
|
|
3600
3545
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3601
3546
|
row: 90,
|
|
3602
3547
|
"row-reverse": 90,
|
|
3603
3548
|
column: 0,
|
|
3604
3549
|
"column-reverse": 0
|
|
3605
3550
|
};
|
|
3606
|
-
var StartIcon3 = (0,
|
|
3607
|
-
var EndIcon3 = (0,
|
|
3551
|
+
var StartIcon3 = (0, import_ui35.withDirection)(import_icons11.LayoutAlignLeftIcon);
|
|
3552
|
+
var EndIcon3 = (0, import_ui35.withDirection)(import_icons11.LayoutAlignRightIcon);
|
|
3608
3553
|
var iconProps3 = {
|
|
3609
3554
|
isClockwise: false
|
|
3610
3555
|
};
|
|
3611
3556
|
var getOptions = (parentStyleDirection) => [
|
|
3612
3557
|
{
|
|
3613
3558
|
value: "start",
|
|
3614
|
-
label: (0,
|
|
3615
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3559
|
+
label: (0, import_i18n25.__)("Start", "elementor"),
|
|
3560
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3616
3561
|
RotatedIcon,
|
|
3617
3562
|
{
|
|
3618
3563
|
icon: StartIcon3,
|
|
@@ -3625,8 +3570,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3625
3570
|
},
|
|
3626
3571
|
{
|
|
3627
3572
|
value: "center",
|
|
3628
|
-
label: (0,
|
|
3629
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3573
|
+
label: (0, import_i18n25.__)("Center", "elementor"),
|
|
3574
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3630
3575
|
RotatedIcon,
|
|
3631
3576
|
{
|
|
3632
3577
|
icon: import_icons11.LayoutAlignCenterIcon,
|
|
@@ -3639,8 +3584,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3639
3584
|
},
|
|
3640
3585
|
{
|
|
3641
3586
|
value: "end",
|
|
3642
|
-
label: (0,
|
|
3643
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3587
|
+
label: (0, import_i18n25.__)("End", "elementor"),
|
|
3588
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3644
3589
|
RotatedIcon,
|
|
3645
3590
|
{
|
|
3646
3591
|
icon: EndIcon3,
|
|
@@ -3653,8 +3598,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3653
3598
|
},
|
|
3654
3599
|
{
|
|
3655
3600
|
value: "stretch",
|
|
3656
|
-
label: (0,
|
|
3657
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3601
|
+
label: (0, import_i18n25.__)("Stretch", "elementor"),
|
|
3602
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(
|
|
3658
3603
|
RotatedIcon,
|
|
3659
3604
|
{
|
|
3660
3605
|
icon: import_icons11.LayoutDistributeVerticalIcon,
|
|
@@ -3666,102 +3611,102 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3666
3611
|
showTooltip: true
|
|
3667
3612
|
}
|
|
3668
3613
|
];
|
|
3669
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3614
|
+
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(import_editor_controls20.ToggleControl, { options: getOptions(parentStyleDirection) }))));
|
|
3670
3615
|
|
|
3671
3616
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3672
|
-
var
|
|
3673
|
-
var
|
|
3674
|
-
var
|
|
3675
|
-
var DISPLAY_LABEL = (0,
|
|
3617
|
+
var React50 = __toESM(require("react"));
|
|
3618
|
+
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3619
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
3620
|
+
var DISPLAY_LABEL = (0, import_i18n26.__)("Display", "elementor");
|
|
3676
3621
|
var displayFieldItems = [
|
|
3677
3622
|
{
|
|
3678
3623
|
value: "block",
|
|
3679
|
-
renderContent: () => (0,
|
|
3680
|
-
label: (0,
|
|
3624
|
+
renderContent: () => (0, import_i18n26.__)("Block", "elementor"),
|
|
3625
|
+
label: (0, import_i18n26.__)("Block", "elementor"),
|
|
3681
3626
|
showTooltip: true
|
|
3682
3627
|
},
|
|
3683
3628
|
{
|
|
3684
3629
|
value: "flex",
|
|
3685
|
-
renderContent: () => (0,
|
|
3686
|
-
label: (0,
|
|
3630
|
+
renderContent: () => (0, import_i18n26.__)("Flex", "elementor"),
|
|
3631
|
+
label: (0, import_i18n26.__)("Flex", "elementor"),
|
|
3687
3632
|
showTooltip: true
|
|
3688
3633
|
},
|
|
3689
3634
|
{
|
|
3690
3635
|
value: "inline-block",
|
|
3691
|
-
renderContent: () => (0,
|
|
3692
|
-
label: (0,
|
|
3636
|
+
renderContent: () => (0, import_i18n26.__)("In-blk", "elementor"),
|
|
3637
|
+
label: (0, import_i18n26.__)("Inline-block", "elementor"),
|
|
3693
3638
|
showTooltip: true
|
|
3694
3639
|
},
|
|
3695
3640
|
{
|
|
3696
3641
|
value: "none",
|
|
3697
|
-
renderContent: () => (0,
|
|
3698
|
-
label: (0,
|
|
3642
|
+
renderContent: () => (0, import_i18n26.__)("None", "elementor"),
|
|
3643
|
+
label: (0, import_i18n26.__)("None", "elementor"),
|
|
3699
3644
|
showTooltip: true
|
|
3700
3645
|
},
|
|
3701
3646
|
{
|
|
3702
3647
|
value: "inline-flex",
|
|
3703
|
-
renderContent: () => (0,
|
|
3704
|
-
label: (0,
|
|
3648
|
+
renderContent: () => (0, import_i18n26.__)("In-flx", "elementor"),
|
|
3649
|
+
label: (0, import_i18n26.__)("Inline-flex", "elementor"),
|
|
3705
3650
|
showTooltip: true
|
|
3706
3651
|
}
|
|
3707
3652
|
];
|
|
3708
3653
|
var DisplayField = () => {
|
|
3709
3654
|
const placeholder = useDisplayPlaceholderValue();
|
|
3710
|
-
return /* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React50.createElement(import_editor_controls21.ToggleControl, { options: displayFieldItems, maxItems: 4, fullWidth: true })));
|
|
3711
3656
|
};
|
|
3712
3657
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3713
3658
|
|
|
3714
3659
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3715
|
-
var
|
|
3716
|
-
var
|
|
3660
|
+
var React51 = __toESM(require("react"));
|
|
3661
|
+
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
3717
3662
|
var import_icons12 = require("@elementor/icons");
|
|
3718
|
-
var
|
|
3719
|
-
var
|
|
3720
|
-
var FLEX_DIRECTION_LABEL2 = (0,
|
|
3663
|
+
var import_ui36 = require("@elementor/ui");
|
|
3664
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
3665
|
+
var FLEX_DIRECTION_LABEL2 = (0, import_i18n27.__)("Direction", "elementor");
|
|
3721
3666
|
var options3 = [
|
|
3722
3667
|
{
|
|
3723
3668
|
value: "row",
|
|
3724
|
-
label: (0,
|
|
3669
|
+
label: (0, import_i18n27.__)("Row", "elementor"),
|
|
3725
3670
|
renderContent: ({ size }) => {
|
|
3726
|
-
const StartIcon5 = (0,
|
|
3727
|
-
return /* @__PURE__ */
|
|
3671
|
+
const StartIcon5 = (0, import_ui36.withDirection)(import_icons12.ArrowRightIcon);
|
|
3672
|
+
return /* @__PURE__ */ React51.createElement(StartIcon5, { fontSize: size });
|
|
3728
3673
|
},
|
|
3729
3674
|
showTooltip: true
|
|
3730
3675
|
},
|
|
3731
3676
|
{
|
|
3732
3677
|
value: "column",
|
|
3733
|
-
label: (0,
|
|
3734
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3678
|
+
label: (0, import_i18n27.__)("Column", "elementor"),
|
|
3679
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
3735
3680
|
showTooltip: true
|
|
3736
3681
|
},
|
|
3737
3682
|
{
|
|
3738
3683
|
value: "row-reverse",
|
|
3739
|
-
label: (0,
|
|
3684
|
+
label: (0, import_i18n27.__)("Reversed row", "elementor"),
|
|
3740
3685
|
renderContent: ({ size }) => {
|
|
3741
|
-
const EndIcon5 = (0,
|
|
3742
|
-
return /* @__PURE__ */
|
|
3686
|
+
const EndIcon5 = (0, import_ui36.withDirection)(import_icons12.ArrowLeftIcon);
|
|
3687
|
+
return /* @__PURE__ */ React51.createElement(EndIcon5, { fontSize: size });
|
|
3743
3688
|
},
|
|
3744
3689
|
showTooltip: true
|
|
3745
3690
|
},
|
|
3746
3691
|
{
|
|
3747
3692
|
value: "column-reverse",
|
|
3748
|
-
label: (0,
|
|
3749
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3693
|
+
label: (0, import_i18n27.__)("Reversed column", "elementor"),
|
|
3694
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
3750
3695
|
showTooltip: true
|
|
3751
3696
|
}
|
|
3752
3697
|
];
|
|
3753
3698
|
var FlexDirectionField = () => {
|
|
3754
|
-
return /* @__PURE__ */
|
|
3699
|
+
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(import_editor_controls22.ToggleControl, { options: options3 }))));
|
|
3755
3700
|
};
|
|
3756
3701
|
|
|
3757
3702
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3758
|
-
var
|
|
3703
|
+
var React52 = __toESM(require("react"));
|
|
3759
3704
|
var import_react27 = require("react");
|
|
3760
|
-
var
|
|
3705
|
+
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
3761
3706
|
var import_icons13 = require("@elementor/icons");
|
|
3762
|
-
var
|
|
3763
|
-
var
|
|
3764
|
-
var ORDER_LABEL = (0,
|
|
3707
|
+
var import_ui37 = require("@elementor/ui");
|
|
3708
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
3709
|
+
var ORDER_LABEL = (0, import_i18n28.__)("Order", "elementor");
|
|
3765
3710
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3766
3711
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3767
3712
|
var FIRST = "first";
|
|
@@ -3774,25 +3719,25 @@ var orderValueMap = {
|
|
|
3774
3719
|
var items = [
|
|
3775
3720
|
{
|
|
3776
3721
|
value: FIRST,
|
|
3777
|
-
label: (0,
|
|
3778
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3722
|
+
label: (0, import_i18n28.__)("First", "elementor"),
|
|
3723
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons13.ArrowUpSmallIcon, { fontSize: size }),
|
|
3779
3724
|
showTooltip: true
|
|
3780
3725
|
},
|
|
3781
3726
|
{
|
|
3782
3727
|
value: LAST,
|
|
3783
|
-
label: (0,
|
|
3784
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3728
|
+
label: (0, import_i18n28.__)("Last", "elementor"),
|
|
3729
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons13.ArrowDownSmallIcon, { fontSize: size }),
|
|
3785
3730
|
showTooltip: true
|
|
3786
3731
|
},
|
|
3787
3732
|
{
|
|
3788
3733
|
value: CUSTOM,
|
|
3789
|
-
label: (0,
|
|
3790
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3734
|
+
label: (0, import_i18n28.__)("Custom", "elementor"),
|
|
3735
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
3791
3736
|
showTooltip: true
|
|
3792
3737
|
}
|
|
3793
3738
|
];
|
|
3794
3739
|
var FlexOrderField = () => {
|
|
3795
|
-
return /* @__PURE__ */
|
|
3740
|
+
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))));
|
|
3796
3741
|
};
|
|
3797
3742
|
function FlexOrderFieldContent() {
|
|
3798
3743
|
const {
|
|
@@ -3802,7 +3747,7 @@ function FlexOrderFieldContent() {
|
|
|
3802
3747
|
} = useStylesField("order", {
|
|
3803
3748
|
history: { propDisplayName: ORDER_LABEL }
|
|
3804
3749
|
});
|
|
3805
|
-
const { placeholder } = (0,
|
|
3750
|
+
const { placeholder } = (0, import_editor_controls23.useBoundProp)();
|
|
3806
3751
|
const placeholderValue = placeholder;
|
|
3807
3752
|
const currentGroup = (0, import_react27.useMemo)(() => getGroupControlValue(order?.value ?? null), [order]);
|
|
3808
3753
|
const [activeGroup, setActiveGroup] = (0, import_react27.useState)(currentGroup);
|
|
@@ -3837,8 +3782,8 @@ function FlexOrderFieldContent() {
|
|
|
3837
3782
|
};
|
|
3838
3783
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
3839
3784
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
3840
|
-
return /* @__PURE__ */
|
|
3841
|
-
|
|
3785
|
+
return /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React52.createElement(
|
|
3786
|
+
import_editor_controls23.ControlToggleButtonGroup,
|
|
3842
3787
|
{
|
|
3843
3788
|
items,
|
|
3844
3789
|
value: activeGroup,
|
|
@@ -3847,8 +3792,8 @@ function FlexOrderFieldContent() {
|
|
|
3847
3792
|
placeholder: groupPlaceholder,
|
|
3848
3793
|
disabled: !canEdit
|
|
3849
3794
|
}
|
|
3850
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3851
|
-
|
|
3795
|
+
)), isCustomVisible && /* @__PURE__ */ React52.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, (0, import_i18n28.__)("Custom order", "elementor"))), /* @__PURE__ */ React52.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React52.createElement(
|
|
3796
|
+
import_editor_controls23.NumberControl,
|
|
3852
3797
|
{
|
|
3853
3798
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
3854
3799
|
max: LAST_DEFAULT_VALUE - 1,
|
|
@@ -3871,42 +3816,42 @@ var getGroupControlValue = (order) => {
|
|
|
3871
3816
|
};
|
|
3872
3817
|
|
|
3873
3818
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
3874
|
-
var
|
|
3819
|
+
var React53 = __toESM(require("react"));
|
|
3875
3820
|
var import_react28 = require("react");
|
|
3876
|
-
var
|
|
3821
|
+
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
3877
3822
|
var import_editor_props14 = require("@elementor/editor-props");
|
|
3878
3823
|
var import_icons14 = require("@elementor/icons");
|
|
3879
|
-
var
|
|
3880
|
-
var FLEX_SIZE_LABEL = (0,
|
|
3824
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
3825
|
+
var FLEX_SIZE_LABEL = (0, import_i18n29.__)("Flex Size", "elementor");
|
|
3881
3826
|
var DEFAULT = 1;
|
|
3882
3827
|
var items2 = [
|
|
3883
3828
|
{
|
|
3884
3829
|
value: "flex-grow",
|
|
3885
|
-
label: (0,
|
|
3886
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3830
|
+
label: (0, import_i18n29.__)("Grow", "elementor"),
|
|
3831
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons14.ExpandIcon, { fontSize: size }),
|
|
3887
3832
|
showTooltip: true
|
|
3888
3833
|
},
|
|
3889
3834
|
{
|
|
3890
3835
|
value: "flex-shrink",
|
|
3891
|
-
label: (0,
|
|
3892
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3836
|
+
label: (0, import_i18n29.__)("Shrink", "elementor"),
|
|
3837
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons14.ShrinkIcon, { fontSize: size }),
|
|
3893
3838
|
showTooltip: true
|
|
3894
3839
|
},
|
|
3895
3840
|
{
|
|
3896
3841
|
value: "custom",
|
|
3897
|
-
label: (0,
|
|
3898
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3842
|
+
label: (0, import_i18n29.__)("Custom", "elementor"),
|
|
3843
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons14.PencilIcon, { fontSize: size }),
|
|
3899
3844
|
showTooltip: true
|
|
3900
3845
|
}
|
|
3901
3846
|
];
|
|
3902
3847
|
var FlexSizeField = () => {
|
|
3903
|
-
return /* @__PURE__ */
|
|
3848
|
+
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))));
|
|
3904
3849
|
};
|
|
3905
3850
|
var FlexSizeFieldContent = () => {
|
|
3906
3851
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
3907
3852
|
history: { propDisplayName: FLEX_SIZE_LABEL }
|
|
3908
3853
|
});
|
|
3909
|
-
const { placeholder } = (0,
|
|
3854
|
+
const { placeholder } = (0, import_editor_controls24.useBoundProp)();
|
|
3910
3855
|
const flexValues = extractFlexValues(value);
|
|
3911
3856
|
const currentGroup = (0, import_react28.useMemo)(() => getActiveGroup(flexValues), [flexValues]);
|
|
3912
3857
|
const [activeGroup, setActiveGroup] = (0, import_react28.useState)(currentGroup);
|
|
@@ -3929,8 +3874,8 @@ var FlexSizeFieldContent = () => {
|
|
|
3929
3874
|
};
|
|
3930
3875
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
3931
3876
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
3932
|
-
return /* @__PURE__ */
|
|
3933
|
-
|
|
3877
|
+
return /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React53.createElement(
|
|
3878
|
+
import_editor_controls24.ControlToggleButtonGroup,
|
|
3934
3879
|
{
|
|
3935
3880
|
value: activeGroup ?? null,
|
|
3936
3881
|
placeholder: groupPlaceholder ?? null,
|
|
@@ -3939,7 +3884,7 @@ var FlexSizeFieldContent = () => {
|
|
|
3939
3884
|
items: items2,
|
|
3940
3885
|
exclusive: true
|
|
3941
3886
|
}
|
|
3942
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3887
|
+
)), isCustomVisible && /* @__PURE__ */ React53.createElement(FlexCustomField, null));
|
|
3943
3888
|
};
|
|
3944
3889
|
function extractFlexValues(source) {
|
|
3945
3890
|
return {
|
|
@@ -3980,8 +3925,8 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
3980
3925
|
};
|
|
3981
3926
|
var FlexCustomField = () => {
|
|
3982
3927
|
const flexBasisRowRef = (0, import_react28.useRef)(null);
|
|
3983
|
-
const context = (0,
|
|
3984
|
-
return /* @__PURE__ */
|
|
3928
|
+
const context = (0, import_editor_controls24.useBoundProp)(import_editor_props14.flexPropTypeUtil);
|
|
3929
|
+
return /* @__PURE__ */ React53.createElement(import_editor_controls24.PropProvider, { ...context }, /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Grow", "elementor") }, /* @__PURE__ */ React53.createElement(import_editor_controls24.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React53.createElement(import_editor_controls24.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Shrink", "elementor") }, /* @__PURE__ */ React53.createElement(import_editor_controls24.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React53.createElement(import_editor_controls24.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React53.createElement(import_editor_controls24.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React53.createElement(import_editor_controls24.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
3985
3930
|
};
|
|
3986
3931
|
var getActiveGroup = ({
|
|
3987
3932
|
grow,
|
|
@@ -4004,23 +3949,23 @@ var getActiveGroup = ({
|
|
|
4004
3949
|
};
|
|
4005
3950
|
|
|
4006
3951
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4007
|
-
var
|
|
4008
|
-
var
|
|
4009
|
-
var
|
|
4010
|
-
var GAPS_LABEL = (0,
|
|
3952
|
+
var React54 = __toESM(require("react"));
|
|
3953
|
+
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
3954
|
+
var import_i18n30 = require("@wordpress/i18n");
|
|
3955
|
+
var GAPS_LABEL = (0, import_i18n30.__)("Gaps", "elementor");
|
|
4011
3956
|
var GapControlField = () => {
|
|
4012
|
-
return /* @__PURE__ */
|
|
3957
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React54.createElement(import_editor_controls25.GapControl, { label: GAPS_LABEL }));
|
|
4013
3958
|
};
|
|
4014
3959
|
|
|
4015
3960
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4016
|
-
var
|
|
4017
|
-
var
|
|
3961
|
+
var React55 = __toESM(require("react"));
|
|
3962
|
+
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
4018
3963
|
var import_icons15 = require("@elementor/icons");
|
|
4019
|
-
var
|
|
4020
|
-
var
|
|
4021
|
-
var JUSTIFY_CONTENT_LABEL = (0,
|
|
4022
|
-
var StartIcon4 = (0,
|
|
4023
|
-
var EndIcon4 = (0,
|
|
3964
|
+
var import_ui38 = require("@elementor/ui");
|
|
3965
|
+
var import_i18n31 = require("@wordpress/i18n");
|
|
3966
|
+
var JUSTIFY_CONTENT_LABEL = (0, import_i18n31.__)("Justify content", "elementor");
|
|
3967
|
+
var StartIcon4 = (0, import_ui38.withDirection)(import_icons15.JustifyTopIcon);
|
|
3968
|
+
var EndIcon4 = (0, import_ui38.withDirection)(import_icons15.JustifyBottomIcon);
|
|
4024
3969
|
var iconProps4 = {
|
|
4025
3970
|
isClockwise: true,
|
|
4026
3971
|
offset: -90
|
|
@@ -4028,76 +3973,76 @@ var iconProps4 = {
|
|
|
4028
3973
|
var options4 = [
|
|
4029
3974
|
{
|
|
4030
3975
|
value: "flex-start",
|
|
4031
|
-
label: (0,
|
|
4032
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3976
|
+
label: (0, import_i18n31.__)("Start", "elementor"),
|
|
3977
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
4033
3978
|
showTooltip: true
|
|
4034
3979
|
},
|
|
4035
3980
|
{
|
|
4036
3981
|
value: "center",
|
|
4037
|
-
label: (0,
|
|
4038
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3982
|
+
label: (0, import_i18n31.__)("Center", "elementor"),
|
|
3983
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: import_icons15.JustifyCenterIcon, size, ...iconProps4 }),
|
|
4039
3984
|
showTooltip: true
|
|
4040
3985
|
},
|
|
4041
3986
|
{
|
|
4042
3987
|
value: "flex-end",
|
|
4043
|
-
label: (0,
|
|
4044
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3988
|
+
label: (0, import_i18n31.__)("End", "elementor"),
|
|
3989
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
4045
3990
|
showTooltip: true
|
|
4046
3991
|
},
|
|
4047
3992
|
{
|
|
4048
3993
|
value: "space-between",
|
|
4049
|
-
label: (0,
|
|
4050
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3994
|
+
label: (0, import_i18n31.__)("Space between", "elementor"),
|
|
3995
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: import_icons15.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
4051
3996
|
showTooltip: true
|
|
4052
3997
|
},
|
|
4053
3998
|
{
|
|
4054
3999
|
value: "space-around",
|
|
4055
|
-
label: (0,
|
|
4056
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4000
|
+
label: (0, import_i18n31.__)("Space around", "elementor"),
|
|
4001
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: import_icons15.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
4057
4002
|
showTooltip: true
|
|
4058
4003
|
},
|
|
4059
4004
|
{
|
|
4060
4005
|
value: "space-evenly",
|
|
4061
|
-
label: (0,
|
|
4062
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4006
|
+
label: (0, import_i18n31.__)("Space evenly", "elementor"),
|
|
4007
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: import_icons15.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
4063
4008
|
showTooltip: true
|
|
4064
4009
|
}
|
|
4065
4010
|
];
|
|
4066
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4011
|
+
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(import_editor_controls26.ToggleControl, { options: options4, fullWidth: true }))));
|
|
4067
4012
|
|
|
4068
4013
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4069
|
-
var
|
|
4070
|
-
var
|
|
4014
|
+
var React56 = __toESM(require("react"));
|
|
4015
|
+
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
4071
4016
|
var import_icons16 = require("@elementor/icons");
|
|
4072
|
-
var
|
|
4073
|
-
var FLEX_WRAP_LABEL = (0,
|
|
4017
|
+
var import_i18n32 = require("@wordpress/i18n");
|
|
4018
|
+
var FLEX_WRAP_LABEL = (0, import_i18n32.__)("Wrap", "elementor");
|
|
4074
4019
|
var options5 = [
|
|
4075
4020
|
{
|
|
4076
4021
|
value: "nowrap",
|
|
4077
|
-
label: (0,
|
|
4078
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4022
|
+
label: (0, import_i18n32.__)("No wrap", "elementor"),
|
|
4023
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons16.ArrowRightIcon, { fontSize: size }),
|
|
4079
4024
|
showTooltip: true
|
|
4080
4025
|
},
|
|
4081
4026
|
{
|
|
4082
4027
|
value: "wrap",
|
|
4083
|
-
label: (0,
|
|
4084
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4028
|
+
label: (0, import_i18n32.__)("Wrap", "elementor"),
|
|
4029
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons16.ArrowBackIcon, { fontSize: size }),
|
|
4085
4030
|
showTooltip: true
|
|
4086
4031
|
},
|
|
4087
4032
|
{
|
|
4088
4033
|
value: "wrap-reverse",
|
|
4089
|
-
label: (0,
|
|
4090
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4034
|
+
label: (0, import_i18n32.__)("Reversed wrap", "elementor"),
|
|
4035
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons16.ArrowForwardIcon, { fontSize: size }),
|
|
4091
4036
|
showTooltip: true
|
|
4092
4037
|
}
|
|
4093
4038
|
];
|
|
4094
4039
|
var WrapField = () => {
|
|
4095
|
-
return /* @__PURE__ */
|
|
4040
|
+
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(import_editor_controls27.ToggleControl, { options: options5 }))));
|
|
4096
4041
|
};
|
|
4097
4042
|
|
|
4098
4043
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4099
|
-
var DISPLAY_LABEL2 = (0,
|
|
4100
|
-
var FLEX_WRAP_LABEL2 = (0,
|
|
4044
|
+
var DISPLAY_LABEL2 = (0, import_i18n33.__)("Display", "elementor");
|
|
4045
|
+
var FLEX_WRAP_LABEL2 = (0, import_i18n33.__)("Flex wrap", "elementor");
|
|
4101
4046
|
var LayoutSection = () => {
|
|
4102
4047
|
const { value: display } = useStylesField("display", {
|
|
4103
4048
|
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
@@ -4108,15 +4053,15 @@ var LayoutSection = () => {
|
|
|
4108
4053
|
const parent = (0, import_editor_elements11.useParentElement)(element.id);
|
|
4109
4054
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
4110
4055
|
const parentStyleDirection = parentStyle?.flexDirection ?? "row";
|
|
4111
|
-
return /* @__PURE__ */
|
|
4056
|
+
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 }));
|
|
4112
4057
|
};
|
|
4113
4058
|
var FlexFields = () => {
|
|
4114
4059
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4115
4060
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4116
4061
|
});
|
|
4117
|
-
return /* @__PURE__ */
|
|
4062
|
+
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));
|
|
4118
4063
|
};
|
|
4119
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4064
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(PanelDivider, null), /* @__PURE__ */ React57.createElement(import_editor_controls28.ControlFormLabel, null, (0, import_i18n33.__)("Flex child", "elementor")), /* @__PURE__ */ React57.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React57.createElement(FlexOrderField, null), /* @__PURE__ */ React57.createElement(FlexSizeField, null));
|
|
4120
4065
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4121
4066
|
const value = display?.value ?? local?.value;
|
|
4122
4067
|
if (!value) {
|
|
@@ -4126,38 +4071,38 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4126
4071
|
};
|
|
4127
4072
|
|
|
4128
4073
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4129
|
-
var
|
|
4074
|
+
var React62 = __toESM(require("react"));
|
|
4130
4075
|
var import_session5 = require("@elementor/session");
|
|
4131
|
-
var
|
|
4076
|
+
var import_i18n38 = require("@wordpress/i18n");
|
|
4132
4077
|
|
|
4133
4078
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4134
|
-
var
|
|
4079
|
+
var React58 = __toESM(require("react"));
|
|
4135
4080
|
var import_react29 = require("react");
|
|
4136
|
-
var
|
|
4081
|
+
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
4137
4082
|
var import_icons17 = require("@elementor/icons");
|
|
4138
|
-
var
|
|
4139
|
-
var
|
|
4140
|
-
var InlineStartIcon2 = (0,
|
|
4141
|
-
var InlineEndIcon2 = (0,
|
|
4083
|
+
var import_ui39 = require("@elementor/ui");
|
|
4084
|
+
var import_i18n34 = require("@wordpress/i18n");
|
|
4085
|
+
var InlineStartIcon2 = (0, import_ui39.withDirection)(import_icons17.SideLeftIcon);
|
|
4086
|
+
var InlineEndIcon2 = (0, import_ui39.withDirection)(import_icons17.SideRightIcon);
|
|
4142
4087
|
var sideIcons = {
|
|
4143
|
-
"inset-block-start": /* @__PURE__ */
|
|
4144
|
-
"inset-block-end": /* @__PURE__ */
|
|
4145
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4146
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4088
|
+
"inset-block-start": /* @__PURE__ */ React58.createElement(import_icons17.SideTopIcon, { fontSize: "tiny" }),
|
|
4089
|
+
"inset-block-end": /* @__PURE__ */ React58.createElement(import_icons17.SideBottomIcon, { fontSize: "tiny" }),
|
|
4090
|
+
"inset-inline-start": /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4091
|
+
"inset-inline-end": /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4147
4092
|
};
|
|
4148
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4149
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4093
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n34.__)("Right", "elementor") : (0, import_i18n34.__)("Left", "elementor");
|
|
4094
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n34.__)("Left", "elementor") : (0, import_i18n34.__)("Right", "elementor");
|
|
4150
4095
|
var DimensionsField = () => {
|
|
4151
4096
|
const { isSiteRtl } = useDirection();
|
|
4152
4097
|
const rowRefs = [(0, import_react29.useRef)(null), (0, import_react29.useRef)(null)];
|
|
4153
|
-
return /* @__PURE__ */
|
|
4098
|
+
return /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(import_ui39.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React58.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n34.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React58.createElement(
|
|
4154
4099
|
DimensionField,
|
|
4155
4100
|
{
|
|
4156
4101
|
side: "inset-inline-end",
|
|
4157
4102
|
label: getInlineEndLabel(isSiteRtl),
|
|
4158
4103
|
rowRef: rowRefs[0]
|
|
4159
4104
|
}
|
|
4160
|
-
)), /* @__PURE__ */
|
|
4105
|
+
)), /* @__PURE__ */ React58.createElement(import_ui39.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React58.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n34.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React58.createElement(
|
|
4161
4106
|
DimensionField,
|
|
4162
4107
|
{
|
|
4163
4108
|
side: "inset-inline-start",
|
|
@@ -4170,8 +4115,8 @@ var DimensionField = ({
|
|
|
4170
4115
|
side,
|
|
4171
4116
|
label,
|
|
4172
4117
|
rowRef
|
|
4173
|
-
}) => /* @__PURE__ */
|
|
4174
|
-
|
|
4118
|
+
}) => /* @__PURE__ */ React58.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React58.createElement(import_ui39.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React58.createElement(import_ui39.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, label)), /* @__PURE__ */ React58.createElement(import_ui39.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React58.createElement(
|
|
4119
|
+
import_editor_controls29.SizeControl,
|
|
4175
4120
|
{
|
|
4176
4121
|
startIcon: sideIcons[side],
|
|
4177
4122
|
extendedOptions: ["auto"],
|
|
@@ -4181,45 +4126,45 @@ var DimensionField = ({
|
|
|
4181
4126
|
))));
|
|
4182
4127
|
|
|
4183
4128
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4184
|
-
var
|
|
4129
|
+
var React59 = __toESM(require("react"));
|
|
4185
4130
|
var import_react30 = require("react");
|
|
4186
|
-
var
|
|
4187
|
-
var
|
|
4188
|
-
var OFFSET_LABEL = (0,
|
|
4131
|
+
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
4132
|
+
var import_i18n35 = require("@wordpress/i18n");
|
|
4133
|
+
var OFFSET_LABEL = (0, import_i18n35.__)("Anchor offset", "elementor");
|
|
4189
4134
|
var UNITS = ["px", "em", "rem", "vw", "vh"];
|
|
4190
4135
|
var OffsetField = () => {
|
|
4191
4136
|
const rowRef = (0, import_react30.useRef)(null);
|
|
4192
|
-
return /* @__PURE__ */
|
|
4137
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React59.createElement(import_editor_controls30.SizeControl, { units: UNITS, anchorRef: rowRef })));
|
|
4193
4138
|
};
|
|
4194
4139
|
|
|
4195
4140
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4196
|
-
var
|
|
4197
|
-
var
|
|
4198
|
-
var
|
|
4199
|
-
var POSITION_LABEL = (0,
|
|
4141
|
+
var React60 = __toESM(require("react"));
|
|
4142
|
+
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
4143
|
+
var import_i18n36 = require("@wordpress/i18n");
|
|
4144
|
+
var POSITION_LABEL = (0, import_i18n36.__)("Position", "elementor");
|
|
4200
4145
|
var positionOptions = [
|
|
4201
|
-
{ label: (0,
|
|
4202
|
-
{ label: (0,
|
|
4203
|
-
{ label: (0,
|
|
4204
|
-
{ label: (0,
|
|
4205
|
-
{ label: (0,
|
|
4146
|
+
{ label: (0, import_i18n36.__)("Static", "elementor"), value: "static" },
|
|
4147
|
+
{ label: (0, import_i18n36.__)("Relative", "elementor"), value: "relative" },
|
|
4148
|
+
{ label: (0, import_i18n36.__)("Absolute", "elementor"), value: "absolute" },
|
|
4149
|
+
{ label: (0, import_i18n36.__)("Fixed", "elementor"), value: "fixed" },
|
|
4150
|
+
{ label: (0, import_i18n36.__)("Sticky", "elementor"), value: "sticky" }
|
|
4206
4151
|
];
|
|
4207
4152
|
var PositionField = ({ onChange }) => {
|
|
4208
|
-
return /* @__PURE__ */
|
|
4153
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React60.createElement(import_editor_controls31.SelectControl, { options: positionOptions, onChange })));
|
|
4209
4154
|
};
|
|
4210
4155
|
|
|
4211
4156
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4212
|
-
var
|
|
4213
|
-
var
|
|
4214
|
-
var
|
|
4215
|
-
var Z_INDEX_LABEL = (0,
|
|
4157
|
+
var React61 = __toESM(require("react"));
|
|
4158
|
+
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
4159
|
+
var import_i18n37 = require("@wordpress/i18n");
|
|
4160
|
+
var Z_INDEX_LABEL = (0, import_i18n37.__)("Z-index", "elementor");
|
|
4216
4161
|
var ZIndexField = () => {
|
|
4217
|
-
return /* @__PURE__ */
|
|
4162
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React61.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React61.createElement(import_editor_controls32.NumberControl, null)));
|
|
4218
4163
|
};
|
|
4219
4164
|
|
|
4220
4165
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4221
|
-
var POSITION_LABEL2 = (0,
|
|
4222
|
-
var DIMENSIONS_LABEL = (0,
|
|
4166
|
+
var POSITION_LABEL2 = (0, import_i18n38.__)("Position", "elementor");
|
|
4167
|
+
var DIMENSIONS_LABEL = (0, import_i18n38.__)("Dimensions", "elementor");
|
|
4223
4168
|
var PositionSection = () => {
|
|
4224
4169
|
const { value: positionValue } = useStylesField("position", {
|
|
4225
4170
|
history: { propDisplayName: POSITION_LABEL2 }
|
|
@@ -4254,7 +4199,7 @@ var PositionSection = () => {
|
|
|
4254
4199
|
}
|
|
4255
4200
|
};
|
|
4256
4201
|
const isNotStatic = positionValue && positionValue?.value !== "static";
|
|
4257
|
-
return /* @__PURE__ */
|
|
4202
|
+
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));
|
|
4258
4203
|
};
|
|
4259
4204
|
var usePersistDimensions = () => {
|
|
4260
4205
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4264,25 +4209,38 @@ var usePersistDimensions = () => {
|
|
|
4264
4209
|
};
|
|
4265
4210
|
|
|
4266
4211
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4267
|
-
var
|
|
4212
|
+
var React68 = __toESM(require("react"));
|
|
4268
4213
|
var import_react31 = require("react");
|
|
4269
|
-
var
|
|
4270
|
-
var
|
|
4271
|
-
var
|
|
4214
|
+
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
4215
|
+
var import_ui41 = require("@elementor/ui");
|
|
4216
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
4272
4217
|
|
|
4273
4218
|
// src/components/style-tab-collapsible-content.tsx
|
|
4274
|
-
var
|
|
4219
|
+
var React65 = __toESM(require("react"));
|
|
4275
4220
|
|
|
4276
4221
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4277
|
-
var
|
|
4222
|
+
var React64 = __toESM(require("react"));
|
|
4278
4223
|
var import_editor_styles_repository15 = require("@elementor/editor-styles-repository");
|
|
4279
|
-
var
|
|
4280
|
-
var
|
|
4224
|
+
var import_ui40 = require("@elementor/ui");
|
|
4225
|
+
var import_i18n39 = require("@wordpress/i18n");
|
|
4226
|
+
|
|
4227
|
+
// src/components/custom-css-indicator.tsx
|
|
4228
|
+
var React63 = __toESM(require("react"));
|
|
4229
|
+
var CustomCssIndicator = () => {
|
|
4230
|
+
const { customCss } = useCustomCss();
|
|
4231
|
+
const hasContent = Boolean(customCss?.raw?.trim());
|
|
4232
|
+
if (!hasContent) {
|
|
4233
|
+
return null;
|
|
4234
|
+
}
|
|
4235
|
+
return /* @__PURE__ */ React63.createElement(StyleIndicator, { getColor: (theme) => theme.palette.accent.main });
|
|
4236
|
+
};
|
|
4237
|
+
|
|
4238
|
+
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4281
4239
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4282
4240
|
const { id, meta, provider } = useStyle();
|
|
4283
4241
|
const snapshot = useStylesInheritanceSnapshot();
|
|
4284
4242
|
if (fields.includes("custom_css")) {
|
|
4285
|
-
return /* @__PURE__ */
|
|
4243
|
+
return /* @__PURE__ */ React64.createElement(CustomCssIndicator, null);
|
|
4286
4244
|
}
|
|
4287
4245
|
const snapshotFields = Object.fromEntries(
|
|
4288
4246
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -4291,9 +4249,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4291
4249
|
if (!hasValues && !hasOverrides) {
|
|
4292
4250
|
return null;
|
|
4293
4251
|
}
|
|
4294
|
-
const hasValueLabel = (0,
|
|
4295
|
-
const hasOverridesLabel = (0,
|
|
4296
|
-
return /* @__PURE__ */
|
|
4252
|
+
const hasValueLabel = (0, import_i18n39.__)("Has effective styles", "elementor");
|
|
4253
|
+
const hasOverridesLabel = (0, import_i18n39.__)("Has overridden styles", "elementor");
|
|
4254
|
+
return /* @__PURE__ */ React64.createElement(import_ui40.Tooltip, { title: (0, import_i18n39.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React64.createElement(import_ui40.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React64.createElement(
|
|
4297
4255
|
StyleIndicator,
|
|
4298
4256
|
{
|
|
4299
4257
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4301,7 +4259,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4301
4259
|
role: "listitem",
|
|
4302
4260
|
"aria-label": hasValueLabel
|
|
4303
4261
|
}
|
|
4304
|
-
), hasOverrides && /* @__PURE__ */
|
|
4262
|
+
), hasOverrides && /* @__PURE__ */ React64.createElement(
|
|
4305
4263
|
StyleIndicator,
|
|
4306
4264
|
{
|
|
4307
4265
|
isOverridden: true,
|
|
@@ -4341,59 +4299,59 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
4341
4299
|
|
|
4342
4300
|
// src/components/style-tab-collapsible-content.tsx
|
|
4343
4301
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4344
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ React65.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4345
4303
|
};
|
|
4346
4304
|
function getStylesInheritanceIndicators(fields) {
|
|
4347
4305
|
if (fields.length === 0) {
|
|
4348
4306
|
return null;
|
|
4349
4307
|
}
|
|
4350
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
4308
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React65.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4351
4309
|
}
|
|
4352
4310
|
|
|
4353
4311
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4354
|
-
var
|
|
4355
|
-
var
|
|
4356
|
-
var
|
|
4357
|
-
var OBJECT_FIT_LABEL = (0,
|
|
4312
|
+
var React66 = __toESM(require("react"));
|
|
4313
|
+
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4314
|
+
var import_i18n40 = require("@wordpress/i18n");
|
|
4315
|
+
var OBJECT_FIT_LABEL = (0, import_i18n40.__)("Object fit", "elementor");
|
|
4358
4316
|
var positionOptions2 = [
|
|
4359
|
-
{ label: (0,
|
|
4360
|
-
{ label: (0,
|
|
4361
|
-
{ label: (0,
|
|
4362
|
-
{ label: (0,
|
|
4363
|
-
{ label: (0,
|
|
4317
|
+
{ label: (0, import_i18n40.__)("Fill", "elementor"), value: "fill" },
|
|
4318
|
+
{ label: (0, import_i18n40.__)("Cover", "elementor"), value: "cover" },
|
|
4319
|
+
{ label: (0, import_i18n40.__)("Contain", "elementor"), value: "contain" },
|
|
4320
|
+
{ label: (0, import_i18n40.__)("None", "elementor"), value: "none" },
|
|
4321
|
+
{ label: (0, import_i18n40.__)("Scale down", "elementor"), value: "scale-down" }
|
|
4364
4322
|
];
|
|
4365
4323
|
var ObjectFitField = () => {
|
|
4366
|
-
return /* @__PURE__ */
|
|
4324
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React66.createElement(import_editor_controls33.SelectControl, { options: positionOptions2 })));
|
|
4367
4325
|
};
|
|
4368
4326
|
|
|
4369
4327
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4370
|
-
var
|
|
4371
|
-
var
|
|
4328
|
+
var React67 = __toESM(require("react"));
|
|
4329
|
+
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4372
4330
|
var import_icons18 = require("@elementor/icons");
|
|
4373
|
-
var
|
|
4374
|
-
var OVERFLOW_LABEL = (0,
|
|
4331
|
+
var import_i18n41 = require("@wordpress/i18n");
|
|
4332
|
+
var OVERFLOW_LABEL = (0, import_i18n41.__)("Overflow", "elementor");
|
|
4375
4333
|
var options6 = [
|
|
4376
4334
|
{
|
|
4377
4335
|
value: "visible",
|
|
4378
|
-
label: (0,
|
|
4379
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4336
|
+
label: (0, import_i18n41.__)("Visible", "elementor"),
|
|
4337
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons18.EyeIcon, { fontSize: size }),
|
|
4380
4338
|
showTooltip: true
|
|
4381
4339
|
},
|
|
4382
4340
|
{
|
|
4383
4341
|
value: "hidden",
|
|
4384
|
-
label: (0,
|
|
4385
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4342
|
+
label: (0, import_i18n41.__)("Hidden", "elementor"),
|
|
4343
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons18.EyeOffIcon, { fontSize: size }),
|
|
4386
4344
|
showTooltip: true
|
|
4387
4345
|
},
|
|
4388
4346
|
{
|
|
4389
4347
|
value: "auto",
|
|
4390
|
-
label: (0,
|
|
4391
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4348
|
+
label: (0, import_i18n41.__)("Auto", "elementor"),
|
|
4349
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons18.LetterAIcon, { fontSize: size }),
|
|
4392
4350
|
showTooltip: true
|
|
4393
4351
|
}
|
|
4394
4352
|
];
|
|
4395
4353
|
var OverflowField = () => {
|
|
4396
|
-
return /* @__PURE__ */
|
|
4354
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React67.createElement(import_editor_controls34.ToggleControl, { options: options6 })));
|
|
4397
4355
|
};
|
|
4398
4356
|
|
|
4399
4357
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4401,287 +4359,287 @@ var CssSizeProps = [
|
|
|
4401
4359
|
[
|
|
4402
4360
|
{
|
|
4403
4361
|
bind: "width",
|
|
4404
|
-
label: (0,
|
|
4362
|
+
label: (0, import_i18n42.__)("Width", "elementor")
|
|
4405
4363
|
},
|
|
4406
4364
|
{
|
|
4407
4365
|
bind: "height",
|
|
4408
|
-
label: (0,
|
|
4366
|
+
label: (0, import_i18n42.__)("Height", "elementor")
|
|
4409
4367
|
}
|
|
4410
4368
|
],
|
|
4411
4369
|
[
|
|
4412
4370
|
{
|
|
4413
4371
|
bind: "min-width",
|
|
4414
|
-
label: (0,
|
|
4372
|
+
label: (0, import_i18n42.__)("Min width", "elementor")
|
|
4415
4373
|
},
|
|
4416
4374
|
{
|
|
4417
4375
|
bind: "min-height",
|
|
4418
|
-
label: (0,
|
|
4376
|
+
label: (0, import_i18n42.__)("Min height", "elementor")
|
|
4419
4377
|
}
|
|
4420
4378
|
],
|
|
4421
4379
|
[
|
|
4422
4380
|
{
|
|
4423
4381
|
bind: "max-width",
|
|
4424
|
-
label: (0,
|
|
4382
|
+
label: (0, import_i18n42.__)("Max width", "elementor")
|
|
4425
4383
|
},
|
|
4426
4384
|
{
|
|
4427
4385
|
bind: "max-height",
|
|
4428
|
-
label: (0,
|
|
4386
|
+
label: (0, import_i18n42.__)("Max height", "elementor")
|
|
4429
4387
|
}
|
|
4430
4388
|
]
|
|
4431
4389
|
];
|
|
4432
|
-
var ASPECT_RATIO_LABEL = (0,
|
|
4390
|
+
var ASPECT_RATIO_LABEL = (0, import_i18n42.__)("Aspect Ratio", "elementor");
|
|
4433
4391
|
var SizeSection = () => {
|
|
4434
4392
|
const gridRowRefs = [(0, import_react31.useRef)(null), (0, import_react31.useRef)(null), (0, import_react31.useRef)(null)];
|
|
4435
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ React68.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React68.createElement(import_ui41.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React68.createElement(import_ui41.Grid, { 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(import_ui41.Stack, null, /* @__PURE__ */ React68.createElement(OverflowField, null)), /* @__PURE__ */ React68.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React68.createElement(import_ui41.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React68.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React68.createElement(import_editor_controls35.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React68.createElement(PanelDivider, null), /* @__PURE__ */ React68.createElement(ObjectFitField, null), /* @__PURE__ */ React68.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n42.__)("Object position", "elementor") }, /* @__PURE__ */ React68.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(import_editor_controls35.PositionControl, null))))));
|
|
4436
4394
|
};
|
|
4437
4395
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4438
|
-
return /* @__PURE__ */
|
|
4396
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React68.createElement(import_ui41.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React68.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(ControlLabel, null, label)), /* @__PURE__ */ React68.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(import_editor_controls35.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
4439
4397
|
};
|
|
4440
4398
|
|
|
4441
4399
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4442
|
-
var
|
|
4443
|
-
var
|
|
4444
|
-
var
|
|
4445
|
-
var MARGIN_LABEL = (0,
|
|
4446
|
-
var PADDING_LABEL = (0,
|
|
4400
|
+
var React69 = __toESM(require("react"));
|
|
4401
|
+
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
4402
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
4403
|
+
var MARGIN_LABEL = (0, import_i18n43.__)("Margin", "elementor");
|
|
4404
|
+
var PADDING_LABEL = (0, import_i18n43.__)("Padding", "elementor");
|
|
4447
4405
|
var SpacingSection = () => {
|
|
4448
4406
|
const { isSiteRtl } = useDirection();
|
|
4449
|
-
return /* @__PURE__ */
|
|
4450
|
-
|
|
4407
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, /* @__PURE__ */ React69.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React69.createElement(
|
|
4408
|
+
import_editor_controls36.LinkedDimensionsControl,
|
|
4451
4409
|
{
|
|
4452
4410
|
label: MARGIN_LABEL,
|
|
4453
4411
|
isSiteRtl,
|
|
4454
4412
|
extendedOptions: ["auto"],
|
|
4455
4413
|
min: -Number.MAX_SAFE_INTEGER
|
|
4456
4414
|
}
|
|
4457
|
-
)), /* @__PURE__ */
|
|
4415
|
+
)), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React69.createElement(import_editor_controls36.LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4458
4416
|
};
|
|
4459
4417
|
|
|
4460
4418
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4461
|
-
var
|
|
4419
|
+
var React85 = __toESM(require("react"));
|
|
4462
4420
|
|
|
4463
4421
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4464
|
-
var
|
|
4465
|
-
var
|
|
4466
|
-
var
|
|
4467
|
-
var COLUMN_COUNT_LABEL = (0,
|
|
4422
|
+
var React70 = __toESM(require("react"));
|
|
4423
|
+
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4424
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
4425
|
+
var COLUMN_COUNT_LABEL = (0, import_i18n44.__)("Columns", "elementor");
|
|
4468
4426
|
var ColumnCountField = () => {
|
|
4469
|
-
return /* @__PURE__ */
|
|
4427
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React70.createElement(import_editor_controls37.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4470
4428
|
};
|
|
4471
4429
|
|
|
4472
4430
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4473
|
-
var
|
|
4431
|
+
var React71 = __toESM(require("react"));
|
|
4474
4432
|
var import_react32 = require("react");
|
|
4475
|
-
var
|
|
4476
|
-
var
|
|
4477
|
-
var COLUMN_GAP_LABEL = (0,
|
|
4433
|
+
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
4434
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
4435
|
+
var COLUMN_GAP_LABEL = (0, import_i18n45.__)("Column gap", "elementor");
|
|
4478
4436
|
var ColumnGapField = () => {
|
|
4479
4437
|
const rowRef = (0, import_react32.useRef)(null);
|
|
4480
|
-
return /* @__PURE__ */
|
|
4438
|
+
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(import_editor_controls38.SizeControl, { anchorRef: rowRef })));
|
|
4481
4439
|
};
|
|
4482
4440
|
|
|
4483
4441
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4484
|
-
var
|
|
4485
|
-
var
|
|
4486
|
-
var
|
|
4487
|
-
var FONT_FAMILY_LABEL = (0,
|
|
4442
|
+
var React72 = __toESM(require("react"));
|
|
4443
|
+
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
4444
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
4445
|
+
var FONT_FAMILY_LABEL = (0, import_i18n46.__)("Font family", "elementor");
|
|
4488
4446
|
var FontFamilyField = () => {
|
|
4489
4447
|
const fontFamilies = useFontFamilies();
|
|
4490
4448
|
const sectionWidth = useSectionWidth();
|
|
4491
4449
|
if (fontFamilies.length === 0) {
|
|
4492
4450
|
return null;
|
|
4493
4451
|
}
|
|
4494
|
-
return /* @__PURE__ */
|
|
4452
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React72.createElement(import_editor_controls39.FontFamilyControl, { fontFamilies, sectionWidth })));
|
|
4495
4453
|
};
|
|
4496
4454
|
|
|
4497
4455
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4498
|
-
var
|
|
4456
|
+
var React73 = __toESM(require("react"));
|
|
4499
4457
|
var import_react33 = require("react");
|
|
4500
|
-
var
|
|
4501
|
-
var
|
|
4502
|
-
var FONT_SIZE_LABEL = (0,
|
|
4458
|
+
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
4459
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
4460
|
+
var FONT_SIZE_LABEL = (0, import_i18n47.__)("Font size", "elementor");
|
|
4503
4461
|
var FontSizeField = () => {
|
|
4504
4462
|
const rowRef = (0, import_react33.useRef)(null);
|
|
4505
|
-
return /* @__PURE__ */
|
|
4463
|
+
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(import_editor_controls40.SizeControl, { anchorRef: rowRef })));
|
|
4506
4464
|
};
|
|
4507
4465
|
|
|
4508
4466
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4509
|
-
var
|
|
4510
|
-
var
|
|
4467
|
+
var React74 = __toESM(require("react"));
|
|
4468
|
+
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
4511
4469
|
var import_icons19 = require("@elementor/icons");
|
|
4512
|
-
var
|
|
4513
|
-
var FONT_STYLE_LABEL = (0,
|
|
4470
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
4471
|
+
var FONT_STYLE_LABEL = (0, import_i18n48.__)("Font style", "elementor");
|
|
4514
4472
|
var options7 = [
|
|
4515
4473
|
{
|
|
4516
4474
|
value: "normal",
|
|
4517
|
-
label: (0,
|
|
4518
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4475
|
+
label: (0, import_i18n48.__)("Normal", "elementor"),
|
|
4476
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons19.MinusIcon, { fontSize: size }),
|
|
4519
4477
|
showTooltip: true
|
|
4520
4478
|
},
|
|
4521
4479
|
{
|
|
4522
4480
|
value: "italic",
|
|
4523
|
-
label: (0,
|
|
4524
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4481
|
+
label: (0, import_i18n48.__)("Italic", "elementor"),
|
|
4482
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons19.ItalicIcon, { fontSize: size }),
|
|
4525
4483
|
showTooltip: true
|
|
4526
4484
|
}
|
|
4527
4485
|
];
|
|
4528
4486
|
var FontStyleField = () => {
|
|
4529
|
-
return /* @__PURE__ */
|
|
4487
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React74.createElement(import_editor_controls41.ToggleControl, { options: options7 })));
|
|
4530
4488
|
};
|
|
4531
4489
|
|
|
4532
4490
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4533
|
-
var
|
|
4534
|
-
var
|
|
4535
|
-
var
|
|
4536
|
-
var FONT_WEIGHT_LABEL = (0,
|
|
4491
|
+
var React75 = __toESM(require("react"));
|
|
4492
|
+
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
4493
|
+
var import_i18n49 = require("@wordpress/i18n");
|
|
4494
|
+
var FONT_WEIGHT_LABEL = (0, import_i18n49.__)("Font weight", "elementor");
|
|
4537
4495
|
var fontWeightOptions = [
|
|
4538
|
-
{ value: "100", label: (0,
|
|
4539
|
-
{ value: "200", label: (0,
|
|
4540
|
-
{ value: "300", label: (0,
|
|
4541
|
-
{ value: "400", label: (0,
|
|
4542
|
-
{ value: "500", label: (0,
|
|
4543
|
-
{ value: "600", label: (0,
|
|
4544
|
-
{ value: "700", label: (0,
|
|
4545
|
-
{ value: "800", label: (0,
|
|
4546
|
-
{ value: "900", label: (0,
|
|
4496
|
+
{ value: "100", label: (0, import_i18n49.__)("100 - Thin", "elementor") },
|
|
4497
|
+
{ value: "200", label: (0, import_i18n49.__)("200 - Extra light", "elementor") },
|
|
4498
|
+
{ value: "300", label: (0, import_i18n49.__)("300 - Light", "elementor") },
|
|
4499
|
+
{ value: "400", label: (0, import_i18n49.__)("400 - Normal", "elementor") },
|
|
4500
|
+
{ value: "500", label: (0, import_i18n49.__)("500 - Medium", "elementor") },
|
|
4501
|
+
{ value: "600", label: (0, import_i18n49.__)("600 - Semi bold", "elementor") },
|
|
4502
|
+
{ value: "700", label: (0, import_i18n49.__)("700 - Bold", "elementor") },
|
|
4503
|
+
{ value: "800", label: (0, import_i18n49.__)("800 - Extra bold", "elementor") },
|
|
4504
|
+
{ value: "900", label: (0, import_i18n49.__)("900 - Black", "elementor") }
|
|
4547
4505
|
];
|
|
4548
4506
|
var FontWeightField = () => {
|
|
4549
|
-
return /* @__PURE__ */
|
|
4507
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(import_editor_controls42.SelectControl, { options: fontWeightOptions })));
|
|
4550
4508
|
};
|
|
4551
4509
|
|
|
4552
4510
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4553
|
-
var
|
|
4511
|
+
var React76 = __toESM(require("react"));
|
|
4554
4512
|
var import_react34 = require("react");
|
|
4555
|
-
var
|
|
4556
|
-
var
|
|
4557
|
-
var LETTER_SPACING_LABEL = (0,
|
|
4513
|
+
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
4514
|
+
var import_i18n50 = require("@wordpress/i18n");
|
|
4515
|
+
var LETTER_SPACING_LABEL = (0, import_i18n50.__)("Letter spacing", "elementor");
|
|
4558
4516
|
var LetterSpacingField = () => {
|
|
4559
4517
|
const rowRef = (0, import_react34.useRef)(null);
|
|
4560
|
-
return /* @__PURE__ */
|
|
4518
|
+
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(import_editor_controls43.SizeControl, { anchorRef: rowRef })));
|
|
4561
4519
|
};
|
|
4562
4520
|
|
|
4563
4521
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4564
|
-
var
|
|
4522
|
+
var React77 = __toESM(require("react"));
|
|
4565
4523
|
var import_react35 = require("react");
|
|
4566
|
-
var
|
|
4567
|
-
var
|
|
4568
|
-
var LINE_HEIGHT_LABEL = (0,
|
|
4524
|
+
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
4525
|
+
var import_i18n51 = require("@wordpress/i18n");
|
|
4526
|
+
var LINE_HEIGHT_LABEL = (0, import_i18n51.__)("Line height", "elementor");
|
|
4569
4527
|
var LineHeightField = () => {
|
|
4570
4528
|
const rowRef = (0, import_react35.useRef)(null);
|
|
4571
|
-
return /* @__PURE__ */
|
|
4529
|
+
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(import_editor_controls44.SizeControl, { anchorRef: rowRef })));
|
|
4572
4530
|
};
|
|
4573
4531
|
|
|
4574
4532
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
4575
|
-
var
|
|
4576
|
-
var
|
|
4533
|
+
var React78 = __toESM(require("react"));
|
|
4534
|
+
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
4577
4535
|
var import_icons20 = require("@elementor/icons");
|
|
4578
|
-
var
|
|
4579
|
-
var
|
|
4580
|
-
var TEXT_ALIGNMENT_LABEL = (0,
|
|
4581
|
-
var AlignStartIcon = (0,
|
|
4582
|
-
var AlignEndIcon = (0,
|
|
4536
|
+
var import_ui42 = require("@elementor/ui");
|
|
4537
|
+
var import_i18n52 = require("@wordpress/i18n");
|
|
4538
|
+
var TEXT_ALIGNMENT_LABEL = (0, import_i18n52.__)("Text align", "elementor");
|
|
4539
|
+
var AlignStartIcon = (0, import_ui42.withDirection)(import_icons20.AlignLeftIcon);
|
|
4540
|
+
var AlignEndIcon = (0, import_ui42.withDirection)(import_icons20.AlignRightIcon);
|
|
4583
4541
|
var options8 = [
|
|
4584
4542
|
{
|
|
4585
4543
|
value: "start",
|
|
4586
|
-
label: (0,
|
|
4587
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4544
|
+
label: (0, import_i18n52.__)("Start", "elementor"),
|
|
4545
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignStartIcon, { fontSize: size }),
|
|
4588
4546
|
showTooltip: true
|
|
4589
4547
|
},
|
|
4590
4548
|
{
|
|
4591
4549
|
value: "center",
|
|
4592
|
-
label: (0,
|
|
4593
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4550
|
+
label: (0, import_i18n52.__)("Center", "elementor"),
|
|
4551
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons20.AlignCenterIcon, { fontSize: size }),
|
|
4594
4552
|
showTooltip: true
|
|
4595
4553
|
},
|
|
4596
4554
|
{
|
|
4597
4555
|
value: "end",
|
|
4598
|
-
label: (0,
|
|
4599
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4556
|
+
label: (0, import_i18n52.__)("End", "elementor"),
|
|
4557
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignEndIcon, { fontSize: size }),
|
|
4600
4558
|
showTooltip: true
|
|
4601
4559
|
},
|
|
4602
4560
|
{
|
|
4603
4561
|
value: "justify",
|
|
4604
|
-
label: (0,
|
|
4605
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4562
|
+
label: (0, import_i18n52.__)("Justify", "elementor"),
|
|
4563
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons20.AlignJustifiedIcon, { fontSize: size }),
|
|
4606
4564
|
showTooltip: true
|
|
4607
4565
|
}
|
|
4608
4566
|
];
|
|
4609
4567
|
var TextAlignmentField = () => {
|
|
4610
|
-
return /* @__PURE__ */
|
|
4568
|
+
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(import_editor_controls45.ToggleControl, { options: options8 }))));
|
|
4611
4569
|
};
|
|
4612
4570
|
|
|
4613
4571
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
4614
|
-
var
|
|
4615
|
-
var
|
|
4616
|
-
var
|
|
4617
|
-
var TEXT_COLOR_LABEL = (0,
|
|
4572
|
+
var React79 = __toESM(require("react"));
|
|
4573
|
+
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
4574
|
+
var import_i18n53 = require("@wordpress/i18n");
|
|
4575
|
+
var TEXT_COLOR_LABEL = (0, import_i18n53.__)("Text color", "elementor");
|
|
4618
4576
|
var TextColorField = () => {
|
|
4619
|
-
return /* @__PURE__ */
|
|
4577
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React79.createElement(import_editor_controls46.ColorControl, null)));
|
|
4620
4578
|
};
|
|
4621
4579
|
|
|
4622
4580
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
4623
|
-
var
|
|
4624
|
-
var
|
|
4581
|
+
var React80 = __toESM(require("react"));
|
|
4582
|
+
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
4625
4583
|
var import_icons21 = require("@elementor/icons");
|
|
4626
|
-
var
|
|
4627
|
-
var TEXT_DECORATION_LABEL = (0,
|
|
4584
|
+
var import_i18n54 = require("@wordpress/i18n");
|
|
4585
|
+
var TEXT_DECORATION_LABEL = (0, import_i18n54.__)("Line decoration", "elementor");
|
|
4628
4586
|
var options9 = [
|
|
4629
4587
|
{
|
|
4630
4588
|
value: "none",
|
|
4631
|
-
label: (0,
|
|
4632
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4589
|
+
label: (0, import_i18n54.__)("None", "elementor"),
|
|
4590
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons21.MinusIcon, { fontSize: size }),
|
|
4633
4591
|
showTooltip: true,
|
|
4634
4592
|
exclusive: true
|
|
4635
4593
|
},
|
|
4636
4594
|
{
|
|
4637
4595
|
value: "underline",
|
|
4638
|
-
label: (0,
|
|
4639
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4596
|
+
label: (0, import_i18n54.__)("Underline", "elementor"),
|
|
4597
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons21.UnderlineIcon, { fontSize: size }),
|
|
4640
4598
|
showTooltip: true
|
|
4641
4599
|
},
|
|
4642
4600
|
{
|
|
4643
4601
|
value: "line-through",
|
|
4644
|
-
label: (0,
|
|
4645
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4602
|
+
label: (0, import_i18n54.__)("Line-through", "elementor"),
|
|
4603
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons21.StrikethroughIcon, { fontSize: size }),
|
|
4646
4604
|
showTooltip: true
|
|
4647
4605
|
},
|
|
4648
4606
|
{
|
|
4649
4607
|
value: "overline",
|
|
4650
|
-
label: (0,
|
|
4651
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4608
|
+
label: (0, import_i18n54.__)("Overline", "elementor"),
|
|
4609
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons21.OverlineIcon, { fontSize: size }),
|
|
4652
4610
|
showTooltip: true
|
|
4653
4611
|
}
|
|
4654
4612
|
];
|
|
4655
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
4613
|
+
var TextDecorationField = () => /* @__PURE__ */ React80.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React80.createElement(import_editor_controls47.ToggleControl, { options: options9, exclusive: false })));
|
|
4656
4614
|
|
|
4657
4615
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
4658
|
-
var
|
|
4659
|
-
var
|
|
4616
|
+
var React81 = __toESM(require("react"));
|
|
4617
|
+
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
4660
4618
|
var import_icons22 = require("@elementor/icons");
|
|
4661
|
-
var
|
|
4662
|
-
var TEXT_DIRECTION_LABEL = (0,
|
|
4619
|
+
var import_i18n55 = require("@wordpress/i18n");
|
|
4620
|
+
var TEXT_DIRECTION_LABEL = (0, import_i18n55.__)("Direction", "elementor");
|
|
4663
4621
|
var options10 = [
|
|
4664
4622
|
{
|
|
4665
4623
|
value: "ltr",
|
|
4666
|
-
label: (0,
|
|
4667
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4624
|
+
label: (0, import_i18n55.__)("Left to right", "elementor"),
|
|
4625
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons22.TextDirectionLtrIcon, { fontSize: size }),
|
|
4668
4626
|
showTooltip: true
|
|
4669
4627
|
},
|
|
4670
4628
|
{
|
|
4671
4629
|
value: "rtl",
|
|
4672
|
-
label: (0,
|
|
4673
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4630
|
+
label: (0, import_i18n55.__)("Right to left", "elementor"),
|
|
4631
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons22.TextDirectionRtlIcon, { fontSize: size }),
|
|
4674
4632
|
showTooltip: true
|
|
4675
4633
|
}
|
|
4676
4634
|
];
|
|
4677
4635
|
var TextDirectionField = () => {
|
|
4678
|
-
return /* @__PURE__ */
|
|
4636
|
+
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React81.createElement(import_editor_controls48.ToggleControl, { options: options10 })));
|
|
4679
4637
|
};
|
|
4680
4638
|
|
|
4681
4639
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4682
|
-
var
|
|
4683
|
-
var
|
|
4684
|
-
var
|
|
4640
|
+
var React82 = __toESM(require("react"));
|
|
4641
|
+
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
4642
|
+
var import_i18n56 = require("@wordpress/i18n");
|
|
4685
4643
|
var initTextStroke = {
|
|
4686
4644
|
$$type: "stroke",
|
|
4687
4645
|
value: {
|
|
@@ -4698,7 +4656,7 @@ var initTextStroke = {
|
|
|
4698
4656
|
}
|
|
4699
4657
|
}
|
|
4700
4658
|
};
|
|
4701
|
-
var TEXT_STROKE_LABEL = (0,
|
|
4659
|
+
var TEXT_STROKE_LABEL = (0, import_i18n56.__)("Text stroke", "elementor");
|
|
4702
4660
|
var TextStrokeField = () => {
|
|
4703
4661
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
4704
4662
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -4710,67 +4668,67 @@ var TextStrokeField = () => {
|
|
|
4710
4668
|
setValue(null);
|
|
4711
4669
|
};
|
|
4712
4670
|
const hasTextStroke = Boolean(value);
|
|
4713
|
-
return /* @__PURE__ */
|
|
4671
|
+
return /* @__PURE__ */ React82.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React82.createElement(
|
|
4714
4672
|
AddOrRemoveContent,
|
|
4715
4673
|
{
|
|
4716
4674
|
isAdded: hasTextStroke,
|
|
4717
4675
|
onAdd: addTextStroke,
|
|
4718
4676
|
onRemove: removeTextStroke,
|
|
4719
4677
|
disabled: !canEdit,
|
|
4720
|
-
renderLabel: () => /* @__PURE__ */
|
|
4678
|
+
renderLabel: () => /* @__PURE__ */ React82.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
4721
4679
|
},
|
|
4722
|
-
/* @__PURE__ */
|
|
4680
|
+
/* @__PURE__ */ React82.createElement(import_editor_controls49.StrokeControl, null)
|
|
4723
4681
|
));
|
|
4724
4682
|
};
|
|
4725
4683
|
|
|
4726
4684
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
4727
|
-
var
|
|
4728
|
-
var
|
|
4685
|
+
var React83 = __toESM(require("react"));
|
|
4686
|
+
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
4729
4687
|
var import_icons23 = require("@elementor/icons");
|
|
4730
|
-
var
|
|
4731
|
-
var TEXT_TRANSFORM_LABEL = (0,
|
|
4688
|
+
var import_i18n57 = require("@wordpress/i18n");
|
|
4689
|
+
var TEXT_TRANSFORM_LABEL = (0, import_i18n57.__)("Text transform", "elementor");
|
|
4732
4690
|
var options11 = [
|
|
4733
4691
|
{
|
|
4734
4692
|
value: "none",
|
|
4735
|
-
label: (0,
|
|
4736
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4693
|
+
label: (0, import_i18n57.__)("None", "elementor"),
|
|
4694
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(import_icons23.MinusIcon, { fontSize: size }),
|
|
4737
4695
|
showTooltip: true
|
|
4738
4696
|
},
|
|
4739
4697
|
{
|
|
4740
4698
|
value: "capitalize",
|
|
4741
|
-
label: (0,
|
|
4742
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4699
|
+
label: (0, import_i18n57.__)("Capitalize", "elementor"),
|
|
4700
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(import_icons23.LetterCaseIcon, { fontSize: size }),
|
|
4743
4701
|
showTooltip: true
|
|
4744
4702
|
},
|
|
4745
4703
|
{
|
|
4746
4704
|
value: "uppercase",
|
|
4747
|
-
label: (0,
|
|
4748
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4705
|
+
label: (0, import_i18n57.__)("Uppercase", "elementor"),
|
|
4706
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(import_icons23.LetterCaseUpperIcon, { fontSize: size }),
|
|
4749
4707
|
showTooltip: true
|
|
4750
4708
|
},
|
|
4751
4709
|
{
|
|
4752
4710
|
value: "lowercase",
|
|
4753
|
-
label: (0,
|
|
4754
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4711
|
+
label: (0, import_i18n57.__)("Lowercase", "elementor"),
|
|
4712
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(import_icons23.LetterCaseLowerIcon, { fontSize: size }),
|
|
4755
4713
|
showTooltip: true
|
|
4756
4714
|
}
|
|
4757
4715
|
];
|
|
4758
|
-
var TransformField = () => /* @__PURE__ */
|
|
4716
|
+
var TransformField = () => /* @__PURE__ */ React83.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React83.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React83.createElement(import_editor_controls50.ToggleControl, { options: options11 })));
|
|
4759
4717
|
|
|
4760
4718
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
4761
|
-
var
|
|
4719
|
+
var React84 = __toESM(require("react"));
|
|
4762
4720
|
var import_react36 = require("react");
|
|
4763
|
-
var
|
|
4764
|
-
var
|
|
4765
|
-
var WORD_SPACING_LABEL = (0,
|
|
4721
|
+
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
4722
|
+
var import_i18n58 = require("@wordpress/i18n");
|
|
4723
|
+
var WORD_SPACING_LABEL = (0, import_i18n58.__)("Word spacing", "elementor");
|
|
4766
4724
|
var WordSpacingField = () => {
|
|
4767
4725
|
const rowRef = (0, import_react36.useRef)(null);
|
|
4768
|
-
return /* @__PURE__ */
|
|
4726
|
+
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(import_editor_controls51.SizeControl, { anchorRef: rowRef })));
|
|
4769
4727
|
};
|
|
4770
4728
|
|
|
4771
4729
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4772
4730
|
var TypographySection = () => {
|
|
4773
|
-
return /* @__PURE__ */
|
|
4731
|
+
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(
|
|
4774
4732
|
StyleTabCollapsibleContent,
|
|
4775
4733
|
{
|
|
4776
4734
|
fields: [
|
|
@@ -4785,18 +4743,18 @@ var TypographySection = () => {
|
|
|
4785
4743
|
"stroke"
|
|
4786
4744
|
]
|
|
4787
4745
|
},
|
|
4788
|
-
/* @__PURE__ */
|
|
4746
|
+
/* @__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))
|
|
4789
4747
|
));
|
|
4790
4748
|
};
|
|
4791
4749
|
|
|
4792
4750
|
// src/components/style-tab-section.tsx
|
|
4793
|
-
var
|
|
4751
|
+
var React86 = __toESM(require("react"));
|
|
4794
4752
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
4795
4753
|
const { component, name, title } = section;
|
|
4796
4754
|
const tabDefaults = useDefaultPanelSettings();
|
|
4797
4755
|
const SectionComponent = component;
|
|
4798
4756
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
4799
|
-
return /* @__PURE__ */
|
|
4757
|
+
return /* @__PURE__ */ React86.createElement(
|
|
4800
4758
|
Section,
|
|
4801
4759
|
{
|
|
4802
4760
|
title,
|
|
@@ -4804,7 +4762,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
4804
4762
|
titleEnd: getStylesInheritanceIndicators(fields),
|
|
4805
4763
|
unmountOnExit
|
|
4806
4764
|
},
|
|
4807
|
-
/* @__PURE__ */
|
|
4765
|
+
/* @__PURE__ */ React86.createElement(SectionComponent, null)
|
|
4808
4766
|
);
|
|
4809
4767
|
};
|
|
4810
4768
|
|
|
@@ -4823,8 +4781,7 @@ var StyleTab = () => {
|
|
|
4823
4781
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
|
|
4824
4782
|
const [activeStyleState, setActiveStyleState] = (0, import_react37.useState)(null);
|
|
4825
4783
|
const breakpoint = (0, import_editor_responsive3.useActiveBreakpoint)();
|
|
4826
|
-
|
|
4827
|
-
return /* @__PURE__ */ React89.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React89.createElement(
|
|
4784
|
+
return /* @__PURE__ */ React87.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React87.createElement(
|
|
4828
4785
|
StyleProvider,
|
|
4829
4786
|
{
|
|
4830
4787
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -4835,13 +4792,13 @@ var StyleTab = () => {
|
|
|
4835
4792
|
},
|
|
4836
4793
|
setMetaState: setActiveStyleState
|
|
4837
4794
|
},
|
|
4838
|
-
/* @__PURE__ */
|
|
4795
|
+
/* @__PURE__ */ React87.createElement(import_session6.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React87.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React87.createElement(ClassesHeader, null, /* @__PURE__ */ React87.createElement(CssClassSelector, null), /* @__PURE__ */ React87.createElement(import_ui43.Divider, null)), /* @__PURE__ */ React87.createElement(SectionsList, null, /* @__PURE__ */ React87.createElement(
|
|
4839
4796
|
StyleTabSection,
|
|
4840
4797
|
{
|
|
4841
4798
|
section: {
|
|
4842
4799
|
component: LayoutSection,
|
|
4843
4800
|
name: "Layout",
|
|
4844
|
-
title: (0,
|
|
4801
|
+
title: (0, import_i18n59.__)("Layout", "elementor")
|
|
4845
4802
|
},
|
|
4846
4803
|
fields: [
|
|
4847
4804
|
"display",
|
|
@@ -4854,23 +4811,23 @@ var StyleTab = () => {
|
|
|
4854
4811
|
"gap"
|
|
4855
4812
|
]
|
|
4856
4813
|
}
|
|
4857
|
-
), /* @__PURE__ */
|
|
4814
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4858
4815
|
StyleTabSection,
|
|
4859
4816
|
{
|
|
4860
4817
|
section: {
|
|
4861
4818
|
component: SpacingSection,
|
|
4862
4819
|
name: "Spacing",
|
|
4863
|
-
title: (0,
|
|
4820
|
+
title: (0, import_i18n59.__)("Spacing", "elementor")
|
|
4864
4821
|
},
|
|
4865
4822
|
fields: ["margin", "padding"]
|
|
4866
4823
|
}
|
|
4867
|
-
), /* @__PURE__ */
|
|
4824
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4868
4825
|
StyleTabSection,
|
|
4869
4826
|
{
|
|
4870
4827
|
section: {
|
|
4871
4828
|
component: SizeSection,
|
|
4872
4829
|
name: "Size",
|
|
4873
|
-
title: (0,
|
|
4830
|
+
title: (0, import_i18n59.__)("Size", "elementor")
|
|
4874
4831
|
},
|
|
4875
4832
|
fields: [
|
|
4876
4833
|
"width",
|
|
@@ -4884,23 +4841,23 @@ var StyleTab = () => {
|
|
|
4884
4841
|
"object-fit"
|
|
4885
4842
|
]
|
|
4886
4843
|
}
|
|
4887
|
-
), /* @__PURE__ */
|
|
4844
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4888
4845
|
StyleTabSection,
|
|
4889
4846
|
{
|
|
4890
4847
|
section: {
|
|
4891
4848
|
component: PositionSection,
|
|
4892
4849
|
name: "Position",
|
|
4893
|
-
title: (0,
|
|
4850
|
+
title: (0, import_i18n59.__)("Position", "elementor")
|
|
4894
4851
|
},
|
|
4895
4852
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
4896
4853
|
}
|
|
4897
|
-
), /* @__PURE__ */
|
|
4854
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4898
4855
|
StyleTabSection,
|
|
4899
4856
|
{
|
|
4900
4857
|
section: {
|
|
4901
4858
|
component: TypographySection,
|
|
4902
4859
|
name: "Typography",
|
|
4903
|
-
title: (0,
|
|
4860
|
+
title: (0, import_i18n59.__)("Typography", "elementor")
|
|
4904
4861
|
},
|
|
4905
4862
|
fields: [
|
|
4906
4863
|
"font-family",
|
|
@@ -4919,33 +4876,33 @@ var StyleTab = () => {
|
|
|
4919
4876
|
"stroke"
|
|
4920
4877
|
]
|
|
4921
4878
|
}
|
|
4922
|
-
), /* @__PURE__ */
|
|
4879
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4923
4880
|
StyleTabSection,
|
|
4924
4881
|
{
|
|
4925
4882
|
section: {
|
|
4926
4883
|
component: BackgroundSection,
|
|
4927
4884
|
name: "Background",
|
|
4928
|
-
title: (0,
|
|
4885
|
+
title: (0, import_i18n59.__)("Background", "elementor")
|
|
4929
4886
|
},
|
|
4930
4887
|
fields: ["background"]
|
|
4931
4888
|
}
|
|
4932
|
-
), /* @__PURE__ */
|
|
4889
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4933
4890
|
StyleTabSection,
|
|
4934
4891
|
{
|
|
4935
4892
|
section: {
|
|
4936
4893
|
component: BorderSection,
|
|
4937
4894
|
name: "Border",
|
|
4938
|
-
title: (0,
|
|
4895
|
+
title: (0, import_i18n59.__)("Border", "elementor")
|
|
4939
4896
|
},
|
|
4940
4897
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
4941
4898
|
}
|
|
4942
|
-
), /* @__PURE__ */
|
|
4899
|
+
), /* @__PURE__ */ React87.createElement(
|
|
4943
4900
|
StyleTabSection,
|
|
4944
4901
|
{
|
|
4945
4902
|
section: {
|
|
4946
4903
|
component: EffectsSection,
|
|
4947
4904
|
name: "Effects",
|
|
4948
|
-
title: (0,
|
|
4905
|
+
title: (0, import_i18n59.__)("Effects", "elementor")
|
|
4949
4906
|
},
|
|
4950
4907
|
fields: [
|
|
4951
4908
|
"box-shadow",
|
|
@@ -4957,23 +4914,12 @@ var StyleTab = () => {
|
|
|
4957
4914
|
"transition"
|
|
4958
4915
|
]
|
|
4959
4916
|
}
|
|
4960
|
-
),
|
|
4961
|
-
StyleTabSection,
|
|
4962
|
-
{
|
|
4963
|
-
section: {
|
|
4964
|
-
component: CustomCss,
|
|
4965
|
-
name: "Custom CSS",
|
|
4966
|
-
title: (0, import_i18n60.__)("Custom CSS", "elementor")
|
|
4967
|
-
},
|
|
4968
|
-
fields: ["custom_css"],
|
|
4969
|
-
unmountOnExit: false
|
|
4970
|
-
}
|
|
4971
|
-
), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(import_ui44.Box, { sx: { height: "150px" } })))
|
|
4917
|
+
), /* @__PURE__ */ React87.createElement(StyleTabSlot, null)), /* @__PURE__ */ React87.createElement(import_ui43.Box, { sx: { height: "150px" } })))
|
|
4972
4918
|
));
|
|
4973
4919
|
};
|
|
4974
4920
|
function ClassesHeader({ children }) {
|
|
4975
4921
|
const scrollDirection = useScrollDirection();
|
|
4976
|
-
return /* @__PURE__ */
|
|
4922
|
+
return /* @__PURE__ */ React87.createElement(import_ui43.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
4977
4923
|
}
|
|
4978
4924
|
function useCurrentClassesProp() {
|
|
4979
4925
|
const { elementType } = useElement();
|
|
@@ -4992,16 +4938,16 @@ var EditingPanelTabs = () => {
|
|
|
4992
4938
|
return (
|
|
4993
4939
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
4994
4940
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
4995
|
-
/* @__PURE__ */
|
|
4941
|
+
/* @__PURE__ */ React88.createElement(import_react38.Fragment, { key: element.id }, /* @__PURE__ */ React88.createElement(PanelTabContent, null))
|
|
4996
4942
|
);
|
|
4997
4943
|
};
|
|
4998
4944
|
var PanelTabContent = () => {
|
|
4999
4945
|
const editorDefaults = useDefaultPanelSettings();
|
|
5000
4946
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
5001
4947
|
const [currentTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5002
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
5003
|
-
return /* @__PURE__ */
|
|
5004
|
-
|
|
4948
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui44.useTabs)(currentTab);
|
|
4949
|
+
return /* @__PURE__ */ React88.createElement(ScrollProvider, null, /* @__PURE__ */ React88.createElement(import_ui44.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React88.createElement(import_ui44.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React88.createElement(
|
|
4950
|
+
import_ui44.Tabs,
|
|
5005
4951
|
{
|
|
5006
4952
|
variant: "fullWidth",
|
|
5007
4953
|
size: "small",
|
|
@@ -5012,9 +4958,9 @@ var PanelTabContent = () => {
|
|
|
5012
4958
|
setCurrentTab(newValue);
|
|
5013
4959
|
}
|
|
5014
4960
|
},
|
|
5015
|
-
/* @__PURE__ */
|
|
5016
|
-
/* @__PURE__ */
|
|
5017
|
-
), /* @__PURE__ */
|
|
4961
|
+
/* @__PURE__ */ React88.createElement(import_ui44.Tab, { label: (0, import_i18n60.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
4962
|
+
/* @__PURE__ */ React88.createElement(import_ui44.Tab, { label: (0, import_i18n60.__)("Style", "elementor"), ...getTabProps("style") })
|
|
4963
|
+
), /* @__PURE__ */ React88.createElement(import_ui44.Divider, null)), /* @__PURE__ */ React88.createElement(import_ui44.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React88.createElement(SettingsTab, null)), /* @__PURE__ */ React88.createElement(import_ui44.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React88.createElement(StyleTab, null))));
|
|
5018
4964
|
};
|
|
5019
4965
|
|
|
5020
4966
|
// src/components/editing-panel.tsx
|
|
@@ -5026,8 +4972,8 @@ var EditingPanel = () => {
|
|
|
5026
4972
|
if (!element || !elementType) {
|
|
5027
4973
|
return null;
|
|
5028
4974
|
}
|
|
5029
|
-
const panelTitle = (0,
|
|
5030
|
-
return /* @__PURE__ */
|
|
4975
|
+
const panelTitle = (0, import_i18n61.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
4976
|
+
return /* @__PURE__ */ React89.createElement(import_ui45.ErrorBoundary, { fallback: /* @__PURE__ */ React89.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React89.createElement(import_session7.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React89.createElement(import_editor_ui6.ThemeProvider, null, /* @__PURE__ */ React89.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React89.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React89.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React89.createElement(import_icons24.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React89.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React89.createElement(import_editor_controls52.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React89.createElement(import_editor_controls52.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React89.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React89.createElement(EditingPanelTabs, null)))))))));
|
|
5031
4977
|
};
|
|
5032
4978
|
|
|
5033
4979
|
// src/panel.ts
|
|
@@ -5051,7 +4997,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
5051
4997
|
var useOpenEditorPanel = () => {
|
|
5052
4998
|
const { open } = usePanelActions();
|
|
5053
4999
|
(0, import_react39.useEffect)(() => {
|
|
5054
|
-
return (0,
|
|
5000
|
+
return (0, import_editor_v1_adapters6.__privateListenTo)((0, import_editor_v1_adapters6.commandStartEvent)("panel/editor/open"), () => {
|
|
5055
5001
|
if (isAtomicWidgetSelected()) {
|
|
5056
5002
|
open();
|
|
5057
5003
|
}
|
|
@@ -5067,11 +5013,11 @@ var EditingPanelHooks = () => {
|
|
|
5067
5013
|
|
|
5068
5014
|
// src/dynamics/init.ts
|
|
5069
5015
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
5070
|
-
var
|
|
5016
|
+
var import_editor_controls59 = require("@elementor/editor-controls");
|
|
5071
5017
|
|
|
5072
5018
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5073
|
-
var
|
|
5074
|
-
var
|
|
5019
|
+
var React90 = __toESM(require("react"));
|
|
5020
|
+
var import_editor_controls54 = require("@elementor/editor-controls");
|
|
5075
5021
|
var import_editor_props17 = require("@elementor/editor-props");
|
|
5076
5022
|
var import_icons25 = require("@elementor/icons");
|
|
5077
5023
|
|
|
@@ -5080,7 +5026,7 @@ var import_react41 = require("react");
|
|
|
5080
5026
|
|
|
5081
5027
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
5082
5028
|
var import_react40 = require("react");
|
|
5083
|
-
var
|
|
5029
|
+
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5084
5030
|
|
|
5085
5031
|
// src/dynamics/sync/get-elementor-config.ts
|
|
5086
5032
|
var getElementorConfig2 = () => {
|
|
@@ -5126,7 +5072,7 @@ var dynamicPropTypeUtil = (0, import_editor_props16.createPropUtils)(
|
|
|
5126
5072
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
5127
5073
|
var usePropDynamicTags = () => {
|
|
5128
5074
|
let categories = [];
|
|
5129
|
-
const { propType } = (0,
|
|
5075
|
+
const { propType } = (0, import_editor_controls53.useBoundProp)();
|
|
5130
5076
|
if (propType) {
|
|
5131
5077
|
const propDynamicType = getDynamicPropType(propType);
|
|
5132
5078
|
categories = propDynamicType?.settings.categories || [];
|
|
@@ -5151,29 +5097,29 @@ var useDynamicTag = (tagName) => {
|
|
|
5151
5097
|
};
|
|
5152
5098
|
|
|
5153
5099
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5154
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
5100
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React90.createElement(import_icons25.DatabaseIcon, { fontSize: "tiny" });
|
|
5155
5101
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
5156
|
-
const context = (0,
|
|
5157
|
-
return /* @__PURE__ */
|
|
5102
|
+
const context = (0, import_editor_controls54.useBoundProp)(import_editor_props17.backgroundImageOverlayPropTypeUtil);
|
|
5103
|
+
return /* @__PURE__ */ React90.createElement(import_editor_controls54.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React90.createElement(import_editor_controls54.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React90.createElement(Wrapper, { rawValue: value.value })));
|
|
5158
5104
|
};
|
|
5159
5105
|
var Wrapper = ({ rawValue }) => {
|
|
5160
|
-
const { propType } = (0,
|
|
5106
|
+
const { propType } = (0, import_editor_controls54.useBoundProp)();
|
|
5161
5107
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
5162
|
-
return /* @__PURE__ */
|
|
5108
|
+
return /* @__PURE__ */ React90.createElement(import_editor_controls54.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React90.createElement(import_editor_controls54.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React90.createElement(Content, { rawValue: rawValue.image })));
|
|
5163
5109
|
};
|
|
5164
5110
|
var Content = ({ rawValue }) => {
|
|
5165
5111
|
const src = rawValue.value.src;
|
|
5166
5112
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
5167
|
-
return /* @__PURE__ */
|
|
5113
|
+
return /* @__PURE__ */ React90.createElement(React90.Fragment, null, dynamicTag?.label);
|
|
5168
5114
|
};
|
|
5169
5115
|
|
|
5170
5116
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5171
|
-
var
|
|
5172
|
-
var
|
|
5117
|
+
var React93 = __toESM(require("react"));
|
|
5118
|
+
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5173
5119
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
5174
5120
|
var import_icons27 = require("@elementor/icons");
|
|
5175
|
-
var
|
|
5176
|
-
var
|
|
5121
|
+
var import_ui47 = require("@elementor/ui");
|
|
5122
|
+
var import_i18n63 = require("@wordpress/i18n");
|
|
5177
5123
|
|
|
5178
5124
|
// src/hooks/use-persist-dynamic-value.ts
|
|
5179
5125
|
var import_session8 = require("@elementor/session");
|
|
@@ -5184,10 +5130,10 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
5184
5130
|
};
|
|
5185
5131
|
|
|
5186
5132
|
// src/dynamics/dynamic-control.tsx
|
|
5187
|
-
var
|
|
5188
|
-
var
|
|
5133
|
+
var React91 = __toESM(require("react"));
|
|
5134
|
+
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
5189
5135
|
var DynamicControl = ({ bind, children }) => {
|
|
5190
|
-
const { value, setValue } = (0,
|
|
5136
|
+
const { value, setValue } = (0, import_editor_controls55.useBoundProp)(dynamicPropTypeUtil);
|
|
5191
5137
|
const { name = "", settings } = value ?? {};
|
|
5192
5138
|
const dynamicTag = useDynamicTag(name);
|
|
5193
5139
|
if (!dynamicTag) {
|
|
@@ -5206,24 +5152,24 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5206
5152
|
});
|
|
5207
5153
|
};
|
|
5208
5154
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5209
|
-
return /* @__PURE__ */
|
|
5155
|
+
return /* @__PURE__ */ React91.createElement(import_editor_controls55.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React91.createElement(import_editor_controls55.PropKeyProvider, { bind }, children));
|
|
5210
5156
|
};
|
|
5211
5157
|
|
|
5212
5158
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5213
5159
|
var import_react42 = require("react");
|
|
5214
|
-
var
|
|
5215
|
-
var
|
|
5160
|
+
var React92 = __toESM(require("react"));
|
|
5161
|
+
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
5216
5162
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
5217
5163
|
var import_icons26 = require("@elementor/icons");
|
|
5218
|
-
var
|
|
5219
|
-
var
|
|
5164
|
+
var import_ui46 = require("@elementor/ui");
|
|
5165
|
+
var import_i18n62 = require("@wordpress/i18n");
|
|
5220
5166
|
var SIZE6 = "tiny";
|
|
5221
5167
|
var DynamicSelection = ({ close: closePopover }) => {
|
|
5222
5168
|
const [searchValue, setSearchValue] = (0, import_react42.useState)("");
|
|
5223
5169
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
5224
|
-
const theme = (0,
|
|
5225
|
-
const { value: anyValue } = (0,
|
|
5226
|
-
const { bind, value: dynamicValue, setValue } = (0,
|
|
5170
|
+
const theme = (0, import_ui46.useTheme)();
|
|
5171
|
+
const { value: anyValue } = (0, import_editor_controls56.useBoundProp)();
|
|
5172
|
+
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls56.useBoundProp)(dynamicPropTypeUtil);
|
|
5227
5173
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
5228
5174
|
const isCurrentValueDynamic = !!dynamicValue;
|
|
5229
5175
|
const options12 = useFilteredOptions(searchValue);
|
|
@@ -5251,21 +5197,21 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
5251
5197
|
label: item.label
|
|
5252
5198
|
}))
|
|
5253
5199
|
]);
|
|
5254
|
-
return /* @__PURE__ */
|
|
5200
|
+
return /* @__PURE__ */ React92.createElement(PopoverBody, null, /* @__PURE__ */ React92.createElement(
|
|
5255
5201
|
import_editor_ui7.PopoverHeader,
|
|
5256
5202
|
{
|
|
5257
|
-
title: (0,
|
|
5203
|
+
title: (0, import_i18n62.__)("Dynamic tags", "elementor"),
|
|
5258
5204
|
onClose: closePopover,
|
|
5259
|
-
icon: /* @__PURE__ */
|
|
5205
|
+
icon: /* @__PURE__ */ React92.createElement(import_icons26.DatabaseIcon, { fontSize: SIZE6 })
|
|
5260
5206
|
}
|
|
5261
|
-
), hasNoDynamicTags ? /* @__PURE__ */
|
|
5207
|
+
), hasNoDynamicTags ? /* @__PURE__ */ React92.createElement(NoDynamicTags, null) : /* @__PURE__ */ React92.createElement(import_react42.Fragment, null, /* @__PURE__ */ React92.createElement(
|
|
5262
5208
|
import_editor_ui7.PopoverSearch,
|
|
5263
5209
|
{
|
|
5264
5210
|
value: searchValue,
|
|
5265
5211
|
onSearch: handleSearch,
|
|
5266
|
-
placeholder: (0,
|
|
5212
|
+
placeholder: (0, import_i18n62.__)("Search dynamic tags\u2026", "elementor")
|
|
5267
5213
|
}
|
|
5268
|
-
), /* @__PURE__ */
|
|
5214
|
+
), /* @__PURE__ */ React92.createElement(import_ui46.Divider, null), /* @__PURE__ */ React92.createElement(
|
|
5269
5215
|
import_editor_ui7.PopoverMenuList,
|
|
5270
5216
|
{
|
|
5271
5217
|
items: virtualizedItems,
|
|
@@ -5273,12 +5219,12 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
5273
5219
|
onClose: closePopover,
|
|
5274
5220
|
selectedValue: dynamicValue?.name,
|
|
5275
5221
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
5276
|
-
noResultsComponent: /* @__PURE__ */
|
|
5222
|
+
noResultsComponent: /* @__PURE__ */ React92.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
5277
5223
|
}
|
|
5278
5224
|
)));
|
|
5279
5225
|
};
|
|
5280
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
5281
|
-
|
|
5226
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React92.createElement(
|
|
5227
|
+
import_ui46.Stack,
|
|
5282
5228
|
{
|
|
5283
5229
|
gap: 1,
|
|
5284
5230
|
alignItems: "center",
|
|
@@ -5288,12 +5234,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React94.createElem
|
|
|
5288
5234
|
color: "text.secondary",
|
|
5289
5235
|
sx: { pb: 3.5 }
|
|
5290
5236
|
},
|
|
5291
|
-
/* @__PURE__ */
|
|
5292
|
-
/* @__PURE__ */
|
|
5293
|
-
/* @__PURE__ */
|
|
5237
|
+
/* @__PURE__ */ React92.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
|
|
5238
|
+
/* @__PURE__ */ React92.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n62.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React92.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
5239
|
+
/* @__PURE__ */ React92.createElement(import_ui46.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n62.__)("Try something else.", "elementor"), /* @__PURE__ */ React92.createElement(import_ui46.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n62.__)("Clear & try again", "elementor")))
|
|
5294
5240
|
);
|
|
5295
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
5296
|
-
|
|
5241
|
+
var NoDynamicTags = () => /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(import_ui46.Divider, null), /* @__PURE__ */ React92.createElement(
|
|
5242
|
+
import_ui46.Stack,
|
|
5297
5243
|
{
|
|
5298
5244
|
gap: 1,
|
|
5299
5245
|
alignItems: "center",
|
|
@@ -5303,9 +5249,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React94.createElement(React94.Fragment
|
|
|
5303
5249
|
color: "text.secondary",
|
|
5304
5250
|
sx: { pb: 3.5 }
|
|
5305
5251
|
},
|
|
5306
|
-
/* @__PURE__ */
|
|
5307
|
-
/* @__PURE__ */
|
|
5308
|
-
/* @__PURE__ */
|
|
5252
|
+
/* @__PURE__ */ React92.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
|
|
5253
|
+
/* @__PURE__ */ React92.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n62.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
5254
|
+
/* @__PURE__ */ React92.createElement(import_ui46.Typography, { align: "center", variant: "caption" }, (0, import_i18n62.__)("You'll need Elementor Pro to use this feature.", "elementor"))
|
|
5309
5255
|
));
|
|
5310
5256
|
var useFilteredOptions = (searchValue) => {
|
|
5311
5257
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -5326,10 +5272,10 @@ var useFilteredOptions = (searchValue) => {
|
|
|
5326
5272
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5327
5273
|
var SIZE7 = "tiny";
|
|
5328
5274
|
var DynamicSelectionControl = () => {
|
|
5329
|
-
const { setValue: setAnyValue } = (0,
|
|
5330
|
-
const { bind, value } = (0,
|
|
5275
|
+
const { setValue: setAnyValue } = (0, import_editor_controls57.useBoundProp)();
|
|
5276
|
+
const { bind, value } = (0, import_editor_controls57.useBoundProp)(dynamicPropTypeUtil);
|
|
5331
5277
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
5332
|
-
const selectionPopoverState = (0,
|
|
5278
|
+
const selectionPopoverState = (0, import_ui47.usePopupState)({ variant: "popover" });
|
|
5333
5279
|
const { name: tagName = "" } = value;
|
|
5334
5280
|
const dynamicTag = useDynamicTag(tagName);
|
|
5335
5281
|
const removeDynamicTag = () => {
|
|
@@ -5338,26 +5284,26 @@ var DynamicSelectionControl = () => {
|
|
|
5338
5284
|
if (!dynamicTag) {
|
|
5339
5285
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
5340
5286
|
}
|
|
5341
|
-
return /* @__PURE__ */
|
|
5342
|
-
|
|
5287
|
+
return /* @__PURE__ */ React93.createElement(import_ui47.Box, null, /* @__PURE__ */ React93.createElement(
|
|
5288
|
+
import_ui47.UnstableTag,
|
|
5343
5289
|
{
|
|
5344
5290
|
fullWidth: true,
|
|
5345
5291
|
showActionsOnHover: true,
|
|
5346
5292
|
label: dynamicTag.label,
|
|
5347
|
-
startIcon: /* @__PURE__ */
|
|
5348
|
-
...(0,
|
|
5349
|
-
actions: /* @__PURE__ */
|
|
5350
|
-
|
|
5293
|
+
startIcon: /* @__PURE__ */ React93.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE7 }),
|
|
5294
|
+
...(0, import_ui47.bindTrigger)(selectionPopoverState),
|
|
5295
|
+
actions: /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React93.createElement(
|
|
5296
|
+
import_ui47.IconButton,
|
|
5351
5297
|
{
|
|
5352
5298
|
size: SIZE7,
|
|
5353
5299
|
onClick: removeDynamicTag,
|
|
5354
|
-
"aria-label": (0,
|
|
5300
|
+
"aria-label": (0, import_i18n63.__)("Remove dynamic value", "elementor")
|
|
5355
5301
|
},
|
|
5356
|
-
/* @__PURE__ */
|
|
5302
|
+
/* @__PURE__ */ React93.createElement(import_icons27.XIcon, { fontSize: SIZE7 })
|
|
5357
5303
|
))
|
|
5358
5304
|
}
|
|
5359
|
-
), /* @__PURE__ */
|
|
5360
|
-
|
|
5305
|
+
), /* @__PURE__ */ React93.createElement(
|
|
5306
|
+
import_ui47.Popover,
|
|
5361
5307
|
{
|
|
5362
5308
|
disablePortal: true,
|
|
5363
5309
|
disableScrollLock: true,
|
|
@@ -5366,19 +5312,19 @@ var DynamicSelectionControl = () => {
|
|
|
5366
5312
|
PaperProps: {
|
|
5367
5313
|
sx: { my: 1 }
|
|
5368
5314
|
},
|
|
5369
|
-
...(0,
|
|
5315
|
+
...(0, import_ui47.bindPopover)(selectionPopoverState)
|
|
5370
5316
|
},
|
|
5371
|
-
/* @__PURE__ */
|
|
5317
|
+
/* @__PURE__ */ React93.createElement(PopoverBody, null, /* @__PURE__ */ React93.createElement(DynamicSelection, { close: selectionPopoverState.close }))
|
|
5372
5318
|
));
|
|
5373
5319
|
};
|
|
5374
5320
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
5375
|
-
const popupState = (0,
|
|
5321
|
+
const popupState = (0, import_ui47.usePopupState)({ variant: "popover" });
|
|
5376
5322
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
5377
5323
|
if (!hasDynamicSettings) {
|
|
5378
5324
|
return null;
|
|
5379
5325
|
}
|
|
5380
|
-
return /* @__PURE__ */
|
|
5381
|
-
|
|
5326
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(import_ui47.IconButton, { size: SIZE7, ...(0, import_ui47.bindTrigger)(popupState), "aria-label": (0, import_i18n63.__)("Settings", "elementor") }, /* @__PURE__ */ React93.createElement(import_icons27.SettingsIcon, { fontSize: SIZE7 })), /* @__PURE__ */ React93.createElement(
|
|
5327
|
+
import_ui47.Popover,
|
|
5382
5328
|
{
|
|
5383
5329
|
disablePortal: true,
|
|
5384
5330
|
disableScrollLock: true,
|
|
@@ -5387,35 +5333,35 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
5387
5333
|
PaperProps: {
|
|
5388
5334
|
sx: { my: 1 }
|
|
5389
5335
|
},
|
|
5390
|
-
...(0,
|
|
5336
|
+
...(0, import_ui47.bindPopover)(popupState)
|
|
5391
5337
|
},
|
|
5392
|
-
/* @__PURE__ */
|
|
5338
|
+
/* @__PURE__ */ React93.createElement(PopoverBody, null, /* @__PURE__ */ React93.createElement(
|
|
5393
5339
|
import_editor_ui8.PopoverHeader,
|
|
5394
5340
|
{
|
|
5395
5341
|
title: dynamicTag.label,
|
|
5396
5342
|
onClose: popupState.close,
|
|
5397
|
-
icon: /* @__PURE__ */
|
|
5343
|
+
icon: /* @__PURE__ */ React93.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE7 })
|
|
5398
5344
|
}
|
|
5399
|
-
), /* @__PURE__ */
|
|
5345
|
+
), /* @__PURE__ */ React93.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
5400
5346
|
));
|
|
5401
5347
|
};
|
|
5402
5348
|
var DynamicSettings = ({ controls }) => {
|
|
5403
5349
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
5404
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
5350
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui47.useTabs)(0);
|
|
5405
5351
|
if (!tabs.length) {
|
|
5406
5352
|
return null;
|
|
5407
5353
|
}
|
|
5408
|
-
return /* @__PURE__ */
|
|
5409
|
-
return /* @__PURE__ */
|
|
5410
|
-
|
|
5354
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(import_ui47.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React93.createElement(import_ui47.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React93.createElement(import_ui47.Divider, null), tabs.map(({ value }, index) => {
|
|
5355
|
+
return /* @__PURE__ */ React93.createElement(
|
|
5356
|
+
import_ui47.TabPanel,
|
|
5411
5357
|
{
|
|
5412
5358
|
key: index,
|
|
5413
5359
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
5414
5360
|
...getTabPanelProps(index)
|
|
5415
5361
|
},
|
|
5416
|
-
/* @__PURE__ */
|
|
5362
|
+
/* @__PURE__ */ React93.createElement(import_ui47.Stack, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
5417
5363
|
if (item.type === "control") {
|
|
5418
|
-
return /* @__PURE__ */
|
|
5364
|
+
return /* @__PURE__ */ React93.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
5419
5365
|
}
|
|
5420
5366
|
return null;
|
|
5421
5367
|
}))
|
|
@@ -5433,15 +5379,15 @@ var Control3 = ({ control }) => {
|
|
|
5433
5379
|
return null;
|
|
5434
5380
|
}
|
|
5435
5381
|
const layout = getLayout(control);
|
|
5436
|
-
return /* @__PURE__ */
|
|
5437
|
-
|
|
5382
|
+
return /* @__PURE__ */ React93.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React93.createElement(
|
|
5383
|
+
import_ui47.Grid,
|
|
5438
5384
|
{
|
|
5439
5385
|
container: true,
|
|
5440
5386
|
gap: 0.75,
|
|
5441
5387
|
sx: layout === "two-columns" ? { display: "grid", gridTemplateColumns: "1fr 1fr" } : {}
|
|
5442
5388
|
},
|
|
5443
|
-
control.label ? /* @__PURE__ */
|
|
5444
|
-
/* @__PURE__ */
|
|
5389
|
+
control.label ? /* @__PURE__ */ React93.createElement(import_ui47.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React93.createElement(import_editor_controls57.ControlFormLabel, null, control.label)) : null,
|
|
5390
|
+
/* @__PURE__ */ React93.createElement(import_ui47.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React93.createElement(Control, { type: control.type, props: control.props }))
|
|
5445
5391
|
));
|
|
5446
5392
|
};
|
|
5447
5393
|
|
|
@@ -5495,18 +5441,18 @@ function getDynamicValue(name, settings) {
|
|
|
5495
5441
|
}
|
|
5496
5442
|
|
|
5497
5443
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
5498
|
-
var
|
|
5499
|
-
var
|
|
5444
|
+
var React94 = __toESM(require("react"));
|
|
5445
|
+
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5500
5446
|
var import_icons28 = require("@elementor/icons");
|
|
5501
|
-
var
|
|
5447
|
+
var import_i18n64 = require("@wordpress/i18n");
|
|
5502
5448
|
var usePropDynamicAction = () => {
|
|
5503
|
-
const { propType } = (0,
|
|
5449
|
+
const { propType } = (0, import_editor_controls58.useBoundProp)();
|
|
5504
5450
|
const visible = !!propType && supportsDynamic(propType);
|
|
5505
5451
|
return {
|
|
5506
5452
|
visible,
|
|
5507
5453
|
icon: import_icons28.DatabaseIcon,
|
|
5508
|
-
title: (0,
|
|
5509
|
-
content: ({ close }) => /* @__PURE__ */
|
|
5454
|
+
title: (0, import_i18n64.__)("Dynamic tags", "elementor"),
|
|
5455
|
+
content: ({ close }) => /* @__PURE__ */ React94.createElement(DynamicSelection, { close })
|
|
5510
5456
|
};
|
|
5511
5457
|
};
|
|
5512
5458
|
|
|
@@ -5517,12 +5463,12 @@ var init = () => {
|
|
|
5517
5463
|
component: DynamicSelectionControl,
|
|
5518
5464
|
condition: ({ value }) => isDynamicPropValue(value)
|
|
5519
5465
|
});
|
|
5520
|
-
(0,
|
|
5466
|
+
(0, import_editor_controls59.injectIntoRepeaterItemLabel)({
|
|
5521
5467
|
id: "dynamic-background-image",
|
|
5522
5468
|
condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
|
|
5523
5469
|
component: BackgroundControlDynamicTagLabel
|
|
5524
5470
|
});
|
|
5525
|
-
(0,
|
|
5471
|
+
(0, import_editor_controls59.injectIntoRepeaterItemIcon)({
|
|
5526
5472
|
id: "dynamic-background-image",
|
|
5527
5473
|
condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
|
|
5528
5474
|
component: BackgroundControlDynamicTagIcon
|
|
@@ -5536,9 +5482,9 @@ var init = () => {
|
|
|
5536
5482
|
};
|
|
5537
5483
|
|
|
5538
5484
|
// src/reset-style-props.tsx
|
|
5539
|
-
var
|
|
5485
|
+
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
5540
5486
|
var import_icons29 = require("@elementor/icons");
|
|
5541
|
-
var
|
|
5487
|
+
var import_i18n65 = require("@wordpress/i18n");
|
|
5542
5488
|
var { registerAction } = controlActionsMenu;
|
|
5543
5489
|
function initResetStyleProps() {
|
|
5544
5490
|
registerAction({
|
|
@@ -5548,11 +5494,11 @@ function initResetStyleProps() {
|
|
|
5548
5494
|
}
|
|
5549
5495
|
function useResetStyleValueProps() {
|
|
5550
5496
|
const isStyle = useIsStyle();
|
|
5551
|
-
const { value, setValue, path } = (0,
|
|
5497
|
+
const { value, setValue, path } = (0, import_editor_controls60.useBoundProp)();
|
|
5552
5498
|
const isInRepeater = path?.some((key) => !isNaN(Number(key)));
|
|
5553
5499
|
return {
|
|
5554
5500
|
visible: isStyle && value !== null && value !== void 0 && !isInRepeater,
|
|
5555
|
-
title: (0,
|
|
5501
|
+
title: (0, import_i18n65.__)("Clear", "elementor"),
|
|
5556
5502
|
icon: import_icons29.BrushBigIcon,
|
|
5557
5503
|
onClick: () => setValue(null)
|
|
5558
5504
|
};
|
|
@@ -5576,18 +5522,18 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
5576
5522
|
]);
|
|
5577
5523
|
|
|
5578
5524
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
5579
|
-
var
|
|
5525
|
+
var React95 = __toESM(require("react"));
|
|
5580
5526
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
5581
|
-
var
|
|
5582
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas6.createTransformer)((value) => /* @__PURE__ */
|
|
5527
|
+
var import_ui48 = require("@elementor/ui");
|
|
5528
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas6.createTransformer)((value) => /* @__PURE__ */ React95.createElement(import_ui48.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React95.createElement(ItemIconColor, { value }), /* @__PURE__ */ React95.createElement(ItemLabelColor, { value })));
|
|
5583
5529
|
var ItemIconColor = ({ value }) => {
|
|
5584
5530
|
const { color } = value;
|
|
5585
|
-
return /* @__PURE__ */
|
|
5531
|
+
return /* @__PURE__ */ React95.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: color });
|
|
5586
5532
|
};
|
|
5587
5533
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
5588
|
-
return /* @__PURE__ */
|
|
5534
|
+
return /* @__PURE__ */ React95.createElement("span", null, color);
|
|
5589
5535
|
};
|
|
5590
|
-
var StyledUnstableColorIndicator = (0,
|
|
5536
|
+
var StyledUnstableColorIndicator = (0, import_ui48.styled)(import_ui48.UnstableColorIndicator)(({ theme }) => ({
|
|
5591
5537
|
width: "1em",
|
|
5592
5538
|
height: "1em",
|
|
5593
5539
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -5596,20 +5542,20 @@ var StyledUnstableColorIndicator = (0, import_ui49.styled)(import_ui49.UnstableC
|
|
|
5596
5542
|
}));
|
|
5597
5543
|
|
|
5598
5544
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
5599
|
-
var
|
|
5545
|
+
var React96 = __toESM(require("react"));
|
|
5600
5546
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
5601
|
-
var
|
|
5602
|
-
var
|
|
5603
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */
|
|
5547
|
+
var import_ui49 = require("@elementor/ui");
|
|
5548
|
+
var import_i18n66 = require("@wordpress/i18n");
|
|
5549
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React96.createElement(import_ui49.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React96.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React96.createElement(ItemLabelGradient, { value })));
|
|
5604
5550
|
var ItemIconGradient = ({ value }) => {
|
|
5605
5551
|
const gradient = getGradientValue(value);
|
|
5606
|
-
return /* @__PURE__ */
|
|
5552
|
+
return /* @__PURE__ */ React96.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
5607
5553
|
};
|
|
5608
5554
|
var ItemLabelGradient = ({ value }) => {
|
|
5609
5555
|
if (value.type === "linear") {
|
|
5610
|
-
return /* @__PURE__ */
|
|
5556
|
+
return /* @__PURE__ */ React96.createElement("span", null, (0, import_i18n66.__)("Linear gradient", "elementor"));
|
|
5611
5557
|
}
|
|
5612
|
-
return /* @__PURE__ */
|
|
5558
|
+
return /* @__PURE__ */ React96.createElement("span", null, (0, import_i18n66.__)("Radial gradient", "elementor"));
|
|
5613
5559
|
};
|
|
5614
5560
|
var getGradientValue = (gradient) => {
|
|
5615
5561
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -5620,16 +5566,16 @@ var getGradientValue = (gradient) => {
|
|
|
5620
5566
|
};
|
|
5621
5567
|
|
|
5622
5568
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
5623
|
-
var
|
|
5569
|
+
var React97 = __toESM(require("react"));
|
|
5624
5570
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
5625
5571
|
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
5626
|
-
var
|
|
5572
|
+
var import_ui50 = require("@elementor/ui");
|
|
5627
5573
|
var import_wp_media = require("@elementor/wp-media");
|
|
5628
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */
|
|
5574
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React97.createElement(import_ui50.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React97.createElement(ItemIconImage, { value }), /* @__PURE__ */ React97.createElement(ItemLabelImage, { value })));
|
|
5629
5575
|
var ItemIconImage = ({ value }) => {
|
|
5630
5576
|
const { imageUrl } = useImage(value);
|
|
5631
|
-
return /* @__PURE__ */
|
|
5632
|
-
|
|
5577
|
+
return /* @__PURE__ */ React97.createElement(
|
|
5578
|
+
import_ui50.CardMedia,
|
|
5633
5579
|
{
|
|
5634
5580
|
image: imageUrl,
|
|
5635
5581
|
sx: (theme) => ({
|
|
@@ -5644,7 +5590,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
5644
5590
|
};
|
|
5645
5591
|
var ItemLabelImage = ({ value }) => {
|
|
5646
5592
|
const { imageTitle } = useImage(value);
|
|
5647
|
-
return /* @__PURE__ */
|
|
5593
|
+
return /* @__PURE__ */ React97.createElement(import_editor_ui9.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React97.createElement("span", null, imageTitle));
|
|
5648
5594
|
};
|
|
5649
5595
|
var useImage = (image) => {
|
|
5650
5596
|
let imageTitle, imageUrl = null;
|
|
@@ -5669,27 +5615,27 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
5669
5615
|
};
|
|
5670
5616
|
|
|
5671
5617
|
// src/styles-inheritance/transformers/background-overlay-transformer.tsx
|
|
5672
|
-
var
|
|
5618
|
+
var React98 = __toESM(require("react"));
|
|
5673
5619
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
5674
|
-
var
|
|
5620
|
+
var import_ui51 = require("@elementor/ui");
|
|
5675
5621
|
var backgroundOverlayTransformer = (0, import_editor_canvas9.createTransformer)((values) => {
|
|
5676
5622
|
if (!values || values.length === 0) {
|
|
5677
5623
|
return null;
|
|
5678
5624
|
}
|
|
5679
|
-
return /* @__PURE__ */
|
|
5625
|
+
return /* @__PURE__ */ React98.createElement(import_ui51.Stack, { direction: "column" }, values.map((item, index) => /* @__PURE__ */ React98.createElement(import_ui51.Stack, { key: index }, item)));
|
|
5680
5626
|
});
|
|
5681
5627
|
|
|
5682
5628
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
5683
|
-
var
|
|
5629
|
+
var React99 = __toESM(require("react"));
|
|
5684
5630
|
var import_editor_canvas10 = require("@elementor/editor-canvas");
|
|
5685
|
-
var
|
|
5631
|
+
var import_ui52 = require("@elementor/ui");
|
|
5686
5632
|
function isValidCSSColor(value) {
|
|
5687
5633
|
if (!value.trim()) {
|
|
5688
5634
|
return false;
|
|
5689
5635
|
}
|
|
5690
5636
|
return CSS.supports("color", value.trim());
|
|
5691
5637
|
}
|
|
5692
|
-
var StyledColorIndicator = (0,
|
|
5638
|
+
var StyledColorIndicator = (0, import_ui52.styled)(import_ui52.UnstableColorIndicator)(({ theme }) => ({
|
|
5693
5639
|
width: "1em",
|
|
5694
5640
|
height: "1em",
|
|
5695
5641
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -5700,7 +5646,7 @@ var colorTransformer = (0, import_editor_canvas10.createTransformer)((value) =>
|
|
|
5700
5646
|
if (!isValidCSSColor(value)) {
|
|
5701
5647
|
return value;
|
|
5702
5648
|
}
|
|
5703
|
-
return /* @__PURE__ */
|
|
5649
|
+
return /* @__PURE__ */ React99.createElement(import_ui52.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React99.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React99.createElement("span", null, value));
|
|
5704
5650
|
});
|
|
5705
5651
|
|
|
5706
5652
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -5748,14 +5694,13 @@ function init3() {
|
|
|
5748
5694
|
initResetStyleProps();
|
|
5749
5695
|
}
|
|
5750
5696
|
var blockV1Panel = () => {
|
|
5751
|
-
(0,
|
|
5697
|
+
(0, import_editor_v1_adapters7.blockCommand)({
|
|
5752
5698
|
command: "panel/editor/open",
|
|
5753
5699
|
condition: isAtomicWidgetSelected
|
|
5754
5700
|
});
|
|
5755
5701
|
};
|
|
5756
5702
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5757
5703
|
0 && (module.exports = {
|
|
5758
|
-
CustomCss,
|
|
5759
5704
|
CustomCssIndicator,
|
|
5760
5705
|
HISTORY_DEBOUNCE_WAIT,
|
|
5761
5706
|
PopoverBody,
|