@elementor/editor-editing-panel 1.47.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +85 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +486 -378
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +503 -398
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -14
- package/src/components/css-classes/css-class-item.tsx +3 -2
- package/src/components/css-classes/css-class-menu.tsx +2 -2
- package/src/components/css-classes/css-class-selector.tsx +10 -2
- package/src/components/popover-body.tsx +12 -0
- package/src/components/style-sections/border-section/border-field.tsx +14 -7
- package/src/components/style-sections/effects-section/effects-section.tsx +18 -4
- package/src/components/style-sections/layout-section/flex-order-field.tsx +30 -19
- package/src/components/style-sections/layout-section/flex-size-field.tsx +14 -16
- package/src/components/style-sections/layout-section/layout-section.tsx +9 -2
- package/src/components/style-sections/layout-section/utils/rotated-icon.tsx +6 -1
- package/src/components/style-sections/position-section/position-section.tsx +19 -8
- package/src/components/style-sections/size-section/size-section.tsx +4 -1
- package/src/components/style-sections/typography-section/text-stroke-field.tsx +3 -1
- package/src/components/style-sections/typography-section/typography-section.tsx +6 -1
- package/src/components/style-tab.tsx +1 -1
- package/src/controls-registry/settings-field.tsx +21 -5
- package/src/controls-registry/styles-field.tsx +5 -3
- package/src/dynamics/components/dynamic-selection-control.tsx +22 -14
- package/src/dynamics/components/dynamic-selection.tsx +32 -36
- package/src/hooks/use-styles-field.ts +3 -4
- package/src/hooks/use-styles-fields.ts +141 -73
- package/src/index.ts +1 -1
- package/src/init.ts +0 -6
- package/src/reset-style-props.tsx +1 -1
- package/src/styles-inheritance/components/styles-inheritance-infotip.tsx +1 -1
- package/src/utils/get-styles-provider-color.ts +8 -0
- package/src/components/popover-scrollable-content.tsx +0 -12
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
EXPERIMENTAL_FEATURES: () => EXPERIMENTAL_FEATURES,
|
|
34
|
-
|
|
34
|
+
PopoverBody: () => PopoverBody,
|
|
35
35
|
controlActionsMenu: () => controlActionsMenu,
|
|
36
36
|
init: () => init3,
|
|
37
37
|
injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
|
|
@@ -182,6 +182,12 @@ var getStylesProviderThemeColor = (provider) => {
|
|
|
182
182
|
}
|
|
183
183
|
return getStyleProviderColors(provider).getThemeColor;
|
|
184
184
|
};
|
|
185
|
+
function getTempStylesProviderThemeColor(provider) {
|
|
186
|
+
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
187
|
+
return (theme) => theme.palette.primary.main;
|
|
188
|
+
}
|
|
189
|
+
return getStylesProviderThemeColor(provider);
|
|
190
|
+
}
|
|
185
191
|
|
|
186
192
|
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
187
193
|
var React4 = __toESM(require("react"));
|
|
@@ -853,7 +859,7 @@ function StateMenuItem({ state, closeMenu, ...props }) {
|
|
|
853
859
|
StyleIndicator,
|
|
854
860
|
{
|
|
855
861
|
"aria-label": (0, import_i18n2.__)("Has style", "elementor"),
|
|
856
|
-
getColor:
|
|
862
|
+
getColor: getTempStylesProviderThemeColor(provider ?? "")
|
|
857
863
|
}
|
|
858
864
|
), state ?? "normal")
|
|
859
865
|
)
|
|
@@ -930,7 +936,7 @@ function CssClassItem(props) {
|
|
|
930
936
|
const providerActions = provider ? import_editor_styles_repository5.stylesRepository.getProviderByKey(provider)?.actions : null;
|
|
931
937
|
const allowRename = Boolean(providerActions?.update) && userCan(provider ?? "")?.update;
|
|
932
938
|
const isShowingState = isActive && meta.state;
|
|
933
|
-
return /* @__PURE__ */ React7.createElement(
|
|
939
|
+
return /* @__PURE__ */ React7.createElement(import_ui5.ThemeProvider, { palette: "default" }, /* @__PURE__ */ React7.createElement(
|
|
934
940
|
import_ui5.UnstableChipGroup,
|
|
935
941
|
{
|
|
936
942
|
ref: setChipRef,
|
|
@@ -1008,7 +1014,7 @@ var EMPTY_OPTION = {
|
|
|
1008
1014
|
label: (0, import_i18n4.__)("local", "elementor"),
|
|
1009
1015
|
value: null,
|
|
1010
1016
|
fixed: true,
|
|
1011
|
-
color: "accent",
|
|
1017
|
+
color: getTempStylesProviderColorName("accent"),
|
|
1012
1018
|
icon: /* @__PURE__ */ React8.createElement(import_icons2.MapPinIcon, null),
|
|
1013
1019
|
provider: null
|
|
1014
1020
|
};
|
|
@@ -1119,13 +1125,19 @@ function useOptions() {
|
|
|
1119
1125
|
label: styleDef.label,
|
|
1120
1126
|
value: styleDef.id,
|
|
1121
1127
|
fixed: isElements,
|
|
1122
|
-
color: getStylesProviderColorName(provider.getKey()),
|
|
1128
|
+
color: getTempStylesProviderColorName(getStylesProviderColorName(provider.getKey())),
|
|
1123
1129
|
icon: isElements ? /* @__PURE__ */ React8.createElement(import_icons2.MapPinIcon, null) : null,
|
|
1124
1130
|
provider: provider.getKey()
|
|
1125
1131
|
};
|
|
1126
1132
|
});
|
|
1127
1133
|
});
|
|
1128
1134
|
}
|
|
1135
|
+
function getTempStylesProviderColorName(color) {
|
|
1136
|
+
if (color === "accent") {
|
|
1137
|
+
return "primary";
|
|
1138
|
+
}
|
|
1139
|
+
return color;
|
|
1140
|
+
}
|
|
1129
1141
|
function useCreateAction() {
|
|
1130
1142
|
const [provider, createAction] = useCreateAndApplyClass();
|
|
1131
1143
|
if (!provider || !createAction) {
|
|
@@ -1195,7 +1207,7 @@ var import_editor_ui5 = require("@elementor/editor-ui");
|
|
|
1195
1207
|
var import_icons24 = require("@elementor/icons");
|
|
1196
1208
|
var import_session5 = require("@elementor/session");
|
|
1197
1209
|
var import_ui45 = require("@elementor/ui");
|
|
1198
|
-
var
|
|
1210
|
+
var import_i18n62 = require("@wordpress/i18n");
|
|
1199
1211
|
|
|
1200
1212
|
// src/controls-actions.ts
|
|
1201
1213
|
var import_menus = require("@elementor/menus");
|
|
@@ -1272,7 +1284,7 @@ var React85 = __toESM(require("react"));
|
|
|
1272
1284
|
var import_react38 = require("react");
|
|
1273
1285
|
var import_editor_v1_adapters18 = require("@elementor/editor-v1-adapters");
|
|
1274
1286
|
var import_ui44 = require("@elementor/ui");
|
|
1275
|
-
var
|
|
1287
|
+
var import_i18n61 = require("@wordpress/i18n");
|
|
1276
1288
|
|
|
1277
1289
|
// src/contexts/scroll-context.tsx
|
|
1278
1290
|
var React12 = __toESM(require("react"));
|
|
@@ -1431,6 +1443,7 @@ var import_react15 = require("react");
|
|
|
1431
1443
|
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
1432
1444
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
1433
1445
|
var import_editor_elements3 = require("@elementor/editor-elements");
|
|
1446
|
+
var import_editor_props3 = require("@elementor/editor-props");
|
|
1434
1447
|
var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
|
|
1435
1448
|
var import_i18n5 = require("@wordpress/i18n");
|
|
1436
1449
|
|
|
@@ -1450,8 +1463,8 @@ var createTopLevelOjectType = ({ schema }) => {
|
|
|
1450
1463
|
// src/controls-registry/settings-field.tsx
|
|
1451
1464
|
var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
1452
1465
|
const { element, elementType } = useElement();
|
|
1453
|
-
const
|
|
1454
|
-
const value = { [bind]:
|
|
1466
|
+
const elementSettingValues = (0, import_editor_elements3.useElementSettings)(element.id, Object.keys(elementType.propsSchema));
|
|
1467
|
+
const value = { [bind]: elementSettingValues?.[bind] };
|
|
1455
1468
|
const propType = createTopLevelOjectType({ schema: elementType.propsSchema });
|
|
1456
1469
|
const undoableUpdateElementProp = useUndoableUpdateElementProp({
|
|
1457
1470
|
propKey: bind,
|
|
@@ -1466,8 +1479,19 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
1466
1479
|
(0, import_editor_elements3.updateElementSettings)({ id: element.id, props: newValue });
|
|
1467
1480
|
}
|
|
1468
1481
|
};
|
|
1469
|
-
|
|
1482
|
+
const isDisabled = (prop) => getDisableState(prop, elementSettingValues);
|
|
1483
|
+
return /* @__PURE__ */ React15.createElement(import_editor_controls3.PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React15.createElement(import_editor_controls3.PropKeyProvider, { bind }, children));
|
|
1470
1484
|
};
|
|
1485
|
+
function getDisableState(propType, elementValues) {
|
|
1486
|
+
const disablingDependencies = propType.dependencies?.filter(({ effect }) => effect === "disable") || [];
|
|
1487
|
+
if (!disablingDependencies.length) {
|
|
1488
|
+
return false;
|
|
1489
|
+
}
|
|
1490
|
+
if (disablingDependencies.length > 1) {
|
|
1491
|
+
throw new Error("Multiple disabling dependencies are not supported.");
|
|
1492
|
+
}
|
|
1493
|
+
return (0, import_editor_props3.shouldApplyEffect)(disablingDependencies[0], elementValues);
|
|
1494
|
+
}
|
|
1471
1495
|
function useUndoableUpdateElementProp({
|
|
1472
1496
|
propKey,
|
|
1473
1497
|
elementId,
|
|
@@ -1660,17 +1684,17 @@ function populateChildControlProps(props) {
|
|
|
1660
1684
|
// src/components/style-tab.tsx
|
|
1661
1685
|
var React84 = __toESM(require("react"));
|
|
1662
1686
|
var import_react37 = require("react");
|
|
1663
|
-
var
|
|
1687
|
+
var import_editor_props11 = require("@elementor/editor-props");
|
|
1664
1688
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
1665
1689
|
var import_session4 = require("@elementor/session");
|
|
1666
1690
|
var import_ui43 = require("@elementor/ui");
|
|
1667
|
-
var
|
|
1691
|
+
var import_i18n60 = require("@wordpress/i18n");
|
|
1668
1692
|
|
|
1669
1693
|
// src/contexts/styles-inheritance-context.tsx
|
|
1670
1694
|
var React20 = __toESM(require("react"));
|
|
1671
1695
|
var import_react20 = require("react");
|
|
1672
1696
|
var import_editor_elements4 = require("@elementor/editor-elements");
|
|
1673
|
-
var
|
|
1697
|
+
var import_editor_props6 = require("@elementor/editor-props");
|
|
1674
1698
|
var import_editor_responsive = require("@elementor/editor-responsive");
|
|
1675
1699
|
var import_editor_styles = require("@elementor/editor-styles");
|
|
1676
1700
|
var import_editor_styles_repository7 = require("@elementor/editor-styles-repository");
|
|
@@ -1684,10 +1708,10 @@ var useStylesRerender = () => {
|
|
|
1684
1708
|
};
|
|
1685
1709
|
|
|
1686
1710
|
// src/styles-inheritance/create-styles-inheritance.ts
|
|
1687
|
-
var
|
|
1711
|
+
var import_editor_props5 = require("@elementor/editor-props");
|
|
1688
1712
|
|
|
1689
1713
|
// src/styles-inheritance/create-snapshots-manager.ts
|
|
1690
|
-
var
|
|
1714
|
+
var import_editor_props4 = require("@elementor/editor-props");
|
|
1691
1715
|
|
|
1692
1716
|
// src/styles-inheritance/utils.ts
|
|
1693
1717
|
var DEFAULT_STATE = "normal";
|
|
@@ -1787,7 +1811,7 @@ function buildInitialSnapshotFromStyles(styles) {
|
|
|
1787
1811
|
variant: { props }
|
|
1788
1812
|
} = styleData;
|
|
1789
1813
|
Object.entries(props).forEach(([key, value]) => {
|
|
1790
|
-
const filteredValue = (0,
|
|
1814
|
+
const filteredValue = (0, import_editor_props4.filterEmptyValues)(value);
|
|
1791
1815
|
if (filteredValue === null) {
|
|
1792
1816
|
return;
|
|
1793
1817
|
}
|
|
@@ -1833,7 +1857,7 @@ function createStylesInheritance(styleDefs, breakpointsRoot) {
|
|
|
1833
1857
|
inheritanceChain = inheritanceChain.map(({ value: styleValue, ...rest }) => ({
|
|
1834
1858
|
...rest,
|
|
1835
1859
|
value: getValueByPath(styleValue, nextFields, filterPropType)
|
|
1836
|
-
})).filter(({ value: styleValue }) => !(0,
|
|
1860
|
+
})).filter(({ value: styleValue }) => !(0, import_editor_props5.isEmpty)(styleValue));
|
|
1837
1861
|
}
|
|
1838
1862
|
return inheritanceChain;
|
|
1839
1863
|
}
|
|
@@ -1875,7 +1899,7 @@ function getValueByPath(value, path, filterPropType) {
|
|
|
1875
1899
|
if (!currentScope) {
|
|
1876
1900
|
return null;
|
|
1877
1901
|
}
|
|
1878
|
-
if ((0,
|
|
1902
|
+
if ((0, import_editor_props5.isTransformable)(currentScope)) {
|
|
1879
1903
|
return currentScope.value?.[key] ?? null;
|
|
1880
1904
|
}
|
|
1881
1905
|
if (typeof currentScope === "object") {
|
|
@@ -1885,7 +1909,7 @@ function getValueByPath(value, path, filterPropType) {
|
|
|
1885
1909
|
}, value);
|
|
1886
1910
|
}
|
|
1887
1911
|
function shouldUseOriginalValue(filterPropType, value) {
|
|
1888
|
-
return !!filterPropType && (0,
|
|
1912
|
+
return !!filterPropType && (0, import_editor_props5.isTransformable)(value) && filterPropType.key !== value.$$type;
|
|
1889
1913
|
}
|
|
1890
1914
|
var getFilterPropType = (propType, path) => {
|
|
1891
1915
|
if (!propType || propType.kind !== "union") {
|
|
@@ -1943,7 +1967,7 @@ var useAppliedStyles = () => {
|
|
|
1943
1967
|
const baseStyles = useBaseStyles();
|
|
1944
1968
|
useStylesRerender();
|
|
1945
1969
|
const classesProp = (0, import_editor_elements4.useElementSetting)(element.id, currentClassesProp);
|
|
1946
|
-
const appliedStyles =
|
|
1970
|
+
const appliedStyles = import_editor_props6.classesPropTypeUtil.extract(classesProp) ?? [];
|
|
1947
1971
|
return import_editor_styles_repository7.stylesRepository.all().filter((style) => [...baseStyles, ...appliedStyles].includes(style.id));
|
|
1948
1972
|
};
|
|
1949
1973
|
var useBaseStyles = () => {
|
|
@@ -1995,39 +2019,24 @@ var import_react21 = require("react");
|
|
|
1995
2019
|
var import_editor_elements6 = require("@elementor/editor-elements");
|
|
1996
2020
|
var import_editor_styles2 = require("@elementor/editor-styles");
|
|
1997
2021
|
var import_editor_styles_repository8 = require("@elementor/editor-styles-repository");
|
|
2022
|
+
var import_editor_styles_repository9 = require("@elementor/editor-styles-repository");
|
|
1998
2023
|
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
1999
2024
|
var import_i18n7 = require("@wordpress/i18n");
|
|
2000
2025
|
function useStylesFields(propNames) {
|
|
2001
|
-
const {
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
const
|
|
2005
|
-
const
|
|
2026
|
+
const {
|
|
2027
|
+
element: { id: elementId }
|
|
2028
|
+
} = useElement();
|
|
2029
|
+
const { id: styleId, meta, provider, canEdit } = useStyle();
|
|
2030
|
+
const undoableUpdateStyle = useUndoableUpdateStyle({ elementId, meta });
|
|
2031
|
+
const undoableCreateElementStyle = useUndoableCreateElementStyle({ elementId, meta });
|
|
2006
2032
|
useStylesRerender();
|
|
2007
|
-
const values = getProps({
|
|
2008
|
-
|
|
2009
|
-
styleId
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
});
|
|
2014
|
-
const setValues = (props) => {
|
|
2015
|
-
if (id === null) {
|
|
2016
|
-
undoableCreateElementStyle({
|
|
2017
|
-
elementId: element.id,
|
|
2018
|
-
classesProp,
|
|
2019
|
-
meta,
|
|
2020
|
-
props
|
|
2021
|
-
});
|
|
2022
|
-
return;
|
|
2033
|
+
const values = getProps({ elementId, styleId, provider, meta, propNames });
|
|
2034
|
+
const setValues = (props, { history: { propDisplayName } }) => {
|
|
2035
|
+
if (styleId === null) {
|
|
2036
|
+
undoableCreateElementStyle({ props, propDisplayName });
|
|
2037
|
+
} else {
|
|
2038
|
+
undoableUpdateStyle({ provider, styleId, props, propDisplayName });
|
|
2023
2039
|
}
|
|
2024
|
-
undoableUpdateStyle({
|
|
2025
|
-
elementId: element.id,
|
|
2026
|
-
styleId: id,
|
|
2027
|
-
provider,
|
|
2028
|
-
meta,
|
|
2029
|
-
props
|
|
2030
|
-
});
|
|
2031
2040
|
};
|
|
2032
2041
|
return { values, setValues, canEdit };
|
|
2033
2042
|
}
|
|
@@ -2044,39 +2053,52 @@ function getProps({ styleId, elementId, provider, meta, propNames }) {
|
|
|
2044
2053
|
propNames.map((key) => [key, variant?.props[key] ?? null])
|
|
2045
2054
|
);
|
|
2046
2055
|
}
|
|
2047
|
-
function useUndoableCreateElementStyle(
|
|
2056
|
+
function useUndoableCreateElementStyle({
|
|
2057
|
+
elementId,
|
|
2058
|
+
meta
|
|
2059
|
+
}) {
|
|
2060
|
+
const classesProp = useClassesProp();
|
|
2048
2061
|
return (0, import_react21.useMemo)(() => {
|
|
2062
|
+
const isVersion331Active = (0, import_editor_v1_adapters6.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_31);
|
|
2063
|
+
const createStyleArgs = { elementId, classesProp, meta, label: import_editor_styles_repository9.ELEMENTS_STYLES_RESERVED_LABEL };
|
|
2049
2064
|
return (0, import_editor_v1_adapters6.undoable)(
|
|
2050
2065
|
{
|
|
2051
|
-
do: (
|
|
2052
|
-
return (0, import_editor_elements6.createElementStyle)({
|
|
2053
|
-
...payload,
|
|
2054
|
-
label: import_editor_styles_repository8.ELEMENTS_STYLES_RESERVED_LABEL
|
|
2055
|
-
});
|
|
2066
|
+
do: ({ props }) => {
|
|
2067
|
+
return (0, import_editor_elements6.createElementStyle)({ ...createStyleArgs, props });
|
|
2056
2068
|
},
|
|
2057
|
-
undo: (
|
|
2069
|
+
undo: (_, styleId) => {
|
|
2058
2070
|
(0, import_editor_elements6.deleteElementStyle)(elementId, styleId);
|
|
2059
2071
|
},
|
|
2060
|
-
redo: (
|
|
2061
|
-
return (0, import_editor_elements6.createElementStyle)({
|
|
2062
|
-
...payload,
|
|
2063
|
-
styleId,
|
|
2064
|
-
label: import_editor_styles_repository8.ELEMENTS_STYLES_RESERVED_LABEL
|
|
2065
|
-
});
|
|
2072
|
+
redo: ({ props }, styleId) => {
|
|
2073
|
+
return (0, import_editor_elements6.createElementStyle)({ ...createStyleArgs, props, styleId });
|
|
2066
2074
|
}
|
|
2067
2075
|
},
|
|
2068
2076
|
{
|
|
2069
|
-
title: (
|
|
2070
|
-
|
|
2077
|
+
title: () => {
|
|
2078
|
+
if (isVersion331Active) {
|
|
2079
|
+
return localStyleHistoryTitlesV331.title({ elementId });
|
|
2080
|
+
}
|
|
2081
|
+
return historyTitlesV330.title({ elementId });
|
|
2082
|
+
},
|
|
2083
|
+
subtitle: ({ propDisplayName }) => {
|
|
2084
|
+
if (isVersion331Active) {
|
|
2085
|
+
return localStyleHistoryTitlesV331.subtitle({ propDisplayName });
|
|
2086
|
+
}
|
|
2087
|
+
return historyTitlesV330.subtitle;
|
|
2088
|
+
}
|
|
2071
2089
|
}
|
|
2072
2090
|
);
|
|
2073
|
-
}, []);
|
|
2091
|
+
}, [classesProp, elementId, meta]);
|
|
2074
2092
|
}
|
|
2075
|
-
function useUndoableUpdateStyle(
|
|
2093
|
+
function useUndoableUpdateStyle({
|
|
2094
|
+
elementId,
|
|
2095
|
+
meta
|
|
2096
|
+
}) {
|
|
2076
2097
|
return (0, import_react21.useMemo)(() => {
|
|
2098
|
+
const isVersion331Active = (0, import_editor_v1_adapters6.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_31);
|
|
2077
2099
|
return (0, import_editor_v1_adapters6.undoable)(
|
|
2078
2100
|
{
|
|
2079
|
-
do: ({
|
|
2101
|
+
do: ({ provider, styleId, props }) => {
|
|
2080
2102
|
if (!provider.actions.updateProps) {
|
|
2081
2103
|
throw new StylesProviderCannotUpdatePropsError({
|
|
2082
2104
|
context: { providerKey: provider.getKey() }
|
|
@@ -2084,26 +2106,37 @@ function useUndoableUpdateStyle() {
|
|
|
2084
2106
|
}
|
|
2085
2107
|
const style = provider.actions.get(styleId, { elementId });
|
|
2086
2108
|
const prevProps = getCurrentProps(style, meta);
|
|
2087
|
-
provider.actions.updateProps(
|
|
2088
|
-
{
|
|
2089
|
-
id: styleId,
|
|
2090
|
-
meta,
|
|
2091
|
-
props
|
|
2092
|
-
},
|
|
2093
|
-
{ elementId }
|
|
2094
|
-
);
|
|
2109
|
+
provider.actions.updateProps({ id: styleId, meta, props }, { elementId });
|
|
2095
2110
|
return prevProps;
|
|
2096
2111
|
},
|
|
2097
|
-
undo: ({
|
|
2112
|
+
undo: ({ provider, styleId }, prevProps) => {
|
|
2098
2113
|
provider.actions.updateProps?.({ id: styleId, meta, props: prevProps }, { elementId });
|
|
2099
2114
|
}
|
|
2100
2115
|
},
|
|
2101
2116
|
{
|
|
2102
|
-
title: ({
|
|
2103
|
-
|
|
2117
|
+
title: ({ provider }) => {
|
|
2118
|
+
if (isVersion331Active) {
|
|
2119
|
+
const isLocal = (0, import_editor_styles_repository8.isElementsStylesProvider)(provider.getKey());
|
|
2120
|
+
if (isLocal) {
|
|
2121
|
+
return localStyleHistoryTitlesV331.title({ elementId });
|
|
2122
|
+
}
|
|
2123
|
+
return defaultHistoryTitlesV331.title({ provider });
|
|
2124
|
+
}
|
|
2125
|
+
return historyTitlesV330.title({ elementId });
|
|
2126
|
+
},
|
|
2127
|
+
subtitle: ({ provider, styleId, propDisplayName }) => {
|
|
2128
|
+
if (isVersion331Active) {
|
|
2129
|
+
const isLocal = (0, import_editor_styles_repository8.isElementsStylesProvider)(provider.getKey());
|
|
2130
|
+
if (isLocal) {
|
|
2131
|
+
return localStyleHistoryTitlesV331.subtitle({ propDisplayName });
|
|
2132
|
+
}
|
|
2133
|
+
return defaultHistoryTitlesV331.subtitle({ provider, styleId, elementId, propDisplayName });
|
|
2134
|
+
}
|
|
2135
|
+
return historyTitlesV330.subtitle;
|
|
2136
|
+
}
|
|
2104
2137
|
}
|
|
2105
2138
|
);
|
|
2106
|
-
}, []);
|
|
2139
|
+
}, [elementId, meta]);
|
|
2107
2140
|
}
|
|
2108
2141
|
function getCurrentProps(style, meta) {
|
|
2109
2142
|
if (!style) {
|
|
@@ -2113,15 +2146,40 @@ function getCurrentProps(style, meta) {
|
|
|
2113
2146
|
const props = variant?.props ?? {};
|
|
2114
2147
|
return structuredClone(props);
|
|
2115
2148
|
}
|
|
2149
|
+
var historyTitlesV330 = {
|
|
2150
|
+
title: ({ elementId }) => (0, import_editor_elements6.getElementLabel)(elementId),
|
|
2151
|
+
subtitle: (0, import_i18n7.__)("Style edited", "elementor")
|
|
2152
|
+
};
|
|
2153
|
+
var defaultHistoryTitlesV331 = {
|
|
2154
|
+
title: ({ provider }) => {
|
|
2155
|
+
const providerLabel = provider.labels?.singular;
|
|
2156
|
+
return providerLabel ? capitalize(providerLabel) : (0, import_i18n7.__)("Style", "elementor");
|
|
2157
|
+
},
|
|
2158
|
+
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
2159
|
+
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
2160
|
+
if (!styleLabel) {
|
|
2161
|
+
throw new Error(`Style ${styleId} not found`);
|
|
2162
|
+
}
|
|
2163
|
+
return (0, import_i18n7.__)(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
2164
|
+
}
|
|
2165
|
+
};
|
|
2166
|
+
var localStyleHistoryTitlesV331 = {
|
|
2167
|
+
title: ({ elementId }) => (0, import_editor_elements6.getElementLabel)(elementId),
|
|
2168
|
+
subtitle: ({ propDisplayName }) => (
|
|
2169
|
+
// translators: %s is the name of the style property being edited
|
|
2170
|
+
(0, import_i18n7.__)(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
2171
|
+
)
|
|
2172
|
+
};
|
|
2173
|
+
function capitalize(str) {
|
|
2174
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
2175
|
+
}
|
|
2116
2176
|
|
|
2117
2177
|
// src/hooks/use-styles-field.ts
|
|
2118
|
-
function useStylesField(propName) {
|
|
2178
|
+
function useStylesField(propName, meta) {
|
|
2119
2179
|
const { values, setValues, canEdit } = useStylesFields([propName]);
|
|
2120
2180
|
const value = values?.[propName] ?? null;
|
|
2121
2181
|
const setValue = (newValue) => {
|
|
2122
|
-
setValues({
|
|
2123
|
-
[propName]: newValue
|
|
2124
|
-
});
|
|
2182
|
+
setValues({ [propName]: newValue }, meta);
|
|
2125
2183
|
};
|
|
2126
2184
|
return { value, setValue, canEdit };
|
|
2127
2185
|
}
|
|
@@ -2129,8 +2187,8 @@ function useStylesField(propName) {
|
|
|
2129
2187
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
2130
2188
|
var React26 = __toESM(require("react"));
|
|
2131
2189
|
var import_editor_controls5 = require("@elementor/editor-controls");
|
|
2132
|
-
var
|
|
2133
|
-
var
|
|
2190
|
+
var import_editor_props7 = require("@elementor/editor-props");
|
|
2191
|
+
var import_editor_styles_repository12 = require("@elementor/editor-styles-repository");
|
|
2134
2192
|
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
2135
2193
|
var import_ui23 = require("@elementor/ui");
|
|
2136
2194
|
var import_i18n11 = require("@wordpress/i18n");
|
|
@@ -2181,7 +2239,7 @@ function useDirection() {
|
|
|
2181
2239
|
|
|
2182
2240
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
2183
2241
|
var import_react22 = require("react");
|
|
2184
|
-
var
|
|
2242
|
+
var import_editor_styles_repository10 = require("@elementor/editor-styles-repository");
|
|
2185
2243
|
var import_i18n8 = require("@wordpress/i18n");
|
|
2186
2244
|
var MAXIMUM_ITEMS = 2;
|
|
2187
2245
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
@@ -2193,7 +2251,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
2193
2251
|
);
|
|
2194
2252
|
const validItems = normalizedItems.map((item) => ({
|
|
2195
2253
|
...item,
|
|
2196
|
-
displayLabel:
|
|
2254
|
+
displayLabel: import_editor_styles_repository10.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n8.__)("Base", "elementor")
|
|
2197
2255
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
2198
2256
|
setItems(validItems);
|
|
2199
2257
|
})();
|
|
@@ -2270,13 +2328,13 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
2270
2328
|
|
|
2271
2329
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
2272
2330
|
var React22 = __toESM(require("react"));
|
|
2273
|
-
var
|
|
2331
|
+
var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
|
|
2274
2332
|
var import_icons5 = require("@elementor/icons");
|
|
2275
2333
|
var import_ui19 = require("@elementor/ui");
|
|
2276
2334
|
var import_i18n9 = require("@wordpress/i18n");
|
|
2277
2335
|
var SIZE4 = "tiny";
|
|
2278
2336
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
2279
|
-
const isBaseStyle = provider ===
|
|
2337
|
+
const isBaseStyle = provider === import_editor_styles_repository11.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
2280
2338
|
const chipIcon = isBaseStyle ? /* @__PURE__ */ React22.createElement(import_ui19.Tooltip, { title: (0, import_i18n9.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React22.createElement(import_icons5.InfoCircleIcon, { fontSize: SIZE4 })) : void 0;
|
|
2281
2339
|
return /* @__PURE__ */ React22.createElement(
|
|
2282
2340
|
import_ui19.Chip,
|
|
@@ -2336,7 +2394,7 @@ var StylesInheritanceInfotip = ({ inheritanceChain, propType, path, label, child
|
|
|
2336
2394
|
const toggleInfotip = () => setShowInfotip((prev) => !prev);
|
|
2337
2395
|
const closeInfotip = () => setShowInfotip(false);
|
|
2338
2396
|
const key = path.join(".");
|
|
2339
|
-
const sectionWidth = useSectionWidth()
|
|
2397
|
+
const sectionWidth = useSectionWidth();
|
|
2340
2398
|
const resolve = (0, import_react23.useMemo)(() => {
|
|
2341
2399
|
return (0, import_editor_canvas2.createPropsResolver)({
|
|
2342
2400
|
transformers: stylesInheritanceTransformersRegistry,
|
|
@@ -2460,9 +2518,9 @@ var StylesInheritanceIndicator = () => {
|
|
|
2460
2518
|
var Indicator = ({ inheritanceChain, path, propType }) => {
|
|
2461
2519
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
2462
2520
|
const currentItem = currentStyleId ? getValueFromInheritanceChain(inheritanceChain, currentStyleId, currentStyleMeta) : null;
|
|
2463
|
-
const hasValue = !(0,
|
|
2521
|
+
const hasValue = !(0, import_editor_props7.isEmpty)(currentItem?.value);
|
|
2464
2522
|
const [actualStyle] = inheritanceChain;
|
|
2465
|
-
if (!(0, import_editor_v1_adapters8.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_31) && actualStyle.provider ===
|
|
2523
|
+
if (!(0, import_editor_v1_adapters8.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_31) && actualStyle.provider === import_editor_styles_repository12.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
2466
2524
|
return null;
|
|
2467
2525
|
}
|
|
2468
2526
|
const isFinalValue = currentItem === actualStyle;
|
|
@@ -2496,8 +2554,10 @@ var getLabel = ({ isFinalValue, hasValue }) => {
|
|
|
2496
2554
|
};
|
|
2497
2555
|
|
|
2498
2556
|
// src/controls-registry/styles-field.tsx
|
|
2499
|
-
var StylesField = ({ bind, placeholder, children }) => {
|
|
2500
|
-
const { value, setValue, canEdit } = useStylesField(bind
|
|
2557
|
+
var StylesField = ({ bind, placeholder, propDisplayName, children }) => {
|
|
2558
|
+
const { value, setValue, canEdit } = useStylesField(bind, {
|
|
2559
|
+
history: { propDisplayName }
|
|
2560
|
+
});
|
|
2501
2561
|
const isVersion331Active = (0, import_editor_v1_adapters9.isExperimentActive)("e_v_3_31");
|
|
2502
2562
|
const stylesInheritanceChain = useStylesInheritanceChain([bind]);
|
|
2503
2563
|
const stylesSchema = (0, import_editor_styles3.getStylesSchema)();
|
|
@@ -2527,7 +2587,7 @@ var StylesField = ({ bind, placeholder, children }) => {
|
|
|
2527
2587
|
value: values,
|
|
2528
2588
|
setValue: setValues,
|
|
2529
2589
|
placeholder: placeholderValues,
|
|
2530
|
-
|
|
2590
|
+
isDisabled: () => !canEdit
|
|
2531
2591
|
},
|
|
2532
2592
|
/* @__PURE__ */ React27.createElement(import_editor_controls6.PropKeyProvider, { bind }, children)
|
|
2533
2593
|
)
|
|
@@ -2655,7 +2715,7 @@ var BorderStyleField = () => /* @__PURE__ */ React35.createElement(StylesField,
|
|
|
2655
2715
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
2656
2716
|
var React36 = __toESM(require("react"));
|
|
2657
2717
|
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
2658
|
-
var
|
|
2718
|
+
var import_editor_props8 = require("@elementor/editor-props");
|
|
2659
2719
|
var import_icons7 = require("@elementor/icons");
|
|
2660
2720
|
var import_ui29 = require("@elementor/ui");
|
|
2661
2721
|
var import_i18n15 = require("@wordpress/i18n");
|
|
@@ -2693,12 +2753,13 @@ var BorderWidthField = () => {
|
|
|
2693
2753
|
label: BORDER_WIDTH_LABEL,
|
|
2694
2754
|
icon: /* @__PURE__ */ React36.createElement(import_icons7.SideAllIcon, { fontSize: "tiny" }),
|
|
2695
2755
|
tooltipLabel: (0, import_i18n15.__)("Adjust borders", "elementor"),
|
|
2696
|
-
multiSizePropTypeUtil:
|
|
2756
|
+
multiSizePropTypeUtil: import_editor_props8.borderWidthPropTypeUtil
|
|
2697
2757
|
}
|
|
2698
2758
|
));
|
|
2699
2759
|
};
|
|
2700
2760
|
|
|
2701
2761
|
// src/components/style-sections/border-section/border-field.tsx
|
|
2762
|
+
var BORDER_LABEL = (0, import_i18n16.__)("Border", "elementor");
|
|
2702
2763
|
var initialBorder = {
|
|
2703
2764
|
"border-width": { $$type: "size", value: { size: 1, unit: "px" } },
|
|
2704
2765
|
"border-color": { $$type: "color", value: "#000000" },
|
|
@@ -2706,15 +2767,19 @@ var initialBorder = {
|
|
|
2706
2767
|
};
|
|
2707
2768
|
var BorderField = () => {
|
|
2708
2769
|
const { values, setValues, canEdit } = useStylesFields(Object.keys(initialBorder));
|
|
2770
|
+
const meta = { history: { propDisplayName: BORDER_LABEL } };
|
|
2709
2771
|
const addBorder = () => {
|
|
2710
|
-
setValues(initialBorder);
|
|
2772
|
+
setValues(initialBorder, meta);
|
|
2711
2773
|
};
|
|
2712
2774
|
const removeBorder = () => {
|
|
2713
|
-
setValues(
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2775
|
+
setValues(
|
|
2776
|
+
{
|
|
2777
|
+
"border-width": null,
|
|
2778
|
+
"border-color": null,
|
|
2779
|
+
"border-style": null
|
|
2780
|
+
},
|
|
2781
|
+
meta
|
|
2782
|
+
);
|
|
2718
2783
|
};
|
|
2719
2784
|
const hasBorder = Object.values(values ?? {}).some(Boolean);
|
|
2720
2785
|
return /* @__PURE__ */ React37.createElement(
|
|
@@ -2724,7 +2789,7 @@ var BorderField = () => {
|
|
|
2724
2789
|
onAdd: addBorder,
|
|
2725
2790
|
onRemove: removeBorder,
|
|
2726
2791
|
disabled: !canEdit,
|
|
2727
|
-
renderLabel: () => /* @__PURE__ */ React37.createElement(import_editor_controls12.ControlFormLabel, null,
|
|
2792
|
+
renderLabel: () => /* @__PURE__ */ React37.createElement(import_editor_controls12.ControlFormLabel, null, BORDER_LABEL)
|
|
2728
2793
|
},
|
|
2729
2794
|
/* @__PURE__ */ React37.createElement(BorderWidthField, null),
|
|
2730
2795
|
/* @__PURE__ */ React37.createElement(BorderColorField, null),
|
|
@@ -2735,7 +2800,7 @@ var BorderField = () => {
|
|
|
2735
2800
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
2736
2801
|
var React39 = __toESM(require("react"));
|
|
2737
2802
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
2738
|
-
var
|
|
2803
|
+
var import_editor_props9 = require("@elementor/editor-props");
|
|
2739
2804
|
var import_icons8 = require("@elementor/icons");
|
|
2740
2805
|
var import_ui31 = require("@elementor/ui");
|
|
2741
2806
|
var import_i18n17 = require("@wordpress/i18n");
|
|
@@ -2789,7 +2854,7 @@ var BorderRadiusField = () => {
|
|
|
2789
2854
|
label: BORDER_RADIUS_LABEL,
|
|
2790
2855
|
icon: /* @__PURE__ */ React39.createElement(import_icons8.BorderCornersIcon, { fontSize: "tiny" }),
|
|
2791
2856
|
tooltipLabel: (0, import_i18n17.__)("Adjust corners", "elementor"),
|
|
2792
|
-
multiSizePropTypeUtil:
|
|
2857
|
+
multiSizePropTypeUtil: import_editor_props9.borderRadiusPropTypeUtil
|
|
2793
2858
|
}
|
|
2794
2859
|
)));
|
|
2795
2860
|
};
|
|
@@ -2816,17 +2881,19 @@ var OpacityControlField = () => {
|
|
|
2816
2881
|
|
|
2817
2882
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
2818
2883
|
var BOX_SHADOW_LABEL = (0, import_i18n19.__)("Box shadow", "elementor");
|
|
2819
|
-
var FILTER_LABEL = (0, import_i18n19.__)("
|
|
2884
|
+
var FILTER_LABEL = (0, import_i18n19.__)("Filters", "elementor");
|
|
2885
|
+
var TRANSFORM_LABEL = (0, import_i18n19.__)("Transform", "elementor");
|
|
2886
|
+
var BACKDROP_FILTER_LABEL = (0, import_i18n19.__)("Backdrop filters", "elementor");
|
|
2820
2887
|
var EffectsSection = () => {
|
|
2821
2888
|
const isVersion331Active = (0, import_editor_v1_adapters10.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_31);
|
|
2822
|
-
return /* @__PURE__ */ React42.createElement(SectionContent, null, /* @__PURE__ */ React42.createElement(OpacityControlField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.BoxShadowRepeaterControl, null)), isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.FilterRepeaterControl, null))));
|
|
2889
|
+
return /* @__PURE__ */ React42.createElement(SectionContent, null, isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(OpacityControlField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null)), /* @__PURE__ */ React42.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.BoxShadowRepeaterControl, null)), isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.TransformRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.FilterRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls15.FilterRepeaterControl, { filterPropName: "backdrop-filter" }))));
|
|
2823
2890
|
};
|
|
2824
2891
|
|
|
2825
2892
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
2826
2893
|
var React54 = __toESM(require("react"));
|
|
2827
2894
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
2828
2895
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
2829
|
-
var
|
|
2896
|
+
var import_i18n31 = require("@wordpress/i18n");
|
|
2830
2897
|
|
|
2831
2898
|
// src/hooks/use-computed-style.ts
|
|
2832
2899
|
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
@@ -2858,12 +2925,14 @@ var React44 = __toESM(require("react"));
|
|
|
2858
2925
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
2859
2926
|
var import_icons9 = require("@elementor/icons");
|
|
2860
2927
|
var import_ui33 = require("@elementor/ui");
|
|
2861
|
-
var
|
|
2928
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
2862
2929
|
|
|
2863
2930
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
2864
2931
|
var React43 = __toESM(require("react"));
|
|
2865
2932
|
var import_react25 = require("react");
|
|
2866
2933
|
var import_ui32 = require("@elementor/ui");
|
|
2934
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
2935
|
+
var FLEX_DIRECTION_LABEL = (0, import_i18n20.__)("Flex direction", "elementor");
|
|
2867
2936
|
var CLOCKWISE_ANGLES = {
|
|
2868
2937
|
row: 0,
|
|
2869
2938
|
column: 90,
|
|
@@ -2888,7 +2957,9 @@ var RotatedIcon = ({
|
|
|
2888
2957
|
return /* @__PURE__ */ React43.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
2889
2958
|
};
|
|
2890
2959
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
2891
|
-
const { value: direction } = useStylesField("flex-direction"
|
|
2960
|
+
const { value: direction } = useStylesField("flex-direction", {
|
|
2961
|
+
history: { propDisplayName: FLEX_DIRECTION_LABEL }
|
|
2962
|
+
});
|
|
2892
2963
|
const isRtl = "rtl" === (0, import_ui32.useTheme)().direction;
|
|
2893
2964
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
2894
2965
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
@@ -2904,7 +2975,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
2904
2975
|
};
|
|
2905
2976
|
|
|
2906
2977
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
2907
|
-
var ALIGN_CONTENT_LABEL = (0,
|
|
2978
|
+
var ALIGN_CONTENT_LABEL = (0, import_i18n21.__)("Align content", "elementor");
|
|
2908
2979
|
var StartIcon = (0, import_ui33.withDirection)(import_icons9.JustifyTopIcon);
|
|
2909
2980
|
var EndIcon = (0, import_ui33.withDirection)(import_icons9.JustifyBottomIcon);
|
|
2910
2981
|
var iconProps = {
|
|
@@ -2915,37 +2986,37 @@ var iconProps = {
|
|
|
2915
2986
|
var options = [
|
|
2916
2987
|
{
|
|
2917
2988
|
value: "start",
|
|
2918
|
-
label: (0,
|
|
2989
|
+
label: (0, import_i18n21.__)("Start", "elementor"),
|
|
2919
2990
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
2920
2991
|
showTooltip: true
|
|
2921
2992
|
},
|
|
2922
2993
|
{
|
|
2923
2994
|
value: "center",
|
|
2924
|
-
label: (0,
|
|
2995
|
+
label: (0, import_i18n21.__)("Center", "elementor"),
|
|
2925
2996
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons9.JustifyCenterIcon, size, ...iconProps }),
|
|
2926
2997
|
showTooltip: true
|
|
2927
2998
|
},
|
|
2928
2999
|
{
|
|
2929
3000
|
value: "end",
|
|
2930
|
-
label: (0,
|
|
3001
|
+
label: (0, import_i18n21.__)("End", "elementor"),
|
|
2931
3002
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
2932
3003
|
showTooltip: true
|
|
2933
3004
|
},
|
|
2934
3005
|
{
|
|
2935
3006
|
value: "space-between",
|
|
2936
|
-
label: (0,
|
|
3007
|
+
label: (0, import_i18n21.__)("Space between", "elementor"),
|
|
2937
3008
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons9.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
2938
3009
|
showTooltip: true
|
|
2939
3010
|
},
|
|
2940
3011
|
{
|
|
2941
3012
|
value: "space-around",
|
|
2942
|
-
label: (0,
|
|
3013
|
+
label: (0, import_i18n21.__)("Space around", "elementor"),
|
|
2943
3014
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons9.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
2944
3015
|
showTooltip: true
|
|
2945
3016
|
},
|
|
2946
3017
|
{
|
|
2947
3018
|
value: "space-evenly",
|
|
2948
|
-
label: (0,
|
|
3019
|
+
label: (0, import_i18n21.__)("Space evenly", "elementor"),
|
|
2949
3020
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons9.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
2950
3021
|
showTooltip: true
|
|
2951
3022
|
}
|
|
@@ -2957,8 +3028,8 @@ var React45 = __toESM(require("react"));
|
|
|
2957
3028
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
2958
3029
|
var import_icons10 = require("@elementor/icons");
|
|
2959
3030
|
var import_ui34 = require("@elementor/ui");
|
|
2960
|
-
var
|
|
2961
|
-
var ALIGN_ITEMS_LABEL = (0,
|
|
3031
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
3032
|
+
var ALIGN_ITEMS_LABEL = (0, import_i18n22.__)("Align items", "elementor");
|
|
2962
3033
|
var StartIcon2 = (0, import_ui34.withDirection)(import_icons10.LayoutAlignLeftIcon);
|
|
2963
3034
|
var EndIcon2 = (0, import_ui34.withDirection)(import_icons10.LayoutAlignRightIcon);
|
|
2964
3035
|
var iconProps2 = {
|
|
@@ -2968,25 +3039,25 @@ var iconProps2 = {
|
|
|
2968
3039
|
var options2 = [
|
|
2969
3040
|
{
|
|
2970
3041
|
value: "start",
|
|
2971
|
-
label: (0,
|
|
3042
|
+
label: (0, import_i18n22.__)("Start", "elementor"),
|
|
2972
3043
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
2973
3044
|
showTooltip: true
|
|
2974
3045
|
},
|
|
2975
3046
|
{
|
|
2976
3047
|
value: "center",
|
|
2977
|
-
label: (0,
|
|
3048
|
+
label: (0, import_i18n22.__)("Center", "elementor"),
|
|
2978
3049
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons10.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
2979
3050
|
showTooltip: true
|
|
2980
3051
|
},
|
|
2981
3052
|
{
|
|
2982
3053
|
value: "end",
|
|
2983
|
-
label: (0,
|
|
3054
|
+
label: (0, import_i18n22.__)("End", "elementor"),
|
|
2984
3055
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
2985
3056
|
showTooltip: true
|
|
2986
3057
|
},
|
|
2987
3058
|
{
|
|
2988
3059
|
value: "stretch",
|
|
2989
|
-
label: (0,
|
|
3060
|
+
label: (0, import_i18n22.__)("Stretch", "elementor"),
|
|
2990
3061
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons10.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
2991
3062
|
showTooltip: true
|
|
2992
3063
|
}
|
|
@@ -3000,8 +3071,8 @@ var React46 = __toESM(require("react"));
|
|
|
3000
3071
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3001
3072
|
var import_icons11 = require("@elementor/icons");
|
|
3002
3073
|
var import_ui35 = require("@elementor/ui");
|
|
3003
|
-
var
|
|
3004
|
-
var ALIGN_SELF_LABEL = (0,
|
|
3074
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
3075
|
+
var ALIGN_SELF_LABEL = (0, import_i18n23.__)("Align self", "elementor");
|
|
3005
3076
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3006
3077
|
row: 90,
|
|
3007
3078
|
"row-reverse": 90,
|
|
@@ -3016,7 +3087,7 @@ var iconProps3 = {
|
|
|
3016
3087
|
var getOptions = (parentStyleDirection) => [
|
|
3017
3088
|
{
|
|
3018
3089
|
value: "start",
|
|
3019
|
-
label: (0,
|
|
3090
|
+
label: (0, import_i18n23.__)("Start", "elementor"),
|
|
3020
3091
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3021
3092
|
RotatedIcon,
|
|
3022
3093
|
{
|
|
@@ -3030,7 +3101,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3030
3101
|
},
|
|
3031
3102
|
{
|
|
3032
3103
|
value: "center",
|
|
3033
|
-
label: (0,
|
|
3104
|
+
label: (0, import_i18n23.__)("Center", "elementor"),
|
|
3034
3105
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3035
3106
|
RotatedIcon,
|
|
3036
3107
|
{
|
|
@@ -3044,7 +3115,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3044
3115
|
},
|
|
3045
3116
|
{
|
|
3046
3117
|
value: "end",
|
|
3047
|
-
label: (0,
|
|
3118
|
+
label: (0, import_i18n23.__)("End", "elementor"),
|
|
3048
3119
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3049
3120
|
RotatedIcon,
|
|
3050
3121
|
{
|
|
@@ -3058,7 +3129,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3058
3129
|
},
|
|
3059
3130
|
{
|
|
3060
3131
|
value: "stretch",
|
|
3061
|
-
label: (0,
|
|
3132
|
+
label: (0, import_i18n23.__)("Stretch", "elementor"),
|
|
3062
3133
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3063
3134
|
RotatedIcon,
|
|
3064
3135
|
{
|
|
@@ -3077,25 +3148,25 @@ var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React46.creat
|
|
|
3077
3148
|
var React47 = __toESM(require("react"));
|
|
3078
3149
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3079
3150
|
var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
|
|
3080
|
-
var
|
|
3081
|
-
var DISPLAY_LABEL = (0,
|
|
3151
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
3152
|
+
var DISPLAY_LABEL = (0, import_i18n24.__)("Display", "elementor");
|
|
3082
3153
|
var displayFieldItems = [
|
|
3083
3154
|
{
|
|
3084
3155
|
value: "block",
|
|
3085
|
-
renderContent: () => (0,
|
|
3086
|
-
label: (0,
|
|
3156
|
+
renderContent: () => (0, import_i18n24.__)("Block", "elementor"),
|
|
3157
|
+
label: (0, import_i18n24.__)("Block", "elementor"),
|
|
3087
3158
|
showTooltip: true
|
|
3088
3159
|
},
|
|
3089
3160
|
{
|
|
3090
3161
|
value: "flex",
|
|
3091
|
-
renderContent: () => (0,
|
|
3092
|
-
label: (0,
|
|
3162
|
+
renderContent: () => (0, import_i18n24.__)("Flex", "elementor"),
|
|
3163
|
+
label: (0, import_i18n24.__)("Flex", "elementor"),
|
|
3093
3164
|
showTooltip: true
|
|
3094
3165
|
},
|
|
3095
3166
|
{
|
|
3096
3167
|
value: "inline-block",
|
|
3097
|
-
renderContent: () => (0,
|
|
3098
|
-
label: (0,
|
|
3168
|
+
renderContent: () => (0, import_i18n24.__)("In-blk", "elementor"),
|
|
3169
|
+
label: (0, import_i18n24.__)("Inline-block", "elementor"),
|
|
3099
3170
|
showTooltip: true
|
|
3100
3171
|
}
|
|
3101
3172
|
];
|
|
@@ -3105,15 +3176,15 @@ var DisplayField = () => {
|
|
|
3105
3176
|
if (isDisplayNoneFeatureActive) {
|
|
3106
3177
|
items3.push({
|
|
3107
3178
|
value: "none",
|
|
3108
|
-
renderContent: () => (0,
|
|
3109
|
-
label: (0,
|
|
3179
|
+
renderContent: () => (0, import_i18n24.__)("None", "elementor"),
|
|
3180
|
+
label: (0, import_i18n24.__)("None", "elementor"),
|
|
3110
3181
|
showTooltip: true
|
|
3111
3182
|
});
|
|
3112
3183
|
}
|
|
3113
3184
|
items3.push({
|
|
3114
3185
|
value: "inline-flex",
|
|
3115
|
-
renderContent: () => (0,
|
|
3116
|
-
label: (0,
|
|
3186
|
+
renderContent: () => (0, import_i18n24.__)("In-flx", "elementor"),
|
|
3187
|
+
label: (0, import_i18n24.__)("Inline-flex", "elementor"),
|
|
3117
3188
|
showTooltip: true
|
|
3118
3189
|
});
|
|
3119
3190
|
const placeholder = useDisplayPlaceholderValue();
|
|
@@ -3126,12 +3197,12 @@ var React48 = __toESM(require("react"));
|
|
|
3126
3197
|
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
3127
3198
|
var import_icons12 = require("@elementor/icons");
|
|
3128
3199
|
var import_ui36 = require("@elementor/ui");
|
|
3129
|
-
var
|
|
3130
|
-
var
|
|
3200
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
3201
|
+
var FLEX_DIRECTION_LABEL2 = (0, import_i18n25.__)("Direction", "elementor");
|
|
3131
3202
|
var options3 = [
|
|
3132
3203
|
{
|
|
3133
3204
|
value: "row",
|
|
3134
|
-
label: (0,
|
|
3205
|
+
label: (0, import_i18n25.__)("Row", "elementor"),
|
|
3135
3206
|
renderContent: ({ size }) => {
|
|
3136
3207
|
const StartIcon5 = (0, import_ui36.withDirection)(import_icons12.ArrowRightIcon);
|
|
3137
3208
|
return /* @__PURE__ */ React48.createElement(StartIcon5, { fontSize: size });
|
|
@@ -3140,13 +3211,13 @@ var options3 = [
|
|
|
3140
3211
|
},
|
|
3141
3212
|
{
|
|
3142
3213
|
value: "column",
|
|
3143
|
-
label: (0,
|
|
3214
|
+
label: (0, import_i18n25.__)("Column", "elementor"),
|
|
3144
3215
|
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
3145
3216
|
showTooltip: true
|
|
3146
3217
|
},
|
|
3147
3218
|
{
|
|
3148
3219
|
value: "row-reverse",
|
|
3149
|
-
label: (0,
|
|
3220
|
+
label: (0, import_i18n25.__)("Reversed row", "elementor"),
|
|
3150
3221
|
renderContent: ({ size }) => {
|
|
3151
3222
|
const EndIcon5 = (0, import_ui36.withDirection)(import_icons12.ArrowLeftIcon);
|
|
3152
3223
|
return /* @__PURE__ */ React48.createElement(EndIcon5, { fontSize: size });
|
|
@@ -3155,13 +3226,13 @@ var options3 = [
|
|
|
3155
3226
|
},
|
|
3156
3227
|
{
|
|
3157
3228
|
value: "column-reverse",
|
|
3158
|
-
label: (0,
|
|
3229
|
+
label: (0, import_i18n25.__)("Reversed column", "elementor"),
|
|
3159
3230
|
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
3160
3231
|
showTooltip: true
|
|
3161
3232
|
}
|
|
3162
3233
|
];
|
|
3163
3234
|
var FlexDirectionField = () => {
|
|
3164
|
-
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "flex-direction", propDisplayName:
|
|
3235
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React48.createElement(UiProviders, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React48.createElement(import_editor_controls20.ToggleControl, { options: options3 }))));
|
|
3165
3236
|
};
|
|
3166
3237
|
|
|
3167
3238
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
@@ -3170,8 +3241,8 @@ var import_react26 = require("react");
|
|
|
3170
3241
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3171
3242
|
var import_icons13 = require("@elementor/icons");
|
|
3172
3243
|
var import_ui37 = require("@elementor/ui");
|
|
3173
|
-
var
|
|
3174
|
-
var ORDER_LABEL = (0,
|
|
3244
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
3245
|
+
var ORDER_LABEL = (0, import_i18n26.__)("Order", "elementor");
|
|
3175
3246
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3176
3247
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3177
3248
|
var FIRST = "first";
|
|
@@ -3184,26 +3255,36 @@ var orderValueMap = {
|
|
|
3184
3255
|
var items = [
|
|
3185
3256
|
{
|
|
3186
3257
|
value: FIRST,
|
|
3187
|
-
label: (0,
|
|
3258
|
+
label: (0, import_i18n26.__)("First", "elementor"),
|
|
3188
3259
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons13.ArrowUpSmallIcon, { fontSize: size }),
|
|
3189
3260
|
showTooltip: true
|
|
3190
3261
|
},
|
|
3191
3262
|
{
|
|
3192
3263
|
value: LAST,
|
|
3193
|
-
label: (0,
|
|
3264
|
+
label: (0, import_i18n26.__)("Last", "elementor"),
|
|
3194
3265
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons13.ArrowDownSmallIcon, { fontSize: size }),
|
|
3195
3266
|
showTooltip: true
|
|
3196
3267
|
},
|
|
3197
3268
|
{
|
|
3198
3269
|
value: CUSTOM,
|
|
3199
|
-
label: (0,
|
|
3270
|
+
label: (0, import_i18n26.__)("Custom", "elementor"),
|
|
3200
3271
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
3201
3272
|
showTooltip: true
|
|
3202
3273
|
}
|
|
3203
3274
|
];
|
|
3204
3275
|
var FlexOrderField = () => {
|
|
3205
|
-
const {
|
|
3276
|
+
const {
|
|
3277
|
+
value: order,
|
|
3278
|
+
setValue: setOrder,
|
|
3279
|
+
canEdit
|
|
3280
|
+
} = useStylesField("order", {
|
|
3281
|
+
history: { propDisplayName: ORDER_LABEL }
|
|
3282
|
+
});
|
|
3206
3283
|
const [groupControlValue, setGroupControlValue] = (0, import_react26.useState)(getGroupControlValue(order?.value || null));
|
|
3284
|
+
(0, import_react26.useEffect)(() => {
|
|
3285
|
+
const newGroupControlValue = getGroupControlValue(order?.value || null);
|
|
3286
|
+
setGroupControlValue(newGroupControlValue);
|
|
3287
|
+
}, [order?.value]);
|
|
3207
3288
|
const handleToggleButtonChange = (group) => {
|
|
3208
3289
|
setGroupControlValue(group);
|
|
3209
3290
|
if (!group || group === CUSTOM) {
|
|
@@ -3212,7 +3293,7 @@ var FlexOrderField = () => {
|
|
|
3212
3293
|
}
|
|
3213
3294
|
setOrder({ $$type: "number", value: orderValueMap[group] });
|
|
3214
3295
|
};
|
|
3215
|
-
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(
|
|
3296
|
+
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(SectionContent, null, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React49.createElement(
|
|
3216
3297
|
import_editor_controls21.ControlToggleButtonGroup,
|
|
3217
3298
|
{
|
|
3218
3299
|
items,
|
|
@@ -3221,14 +3302,14 @@ var FlexOrderField = () => {
|
|
|
3221
3302
|
exclusive: true,
|
|
3222
3303
|
disabled: !canEdit
|
|
3223
3304
|
}
|
|
3224
|
-
), CUSTOM === groupControlValue && /* @__PURE__ */ React49.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React49.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(ControlLabel, null, (0,
|
|
3305
|
+
)), CUSTOM === groupControlValue && /* @__PURE__ */ React49.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React49.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(ControlLabel, null, (0, import_i18n26.__)("Custom order", "elementor"))), /* @__PURE__ */ React49.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React49.createElement(
|
|
3225
3306
|
import_editor_controls21.NumberControl,
|
|
3226
3307
|
{
|
|
3227
3308
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
3228
3309
|
max: LAST_DEFAULT_VALUE - 1,
|
|
3229
3310
|
shouldForceInt: true
|
|
3230
3311
|
}
|
|
3231
|
-
))))))
|
|
3312
|
+
))))));
|
|
3232
3313
|
};
|
|
3233
3314
|
var getGroupControlValue = (order) => {
|
|
3234
3315
|
if (LAST_DEFAULT_VALUE === order) {
|
|
@@ -3244,27 +3325,27 @@ var getGroupControlValue = (order) => {
|
|
|
3244
3325
|
var React50 = __toESM(require("react"));
|
|
3245
3326
|
var import_react27 = require("react");
|
|
3246
3327
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
3247
|
-
var
|
|
3328
|
+
var import_editor_props10 = require("@elementor/editor-props");
|
|
3248
3329
|
var import_icons14 = require("@elementor/icons");
|
|
3249
|
-
var
|
|
3250
|
-
var FLEX_SIZE_LABEL = (0,
|
|
3330
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
3331
|
+
var FLEX_SIZE_LABEL = (0, import_i18n27.__)("Flex Size", "elementor");
|
|
3251
3332
|
var DEFAULT = 1;
|
|
3252
3333
|
var items2 = [
|
|
3253
3334
|
{
|
|
3254
3335
|
value: "flex-grow",
|
|
3255
|
-
label: (0,
|
|
3336
|
+
label: (0, import_i18n27.__)("Grow", "elementor"),
|
|
3256
3337
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons14.ExpandIcon, { fontSize: size }),
|
|
3257
3338
|
showTooltip: true
|
|
3258
3339
|
},
|
|
3259
3340
|
{
|
|
3260
3341
|
value: "flex-shrink",
|
|
3261
|
-
label: (0,
|
|
3342
|
+
label: (0, import_i18n27.__)("Shrink", "elementor"),
|
|
3262
3343
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons14.ShrinkIcon, { fontSize: size }),
|
|
3263
3344
|
showTooltip: true
|
|
3264
3345
|
},
|
|
3265
3346
|
{
|
|
3266
3347
|
value: "custom",
|
|
3267
|
-
label: (0,
|
|
3348
|
+
label: (0, import_i18n27.__)("Custom", "elementor"),
|
|
3268
3349
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons14.PencilIcon, { fontSize: size }),
|
|
3269
3350
|
showTooltip: true
|
|
3270
3351
|
}
|
|
@@ -3277,27 +3358,27 @@ var FlexSizeField = () => {
|
|
|
3277
3358
|
const currentGroup = (0, import_react27.useMemo)(() => getActiveGroup({ grow, shrink, basis }), [grow, shrink, basis]), [activeGroup, setActiveGroup] = (0, import_react27.useState)(currentGroup);
|
|
3278
3359
|
const onChangeGroup = (group = null) => {
|
|
3279
3360
|
setActiveGroup(group);
|
|
3361
|
+
let props;
|
|
3280
3362
|
if (!group || group === "custom") {
|
|
3281
|
-
|
|
3363
|
+
props = {
|
|
3282
3364
|
"flex-basis": null,
|
|
3283
3365
|
"flex-grow": null,
|
|
3284
3366
|
"flex-shrink": null
|
|
3285
|
-
}
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
if (group === "flex-grow") {
|
|
3289
|
-
setValues({
|
|
3367
|
+
};
|
|
3368
|
+
} else if (group === "flex-grow") {
|
|
3369
|
+
props = {
|
|
3290
3370
|
"flex-basis": null,
|
|
3291
|
-
"flex-grow":
|
|
3371
|
+
"flex-grow": import_editor_props10.numberPropTypeUtil.create(DEFAULT),
|
|
3292
3372
|
"flex-shrink": null
|
|
3293
|
-
}
|
|
3294
|
-
|
|
3373
|
+
};
|
|
3374
|
+
} else {
|
|
3375
|
+
props = {
|
|
3376
|
+
"flex-basis": null,
|
|
3377
|
+
"flex-grow": null,
|
|
3378
|
+
"flex-shrink": import_editor_props10.numberPropTypeUtil.create(DEFAULT)
|
|
3379
|
+
};
|
|
3295
3380
|
}
|
|
3296
|
-
setValues({
|
|
3297
|
-
"flex-basis": null,
|
|
3298
|
-
"flex-grow": null,
|
|
3299
|
-
"flex-shrink": import_editor_props9.numberPropTypeUtil.create(DEFAULT)
|
|
3300
|
-
});
|
|
3381
|
+
setValues(props, { history: { propDisplayName: FLEX_SIZE_LABEL } });
|
|
3301
3382
|
};
|
|
3302
3383
|
return /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(SectionContent, null, /* @__PURE__ */ React50.createElement(StylesField, { bind: activeGroup ?? "", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(
|
|
3303
3384
|
import_editor_controls22.ControlToggleButtonGroup,
|
|
@@ -3312,7 +3393,7 @@ var FlexSizeField = () => {
|
|
|
3312
3393
|
};
|
|
3313
3394
|
var FlexCustomField = () => {
|
|
3314
3395
|
const flexBasisRowRef = (0, import_react27.useRef)(null);
|
|
3315
|
-
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-grow", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: (0,
|
|
3396
|
+
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-grow", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: (0, import_i18n27.__)("Grow", "elementor") }, /* @__PURE__ */ React50.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-shrink", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: (0, import_i18n27.__)("Shrink", "elementor") }, /* @__PURE__ */ React50.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-basis", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: (0, import_i18n27.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React50.createElement(import_editor_controls22.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef }))));
|
|
3316
3397
|
};
|
|
3317
3398
|
var getActiveGroup = ({
|
|
3318
3399
|
grow,
|
|
@@ -3337,8 +3418,8 @@ var getActiveGroup = ({
|
|
|
3337
3418
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
3338
3419
|
var React51 = __toESM(require("react"));
|
|
3339
3420
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
3340
|
-
var
|
|
3341
|
-
var GAPS_LABEL = (0,
|
|
3421
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
3422
|
+
var GAPS_LABEL = (0, import_i18n28.__)("Gaps", "elementor");
|
|
3342
3423
|
var GapControlField = () => {
|
|
3343
3424
|
return /* @__PURE__ */ React51.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React51.createElement(import_editor_controls23.GapControl, { label: GAPS_LABEL }));
|
|
3344
3425
|
};
|
|
@@ -3348,8 +3429,8 @@ var React52 = __toESM(require("react"));
|
|
|
3348
3429
|
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
3349
3430
|
var import_icons15 = require("@elementor/icons");
|
|
3350
3431
|
var import_ui38 = require("@elementor/ui");
|
|
3351
|
-
var
|
|
3352
|
-
var JUSTIFY_CONTENT_LABEL = (0,
|
|
3432
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
3433
|
+
var JUSTIFY_CONTENT_LABEL = (0, import_i18n29.__)("Justify content", "elementor");
|
|
3353
3434
|
var StartIcon4 = (0, import_ui38.withDirection)(import_icons15.JustifyTopIcon);
|
|
3354
3435
|
var EndIcon4 = (0, import_ui38.withDirection)(import_icons15.JustifyBottomIcon);
|
|
3355
3436
|
var iconProps4 = {
|
|
@@ -3359,37 +3440,37 @@ var iconProps4 = {
|
|
|
3359
3440
|
var options4 = [
|
|
3360
3441
|
{
|
|
3361
3442
|
value: "flex-start",
|
|
3362
|
-
label: (0,
|
|
3443
|
+
label: (0, import_i18n29.__)("Start", "elementor"),
|
|
3363
3444
|
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
3364
3445
|
showTooltip: true
|
|
3365
3446
|
},
|
|
3366
3447
|
{
|
|
3367
3448
|
value: "center",
|
|
3368
|
-
label: (0,
|
|
3449
|
+
label: (0, import_i18n29.__)("Center", "elementor"),
|
|
3369
3450
|
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(RotatedIcon, { icon: import_icons15.JustifyCenterIcon, size, ...iconProps4 }),
|
|
3370
3451
|
showTooltip: true
|
|
3371
3452
|
},
|
|
3372
3453
|
{
|
|
3373
3454
|
value: "flex-end",
|
|
3374
|
-
label: (0,
|
|
3455
|
+
label: (0, import_i18n29.__)("End", "elementor"),
|
|
3375
3456
|
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
3376
3457
|
showTooltip: true
|
|
3377
3458
|
},
|
|
3378
3459
|
{
|
|
3379
3460
|
value: "space-between",
|
|
3380
|
-
label: (0,
|
|
3461
|
+
label: (0, import_i18n29.__)("Space between", "elementor"),
|
|
3381
3462
|
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(RotatedIcon, { icon: import_icons15.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
3382
3463
|
showTooltip: true
|
|
3383
3464
|
},
|
|
3384
3465
|
{
|
|
3385
3466
|
value: "space-around",
|
|
3386
|
-
label: (0,
|
|
3467
|
+
label: (0, import_i18n29.__)("Space around", "elementor"),
|
|
3387
3468
|
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(RotatedIcon, { icon: import_icons15.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
3388
3469
|
showTooltip: true
|
|
3389
3470
|
},
|
|
3390
3471
|
{
|
|
3391
3472
|
value: "space-evenly",
|
|
3392
|
-
label: (0,
|
|
3473
|
+
label: (0, import_i18n29.__)("Space evenly", "elementor"),
|
|
3393
3474
|
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(RotatedIcon, { icon: import_icons15.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
3394
3475
|
showTooltip: true
|
|
3395
3476
|
}
|
|
@@ -3400,24 +3481,24 @@ var JustifyContentField = () => /* @__PURE__ */ React52.createElement(StylesFiel
|
|
|
3400
3481
|
var React53 = __toESM(require("react"));
|
|
3401
3482
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
3402
3483
|
var import_icons16 = require("@elementor/icons");
|
|
3403
|
-
var
|
|
3404
|
-
var FLEX_WRAP_LABEL = (0,
|
|
3484
|
+
var import_i18n30 = require("@wordpress/i18n");
|
|
3485
|
+
var FLEX_WRAP_LABEL = (0, import_i18n30.__)("Wrap", "elementor");
|
|
3405
3486
|
var options5 = [
|
|
3406
3487
|
{
|
|
3407
3488
|
value: "nowrap",
|
|
3408
|
-
label: (0,
|
|
3489
|
+
label: (0, import_i18n30.__)("No wrap", "elementor"),
|
|
3409
3490
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons16.ArrowRightIcon, { fontSize: size }),
|
|
3410
3491
|
showTooltip: true
|
|
3411
3492
|
},
|
|
3412
3493
|
{
|
|
3413
3494
|
value: "wrap",
|
|
3414
|
-
label: (0,
|
|
3495
|
+
label: (0, import_i18n30.__)("Wrap", "elementor"),
|
|
3415
3496
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons16.ArrowBackIcon, { fontSize: size }),
|
|
3416
3497
|
showTooltip: true
|
|
3417
3498
|
},
|
|
3418
3499
|
{
|
|
3419
3500
|
value: "wrap-reverse",
|
|
3420
|
-
label: (0,
|
|
3501
|
+
label: (0, import_i18n30.__)("Reversed wrap", "elementor"),
|
|
3421
3502
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons16.ArrowForwardIcon, { fontSize: size }),
|
|
3422
3503
|
showTooltip: true
|
|
3423
3504
|
}
|
|
@@ -3427,8 +3508,12 @@ var WrapField = () => {
|
|
|
3427
3508
|
};
|
|
3428
3509
|
|
|
3429
3510
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3511
|
+
var DISPLAY_LABEL2 = (0, import_i18n31.__)("Display", "elementor");
|
|
3512
|
+
var FLEX_WRAP_LABEL2 = (0, import_i18n31.__)("Flex wrap", "elementor");
|
|
3430
3513
|
var LayoutSection = () => {
|
|
3431
|
-
const { value: display } = useStylesField("display"
|
|
3514
|
+
const { value: display } = useStylesField("display", {
|
|
3515
|
+
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
3516
|
+
});
|
|
3432
3517
|
const displayPlaceholder = useDisplayPlaceholderValue();
|
|
3433
3518
|
const isDisplayFlex = shouldDisplayFlexFields(display, displayPlaceholder);
|
|
3434
3519
|
const { element } = useElement();
|
|
@@ -3438,10 +3523,12 @@ var LayoutSection = () => {
|
|
|
3438
3523
|
return /* @__PURE__ */ React54.createElement(SectionContent, null, /* @__PURE__ */ React54.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React54.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React54.createElement(FlexChildFields, { parentStyleDirection }));
|
|
3439
3524
|
};
|
|
3440
3525
|
var FlexFields = () => {
|
|
3441
|
-
const { value: flexWrap } = useStylesField("flex-wrap"
|
|
3526
|
+
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
3527
|
+
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
3528
|
+
});
|
|
3442
3529
|
return /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(FlexDirectionField, null), /* @__PURE__ */ React54.createElement(JustifyContentField, null), /* @__PURE__ */ React54.createElement(AlignItemsField, null), /* @__PURE__ */ React54.createElement(PanelDivider, null), /* @__PURE__ */ React54.createElement(GapControlField, null), /* @__PURE__ */ React54.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React54.createElement(AlignContentField, null));
|
|
3443
3530
|
};
|
|
3444
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(PanelDivider, null), /* @__PURE__ */ React54.createElement(import_editor_controls26.ControlFormLabel, null, (0,
|
|
3531
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(PanelDivider, null), /* @__PURE__ */ React54.createElement(import_editor_controls26.ControlFormLabel, null, (0, import_i18n31.__)("Flex child", "elementor")), /* @__PURE__ */ React54.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React54.createElement(FlexOrderField, null), /* @__PURE__ */ React54.createElement(FlexSizeField, null));
|
|
3445
3532
|
var shouldDisplayFlexFields = (display, local) => {
|
|
3446
3533
|
const value = display?.value ?? local?.value;
|
|
3447
3534
|
if (!value) {
|
|
@@ -3454,6 +3541,7 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
3454
3541
|
var React59 = __toESM(require("react"));
|
|
3455
3542
|
var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
|
|
3456
3543
|
var import_session3 = require("@elementor/session");
|
|
3544
|
+
var import_i18n36 = require("@wordpress/i18n");
|
|
3457
3545
|
|
|
3458
3546
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
3459
3547
|
var React55 = __toESM(require("react"));
|
|
@@ -3461,7 +3549,7 @@ var import_react28 = require("react");
|
|
|
3461
3549
|
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
3462
3550
|
var import_icons17 = require("@elementor/icons");
|
|
3463
3551
|
var import_ui39 = require("@elementor/ui");
|
|
3464
|
-
var
|
|
3552
|
+
var import_i18n32 = require("@wordpress/i18n");
|
|
3465
3553
|
var InlineStartIcon2 = (0, import_ui39.withDirection)(import_icons17.SideLeftIcon);
|
|
3466
3554
|
var InlineEndIcon2 = (0, import_ui39.withDirection)(import_icons17.SideRightIcon);
|
|
3467
3555
|
var sideIcons = {
|
|
@@ -3470,19 +3558,19 @@ var sideIcons = {
|
|
|
3470
3558
|
"inset-inline-start": /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
3471
3559
|
"inset-inline-end": /* @__PURE__ */ React55.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
3472
3560
|
};
|
|
3473
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3474
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3561
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n32.__)("Right", "elementor") : (0, import_i18n32.__)("Left", "elementor");
|
|
3562
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n32.__)("Left", "elementor") : (0, import_i18n32.__)("Right", "elementor");
|
|
3475
3563
|
var DimensionsField = () => {
|
|
3476
3564
|
const { isSiteRtl } = useDirection();
|
|
3477
3565
|
const rowRefs = [(0, import_react28.useRef)(null), (0, import_react28.useRef)(null)];
|
|
3478
|
-
return /* @__PURE__ */ React55.createElement(UiProviders, null, /* @__PURE__ */ React55.createElement(import_ui39.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React55.createElement(DimensionField, { side: "inset-block-start", label: (0,
|
|
3566
|
+
return /* @__PURE__ */ React55.createElement(UiProviders, null, /* @__PURE__ */ React55.createElement(import_ui39.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React55.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n32.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React55.createElement(
|
|
3479
3567
|
DimensionField,
|
|
3480
3568
|
{
|
|
3481
3569
|
side: "inset-inline-end",
|
|
3482
3570
|
label: getInlineEndLabel(isSiteRtl),
|
|
3483
3571
|
rowRef: rowRefs[0]
|
|
3484
3572
|
}
|
|
3485
|
-
)), /* @__PURE__ */ React55.createElement(import_ui39.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React55.createElement(DimensionField, { side: "inset-block-end", label: (0,
|
|
3573
|
+
)), /* @__PURE__ */ React55.createElement(import_ui39.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React55.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n32.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React55.createElement(
|
|
3486
3574
|
DimensionField,
|
|
3487
3575
|
{
|
|
3488
3576
|
side: "inset-inline-start",
|
|
@@ -3501,8 +3589,8 @@ var DimensionField = ({
|
|
|
3501
3589
|
var React56 = __toESM(require("react"));
|
|
3502
3590
|
var import_react29 = require("react");
|
|
3503
3591
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
3504
|
-
var
|
|
3505
|
-
var OFFSET_LABEL = (0,
|
|
3592
|
+
var import_i18n33 = require("@wordpress/i18n");
|
|
3593
|
+
var OFFSET_LABEL = (0, import_i18n33.__)("Anchor offset", "elementor");
|
|
3506
3594
|
var UNITS = ["px", "em", "rem", "vw", "vh"];
|
|
3507
3595
|
var OffsetField = () => {
|
|
3508
3596
|
const rowRef = (0, import_react29.useRef)(null);
|
|
@@ -3512,14 +3600,14 @@ var OffsetField = () => {
|
|
|
3512
3600
|
// src/components/style-sections/position-section/position-field.tsx
|
|
3513
3601
|
var React57 = __toESM(require("react"));
|
|
3514
3602
|
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
3515
|
-
var
|
|
3516
|
-
var POSITION_LABEL = (0,
|
|
3603
|
+
var import_i18n34 = require("@wordpress/i18n");
|
|
3604
|
+
var POSITION_LABEL = (0, import_i18n34.__)("Position", "elementor");
|
|
3517
3605
|
var positionOptions = [
|
|
3518
|
-
{ label: (0,
|
|
3519
|
-
{ label: (0,
|
|
3520
|
-
{ label: (0,
|
|
3521
|
-
{ label: (0,
|
|
3522
|
-
{ label: (0,
|
|
3606
|
+
{ label: (0, import_i18n34.__)("Static", "elementor"), value: "static" },
|
|
3607
|
+
{ label: (0, import_i18n34.__)("Relative", "elementor"), value: "relative" },
|
|
3608
|
+
{ label: (0, import_i18n34.__)("Absolute", "elementor"), value: "absolute" },
|
|
3609
|
+
{ label: (0, import_i18n34.__)("Fixed", "elementor"), value: "fixed" },
|
|
3610
|
+
{ label: (0, import_i18n34.__)("Sticky", "elementor"), value: "sticky" }
|
|
3523
3611
|
];
|
|
3524
3612
|
var PositionField = ({ onChange }) => {
|
|
3525
3613
|
return /* @__PURE__ */ React57.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React57.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React57.createElement(import_editor_controls29.SelectControl, { options: positionOptions, onChange })));
|
|
@@ -3528,15 +3616,19 @@ var PositionField = ({ onChange }) => {
|
|
|
3528
3616
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
3529
3617
|
var React58 = __toESM(require("react"));
|
|
3530
3618
|
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
3531
|
-
var
|
|
3532
|
-
var Z_INDEX_LABEL = (0,
|
|
3619
|
+
var import_i18n35 = require("@wordpress/i18n");
|
|
3620
|
+
var Z_INDEX_LABEL = (0, import_i18n35.__)("Z-index", "elementor");
|
|
3533
3621
|
var ZIndexField = () => {
|
|
3534
3622
|
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React58.createElement(import_editor_controls30.NumberControl, null)));
|
|
3535
3623
|
};
|
|
3536
3624
|
|
|
3537
3625
|
// src/components/style-sections/position-section/position-section.tsx
|
|
3626
|
+
var POSITION_LABEL2 = (0, import_i18n36.__)("Position", "elementor");
|
|
3627
|
+
var DIMENSIONS_LABEL = (0, import_i18n36.__)("Dimensions", "elementor");
|
|
3538
3628
|
var PositionSection = () => {
|
|
3539
|
-
const { value: positionValue } = useStylesField("position"
|
|
3629
|
+
const { value: positionValue } = useStylesField("position", {
|
|
3630
|
+
history: { propDisplayName: POSITION_LABEL2 }
|
|
3631
|
+
});
|
|
3540
3632
|
const { values: dimensions, setValues: setDimensions } = useStylesFields([
|
|
3541
3633
|
"inset-block-start",
|
|
3542
3634
|
"inset-block-end",
|
|
@@ -3546,19 +3638,23 @@ var PositionSection = () => {
|
|
|
3546
3638
|
const [dimensionsValuesFromHistory, updateDimensionsHistory, clearDimensionsHistory] = usePersistDimensions();
|
|
3547
3639
|
const isCssIdFeatureActive = (0, import_editor_v1_adapters13.isExperimentActive)("e_v_3_30");
|
|
3548
3640
|
const onPositionChange = (newPosition, previousPosition) => {
|
|
3641
|
+
const meta = { history: { propDisplayName: DIMENSIONS_LABEL } };
|
|
3549
3642
|
if (newPosition === "static") {
|
|
3550
3643
|
if (dimensions) {
|
|
3551
3644
|
updateDimensionsHistory(dimensions);
|
|
3552
|
-
setDimensions(
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3645
|
+
setDimensions(
|
|
3646
|
+
{
|
|
3647
|
+
"inset-block-start": void 0,
|
|
3648
|
+
"inset-block-end": void 0,
|
|
3649
|
+
"inset-inline-start": void 0,
|
|
3650
|
+
"inset-inline-end": void 0
|
|
3651
|
+
},
|
|
3652
|
+
meta
|
|
3653
|
+
);
|
|
3558
3654
|
}
|
|
3559
3655
|
} else if (previousPosition === "static") {
|
|
3560
3656
|
if (dimensionsValuesFromHistory) {
|
|
3561
|
-
setDimensions(dimensionsValuesFromHistory);
|
|
3657
|
+
setDimensions(dimensionsValuesFromHistory, meta);
|
|
3562
3658
|
clearDimensionsHistory();
|
|
3563
3659
|
}
|
|
3564
3660
|
}
|
|
@@ -3579,7 +3675,7 @@ var import_react30 = require("react");
|
|
|
3579
3675
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
3580
3676
|
var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
|
|
3581
3677
|
var import_ui41 = require("@elementor/ui");
|
|
3582
|
-
var
|
|
3678
|
+
var import_i18n41 = require("@wordpress/i18n");
|
|
3583
3679
|
|
|
3584
3680
|
// src/components/style-tab-collapsible-content.tsx
|
|
3585
3681
|
var React61 = __toESM(require("react"));
|
|
@@ -3587,9 +3683,9 @@ var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
|
|
|
3587
3683
|
|
|
3588
3684
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
3589
3685
|
var React60 = __toESM(require("react"));
|
|
3590
|
-
var
|
|
3686
|
+
var import_editor_styles_repository13 = require("@elementor/editor-styles-repository");
|
|
3591
3687
|
var import_ui40 = require("@elementor/ui");
|
|
3592
|
-
var
|
|
3688
|
+
var import_i18n37 = require("@wordpress/i18n");
|
|
3593
3689
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
3594
3690
|
const { id, meta, provider } = useStyle();
|
|
3595
3691
|
const snapshot = useStylesInheritanceSnapshot();
|
|
@@ -3600,13 +3696,13 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3600
3696
|
if (!hasValues && !hasOverrides) {
|
|
3601
3697
|
return null;
|
|
3602
3698
|
}
|
|
3603
|
-
const hasValueLabel = (0,
|
|
3604
|
-
const hasOverridesLabel = (0,
|
|
3605
|
-
return /* @__PURE__ */ React60.createElement(import_ui40.Tooltip, { title: (0,
|
|
3699
|
+
const hasValueLabel = (0, import_i18n37.__)("Has effective styles", "elementor");
|
|
3700
|
+
const hasOverridesLabel = (0, import_i18n37.__)("Has overridden styles", "elementor");
|
|
3701
|
+
return /* @__PURE__ */ React60.createElement(import_ui40.Tooltip, { title: (0, import_i18n37.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React60.createElement(import_ui40.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React60.createElement(
|
|
3606
3702
|
StyleIndicator,
|
|
3607
3703
|
{
|
|
3608
3704
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
3609
|
-
"data-variant": (0,
|
|
3705
|
+
"data-variant": (0, import_editor_styles_repository13.isElementsStylesProvider)(provider.getKey()) ? "local" : "global",
|
|
3610
3706
|
role: "listitem",
|
|
3611
3707
|
"aria-label": hasValueLabel
|
|
3612
3708
|
}
|
|
@@ -3663,14 +3759,14 @@ function getStylesInheritanceIndicators(fields) {
|
|
|
3663
3759
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
3664
3760
|
var React62 = __toESM(require("react"));
|
|
3665
3761
|
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
3666
|
-
var
|
|
3667
|
-
var OBJECT_FIT_LABEL = (0,
|
|
3762
|
+
var import_i18n38 = require("@wordpress/i18n");
|
|
3763
|
+
var OBJECT_FIT_LABEL = (0, import_i18n38.__)("Object fit", "elementor");
|
|
3668
3764
|
var positionOptions2 = [
|
|
3669
|
-
{ label: (0,
|
|
3670
|
-
{ label: (0,
|
|
3671
|
-
{ label: (0,
|
|
3672
|
-
{ label: (0,
|
|
3673
|
-
{ label: (0,
|
|
3765
|
+
{ label: (0, import_i18n38.__)("Fill", "elementor"), value: "fill" },
|
|
3766
|
+
{ label: (0, import_i18n38.__)("Cover", "elementor"), value: "cover" },
|
|
3767
|
+
{ label: (0, import_i18n38.__)("Contain", "elementor"), value: "contain" },
|
|
3768
|
+
{ label: (0, import_i18n38.__)("None", "elementor"), value: "none" },
|
|
3769
|
+
{ label: (0, import_i18n38.__)("Scale down", "elementor"), value: "scale-down" }
|
|
3674
3770
|
];
|
|
3675
3771
|
var ObjectFitField = () => {
|
|
3676
3772
|
return /* @__PURE__ */ React62.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React62.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React62.createElement(import_editor_controls31.SelectControl, { options: positionOptions2 })));
|
|
@@ -3679,8 +3775,8 @@ var ObjectFitField = () => {
|
|
|
3679
3775
|
// src/components/style-sections/size-section/object-position-field.tsx
|
|
3680
3776
|
var React63 = __toESM(require("react"));
|
|
3681
3777
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
3682
|
-
var
|
|
3683
|
-
var OBJECT_POSITION_LABEL = (0,
|
|
3778
|
+
var import_i18n39 = require("@wordpress/i18n");
|
|
3779
|
+
var OBJECT_POSITION_LABEL = (0, import_i18n39.__)("Object position", "elementor");
|
|
3684
3780
|
var ObjectPositionField = () => {
|
|
3685
3781
|
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "object-position", propDisplayName: OBJECT_POSITION_LABEL }, /* @__PURE__ */ React63.createElement(import_editor_controls32.PositionControl, null));
|
|
3686
3782
|
};
|
|
@@ -3689,24 +3785,24 @@ var ObjectPositionField = () => {
|
|
|
3689
3785
|
var React64 = __toESM(require("react"));
|
|
3690
3786
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
3691
3787
|
var import_icons18 = require("@elementor/icons");
|
|
3692
|
-
var
|
|
3693
|
-
var OVERFLOW_LABEL = (0,
|
|
3788
|
+
var import_i18n40 = require("@wordpress/i18n");
|
|
3789
|
+
var OVERFLOW_LABEL = (0, import_i18n40.__)("Overflow", "elementor");
|
|
3694
3790
|
var options6 = [
|
|
3695
3791
|
{
|
|
3696
3792
|
value: "visible",
|
|
3697
|
-
label: (0,
|
|
3793
|
+
label: (0, import_i18n40.__)("Visible", "elementor"),
|
|
3698
3794
|
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(import_icons18.EyeIcon, { fontSize: size }),
|
|
3699
3795
|
showTooltip: true
|
|
3700
3796
|
},
|
|
3701
3797
|
{
|
|
3702
3798
|
value: "hidden",
|
|
3703
|
-
label: (0,
|
|
3799
|
+
label: (0, import_i18n40.__)("Hidden", "elementor"),
|
|
3704
3800
|
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(import_icons18.EyeOffIcon, { fontSize: size }),
|
|
3705
3801
|
showTooltip: true
|
|
3706
3802
|
},
|
|
3707
3803
|
{
|
|
3708
3804
|
value: "auto",
|
|
3709
|
-
label: (0,
|
|
3805
|
+
label: (0, import_i18n40.__)("Auto", "elementor"),
|
|
3710
3806
|
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(import_icons18.LetterAIcon, { fontSize: size }),
|
|
3711
3807
|
showTooltip: true
|
|
3712
3808
|
}
|
|
@@ -3721,37 +3817,40 @@ var CssSizeProps = [
|
|
|
3721
3817
|
[
|
|
3722
3818
|
{
|
|
3723
3819
|
bind: "width",
|
|
3724
|
-
label: (0,
|
|
3820
|
+
label: (0, import_i18n41.__)("Width", "elementor")
|
|
3725
3821
|
},
|
|
3726
3822
|
{
|
|
3727
3823
|
bind: "height",
|
|
3728
|
-
label: (0,
|
|
3824
|
+
label: (0, import_i18n41.__)("Height", "elementor")
|
|
3729
3825
|
}
|
|
3730
3826
|
],
|
|
3731
3827
|
[
|
|
3732
3828
|
{
|
|
3733
3829
|
bind: "min-width",
|
|
3734
|
-
label: (0,
|
|
3830
|
+
label: (0, import_i18n41.__)("Min width", "elementor")
|
|
3735
3831
|
},
|
|
3736
3832
|
{
|
|
3737
3833
|
bind: "min-height",
|
|
3738
|
-
label: (0,
|
|
3834
|
+
label: (0, import_i18n41.__)("Min height", "elementor")
|
|
3739
3835
|
}
|
|
3740
3836
|
],
|
|
3741
3837
|
[
|
|
3742
3838
|
{
|
|
3743
3839
|
bind: "max-width",
|
|
3744
|
-
label: (0,
|
|
3840
|
+
label: (0, import_i18n41.__)("Max width", "elementor")
|
|
3745
3841
|
},
|
|
3746
3842
|
{
|
|
3747
3843
|
bind: "max-height",
|
|
3748
|
-
label: (0,
|
|
3844
|
+
label: (0, import_i18n41.__)("Max height", "elementor")
|
|
3749
3845
|
}
|
|
3750
3846
|
]
|
|
3751
3847
|
];
|
|
3752
|
-
var ASPECT_RATIO_LABEL = (0,
|
|
3848
|
+
var ASPECT_RATIO_LABEL = (0, import_i18n41.__)("Aspect Ratio", "elementor");
|
|
3849
|
+
var OBJECT_FIT_LABEL2 = (0, import_i18n41.__)("Object fit", "elementor");
|
|
3753
3850
|
var SizeSection = () => {
|
|
3754
|
-
const { value: fitValue } = useStylesField("object-fit"
|
|
3851
|
+
const { value: fitValue } = useStylesField("object-fit", {
|
|
3852
|
+
history: { propDisplayName: OBJECT_FIT_LABEL2 }
|
|
3853
|
+
});
|
|
3755
3854
|
const isNotFill = fitValue && fitValue?.value !== "fill";
|
|
3756
3855
|
const gridRowRefs = [(0, import_react30.useRef)(null), (0, import_react30.useRef)(null), (0, import_react30.useRef)(null)];
|
|
3757
3856
|
const isVersion330Active = (0, import_editor_v1_adapters15.isExperimentActive)(EXPERIMENT_ID);
|
|
@@ -3764,9 +3863,9 @@ var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
|
3764
3863
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
3765
3864
|
var React66 = __toESM(require("react"));
|
|
3766
3865
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
3767
|
-
var
|
|
3768
|
-
var MARGIN_LABEL = (0,
|
|
3769
|
-
var PADDING_LABEL = (0,
|
|
3866
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
3867
|
+
var MARGIN_LABEL = (0, import_i18n42.__)("Margin", "elementor");
|
|
3868
|
+
var PADDING_LABEL = (0, import_i18n42.__)("Padding", "elementor");
|
|
3770
3869
|
var SpacingSection = () => {
|
|
3771
3870
|
const { isSiteRtl } = useDirection();
|
|
3772
3871
|
return /* @__PURE__ */ React66.createElement(SectionContent, null, /* @__PURE__ */ React66.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React66.createElement(
|
|
@@ -3782,12 +3881,13 @@ var SpacingSection = () => {
|
|
|
3782
3881
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
3783
3882
|
var React82 = __toESM(require("react"));
|
|
3784
3883
|
var import_editor_v1_adapters16 = require("@elementor/editor-v1-adapters");
|
|
3884
|
+
var import_i18n59 = require("@wordpress/i18n");
|
|
3785
3885
|
|
|
3786
3886
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
3787
3887
|
var React67 = __toESM(require("react"));
|
|
3788
3888
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
3789
|
-
var
|
|
3790
|
-
var COLUMN_COUNT_LABEL = (0,
|
|
3889
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
3890
|
+
var COLUMN_COUNT_LABEL = (0, import_i18n43.__)("Columns", "elementor");
|
|
3791
3891
|
var ColumnCountField = () => {
|
|
3792
3892
|
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React67.createElement(import_editor_controls36.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
3793
3893
|
};
|
|
@@ -3796,8 +3896,8 @@ var ColumnCountField = () => {
|
|
|
3796
3896
|
var React68 = __toESM(require("react"));
|
|
3797
3897
|
var import_react31 = require("react");
|
|
3798
3898
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
3799
|
-
var
|
|
3800
|
-
var COLUMN_GAP_LABEL = (0,
|
|
3899
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
3900
|
+
var COLUMN_GAP_LABEL = (0, import_i18n44.__)("Column gap", "elementor");
|
|
3801
3901
|
var ColumnGapField = () => {
|
|
3802
3902
|
const rowRef = (0, import_react31.useRef)(null);
|
|
3803
3903
|
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React68.createElement(import_editor_controls37.SizeControl, { anchorRef: rowRef })));
|
|
@@ -3806,15 +3906,15 @@ var ColumnGapField = () => {
|
|
|
3806
3906
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
3807
3907
|
var React69 = __toESM(require("react"));
|
|
3808
3908
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
3809
|
-
var
|
|
3909
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
3810
3910
|
|
|
3811
3911
|
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
3812
3912
|
var import_react32 = require("react");
|
|
3813
|
-
var
|
|
3913
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
3814
3914
|
var supportedCategories = {
|
|
3815
|
-
system: (0,
|
|
3816
|
-
custom: (0,
|
|
3817
|
-
googlefonts: (0,
|
|
3915
|
+
system: (0, import_i18n45.__)("System", "elementor"),
|
|
3916
|
+
custom: (0, import_i18n45.__)("Custom Fonts", "elementor"),
|
|
3917
|
+
googlefonts: (0, import_i18n45.__)("Google Fonts", "elementor")
|
|
3818
3918
|
};
|
|
3819
3919
|
var getFontFamilies = () => {
|
|
3820
3920
|
const { controls } = getElementorConfig();
|
|
@@ -3846,7 +3946,7 @@ var useFontFamilies = () => {
|
|
|
3846
3946
|
};
|
|
3847
3947
|
|
|
3848
3948
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
3849
|
-
var FONT_FAMILY_LABEL = (0,
|
|
3949
|
+
var FONT_FAMILY_LABEL = (0, import_i18n46.__)("Font family", "elementor");
|
|
3850
3950
|
var FontFamilyField = () => {
|
|
3851
3951
|
const fontFamilies = useFontFamilies();
|
|
3852
3952
|
const sectionWidth = useSectionWidth();
|
|
@@ -3860,8 +3960,8 @@ var FontFamilyField = () => {
|
|
|
3860
3960
|
var React70 = __toESM(require("react"));
|
|
3861
3961
|
var import_react33 = require("react");
|
|
3862
3962
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
3863
|
-
var
|
|
3864
|
-
var FONT_SIZE_LABEL = (0,
|
|
3963
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
3964
|
+
var FONT_SIZE_LABEL = (0, import_i18n47.__)("Font size", "elementor");
|
|
3865
3965
|
var FontSizeField = () => {
|
|
3866
3966
|
const rowRef = (0, import_react33.useRef)(null);
|
|
3867
3967
|
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React70.createElement(import_editor_controls39.SizeControl, { anchorRef: rowRef })));
|
|
@@ -3871,18 +3971,18 @@ var FontSizeField = () => {
|
|
|
3871
3971
|
var React71 = __toESM(require("react"));
|
|
3872
3972
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
3873
3973
|
var import_icons19 = require("@elementor/icons");
|
|
3874
|
-
var
|
|
3875
|
-
var FONT_STYLE_LABEL = (0,
|
|
3974
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
3975
|
+
var FONT_STYLE_LABEL = (0, import_i18n48.__)("Font style", "elementor");
|
|
3876
3976
|
var options7 = [
|
|
3877
3977
|
{
|
|
3878
3978
|
value: "normal",
|
|
3879
|
-
label: (0,
|
|
3979
|
+
label: (0, import_i18n48.__)("Normal", "elementor"),
|
|
3880
3980
|
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(import_icons19.MinusIcon, { fontSize: size }),
|
|
3881
3981
|
showTooltip: true
|
|
3882
3982
|
},
|
|
3883
3983
|
{
|
|
3884
3984
|
value: "italic",
|
|
3885
|
-
label: (0,
|
|
3985
|
+
label: (0, import_i18n48.__)("Italic", "elementor"),
|
|
3886
3986
|
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(import_icons19.ItalicIcon, { fontSize: size }),
|
|
3887
3987
|
showTooltip: true
|
|
3888
3988
|
}
|
|
@@ -3894,18 +3994,18 @@ var FontStyleField = () => {
|
|
|
3894
3994
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
3895
3995
|
var React72 = __toESM(require("react"));
|
|
3896
3996
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
3897
|
-
var
|
|
3898
|
-
var FONT_WEIGHT_LABEL = (0,
|
|
3997
|
+
var import_i18n49 = require("@wordpress/i18n");
|
|
3998
|
+
var FONT_WEIGHT_LABEL = (0, import_i18n49.__)("Font weight", "elementor");
|
|
3899
3999
|
var fontWeightOptions = [
|
|
3900
|
-
{ value: "100", label: (0,
|
|
3901
|
-
{ value: "200", label: (0,
|
|
3902
|
-
{ value: "300", label: (0,
|
|
3903
|
-
{ value: "400", label: (0,
|
|
3904
|
-
{ value: "500", label: (0,
|
|
3905
|
-
{ value: "600", label: (0,
|
|
3906
|
-
{ value: "700", label: (0,
|
|
3907
|
-
{ value: "800", label: (0,
|
|
3908
|
-
{ value: "900", label: (0,
|
|
4000
|
+
{ value: "100", label: (0, import_i18n49.__)("100 - Thin", "elementor") },
|
|
4001
|
+
{ value: "200", label: (0, import_i18n49.__)("200 - Extra light", "elementor") },
|
|
4002
|
+
{ value: "300", label: (0, import_i18n49.__)("300 - Light", "elementor") },
|
|
4003
|
+
{ value: "400", label: (0, import_i18n49.__)("400 - Normal", "elementor") },
|
|
4004
|
+
{ value: "500", label: (0, import_i18n49.__)("500 - Medium", "elementor") },
|
|
4005
|
+
{ value: "600", label: (0, import_i18n49.__)("600 - Semi bold", "elementor") },
|
|
4006
|
+
{ value: "700", label: (0, import_i18n49.__)("700 - Bold", "elementor") },
|
|
4007
|
+
{ value: "800", label: (0, import_i18n49.__)("800 - Extra bold", "elementor") },
|
|
4008
|
+
{ value: "900", label: (0, import_i18n49.__)("900 - Black", "elementor") }
|
|
3909
4009
|
];
|
|
3910
4010
|
var FontWeightField = () => {
|
|
3911
4011
|
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React72.createElement(import_editor_controls41.SelectControl, { options: fontWeightOptions })));
|
|
@@ -3915,8 +4015,8 @@ var FontWeightField = () => {
|
|
|
3915
4015
|
var React73 = __toESM(require("react"));
|
|
3916
4016
|
var import_react34 = require("react");
|
|
3917
4017
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
3918
|
-
var
|
|
3919
|
-
var LETTER_SPACING_LABEL = (0,
|
|
4018
|
+
var import_i18n50 = require("@wordpress/i18n");
|
|
4019
|
+
var LETTER_SPACING_LABEL = (0, import_i18n50.__)("Letter spacing", "elementor");
|
|
3920
4020
|
var LetterSpacingField = () => {
|
|
3921
4021
|
const rowRef = (0, import_react34.useRef)(null);
|
|
3922
4022
|
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React73.createElement(import_editor_controls42.SizeControl, { anchorRef: rowRef })));
|
|
@@ -3926,8 +4026,8 @@ var LetterSpacingField = () => {
|
|
|
3926
4026
|
var React74 = __toESM(require("react"));
|
|
3927
4027
|
var import_react35 = require("react");
|
|
3928
4028
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
3929
|
-
var
|
|
3930
|
-
var LINE_HEIGHT_LABEL = (0,
|
|
4029
|
+
var import_i18n51 = require("@wordpress/i18n");
|
|
4030
|
+
var LINE_HEIGHT_LABEL = (0, import_i18n51.__)("Line height", "elementor");
|
|
3931
4031
|
var LineHeightField = () => {
|
|
3932
4032
|
const rowRef = (0, import_react35.useRef)(null);
|
|
3933
4033
|
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React74.createElement(import_editor_controls43.SizeControl, { anchorRef: rowRef })));
|
|
@@ -3938,32 +4038,32 @@ var React75 = __toESM(require("react"));
|
|
|
3938
4038
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
3939
4039
|
var import_icons20 = require("@elementor/icons");
|
|
3940
4040
|
var import_ui42 = require("@elementor/ui");
|
|
3941
|
-
var
|
|
3942
|
-
var TEXT_ALIGNMENT_LABEL = (0,
|
|
4041
|
+
var import_i18n52 = require("@wordpress/i18n");
|
|
4042
|
+
var TEXT_ALIGNMENT_LABEL = (0, import_i18n52.__)("Text align", "elementor");
|
|
3943
4043
|
var AlignStartIcon = (0, import_ui42.withDirection)(import_icons20.AlignLeftIcon);
|
|
3944
4044
|
var AlignEndIcon = (0, import_ui42.withDirection)(import_icons20.AlignRightIcon);
|
|
3945
4045
|
var options8 = [
|
|
3946
4046
|
{
|
|
3947
4047
|
value: "start",
|
|
3948
|
-
label: (0,
|
|
4048
|
+
label: (0, import_i18n52.__)("Start", "elementor"),
|
|
3949
4049
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignStartIcon, { fontSize: size }),
|
|
3950
4050
|
showTooltip: true
|
|
3951
4051
|
},
|
|
3952
4052
|
{
|
|
3953
4053
|
value: "center",
|
|
3954
|
-
label: (0,
|
|
4054
|
+
label: (0, import_i18n52.__)("Center", "elementor"),
|
|
3955
4055
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons20.AlignCenterIcon, { fontSize: size }),
|
|
3956
4056
|
showTooltip: true
|
|
3957
4057
|
},
|
|
3958
4058
|
{
|
|
3959
4059
|
value: "end",
|
|
3960
|
-
label: (0,
|
|
4060
|
+
label: (0, import_i18n52.__)("End", "elementor"),
|
|
3961
4061
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignEndIcon, { fontSize: size }),
|
|
3962
4062
|
showTooltip: true
|
|
3963
4063
|
},
|
|
3964
4064
|
{
|
|
3965
4065
|
value: "justify",
|
|
3966
|
-
label: (0,
|
|
4066
|
+
label: (0, import_i18n52.__)("Justify", "elementor"),
|
|
3967
4067
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons20.AlignJustifiedIcon, { fontSize: size }),
|
|
3968
4068
|
showTooltip: true
|
|
3969
4069
|
}
|
|
@@ -3975,8 +4075,8 @@ var TextAlignmentField = () => {
|
|
|
3975
4075
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
3976
4076
|
var React76 = __toESM(require("react"));
|
|
3977
4077
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
3978
|
-
var
|
|
3979
|
-
var TEXT_COLOR_LABEL = (0,
|
|
4078
|
+
var import_i18n53 = require("@wordpress/i18n");
|
|
4079
|
+
var TEXT_COLOR_LABEL = (0, import_i18n53.__)("Text color", "elementor");
|
|
3980
4080
|
var TextColorField = () => {
|
|
3981
4081
|
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React76.createElement(import_editor_controls45.ColorControl, null)));
|
|
3982
4082
|
};
|
|
@@ -3985,31 +4085,31 @@ var TextColorField = () => {
|
|
|
3985
4085
|
var React77 = __toESM(require("react"));
|
|
3986
4086
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
3987
4087
|
var import_icons21 = require("@elementor/icons");
|
|
3988
|
-
var
|
|
3989
|
-
var TEXT_DECORATION_LABEL = (0,
|
|
4088
|
+
var import_i18n54 = require("@wordpress/i18n");
|
|
4089
|
+
var TEXT_DECORATION_LABEL = (0, import_i18n54.__)("Line decoration", "elementor");
|
|
3990
4090
|
var options9 = [
|
|
3991
4091
|
{
|
|
3992
4092
|
value: "none",
|
|
3993
|
-
label: (0,
|
|
4093
|
+
label: (0, import_i18n54.__)("None", "elementor"),
|
|
3994
4094
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons21.MinusIcon, { fontSize: size }),
|
|
3995
4095
|
showTooltip: true,
|
|
3996
4096
|
exclusive: true
|
|
3997
4097
|
},
|
|
3998
4098
|
{
|
|
3999
4099
|
value: "underline",
|
|
4000
|
-
label: (0,
|
|
4100
|
+
label: (0, import_i18n54.__)("Underline", "elementor"),
|
|
4001
4101
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons21.UnderlineIcon, { fontSize: size }),
|
|
4002
4102
|
showTooltip: true
|
|
4003
4103
|
},
|
|
4004
4104
|
{
|
|
4005
4105
|
value: "line-through",
|
|
4006
|
-
label: (0,
|
|
4106
|
+
label: (0, import_i18n54.__)("Line-through", "elementor"),
|
|
4007
4107
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons21.StrikethroughIcon, { fontSize: size }),
|
|
4008
4108
|
showTooltip: true
|
|
4009
4109
|
},
|
|
4010
4110
|
{
|
|
4011
4111
|
value: "overline",
|
|
4012
|
-
label: (0,
|
|
4112
|
+
label: (0, import_i18n54.__)("Overline", "elementor"),
|
|
4013
4113
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons21.OverlineIcon, { fontSize: size }),
|
|
4014
4114
|
showTooltip: true
|
|
4015
4115
|
}
|
|
@@ -4020,18 +4120,18 @@ var TextDecorationField = () => /* @__PURE__ */ React77.createElement(StylesFiel
|
|
|
4020
4120
|
var React78 = __toESM(require("react"));
|
|
4021
4121
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
4022
4122
|
var import_icons22 = require("@elementor/icons");
|
|
4023
|
-
var
|
|
4024
|
-
var TEXT_DIRECTION_LABEL = (0,
|
|
4123
|
+
var import_i18n55 = require("@wordpress/i18n");
|
|
4124
|
+
var TEXT_DIRECTION_LABEL = (0, import_i18n55.__)("Direction", "elementor");
|
|
4025
4125
|
var options10 = [
|
|
4026
4126
|
{
|
|
4027
4127
|
value: "ltr",
|
|
4028
|
-
label: (0,
|
|
4128
|
+
label: (0, import_i18n55.__)("Left to right", "elementor"),
|
|
4029
4129
|
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons22.TextDirectionLtrIcon, { fontSize: size }),
|
|
4030
4130
|
showTooltip: true
|
|
4031
4131
|
},
|
|
4032
4132
|
{
|
|
4033
4133
|
value: "rtl",
|
|
4034
|
-
label: (0,
|
|
4134
|
+
label: (0, import_i18n55.__)("Right to left", "elementor"),
|
|
4035
4135
|
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons22.TextDirectionRtlIcon, { fontSize: size }),
|
|
4036
4136
|
showTooltip: true
|
|
4037
4137
|
}
|
|
@@ -4043,7 +4143,7 @@ var TextDirectionField = () => {
|
|
|
4043
4143
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4044
4144
|
var React79 = __toESM(require("react"));
|
|
4045
4145
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
4046
|
-
var
|
|
4146
|
+
var import_i18n56 = require("@wordpress/i18n");
|
|
4047
4147
|
var initTextStroke = {
|
|
4048
4148
|
$$type: "stroke",
|
|
4049
4149
|
value: {
|
|
@@ -4060,9 +4160,11 @@ var initTextStroke = {
|
|
|
4060
4160
|
}
|
|
4061
4161
|
}
|
|
4062
4162
|
};
|
|
4063
|
-
var TEXT_STROKE_LABEL = (0,
|
|
4163
|
+
var TEXT_STROKE_LABEL = (0, import_i18n56.__)("Text stroke", "elementor");
|
|
4064
4164
|
var TextStrokeField = () => {
|
|
4065
|
-
const { value, setValue, canEdit } = useStylesField("stroke"
|
|
4165
|
+
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
4166
|
+
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
4167
|
+
});
|
|
4066
4168
|
const addTextStroke = () => {
|
|
4067
4169
|
setValue(initTextStroke);
|
|
4068
4170
|
};
|
|
@@ -4087,30 +4189,30 @@ var TextStrokeField = () => {
|
|
|
4087
4189
|
var React80 = __toESM(require("react"));
|
|
4088
4190
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
4089
4191
|
var import_icons23 = require("@elementor/icons");
|
|
4090
|
-
var
|
|
4091
|
-
var TEXT_TRANSFORM_LABEL = (0,
|
|
4192
|
+
var import_i18n57 = require("@wordpress/i18n");
|
|
4193
|
+
var TEXT_TRANSFORM_LABEL = (0, import_i18n57.__)("Text transform", "elementor");
|
|
4092
4194
|
var options11 = [
|
|
4093
4195
|
{
|
|
4094
4196
|
value: "none",
|
|
4095
|
-
label: (0,
|
|
4197
|
+
label: (0, import_i18n57.__)("None", "elementor"),
|
|
4096
4198
|
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons23.MinusIcon, { fontSize: size }),
|
|
4097
4199
|
showTooltip: true
|
|
4098
4200
|
},
|
|
4099
4201
|
{
|
|
4100
4202
|
value: "capitalize",
|
|
4101
|
-
label: (0,
|
|
4203
|
+
label: (0, import_i18n57.__)("Capitalize", "elementor"),
|
|
4102
4204
|
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons23.LetterCaseIcon, { fontSize: size }),
|
|
4103
4205
|
showTooltip: true
|
|
4104
4206
|
},
|
|
4105
4207
|
{
|
|
4106
4208
|
value: "uppercase",
|
|
4107
|
-
label: (0,
|
|
4209
|
+
label: (0, import_i18n57.__)("Uppercase", "elementor"),
|
|
4108
4210
|
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons23.LetterCaseUpperIcon, { fontSize: size }),
|
|
4109
4211
|
showTooltip: true
|
|
4110
4212
|
},
|
|
4111
4213
|
{
|
|
4112
4214
|
value: "lowercase",
|
|
4113
|
-
label: (0,
|
|
4215
|
+
label: (0, import_i18n57.__)("Lowercase", "elementor"),
|
|
4114
4216
|
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons23.LetterCaseLowerIcon, { fontSize: size }),
|
|
4115
4217
|
showTooltip: true
|
|
4116
4218
|
}
|
|
@@ -4121,16 +4223,19 @@ var TransformField = () => /* @__PURE__ */ React80.createElement(StylesField, {
|
|
|
4121
4223
|
var React81 = __toESM(require("react"));
|
|
4122
4224
|
var import_react36 = require("react");
|
|
4123
4225
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
4124
|
-
var
|
|
4125
|
-
var WORD_SPACING_LABEL = (0,
|
|
4226
|
+
var import_i18n58 = require("@wordpress/i18n");
|
|
4227
|
+
var WORD_SPACING_LABEL = (0, import_i18n58.__)("Word spacing", "elementor");
|
|
4126
4228
|
var WordSpacingField = () => {
|
|
4127
4229
|
const rowRef = (0, import_react36.useRef)(null);
|
|
4128
4230
|
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React81.createElement(import_editor_controls50.SizeControl, { anchorRef: rowRef })));
|
|
4129
4231
|
};
|
|
4130
4232
|
|
|
4131
4233
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4234
|
+
var COLUMN_COUNT_LABEL2 = (0, import_i18n59.__)("Column count", "elementor");
|
|
4132
4235
|
var TypographySection = () => {
|
|
4133
|
-
const { value: columnCount } = useStylesField("column-count"
|
|
4236
|
+
const { value: columnCount } = useStylesField("column-count", {
|
|
4237
|
+
history: { propDisplayName: COLUMN_COUNT_LABEL2 }
|
|
4238
|
+
});
|
|
4134
4239
|
const hasMultiColumns = !!(columnCount?.value && columnCount?.value > 1);
|
|
4135
4240
|
const isVersion330Active = (0, import_editor_v1_adapters16.isExperimentActive)("e_v_3_30");
|
|
4136
4241
|
return /* @__PURE__ */ React82.createElement(SectionContent, null, /* @__PURE__ */ React82.createElement(FontFamilyField, null), /* @__PURE__ */ React82.createElement(FontWeightField, null), /* @__PURE__ */ React82.createElement(FontSizeField, null), /* @__PURE__ */ React82.createElement(PanelDivider, null), /* @__PURE__ */ React82.createElement(TextAlignmentField, null), /* @__PURE__ */ React82.createElement(TextColorField, null), /* @__PURE__ */ React82.createElement(
|
|
@@ -4167,7 +4272,7 @@ var StyleTabSection = ({ section, fields = [] }) => {
|
|
|
4167
4272
|
var TABS_HEADER_HEIGHT = "37px";
|
|
4168
4273
|
var stickyHeaderStyles = {
|
|
4169
4274
|
position: "sticky",
|
|
4170
|
-
zIndex:
|
|
4275
|
+
zIndex: 1100,
|
|
4171
4276
|
opacity: 1,
|
|
4172
4277
|
backgroundColor: "background.default",
|
|
4173
4278
|
transition: "top 300ms ease"
|
|
@@ -4194,7 +4299,7 @@ var StyleTab = () => {
|
|
|
4194
4299
|
section: {
|
|
4195
4300
|
component: LayoutSection,
|
|
4196
4301
|
name: "Layout",
|
|
4197
|
-
title: (0,
|
|
4302
|
+
title: (0, import_i18n60.__)("Layout", "elementor")
|
|
4198
4303
|
},
|
|
4199
4304
|
fields: [
|
|
4200
4305
|
"display",
|
|
@@ -4213,7 +4318,7 @@ var StyleTab = () => {
|
|
|
4213
4318
|
section: {
|
|
4214
4319
|
component: SpacingSection,
|
|
4215
4320
|
name: "Spacing",
|
|
4216
|
-
title: (0,
|
|
4321
|
+
title: (0, import_i18n60.__)("Spacing", "elementor")
|
|
4217
4322
|
},
|
|
4218
4323
|
fields: ["margin", "padding"]
|
|
4219
4324
|
}
|
|
@@ -4223,7 +4328,7 @@ var StyleTab = () => {
|
|
|
4223
4328
|
section: {
|
|
4224
4329
|
component: SizeSection,
|
|
4225
4330
|
name: "Size",
|
|
4226
|
-
title: (0,
|
|
4331
|
+
title: (0, import_i18n60.__)("Size", "elementor")
|
|
4227
4332
|
},
|
|
4228
4333
|
fields: [
|
|
4229
4334
|
"width",
|
|
@@ -4243,7 +4348,7 @@ var StyleTab = () => {
|
|
|
4243
4348
|
section: {
|
|
4244
4349
|
component: PositionSection,
|
|
4245
4350
|
name: "Position",
|
|
4246
|
-
title: (0,
|
|
4351
|
+
title: (0, import_i18n60.__)("Position", "elementor")
|
|
4247
4352
|
},
|
|
4248
4353
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
4249
4354
|
}
|
|
@@ -4253,7 +4358,7 @@ var StyleTab = () => {
|
|
|
4253
4358
|
section: {
|
|
4254
4359
|
component: TypographySection,
|
|
4255
4360
|
name: "Typography",
|
|
4256
|
-
title: (0,
|
|
4361
|
+
title: (0, import_i18n60.__)("Typography", "elementor")
|
|
4257
4362
|
},
|
|
4258
4363
|
fields: [
|
|
4259
4364
|
"font-family",
|
|
@@ -4278,7 +4383,7 @@ var StyleTab = () => {
|
|
|
4278
4383
|
section: {
|
|
4279
4384
|
component: BackgroundSection,
|
|
4280
4385
|
name: "Background",
|
|
4281
|
-
title: (0,
|
|
4386
|
+
title: (0, import_i18n60.__)("Background", "elementor")
|
|
4282
4387
|
},
|
|
4283
4388
|
fields: ["background"]
|
|
4284
4389
|
}
|
|
@@ -4288,7 +4393,7 @@ var StyleTab = () => {
|
|
|
4288
4393
|
section: {
|
|
4289
4394
|
component: BorderSection,
|
|
4290
4395
|
name: "Border",
|
|
4291
|
-
title: (0,
|
|
4396
|
+
title: (0, import_i18n60.__)("Border", "elementor")
|
|
4292
4397
|
},
|
|
4293
4398
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
4294
4399
|
}
|
|
@@ -4298,7 +4403,7 @@ var StyleTab = () => {
|
|
|
4298
4403
|
section: {
|
|
4299
4404
|
component: EffectsSection,
|
|
4300
4405
|
name: "Effects",
|
|
4301
|
-
title: (0,
|
|
4406
|
+
title: (0, import_i18n60.__)("Effects", "elementor")
|
|
4302
4407
|
},
|
|
4303
4408
|
fields: ["box-shadow"]
|
|
4304
4409
|
}
|
|
@@ -4312,7 +4417,7 @@ function ClassesHeader({ children }) {
|
|
|
4312
4417
|
function useCurrentClassesProp() {
|
|
4313
4418
|
const { elementType } = useElement();
|
|
4314
4419
|
const prop = Object.entries(elementType.propsSchema).find(
|
|
4315
|
-
([, propType]) => propType.kind === "plain" && propType.key ===
|
|
4420
|
+
([, propType]) => propType.kind === "plain" && propType.key === import_editor_props11.CLASSES_PROP_KEY
|
|
4316
4421
|
);
|
|
4317
4422
|
if (!prop) {
|
|
4318
4423
|
throw new Error("Element does not have a classes prop");
|
|
@@ -4346,8 +4451,8 @@ var PanelTabContent = () => {
|
|
|
4346
4451
|
setCurrentTab(newValue);
|
|
4347
4452
|
}
|
|
4348
4453
|
},
|
|
4349
|
-
/* @__PURE__ */ React85.createElement(import_ui44.Tab, { label: (0,
|
|
4350
|
-
/* @__PURE__ */ React85.createElement(import_ui44.Tab, { label: (0,
|
|
4454
|
+
/* @__PURE__ */ React85.createElement(import_ui44.Tab, { label: (0, import_i18n61.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
4455
|
+
/* @__PURE__ */ React85.createElement(import_ui44.Tab, { label: (0, import_i18n61.__)("Style", "elementor"), ...getTabProps("style") })
|
|
4351
4456
|
), /* @__PURE__ */ React85.createElement(import_ui44.Divider, null)), /* @__PURE__ */ React85.createElement(import_ui44.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React85.createElement(SettingsTab, null)), /* @__PURE__ */ React85.createElement(import_ui44.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React85.createElement(StyleTab, null))));
|
|
4352
4457
|
};
|
|
4353
4458
|
|
|
@@ -4360,7 +4465,7 @@ var EditingPanel = () => {
|
|
|
4360
4465
|
if (!element || !elementType) {
|
|
4361
4466
|
return null;
|
|
4362
4467
|
}
|
|
4363
|
-
const panelTitle = (0,
|
|
4468
|
+
const panelTitle = (0, import_i18n62.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
4364
4469
|
return /* @__PURE__ */ React86.createElement(import_ui45.ErrorBoundary, { fallback: /* @__PURE__ */ React86.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React86.createElement(import_session5.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React86.createElement(import_editor_ui5.ThemeProvider, null, /* @__PURE__ */ React86.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React86.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React86.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React86.createElement(import_icons24.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React86.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React86.createElement(import_editor_controls51.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React86.createElement(import_editor_controls51.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React86.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React86.createElement(EditingPanelTabs, null)))))))));
|
|
4365
4470
|
};
|
|
4366
4471
|
|
|
@@ -4370,17 +4475,16 @@ var { panel, usePanelActions, usePanelStatus } = (0, import_editor_panels2.__cre
|
|
|
4370
4475
|
component: EditingPanel
|
|
4371
4476
|
});
|
|
4372
4477
|
|
|
4373
|
-
// src/components/popover-
|
|
4478
|
+
// src/components/popover-body.tsx
|
|
4374
4479
|
var React87 = __toESM(require("react"));
|
|
4375
4480
|
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
4376
|
-
var
|
|
4481
|
+
var PopoverBody = (props) => {
|
|
4377
4482
|
const sectionWidth = useSectionWidth();
|
|
4378
|
-
return /* @__PURE__ */ React87.createElement(import_editor_ui6.
|
|
4483
|
+
return /* @__PURE__ */ React87.createElement(import_editor_ui6.PopoverBody, { ...props, width: sectionWidth });
|
|
4379
4484
|
};
|
|
4380
4485
|
|
|
4381
4486
|
// src/init.ts
|
|
4382
4487
|
var import_editor = require("@elementor/editor");
|
|
4383
|
-
var import_editor_current_user = require("@elementor/editor-current-user");
|
|
4384
4488
|
var import_editor_panels3 = require("@elementor/editor-panels");
|
|
4385
4489
|
var import_editor_v1_adapters20 = require("@elementor/editor-v1-adapters");
|
|
4386
4490
|
|
|
@@ -4424,7 +4528,7 @@ var import_editor_controls58 = require("@elementor/editor-controls");
|
|
|
4424
4528
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
4425
4529
|
var React88 = __toESM(require("react"));
|
|
4426
4530
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
4427
|
-
var
|
|
4531
|
+
var import_editor_props13 = require("@elementor/editor-props");
|
|
4428
4532
|
var import_icons25 = require("@elementor/icons");
|
|
4429
4533
|
|
|
4430
4534
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
@@ -4453,7 +4557,7 @@ var getAtomicDynamicTags = () => {
|
|
|
4453
4557
|
};
|
|
4454
4558
|
|
|
4455
4559
|
// src/dynamics/utils.ts
|
|
4456
|
-
var
|
|
4560
|
+
var import_editor_props12 = require("@elementor/editor-props");
|
|
4457
4561
|
var import_schema = require("@elementor/schema");
|
|
4458
4562
|
var DYNAMIC_PROP_TYPE_KEY = "dynamic";
|
|
4459
4563
|
var isDynamicPropType = (prop) => prop.key === DYNAMIC_PROP_TYPE_KEY;
|
|
@@ -4462,12 +4566,12 @@ var getDynamicPropType = (propType) => {
|
|
|
4462
4566
|
return dynamicPropType && isDynamicPropType(dynamicPropType) ? dynamicPropType : null;
|
|
4463
4567
|
};
|
|
4464
4568
|
var isDynamicPropValue = (prop) => {
|
|
4465
|
-
return (0,
|
|
4569
|
+
return (0, import_editor_props12.isTransformable)(prop) && prop.$$type === DYNAMIC_PROP_TYPE_KEY;
|
|
4466
4570
|
};
|
|
4467
4571
|
var supportsDynamic = (propType) => {
|
|
4468
4572
|
return !!getDynamicPropType(propType);
|
|
4469
4573
|
};
|
|
4470
|
-
var dynamicPropTypeUtil = (0,
|
|
4574
|
+
var dynamicPropTypeUtil = (0, import_editor_props12.createPropUtils)(
|
|
4471
4575
|
DYNAMIC_PROP_TYPE_KEY,
|
|
4472
4576
|
import_schema.z.strictObject({
|
|
4473
4577
|
name: import_schema.z.string(),
|
|
@@ -4505,7 +4609,7 @@ var useDynamicTag = (tagName) => {
|
|
|
4505
4609
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
4506
4610
|
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React88.createElement(import_icons25.DatabaseIcon, { fontSize: "tiny" });
|
|
4507
4611
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
4508
|
-
const context = (0, import_editor_controls53.useBoundProp)(
|
|
4612
|
+
const context = (0, import_editor_controls53.useBoundProp)(import_editor_props13.backgroundImageOverlayPropTypeUtil);
|
|
4509
4613
|
return /* @__PURE__ */ React88.createElement(import_editor_controls53.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React88.createElement(import_editor_controls53.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React88.createElement(Wrapper, { rawValue: value.value })));
|
|
4510
4614
|
};
|
|
4511
4615
|
var Wrapper = ({ rawValue }) => {
|
|
@@ -4525,7 +4629,7 @@ var import_editor_controls56 = require("@elementor/editor-controls");
|
|
|
4525
4629
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
4526
4630
|
var import_icons27 = require("@elementor/icons");
|
|
4527
4631
|
var import_ui47 = require("@elementor/ui");
|
|
4528
|
-
var
|
|
4632
|
+
var import_i18n64 = require("@wordpress/i18n");
|
|
4529
4633
|
|
|
4530
4634
|
// src/hooks/use-persist-dynamic-value.ts
|
|
4531
4635
|
var import_session6 = require("@elementor/session");
|
|
@@ -4568,7 +4672,7 @@ var import_editor_controls55 = require("@elementor/editor-controls");
|
|
|
4568
4672
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
4569
4673
|
var import_icons26 = require("@elementor/icons");
|
|
4570
4674
|
var import_ui46 = require("@elementor/ui");
|
|
4571
|
-
var
|
|
4675
|
+
var import_i18n63 = require("@wordpress/i18n");
|
|
4572
4676
|
var SIZE6 = "tiny";
|
|
4573
4677
|
var DynamicSelection = ({ close: closePopover }) => {
|
|
4574
4678
|
const [searchValue, setSearchValue] = (0, import_react42.useState)("");
|
|
@@ -4603,21 +4707,21 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
4603
4707
|
label: item.label
|
|
4604
4708
|
}))
|
|
4605
4709
|
]);
|
|
4606
|
-
return /* @__PURE__ */ React90.createElement(
|
|
4710
|
+
return /* @__PURE__ */ React90.createElement(PopoverBody, null, /* @__PURE__ */ React90.createElement(
|
|
4607
4711
|
import_editor_ui7.PopoverHeader,
|
|
4608
4712
|
{
|
|
4609
|
-
title: (0,
|
|
4713
|
+
title: (0, import_i18n63.__)("Dynamic tags", "elementor"),
|
|
4610
4714
|
onClose: closePopover,
|
|
4611
4715
|
icon: /* @__PURE__ */ React90.createElement(import_icons26.DatabaseIcon, { fontSize: SIZE6 })
|
|
4612
4716
|
}
|
|
4613
|
-
),
|
|
4717
|
+
), hasNoDynamicTags ? /* @__PURE__ */ React90.createElement(NoDynamicTags, null) : /* @__PURE__ */ React90.createElement(import_react42.Fragment, null, /* @__PURE__ */ React90.createElement(
|
|
4614
4718
|
import_editor_ui7.PopoverSearch,
|
|
4615
4719
|
{
|
|
4616
4720
|
value: searchValue,
|
|
4617
4721
|
onSearch: handleSearch,
|
|
4618
|
-
placeholder: (0,
|
|
4722
|
+
placeholder: (0, import_i18n63.__)("Search dynamic tags\u2026", "elementor")
|
|
4619
4723
|
}
|
|
4620
|
-
), /* @__PURE__ */ React90.createElement(import_ui46.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
4724
|
+
), /* @__PURE__ */ React90.createElement(import_ui46.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
4621
4725
|
import_editor_ui7.PopoverMenuList,
|
|
4622
4726
|
{
|
|
4623
4727
|
items: virtualizedItems,
|
|
@@ -4627,7 +4731,7 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
4627
4731
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
4628
4732
|
noResultsComponent: /* @__PURE__ */ React90.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
4629
4733
|
}
|
|
4630
|
-
)))
|
|
4734
|
+
)));
|
|
4631
4735
|
};
|
|
4632
4736
|
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElement(
|
|
4633
4737
|
import_ui46.Stack,
|
|
@@ -4641,10 +4745,10 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElem
|
|
|
4641
4745
|
sx: { pb: 3.5 }
|
|
4642
4746
|
},
|
|
4643
4747
|
/* @__PURE__ */ React90.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
|
|
4644
|
-
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0,
|
|
4645
|
-
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0,
|
|
4748
|
+
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n63.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React90.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
4749
|
+
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n63.__)("Try something else.", "elementor"), /* @__PURE__ */ React90.createElement(import_ui46.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n63.__)("Clear & try again", "elementor")))
|
|
4646
4750
|
);
|
|
4647
|
-
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(
|
|
4751
|
+
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(import_ui46.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
4648
4752
|
import_ui46.Stack,
|
|
4649
4753
|
{
|
|
4650
4754
|
gap: 1,
|
|
@@ -4656,8 +4760,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(import_ui46.Box,
|
|
|
4656
4760
|
sx: { pb: 3.5 }
|
|
4657
4761
|
},
|
|
4658
4762
|
/* @__PURE__ */ React90.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
|
|
4659
|
-
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0,
|
|
4660
|
-
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "caption" }, (0,
|
|
4763
|
+
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n63.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
4764
|
+
/* @__PURE__ */ React90.createElement(import_ui46.Typography, { align: "center", variant: "caption" }, (0, import_i18n63.__)("You'll need Elementor Pro to use this feature.", "elementor"))
|
|
4661
4765
|
));
|
|
4662
4766
|
var useFilteredOptions = (searchValue) => {
|
|
4663
4767
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -4703,7 +4807,7 @@ var DynamicSelectionControl = () => {
|
|
|
4703
4807
|
{
|
|
4704
4808
|
size: SIZE7,
|
|
4705
4809
|
onClick: removeDynamicTag,
|
|
4706
|
-
"aria-label": (0,
|
|
4810
|
+
"aria-label": (0, import_i18n64.__)("Remove dynamic value", "elementor")
|
|
4707
4811
|
},
|
|
4708
4812
|
/* @__PURE__ */ React91.createElement(import_icons27.XIcon, { fontSize: SIZE7 })
|
|
4709
4813
|
))
|
|
@@ -4720,7 +4824,7 @@ var DynamicSelectionControl = () => {
|
|
|
4720
4824
|
},
|
|
4721
4825
|
...(0, import_ui47.bindPopover)(selectionPopoverState)
|
|
4722
4826
|
},
|
|
4723
|
-
/* @__PURE__ */ React91.createElement(
|
|
4827
|
+
/* @__PURE__ */ React91.createElement(PopoverBody, null, /* @__PURE__ */ React91.createElement(DynamicSelection, { close: selectionPopoverState.close }))
|
|
4724
4828
|
));
|
|
4725
4829
|
};
|
|
4726
4830
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
@@ -4729,26 +4833,26 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
4729
4833
|
if (!hasDynamicSettings) {
|
|
4730
4834
|
return null;
|
|
4731
4835
|
}
|
|
4732
|
-
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(import_ui47.IconButton, { size: SIZE7, ...(0, import_ui47.bindTrigger)(popupState), "aria-label": (0,
|
|
4836
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(import_ui47.IconButton, { size: SIZE7, ...(0, import_ui47.bindTrigger)(popupState), "aria-label": (0, import_i18n64.__)("Settings", "elementor") }, /* @__PURE__ */ React91.createElement(import_icons27.SettingsIcon, { fontSize: SIZE7 })), /* @__PURE__ */ React91.createElement(
|
|
4733
4837
|
import_ui47.Popover,
|
|
4734
4838
|
{
|
|
4735
4839
|
disablePortal: true,
|
|
4736
4840
|
disableScrollLock: true,
|
|
4737
|
-
anchorOrigin: { vertical: "bottom", horizontal: "
|
|
4841
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
4842
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
4738
4843
|
PaperProps: {
|
|
4739
|
-
sx: { my:
|
|
4844
|
+
sx: { my: 1 }
|
|
4740
4845
|
},
|
|
4741
4846
|
...(0, import_ui47.bindPopover)(popupState)
|
|
4742
4847
|
},
|
|
4743
|
-
/* @__PURE__ */ React91.createElement(
|
|
4848
|
+
/* @__PURE__ */ React91.createElement(PopoverBody, null, /* @__PURE__ */ React91.createElement(
|
|
4744
4849
|
import_editor_ui8.PopoverHeader,
|
|
4745
4850
|
{
|
|
4746
4851
|
title: dynamicTag.label,
|
|
4747
4852
|
onClose: popupState.close,
|
|
4748
4853
|
icon: /* @__PURE__ */ React91.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE7 })
|
|
4749
4854
|
}
|
|
4750
|
-
),
|
|
4751
|
-
/* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls })
|
|
4855
|
+
), /* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
4752
4856
|
));
|
|
4753
4857
|
};
|
|
4754
4858
|
var DynamicSettings = ({ controls }) => {
|
|
@@ -4757,13 +4861,21 @@ var DynamicSettings = ({ controls }) => {
|
|
|
4757
4861
|
if (!tabs.length) {
|
|
4758
4862
|
return null;
|
|
4759
4863
|
}
|
|
4760
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4761
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4864
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(import_ui47.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React91.createElement(import_ui47.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React91.createElement(import_ui47.Divider, null), tabs.map(({ value }, index) => {
|
|
4865
|
+
return /* @__PURE__ */ React91.createElement(
|
|
4866
|
+
import_ui47.TabPanel,
|
|
4867
|
+
{
|
|
4868
|
+
key: index,
|
|
4869
|
+
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
4870
|
+
...getTabPanelProps(index)
|
|
4871
|
+
},
|
|
4872
|
+
/* @__PURE__ */ React91.createElement(import_ui47.Stack, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
4873
|
+
if (item.type === "control") {
|
|
4874
|
+
return /* @__PURE__ */ React91.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
4875
|
+
}
|
|
4876
|
+
return null;
|
|
4877
|
+
}))
|
|
4878
|
+
);
|
|
4767
4879
|
}));
|
|
4768
4880
|
};
|
|
4769
4881
|
var Control3 = ({ control }) => {
|
|
@@ -4775,7 +4887,7 @@ var Control3 = ({ control }) => {
|
|
|
4775
4887
|
|
|
4776
4888
|
// src/dynamics/dynamic-transformer.ts
|
|
4777
4889
|
var import_editor_canvas3 = require("@elementor/editor-canvas");
|
|
4778
|
-
var
|
|
4890
|
+
var import_editor_props14 = require("@elementor/editor-props");
|
|
4779
4891
|
|
|
4780
4892
|
// src/dynamics/errors.ts
|
|
4781
4893
|
var import_utils9 = require("@elementor/utils");
|
|
@@ -4793,7 +4905,7 @@ var dynamicTransformer = (0, import_editor_canvas3.createTransformer)((value) =>
|
|
|
4793
4905
|
});
|
|
4794
4906
|
function simpleTransform(props) {
|
|
4795
4907
|
const transformed = Object.entries(props).map(([settingKey, settingValue]) => {
|
|
4796
|
-
const value = (0,
|
|
4908
|
+
const value = (0, import_editor_props14.isTransformable)(settingValue) ? settingValue.value : settingValue;
|
|
4797
4909
|
return [settingKey, value];
|
|
4798
4910
|
});
|
|
4799
4911
|
return Object.fromEntries(transformed);
|
|
@@ -4826,14 +4938,14 @@ function getDynamicValue(name, settings) {
|
|
|
4826
4938
|
var React92 = __toESM(require("react"));
|
|
4827
4939
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
4828
4940
|
var import_icons28 = require("@elementor/icons");
|
|
4829
|
-
var
|
|
4941
|
+
var import_i18n65 = require("@wordpress/i18n");
|
|
4830
4942
|
var usePropDynamicAction = () => {
|
|
4831
4943
|
const { propType } = (0, import_editor_controls57.useBoundProp)();
|
|
4832
4944
|
const visible = !!propType && supportsDynamic(propType);
|
|
4833
4945
|
return {
|
|
4834
4946
|
visible,
|
|
4835
4947
|
icon: import_icons28.DatabaseIcon,
|
|
4836
|
-
title: (0,
|
|
4948
|
+
title: (0, import_i18n65.__)("Dynamic tags", "elementor"),
|
|
4837
4949
|
content: ({ close }) => /* @__PURE__ */ React92.createElement(DynamicSelection, { close })
|
|
4838
4950
|
};
|
|
4839
4951
|
};
|
|
@@ -4866,7 +4978,7 @@ var init = () => {
|
|
|
4866
4978
|
// src/reset-style-props.tsx
|
|
4867
4979
|
var import_editor_controls59 = require("@elementor/editor-controls");
|
|
4868
4980
|
var import_icons29 = require("@elementor/icons");
|
|
4869
|
-
var
|
|
4981
|
+
var import_i18n66 = require("@wordpress/i18n");
|
|
4870
4982
|
var { registerAction } = controlActionsMenu;
|
|
4871
4983
|
function initResetStyleProps() {
|
|
4872
4984
|
registerAction({
|
|
@@ -4874,13 +4986,13 @@ function initResetStyleProps() {
|
|
|
4874
4986
|
useProps: useResetStyleValueProps
|
|
4875
4987
|
});
|
|
4876
4988
|
}
|
|
4877
|
-
var EXCLUDED_BINDS = ["
|
|
4989
|
+
var EXCLUDED_BINDS = ["flex-grow", "flex-shrink", "flex-basis"];
|
|
4878
4990
|
function useResetStyleValueProps() {
|
|
4879
4991
|
const isStyle = useIsStyle();
|
|
4880
4992
|
const { value, setValue, path, bind } = (0, import_editor_controls59.useBoundProp)();
|
|
4881
4993
|
return {
|
|
4882
4994
|
visible: isStyle && value !== null && value !== void 0 && path.length <= 2 && !EXCLUDED_BINDS.includes(bind),
|
|
4883
|
-
title: (0,
|
|
4995
|
+
title: (0, import_i18n66.__)("Clear", "elementor"),
|
|
4884
4996
|
icon: import_icons29.BrushBigIcon,
|
|
4885
4997
|
onClick: () => setValue(null)
|
|
4886
4998
|
};
|
|
@@ -4909,7 +5021,7 @@ var StyledUnstableColorIndicator = (0, import_ui48.styled)(import_ui48.UnstableC
|
|
|
4909
5021
|
var React94 = __toESM(require("react"));
|
|
4910
5022
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
4911
5023
|
var import_ui49 = require("@elementor/ui");
|
|
4912
|
-
var
|
|
5024
|
+
var import_i18n67 = require("@wordpress/i18n");
|
|
4913
5025
|
var backgroundGradientOverlayTransformer = (0, import_editor_canvas6.createTransformer)((value) => /* @__PURE__ */ React94.createElement(import_ui49.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React94.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React94.createElement(ItemLabelGradient, { value })));
|
|
4914
5026
|
var ItemIconGradient = ({ value }) => {
|
|
4915
5027
|
const gradient = getGradientValue(value);
|
|
@@ -4917,9 +5029,9 @@ var ItemIconGradient = ({ value }) => {
|
|
|
4917
5029
|
};
|
|
4918
5030
|
var ItemLabelGradient = ({ value }) => {
|
|
4919
5031
|
if (value.type === "linear") {
|
|
4920
|
-
return /* @__PURE__ */ React94.createElement("span", null, (0,
|
|
5032
|
+
return /* @__PURE__ */ React94.createElement("span", null, (0, import_i18n67.__)("Linear Gradient", "elementor"));
|
|
4921
5033
|
}
|
|
4922
|
-
return /* @__PURE__ */ React94.createElement("span", null, (0,
|
|
5034
|
+
return /* @__PURE__ */ React94.createElement("span", null, (0, import_i18n67.__)("Radial Gradient", "elementor"));
|
|
4923
5035
|
};
|
|
4924
5036
|
var getGradientValue = (gradient) => {
|
|
4925
5037
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -5029,10 +5141,6 @@ function init3() {
|
|
|
5029
5141
|
id: "editing-panel-hooks",
|
|
5030
5142
|
component: EditingPanelHooks
|
|
5031
5143
|
});
|
|
5032
|
-
(0, import_editor.injectIntoLogic)({
|
|
5033
|
-
id: "current-user-data",
|
|
5034
|
-
component: import_editor_current_user.PrefetchUserData
|
|
5035
|
-
});
|
|
5036
5144
|
init();
|
|
5037
5145
|
init2();
|
|
5038
5146
|
if ((0, import_editor_v1_adapters20.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30)) {
|
|
@@ -5048,7 +5156,7 @@ var blockV1Panel = () => {
|
|
|
5048
5156
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5049
5157
|
0 && (module.exports = {
|
|
5050
5158
|
EXPERIMENTAL_FEATURES,
|
|
5051
|
-
|
|
5159
|
+
PopoverBody,
|
|
5052
5160
|
controlActionsMenu,
|
|
5053
5161
|
init,
|
|
5054
5162
|
injectIntoClassSelectorActions,
|