@elementor/editor-editing-panel 3.35.0-340 → 3.35.0-342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +28 -16
- package/dist/index.d.ts +28 -16
- package/dist/index.js +304 -293
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/components/collapsible-content.tsx +1 -2
- package/src/components/editing-panel.tsx +29 -16
- package/src/components/section.tsx +1 -1
- package/src/editing-panel-replacement-registry.tsx +30 -0
- package/src/index.ts +3 -1
- package/src/components/collapse-icon.tsx +0 -12
package/dist/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __export(index_exports, {
|
|
|
54
54
|
injectIntoPanelHeaderTop: () => injectIntoPanelHeaderTop,
|
|
55
55
|
injectIntoStyleTab: () => injectIntoStyleTab,
|
|
56
56
|
registerControlReplacement: () => registerControlReplacement,
|
|
57
|
+
registerEditingPanelReplacement: () => registerEditingPanelReplacement,
|
|
57
58
|
registerFieldIndicator: () => registerFieldIndicator,
|
|
58
59
|
registerStyleProviderToColors: () => registerStyleProviderToColors,
|
|
59
60
|
stylesInheritanceTransformersRegistry: () => stylesInheritanceTransformersRegistry,
|
|
@@ -65,6 +66,7 @@ __export(index_exports, {
|
|
|
65
66
|
usePanelActions: () => usePanelActions,
|
|
66
67
|
usePanelStatus: () => usePanelStatus,
|
|
67
68
|
useSectionWidth: () => useSectionWidth,
|
|
69
|
+
useStateByElement: () => useStateByElement,
|
|
68
70
|
useStyle: () => useStyle,
|
|
69
71
|
useStylesRerender: () => useStylesRerender
|
|
70
72
|
});
|
|
@@ -1728,11 +1730,11 @@ var React84 = __toESM(require("react"));
|
|
|
1728
1730
|
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
1729
1731
|
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
1730
1732
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1731
|
-
var
|
|
1732
|
-
var
|
|
1733
|
+
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
1734
|
+
var import_icons21 = require("@elementor/icons");
|
|
1733
1735
|
var import_locations4 = require("@elementor/locations");
|
|
1734
1736
|
var import_session8 = require("@elementor/session");
|
|
1735
|
-
var
|
|
1737
|
+
var import_ui39 = require("@elementor/ui");
|
|
1736
1738
|
var import_i18n57 = require("@wordpress/i18n");
|
|
1737
1739
|
|
|
1738
1740
|
// src/control-replacement.tsx
|
|
@@ -1815,6 +1817,18 @@ var controlActionsMenu = (0, import_menus.createMenu)({
|
|
|
1815
1817
|
}
|
|
1816
1818
|
});
|
|
1817
1819
|
|
|
1820
|
+
// src/editing-panel-replacement-registry.tsx
|
|
1821
|
+
var registry = /* @__PURE__ */ new Map();
|
|
1822
|
+
var DEFAULT_PRIORITY = 10;
|
|
1823
|
+
var registerEditingPanelReplacement = ({
|
|
1824
|
+
id,
|
|
1825
|
+
priority = DEFAULT_PRIORITY,
|
|
1826
|
+
...props
|
|
1827
|
+
}) => {
|
|
1828
|
+
registry.set(id, { ...props, priority });
|
|
1829
|
+
};
|
|
1830
|
+
var getEditingPanelReplacement = (element, elementType) => Array.from(registry.values()).filter(({ condition }) => condition(element, elementType)).sort((a, b) => a.priority - b.priority)?.[0] ?? null;
|
|
1831
|
+
|
|
1818
1832
|
// src/components/editing-panel-error-fallback.tsx
|
|
1819
1833
|
var React14 = __toESM(require("react"));
|
|
1820
1834
|
var import_ui10 = require("@elementor/ui");
|
|
@@ -1826,7 +1840,7 @@ function EditorPanelErrorFallback() {
|
|
|
1826
1840
|
var import_react36 = require("react");
|
|
1827
1841
|
var React83 = __toESM(require("react"));
|
|
1828
1842
|
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
1829
|
-
var
|
|
1843
|
+
var import_ui38 = require("@elementor/ui");
|
|
1830
1844
|
var import_i18n56 = require("@wordpress/i18n");
|
|
1831
1845
|
|
|
1832
1846
|
// src/contexts/scroll-context.tsx
|
|
@@ -1936,7 +1950,8 @@ var import_session5 = require("@elementor/session");
|
|
|
1936
1950
|
// src/components/section.tsx
|
|
1937
1951
|
var React19 = __toESM(require("react"));
|
|
1938
1952
|
var import_react19 = require("react");
|
|
1939
|
-
var
|
|
1953
|
+
var import_editor_ui5 = require("@elementor/editor-ui");
|
|
1954
|
+
var import_ui14 = require("@elementor/ui");
|
|
1940
1955
|
|
|
1941
1956
|
// src/contexts/section-context.tsx
|
|
1942
1957
|
var import_react17 = require("react");
|
|
@@ -1948,24 +1963,13 @@ var useSectionWidth = () => {
|
|
|
1948
1963
|
return sectionRef?.current?.offsetWidth ?? FALLBACK_SECTION_WIDTH;
|
|
1949
1964
|
};
|
|
1950
1965
|
|
|
1951
|
-
// src/components/collapse-icon.tsx
|
|
1952
|
-
var import_icons3 = require("@elementor/icons");
|
|
1953
|
-
var import_ui13 = require("@elementor/ui");
|
|
1954
|
-
var CollapseIcon = (0, import_ui13.styled)(import_icons3.ChevronDownIcon, {
|
|
1955
|
-
shouldForwardProp: (prop) => prop !== "open"
|
|
1956
|
-
})(({ theme, open }) => ({
|
|
1957
|
-
transform: open ? "rotate(180deg)" : "rotate(0deg)",
|
|
1958
|
-
transition: theme.transitions.create("transform", {
|
|
1959
|
-
duration: theme.transitions.duration.standard
|
|
1960
|
-
})
|
|
1961
|
-
}));
|
|
1962
|
-
|
|
1963
1966
|
// src/components/collapsible-content.tsx
|
|
1964
1967
|
var React18 = __toESM(require("react"));
|
|
1965
1968
|
var import_react18 = require("react");
|
|
1966
|
-
var
|
|
1969
|
+
var import_editor_ui4 = require("@elementor/editor-ui");
|
|
1970
|
+
var import_ui13 = require("@elementor/ui");
|
|
1967
1971
|
var import_i18n7 = require("@wordpress/i18n");
|
|
1968
|
-
var IndicatorsWrapper = (0,
|
|
1972
|
+
var IndicatorsWrapper = (0, import_ui13.styled)("div")`
|
|
1969
1973
|
position: absolute;
|
|
1970
1974
|
top: 0;
|
|
1971
1975
|
right: ${({ theme }) => theme.spacing(3)};
|
|
@@ -1980,20 +1984,20 @@ var CollapsibleContent = ({ children, defaultOpen = false, titleEnd = null }) =>
|
|
|
1980
1984
|
const handleToggle = () => {
|
|
1981
1985
|
setOpen((prevOpen) => !prevOpen);
|
|
1982
1986
|
};
|
|
1983
|
-
return /* @__PURE__ */ React18.createElement(
|
|
1984
|
-
|
|
1987
|
+
return /* @__PURE__ */ React18.createElement(import_ui13.Stack, null, /* @__PURE__ */ React18.createElement(import_ui13.Stack, { sx: { position: "relative" } }, /* @__PURE__ */ React18.createElement(
|
|
1988
|
+
import_ui13.Button,
|
|
1985
1989
|
{
|
|
1986
1990
|
fullWidth: true,
|
|
1987
1991
|
size: "small",
|
|
1988
1992
|
color: "secondary",
|
|
1989
1993
|
variant: "outlined",
|
|
1990
1994
|
onClick: handleToggle,
|
|
1991
|
-
endIcon: /* @__PURE__ */ React18.createElement(CollapseIcon, { open }),
|
|
1995
|
+
endIcon: /* @__PURE__ */ React18.createElement(import_editor_ui4.CollapseIcon, { open }),
|
|
1992
1996
|
sx: { my: 0.5 },
|
|
1993
1997
|
"aria-label": open ? "Show less" : "Show more"
|
|
1994
1998
|
},
|
|
1995
1999
|
open ? (0, import_i18n7.__)("Show less", "elementor") : (0, import_i18n7.__)("Show more", "elementor")
|
|
1996
|
-
), titleEnd && /* @__PURE__ */ React18.createElement(IndicatorsWrapper, null, getCollapsibleValue(titleEnd, open))), /* @__PURE__ */ React18.createElement(
|
|
2000
|
+
), titleEnd && /* @__PURE__ */ React18.createElement(IndicatorsWrapper, null, getCollapsibleValue(titleEnd, open))), /* @__PURE__ */ React18.createElement(import_ui13.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
1997
2001
|
};
|
|
1998
2002
|
function getCollapsibleValue(value, isOpen) {
|
|
1999
2003
|
if (typeof value === "function") {
|
|
@@ -2013,7 +2017,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2013
2017
|
const labelId = `label-${id}`;
|
|
2014
2018
|
const contentId = `content-${id}`;
|
|
2015
2019
|
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(
|
|
2016
|
-
|
|
2020
|
+
import_ui14.ListItemButton,
|
|
2017
2021
|
{
|
|
2018
2022
|
id: labelId,
|
|
2019
2023
|
"aria-controls": contentId,
|
|
@@ -2021,17 +2025,17 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2021
2025
|
onClick: handleClick,
|
|
2022
2026
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2023
2027
|
},
|
|
2024
|
-
/* @__PURE__ */ React19.createElement(
|
|
2025
|
-
|
|
2028
|
+
/* @__PURE__ */ React19.createElement(import_ui14.Stack, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React19.createElement(
|
|
2029
|
+
import_ui14.ListItemText,
|
|
2026
2030
|
{
|
|
2027
2031
|
secondary: title,
|
|
2028
2032
|
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
|
|
2029
2033
|
sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
|
|
2030
2034
|
}
|
|
2031
2035
|
), getCollapsibleValue(titleEnd, isOpen)),
|
|
2032
|
-
/* @__PURE__ */ React19.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
2036
|
+
/* @__PURE__ */ React19.createElement(import_editor_ui5.CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
2033
2037
|
), /* @__PURE__ */ React19.createElement(
|
|
2034
|
-
|
|
2038
|
+
import_ui14.Collapse,
|
|
2035
2039
|
{
|
|
2036
2040
|
id: contentId,
|
|
2037
2041
|
"aria-labelledby": labelId,
|
|
@@ -2039,14 +2043,14 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2039
2043
|
timeout: "auto",
|
|
2040
2044
|
unmountOnExit
|
|
2041
2045
|
},
|
|
2042
|
-
/* @__PURE__ */ React19.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React19.createElement(
|
|
2043
|
-
), /* @__PURE__ */ React19.createElement(
|
|
2046
|
+
/* @__PURE__ */ React19.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React19.createElement(import_ui14.Stack, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
|
|
2047
|
+
), /* @__PURE__ */ React19.createElement(import_ui14.Divider, null));
|
|
2044
2048
|
}
|
|
2045
2049
|
|
|
2046
2050
|
// src/components/settings-control.tsx
|
|
2047
2051
|
var React24 = __toESM(require("react"));
|
|
2048
2052
|
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
2049
|
-
var
|
|
2053
|
+
var import_ui17 = require("@elementor/ui");
|
|
2050
2054
|
|
|
2051
2055
|
// src/controls-registry/control.tsx
|
|
2052
2056
|
var React20 = __toESM(require("react"));
|
|
@@ -2119,14 +2123,14 @@ var Control = ({ props, type }) => {
|
|
|
2119
2123
|
|
|
2120
2124
|
// src/controls-registry/control-type-container.tsx
|
|
2121
2125
|
var React21 = __toESM(require("react"));
|
|
2122
|
-
var
|
|
2126
|
+
var import_ui15 = require("@elementor/ui");
|
|
2123
2127
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
2124
2128
|
if (layout === "custom") {
|
|
2125
2129
|
return children;
|
|
2126
2130
|
}
|
|
2127
2131
|
return /* @__PURE__ */ React21.createElement(StyledContainer, { layout }, children);
|
|
2128
2132
|
};
|
|
2129
|
-
var StyledContainer = (0,
|
|
2133
|
+
var StyledContainer = (0, import_ui15.styled)(import_ui15.Box, {
|
|
2130
2134
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
2131
2135
|
})(({ layout, theme }) => ({
|
|
2132
2136
|
display: "grid",
|
|
@@ -2380,7 +2384,7 @@ var indicatorsRegistry = {
|
|
|
2380
2384
|
settings: /* @__PURE__ */ new Map(),
|
|
2381
2385
|
styles: /* @__PURE__ */ new Map()
|
|
2382
2386
|
};
|
|
2383
|
-
var
|
|
2387
|
+
var DEFAULT_PRIORITY2 = 10;
|
|
2384
2388
|
var FIELD_TYPE = {
|
|
2385
2389
|
SETTINGS: "settings",
|
|
2386
2390
|
STYLES: "styles"
|
|
@@ -2389,7 +2393,7 @@ var registerFieldIndicator = ({
|
|
|
2389
2393
|
fieldType,
|
|
2390
2394
|
id,
|
|
2391
2395
|
indicator,
|
|
2392
|
-
priority =
|
|
2396
|
+
priority = DEFAULT_PRIORITY2
|
|
2393
2397
|
}) => {
|
|
2394
2398
|
indicatorsRegistry[fieldType].set(id, { id, indicator, priority });
|
|
2395
2399
|
};
|
|
@@ -2398,13 +2402,13 @@ var getFieldIndicators = (fieldType) => Array.from(indicatorsRegistry[fieldType]
|
|
|
2398
2402
|
// src/components/control-label.tsx
|
|
2399
2403
|
var React23 = __toESM(require("react"));
|
|
2400
2404
|
var import_editor_controls5 = require("@elementor/editor-controls");
|
|
2401
|
-
var
|
|
2405
|
+
var import_ui16 = require("@elementor/ui");
|
|
2402
2406
|
var ControlLabel = ({ children }) => {
|
|
2403
|
-
return /* @__PURE__ */ React23.createElement(
|
|
2407
|
+
return /* @__PURE__ */ React23.createElement(import_ui16.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React23.createElement(import_editor_controls5.ControlFormLabel, null, children), /* @__PURE__ */ React23.createElement(import_editor_controls5.ControlAdornments, null));
|
|
2404
2408
|
};
|
|
2405
2409
|
|
|
2406
2410
|
// src/components/settings-control.tsx
|
|
2407
|
-
var Wrapper = (0,
|
|
2411
|
+
var Wrapper = (0, import_ui17.styled)("span")`
|
|
2408
2412
|
display: contents;
|
|
2409
2413
|
`;
|
|
2410
2414
|
var SettingsControl = ({ control: { value, type } }) => {
|
|
@@ -2427,7 +2431,7 @@ var ControlLayout = ({
|
|
|
2427
2431
|
controlProps
|
|
2428
2432
|
}) => {
|
|
2429
2433
|
const controlType = control.type;
|
|
2430
|
-
return /* @__PURE__ */ React24.createElement(import_editor_controls6.ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React24.createElement(
|
|
2434
|
+
return /* @__PURE__ */ React24.createElement(import_editor_controls6.ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React24.createElement(import_ui17.Divider, null), /* @__PURE__ */ React24.createElement(Wrapper, { "data-type": "settings-field" }, /* @__PURE__ */ React24.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React24.createElement(ControlLabel, null, control.label) : null, /* @__PURE__ */ React24.createElement(Control, { type: controlType, props: controlProps }))));
|
|
2431
2435
|
};
|
|
2432
2436
|
function populateChildControlProps(props) {
|
|
2433
2437
|
if (props.childControlType) {
|
|
@@ -2491,7 +2495,7 @@ var import_editor_props14 = require("@elementor/editor-props");
|
|
|
2491
2495
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2492
2496
|
var import_locations3 = require("@elementor/locations");
|
|
2493
2497
|
var import_session7 = require("@elementor/session");
|
|
2494
|
-
var
|
|
2498
|
+
var import_ui37 = require("@elementor/ui");
|
|
2495
2499
|
var import_i18n55 = require("@wordpress/i18n");
|
|
2496
2500
|
|
|
2497
2501
|
// src/contexts/styles-inheritance-context.tsx
|
|
@@ -2864,8 +2868,8 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
2864
2868
|
|
|
2865
2869
|
// src/components/section-content.tsx
|
|
2866
2870
|
var React28 = __toESM(require("react"));
|
|
2867
|
-
var
|
|
2868
|
-
var SectionContent = ({ gap = 2, sx, children, "aria-label": ariaLabel }) => /* @__PURE__ */ React28.createElement(
|
|
2871
|
+
var import_ui18 = require("@elementor/ui");
|
|
2872
|
+
var SectionContent = ({ gap = 2, sx, children, "aria-label": ariaLabel }) => /* @__PURE__ */ React28.createElement(import_ui18.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel }, children);
|
|
2869
2873
|
|
|
2870
2874
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2871
2875
|
var BACKGROUND_LABEL = (0, import_i18n9.__)("Background", "elementor");
|
|
@@ -2883,7 +2887,7 @@ var import_i18n10 = require("@wordpress/i18n");
|
|
|
2883
2887
|
|
|
2884
2888
|
// src/components/styles-field-layout.tsx
|
|
2885
2889
|
var React30 = __toESM(require("react"));
|
|
2886
|
-
var
|
|
2890
|
+
var import_ui19 = require("@elementor/ui");
|
|
2887
2891
|
var StylesFieldLayout = React30.forwardRef((props, ref) => {
|
|
2888
2892
|
const { direction = "row", children, label } = props;
|
|
2889
2893
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
@@ -2892,7 +2896,7 @@ var StylesFieldLayout = React30.forwardRef((props, ref) => {
|
|
|
2892
2896
|
var Row = React30.forwardRef(
|
|
2893
2897
|
({ label, children }, ref) => {
|
|
2894
2898
|
return /* @__PURE__ */ React30.createElement(
|
|
2895
|
-
|
|
2899
|
+
import_ui19.Grid,
|
|
2896
2900
|
{
|
|
2897
2901
|
container: true,
|
|
2898
2902
|
gap: 2,
|
|
@@ -2901,9 +2905,9 @@ var Row = React30.forwardRef(
|
|
|
2901
2905
|
ref,
|
|
2902
2906
|
"aria-label": `${label} control`
|
|
2903
2907
|
},
|
|
2904
|
-
/* @__PURE__ */ React30.createElement(
|
|
2908
|
+
/* @__PURE__ */ React30.createElement(import_ui19.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React30.createElement(ControlLabel, null, label)),
|
|
2905
2909
|
/* @__PURE__ */ React30.createElement(
|
|
2906
|
-
|
|
2910
|
+
import_ui19.Grid,
|
|
2907
2911
|
{
|
|
2908
2912
|
item: true,
|
|
2909
2913
|
xs: 6,
|
|
@@ -2918,7 +2922,7 @@ var Row = React30.forwardRef(
|
|
|
2918
2922
|
);
|
|
2919
2923
|
var Column = React30.forwardRef(
|
|
2920
2924
|
({ label, children }, ref) => {
|
|
2921
|
-
return /* @__PURE__ */ React30.createElement(
|
|
2925
|
+
return /* @__PURE__ */ React30.createElement(import_ui19.Stack, { gap: 0.75, ref }, /* @__PURE__ */ React30.createElement(ControlLabel, null, label), children);
|
|
2922
2926
|
}
|
|
2923
2927
|
);
|
|
2924
2928
|
|
|
@@ -2930,12 +2934,12 @@ var BorderColorField = () => /* @__PURE__ */ React31.createElement(StylesField,
|
|
|
2930
2934
|
var React33 = __toESM(require("react"));
|
|
2931
2935
|
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
2932
2936
|
var import_editor_props11 = require("@elementor/editor-props");
|
|
2933
|
-
var
|
|
2934
|
-
var
|
|
2937
|
+
var import_icons3 = require("@elementor/icons");
|
|
2938
|
+
var import_ui22 = require("@elementor/ui");
|
|
2935
2939
|
var import_i18n11 = require("@wordpress/i18n");
|
|
2936
2940
|
|
|
2937
2941
|
// src/hooks/use-direction.ts
|
|
2938
|
-
var
|
|
2942
|
+
var import_ui20 = require("@elementor/ui");
|
|
2939
2943
|
|
|
2940
2944
|
// src/sync/get-elementor-globals.ts
|
|
2941
2945
|
var getElementorConfig = () => {
|
|
@@ -2949,25 +2953,25 @@ var getElementorFrontendConfig = () => {
|
|
|
2949
2953
|
|
|
2950
2954
|
// src/hooks/use-direction.ts
|
|
2951
2955
|
function useDirection() {
|
|
2952
|
-
const theme = (0,
|
|
2956
|
+
const theme = (0, import_ui20.useTheme)();
|
|
2953
2957
|
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!getElementorFrontendConfig()?.is_rtl;
|
|
2954
2958
|
return { isSiteRtl, isUiRtl };
|
|
2955
2959
|
}
|
|
2956
2960
|
|
|
2957
2961
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
2958
2962
|
var React32 = __toESM(require("react"));
|
|
2959
|
-
var
|
|
2963
|
+
var import_ui21 = require("@elementor/ui");
|
|
2960
2964
|
var UiProviders = ({ children }) => {
|
|
2961
2965
|
const { isSiteRtl } = useDirection();
|
|
2962
|
-
return /* @__PURE__ */ React32.createElement(
|
|
2966
|
+
return /* @__PURE__ */ React32.createElement(import_ui21.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React32.createElement(import_ui21.ThemeProvider, null, children));
|
|
2963
2967
|
};
|
|
2964
2968
|
|
|
2965
2969
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
2966
2970
|
var BORDER_RADIUS_LABEL = (0, import_i18n11.__)("Border radius", "elementor");
|
|
2967
|
-
var StartStartIcon = (0,
|
|
2968
|
-
var StartEndIcon = (0,
|
|
2969
|
-
var EndStartIcon = (0,
|
|
2970
|
-
var EndEndIcon = (0,
|
|
2971
|
+
var StartStartIcon = (0, import_ui22.withDirection)(import_icons3.RadiusTopLeftIcon);
|
|
2972
|
+
var StartEndIcon = (0, import_ui22.withDirection)(import_icons3.RadiusTopRightIcon);
|
|
2973
|
+
var EndStartIcon = (0, import_ui22.withDirection)(import_icons3.RadiusBottomLeftIcon);
|
|
2974
|
+
var EndEndIcon = (0, import_ui22.withDirection)(import_icons3.RadiusBottomRightIcon);
|
|
2971
2975
|
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Top right", "elementor") : (0, import_i18n11.__)("Top left", "elementor");
|
|
2972
2976
|
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Top left", "elementor") : (0, import_i18n11.__)("Top right", "elementor");
|
|
2973
2977
|
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Bottom right", "elementor") : (0, import_i18n11.__)("Bottom left", "elementor");
|
|
@@ -3001,7 +3005,7 @@ var BorderRadiusField = () => {
|
|
|
3001
3005
|
{
|
|
3002
3006
|
items: getCorners(isSiteRtl),
|
|
3003
3007
|
label: BORDER_RADIUS_LABEL,
|
|
3004
|
-
icon: /* @__PURE__ */ React33.createElement(
|
|
3008
|
+
icon: /* @__PURE__ */ React33.createElement(import_icons3.BorderCornersIcon, { fontSize: "tiny" }),
|
|
3005
3009
|
tooltipLabel: (0, import_i18n11.__)("Adjust corners", "elementor"),
|
|
3006
3010
|
multiSizePropTypeUtil: import_editor_props11.borderRadiusPropTypeUtil
|
|
3007
3011
|
}
|
|
@@ -3030,16 +3034,16 @@ var BorderStyleField = () => /* @__PURE__ */ React34.createElement(StylesField,
|
|
|
3030
3034
|
var React35 = __toESM(require("react"));
|
|
3031
3035
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3032
3036
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
3033
|
-
var
|
|
3034
|
-
var
|
|
3037
|
+
var import_icons4 = require("@elementor/icons");
|
|
3038
|
+
var import_ui23 = require("@elementor/ui");
|
|
3035
3039
|
var import_i18n13 = require("@wordpress/i18n");
|
|
3036
3040
|
var BORDER_WIDTH_LABEL = (0, import_i18n13.__)("Border width", "elementor");
|
|
3037
|
-
var InlineStartIcon = (0,
|
|
3038
|
-
var InlineEndIcon = (0,
|
|
3041
|
+
var InlineStartIcon = (0, import_ui23.withDirection)(import_icons4.SideRightIcon);
|
|
3042
|
+
var InlineEndIcon = (0, import_ui23.withDirection)(import_icons4.SideLeftIcon);
|
|
3039
3043
|
var getEdges = (isSiteRtl) => [
|
|
3040
3044
|
{
|
|
3041
3045
|
label: (0, import_i18n13.__)("Top", "elementor"),
|
|
3042
|
-
icon: /* @__PURE__ */ React35.createElement(
|
|
3046
|
+
icon: /* @__PURE__ */ React35.createElement(import_icons4.SideTopIcon, { fontSize: "tiny" }),
|
|
3043
3047
|
bind: "block-start"
|
|
3044
3048
|
},
|
|
3045
3049
|
{
|
|
@@ -3049,7 +3053,7 @@ var getEdges = (isSiteRtl) => [
|
|
|
3049
3053
|
},
|
|
3050
3054
|
{
|
|
3051
3055
|
label: (0, import_i18n13.__)("Bottom", "elementor"),
|
|
3052
|
-
icon: /* @__PURE__ */ React35.createElement(
|
|
3056
|
+
icon: /* @__PURE__ */ React35.createElement(import_icons4.SideBottomIcon, { fontSize: "tiny" }),
|
|
3053
3057
|
bind: "block-end"
|
|
3054
3058
|
},
|
|
3055
3059
|
{
|
|
@@ -3065,7 +3069,7 @@ var BorderWidthField = () => {
|
|
|
3065
3069
|
{
|
|
3066
3070
|
items: getEdges(isSiteRtl),
|
|
3067
3071
|
label: BORDER_WIDTH_LABEL,
|
|
3068
|
-
icon: /* @__PURE__ */ React35.createElement(
|
|
3072
|
+
icon: /* @__PURE__ */ React35.createElement(import_icons4.SideAllIcon, { fontSize: "tiny" }),
|
|
3069
3073
|
tooltipLabel: (0, import_i18n13.__)("Adjust borders", "elementor"),
|
|
3070
3074
|
multiSizePropTypeUtil: import_editor_props12.borderWidthPropTypeUtil
|
|
3071
3075
|
}
|
|
@@ -3111,8 +3115,8 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3111
3115
|
|
|
3112
3116
|
// src/components/panel-divider.tsx
|
|
3113
3117
|
var React37 = __toESM(require("react"));
|
|
3114
|
-
var
|
|
3115
|
-
var PanelDivider = () => /* @__PURE__ */ React37.createElement(
|
|
3118
|
+
var import_ui24 = require("@elementor/ui");
|
|
3119
|
+
var PanelDivider = () => /* @__PURE__ */ React37.createElement(import_ui24.Divider, { sx: { my: 0.5 } });
|
|
3116
3120
|
|
|
3117
3121
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3118
3122
|
var React38 = __toESM(require("react"));
|
|
@@ -3203,14 +3207,14 @@ function useComputedStyle(elementId) {
|
|
|
3203
3207
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3204
3208
|
var React42 = __toESM(require("react"));
|
|
3205
3209
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3206
|
-
var
|
|
3207
|
-
var
|
|
3210
|
+
var import_icons5 = require("@elementor/icons");
|
|
3211
|
+
var import_ui26 = require("@elementor/ui");
|
|
3208
3212
|
var import_i18n18 = require("@wordpress/i18n");
|
|
3209
3213
|
|
|
3210
3214
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3211
3215
|
var React41 = __toESM(require("react"));
|
|
3212
3216
|
var import_react23 = require("react");
|
|
3213
|
-
var
|
|
3217
|
+
var import_ui25 = require("@elementor/ui");
|
|
3214
3218
|
var import_i18n17 = require("@wordpress/i18n");
|
|
3215
3219
|
var FLEX_DIRECTION_LABEL = (0, import_i18n17.__)("Flex direction", "elementor");
|
|
3216
3220
|
var CLOCKWISE_ANGLES = {
|
|
@@ -3240,7 +3244,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3240
3244
|
const { value: direction } = useStylesField("flex-direction", {
|
|
3241
3245
|
history: { propDisplayName: FLEX_DIRECTION_LABEL }
|
|
3242
3246
|
});
|
|
3243
|
-
const isRtl = "rtl" === (0,
|
|
3247
|
+
const isRtl = "rtl" === (0, import_ui25.useTheme)().direction;
|
|
3244
3248
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
3245
3249
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
3246
3250
|
const currentDirection = direction?.value || "row";
|
|
@@ -3256,8 +3260,8 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3256
3260
|
|
|
3257
3261
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3258
3262
|
var ALIGN_CONTENT_LABEL = (0, import_i18n18.__)("Align content", "elementor");
|
|
3259
|
-
var StartIcon = (0,
|
|
3260
|
-
var EndIcon = (0,
|
|
3263
|
+
var StartIcon = (0, import_ui26.withDirection)(import_icons5.JustifyTopIcon);
|
|
3264
|
+
var EndIcon = (0, import_ui26.withDirection)(import_icons5.JustifyBottomIcon);
|
|
3261
3265
|
var iconProps = {
|
|
3262
3266
|
isClockwise: false,
|
|
3263
3267
|
offset: 0,
|
|
@@ -3273,7 +3277,7 @@ var options = [
|
|
|
3273
3277
|
{
|
|
3274
3278
|
value: "center",
|
|
3275
3279
|
label: (0, import_i18n18.__)("Center", "elementor"),
|
|
3276
|
-
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon:
|
|
3280
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons5.JustifyCenterIcon, size, ...iconProps }),
|
|
3277
3281
|
showTooltip: true
|
|
3278
3282
|
},
|
|
3279
3283
|
{
|
|
@@ -3285,19 +3289,19 @@ var options = [
|
|
|
3285
3289
|
{
|
|
3286
3290
|
value: "space-between",
|
|
3287
3291
|
label: (0, import_i18n18.__)("Space between", "elementor"),
|
|
3288
|
-
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon:
|
|
3292
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons5.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
3289
3293
|
showTooltip: true
|
|
3290
3294
|
},
|
|
3291
3295
|
{
|
|
3292
3296
|
value: "space-around",
|
|
3293
3297
|
label: (0, import_i18n18.__)("Space around", "elementor"),
|
|
3294
|
-
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon:
|
|
3298
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons5.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
3295
3299
|
showTooltip: true
|
|
3296
3300
|
},
|
|
3297
3301
|
{
|
|
3298
3302
|
value: "space-evenly",
|
|
3299
3303
|
label: (0, import_i18n18.__)("Space evenly", "elementor"),
|
|
3300
|
-
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon:
|
|
3304
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons5.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
3301
3305
|
showTooltip: true
|
|
3302
3306
|
}
|
|
3303
3307
|
];
|
|
@@ -3306,12 +3310,12 @@ var AlignContentField = () => /* @__PURE__ */ React42.createElement(StylesField,
|
|
|
3306
3310
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3307
3311
|
var React43 = __toESM(require("react"));
|
|
3308
3312
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3309
|
-
var
|
|
3310
|
-
var
|
|
3313
|
+
var import_icons6 = require("@elementor/icons");
|
|
3314
|
+
var import_ui27 = require("@elementor/ui");
|
|
3311
3315
|
var import_i18n19 = require("@wordpress/i18n");
|
|
3312
3316
|
var ALIGN_ITEMS_LABEL = (0, import_i18n19.__)("Align items", "elementor");
|
|
3313
|
-
var StartIcon2 = (0,
|
|
3314
|
-
var EndIcon2 = (0,
|
|
3317
|
+
var StartIcon2 = (0, import_ui27.withDirection)(import_icons6.LayoutAlignLeftIcon);
|
|
3318
|
+
var EndIcon2 = (0, import_ui27.withDirection)(import_icons6.LayoutAlignRightIcon);
|
|
3315
3319
|
var iconProps2 = {
|
|
3316
3320
|
isClockwise: false,
|
|
3317
3321
|
offset: 90
|
|
@@ -3326,7 +3330,7 @@ var options2 = [
|
|
|
3326
3330
|
{
|
|
3327
3331
|
value: "center",
|
|
3328
3332
|
label: (0, import_i18n19.__)("Center", "elementor"),
|
|
3329
|
-
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon:
|
|
3333
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons6.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
3330
3334
|
showTooltip: true
|
|
3331
3335
|
},
|
|
3332
3336
|
{
|
|
@@ -3338,7 +3342,7 @@ var options2 = [
|
|
|
3338
3342
|
{
|
|
3339
3343
|
value: "stretch",
|
|
3340
3344
|
label: (0, import_i18n19.__)("Stretch", "elementor"),
|
|
3341
|
-
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon:
|
|
3345
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons6.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
3342
3346
|
showTooltip: true
|
|
3343
3347
|
}
|
|
3344
3348
|
];
|
|
@@ -3349,8 +3353,8 @@ var AlignItemsField = () => {
|
|
|
3349
3353
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3350
3354
|
var React44 = __toESM(require("react"));
|
|
3351
3355
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3352
|
-
var
|
|
3353
|
-
var
|
|
3356
|
+
var import_icons7 = require("@elementor/icons");
|
|
3357
|
+
var import_ui28 = require("@elementor/ui");
|
|
3354
3358
|
var import_i18n20 = require("@wordpress/i18n");
|
|
3355
3359
|
var ALIGN_SELF_LABEL = (0, import_i18n20.__)("Align self", "elementor");
|
|
3356
3360
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
@@ -3359,8 +3363,8 @@ var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
|
3359
3363
|
column: 0,
|
|
3360
3364
|
"column-reverse": 0
|
|
3361
3365
|
};
|
|
3362
|
-
var StartIcon3 = (0,
|
|
3363
|
-
var EndIcon3 = (0,
|
|
3366
|
+
var StartIcon3 = (0, import_ui28.withDirection)(import_icons7.LayoutAlignLeftIcon);
|
|
3367
|
+
var EndIcon3 = (0, import_ui28.withDirection)(import_icons7.LayoutAlignRightIcon);
|
|
3364
3368
|
var iconProps3 = {
|
|
3365
3369
|
isClockwise: false
|
|
3366
3370
|
};
|
|
@@ -3385,7 +3389,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3385
3389
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(
|
|
3386
3390
|
RotatedIcon,
|
|
3387
3391
|
{
|
|
3388
|
-
icon:
|
|
3392
|
+
icon: import_icons7.LayoutAlignCenterIcon,
|
|
3389
3393
|
size,
|
|
3390
3394
|
offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
|
|
3391
3395
|
...iconProps3
|
|
@@ -3413,7 +3417,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3413
3417
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(
|
|
3414
3418
|
RotatedIcon,
|
|
3415
3419
|
{
|
|
3416
|
-
icon:
|
|
3420
|
+
icon: import_icons7.LayoutDistributeVerticalIcon,
|
|
3417
3421
|
size,
|
|
3418
3422
|
offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
|
|
3419
3423
|
...iconProps3
|
|
@@ -3470,8 +3474,8 @@ var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]
|
|
|
3470
3474
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3471
3475
|
var React46 = __toESM(require("react"));
|
|
3472
3476
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3473
|
-
var
|
|
3474
|
-
var
|
|
3477
|
+
var import_icons8 = require("@elementor/icons");
|
|
3478
|
+
var import_ui29 = require("@elementor/ui");
|
|
3475
3479
|
var import_i18n22 = require("@wordpress/i18n");
|
|
3476
3480
|
var FLEX_DIRECTION_LABEL2 = (0, import_i18n22.__)("Direction", "elementor");
|
|
3477
3481
|
var options3 = [
|
|
@@ -3479,7 +3483,7 @@ var options3 = [
|
|
|
3479
3483
|
value: "row",
|
|
3480
3484
|
label: (0, import_i18n22.__)("Row", "elementor"),
|
|
3481
3485
|
renderContent: ({ size }) => {
|
|
3482
|
-
const StartIcon5 = (0,
|
|
3486
|
+
const StartIcon5 = (0, import_ui29.withDirection)(import_icons8.ArrowRightIcon);
|
|
3483
3487
|
return /* @__PURE__ */ React46.createElement(StartIcon5, { fontSize: size });
|
|
3484
3488
|
},
|
|
3485
3489
|
showTooltip: true
|
|
@@ -3487,14 +3491,14 @@ var options3 = [
|
|
|
3487
3491
|
{
|
|
3488
3492
|
value: "column",
|
|
3489
3493
|
label: (0, import_i18n22.__)("Column", "elementor"),
|
|
3490
|
-
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3494
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons8.ArrowDownSmallIcon, { fontSize: size }),
|
|
3491
3495
|
showTooltip: true
|
|
3492
3496
|
},
|
|
3493
3497
|
{
|
|
3494
3498
|
value: "row-reverse",
|
|
3495
3499
|
label: (0, import_i18n22.__)("Reversed row", "elementor"),
|
|
3496
3500
|
renderContent: ({ size }) => {
|
|
3497
|
-
const EndIcon5 = (0,
|
|
3501
|
+
const EndIcon5 = (0, import_ui29.withDirection)(import_icons8.ArrowLeftIcon);
|
|
3498
3502
|
return /* @__PURE__ */ React46.createElement(EndIcon5, { fontSize: size });
|
|
3499
3503
|
},
|
|
3500
3504
|
showTooltip: true
|
|
@@ -3502,7 +3506,7 @@ var options3 = [
|
|
|
3502
3506
|
{
|
|
3503
3507
|
value: "column-reverse",
|
|
3504
3508
|
label: (0, import_i18n22.__)("Reversed column", "elementor"),
|
|
3505
|
-
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3509
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons8.ArrowUpSmallIcon, { fontSize: size }),
|
|
3506
3510
|
showTooltip: true
|
|
3507
3511
|
}
|
|
3508
3512
|
];
|
|
@@ -3514,8 +3518,8 @@ var FlexDirectionField = () => {
|
|
|
3514
3518
|
var React47 = __toESM(require("react"));
|
|
3515
3519
|
var import_react24 = require("react");
|
|
3516
3520
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
3517
|
-
var
|
|
3518
|
-
var
|
|
3521
|
+
var import_icons9 = require("@elementor/icons");
|
|
3522
|
+
var import_ui30 = require("@elementor/ui");
|
|
3519
3523
|
var import_i18n23 = require("@wordpress/i18n");
|
|
3520
3524
|
var ORDER_LABEL = (0, import_i18n23.__)("Order", "elementor");
|
|
3521
3525
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
@@ -3531,19 +3535,19 @@ var items = [
|
|
|
3531
3535
|
{
|
|
3532
3536
|
value: FIRST,
|
|
3533
3537
|
label: (0, import_i18n23.__)("First", "elementor"),
|
|
3534
|
-
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3538
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(import_icons9.ArrowUpSmallIcon, { fontSize: size }),
|
|
3535
3539
|
showTooltip: true
|
|
3536
3540
|
},
|
|
3537
3541
|
{
|
|
3538
3542
|
value: LAST,
|
|
3539
3543
|
label: (0, import_i18n23.__)("Last", "elementor"),
|
|
3540
|
-
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3544
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(import_icons9.ArrowDownSmallIcon, { fontSize: size }),
|
|
3541
3545
|
showTooltip: true
|
|
3542
3546
|
},
|
|
3543
3547
|
{
|
|
3544
3548
|
value: CUSTOM,
|
|
3545
3549
|
label: (0, import_i18n23.__)("Custom", "elementor"),
|
|
3546
|
-
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3550
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(import_icons9.PencilIcon, { fontSize: size }),
|
|
3547
3551
|
showTooltip: true
|
|
3548
3552
|
}
|
|
3549
3553
|
];
|
|
@@ -3603,7 +3607,7 @@ function FlexOrderFieldContent() {
|
|
|
3603
3607
|
placeholder: groupPlaceholder,
|
|
3604
3608
|
disabled: !canEdit
|
|
3605
3609
|
}
|
|
3606
|
-
)), isCustomVisible && /* @__PURE__ */ React47.createElement(
|
|
3610
|
+
)), isCustomVisible && /* @__PURE__ */ React47.createElement(import_ui30.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui30.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, (0, import_i18n23.__)("Custom order", "elementor"))), /* @__PURE__ */ React47.createElement(import_ui30.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React47.createElement(
|
|
3607
3611
|
import_editor_controls22.NumberControl,
|
|
3608
3612
|
{
|
|
3609
3613
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -3631,7 +3635,7 @@ var React48 = __toESM(require("react"));
|
|
|
3631
3635
|
var import_react25 = require("react");
|
|
3632
3636
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
3633
3637
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3634
|
-
var
|
|
3638
|
+
var import_icons10 = require("@elementor/icons");
|
|
3635
3639
|
var import_i18n24 = require("@wordpress/i18n");
|
|
3636
3640
|
var FLEX_SIZE_LABEL = (0, import_i18n24.__)("Flex Size", "elementor");
|
|
3637
3641
|
var DEFAULT = 1;
|
|
@@ -3639,19 +3643,19 @@ var items2 = [
|
|
|
3639
3643
|
{
|
|
3640
3644
|
value: "flex-grow",
|
|
3641
3645
|
label: (0, import_i18n24.__)("Grow", "elementor"),
|
|
3642
|
-
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(
|
|
3646
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons10.ExpandIcon, { fontSize: size }),
|
|
3643
3647
|
showTooltip: true
|
|
3644
3648
|
},
|
|
3645
3649
|
{
|
|
3646
3650
|
value: "flex-shrink",
|
|
3647
3651
|
label: (0, import_i18n24.__)("Shrink", "elementor"),
|
|
3648
|
-
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(
|
|
3652
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons10.ShrinkIcon, { fontSize: size }),
|
|
3649
3653
|
showTooltip: true
|
|
3650
3654
|
},
|
|
3651
3655
|
{
|
|
3652
3656
|
value: "custom",
|
|
3653
3657
|
label: (0, import_i18n24.__)("Custom", "elementor"),
|
|
3654
|
-
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(
|
|
3658
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons10.PencilIcon, { fontSize: size }),
|
|
3655
3659
|
showTooltip: true
|
|
3656
3660
|
}
|
|
3657
3661
|
];
|
|
@@ -3771,12 +3775,12 @@ var GapControlField = () => {
|
|
|
3771
3775
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
3772
3776
|
var React50 = __toESM(require("react"));
|
|
3773
3777
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
3774
|
-
var
|
|
3775
|
-
var
|
|
3778
|
+
var import_icons11 = require("@elementor/icons");
|
|
3779
|
+
var import_ui31 = require("@elementor/ui");
|
|
3776
3780
|
var import_i18n26 = require("@wordpress/i18n");
|
|
3777
3781
|
var JUSTIFY_CONTENT_LABEL = (0, import_i18n26.__)("Justify content", "elementor");
|
|
3778
|
-
var StartIcon4 = (0,
|
|
3779
|
-
var EndIcon4 = (0,
|
|
3782
|
+
var StartIcon4 = (0, import_ui31.withDirection)(import_icons11.JustifyTopIcon);
|
|
3783
|
+
var EndIcon4 = (0, import_ui31.withDirection)(import_icons11.JustifyBottomIcon);
|
|
3780
3784
|
var iconProps4 = {
|
|
3781
3785
|
isClockwise: true,
|
|
3782
3786
|
offset: -90
|
|
@@ -3791,7 +3795,7 @@ var options4 = [
|
|
|
3791
3795
|
{
|
|
3792
3796
|
value: "center",
|
|
3793
3797
|
label: (0, import_i18n26.__)("Center", "elementor"),
|
|
3794
|
-
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon:
|
|
3798
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon: import_icons11.JustifyCenterIcon, size, ...iconProps4 }),
|
|
3795
3799
|
showTooltip: true
|
|
3796
3800
|
},
|
|
3797
3801
|
{
|
|
@@ -3803,19 +3807,19 @@ var options4 = [
|
|
|
3803
3807
|
{
|
|
3804
3808
|
value: "space-between",
|
|
3805
3809
|
label: (0, import_i18n26.__)("Space between", "elementor"),
|
|
3806
|
-
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon:
|
|
3810
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon: import_icons11.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
3807
3811
|
showTooltip: true
|
|
3808
3812
|
},
|
|
3809
3813
|
{
|
|
3810
3814
|
value: "space-around",
|
|
3811
3815
|
label: (0, import_i18n26.__)("Space around", "elementor"),
|
|
3812
|
-
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon:
|
|
3816
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon: import_icons11.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
3813
3817
|
showTooltip: true
|
|
3814
3818
|
},
|
|
3815
3819
|
{
|
|
3816
3820
|
value: "space-evenly",
|
|
3817
3821
|
label: (0, import_i18n26.__)("Space evenly", "elementor"),
|
|
3818
|
-
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon:
|
|
3822
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(RotatedIcon, { icon: import_icons11.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
3819
3823
|
showTooltip: true
|
|
3820
3824
|
}
|
|
3821
3825
|
];
|
|
@@ -3824,26 +3828,26 @@ var JustifyContentField = () => /* @__PURE__ */ React50.createElement(StylesFiel
|
|
|
3824
3828
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
3825
3829
|
var React51 = __toESM(require("react"));
|
|
3826
3830
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
3827
|
-
var
|
|
3831
|
+
var import_icons12 = require("@elementor/icons");
|
|
3828
3832
|
var import_i18n27 = require("@wordpress/i18n");
|
|
3829
3833
|
var FLEX_WRAP_LABEL = (0, import_i18n27.__)("Wrap", "elementor");
|
|
3830
3834
|
var options5 = [
|
|
3831
3835
|
{
|
|
3832
3836
|
value: "nowrap",
|
|
3833
3837
|
label: (0, import_i18n27.__)("No wrap", "elementor"),
|
|
3834
|
-
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(
|
|
3838
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons12.ArrowRightIcon, { fontSize: size }),
|
|
3835
3839
|
showTooltip: true
|
|
3836
3840
|
},
|
|
3837
3841
|
{
|
|
3838
3842
|
value: "wrap",
|
|
3839
3843
|
label: (0, import_i18n27.__)("Wrap", "elementor"),
|
|
3840
|
-
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(
|
|
3844
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons12.ArrowBackIcon, { fontSize: size }),
|
|
3841
3845
|
showTooltip: true
|
|
3842
3846
|
},
|
|
3843
3847
|
{
|
|
3844
3848
|
value: "wrap-reverse",
|
|
3845
3849
|
label: (0, import_i18n27.__)("Reversed wrap", "elementor"),
|
|
3846
|
-
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(
|
|
3850
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons12.ArrowForwardIcon, { fontSize: size }),
|
|
3847
3851
|
showTooltip: true
|
|
3848
3852
|
}
|
|
3849
3853
|
];
|
|
@@ -3890,14 +3894,14 @@ var import_i18n33 = require("@wordpress/i18n");
|
|
|
3890
3894
|
var React53 = __toESM(require("react"));
|
|
3891
3895
|
var import_react26 = require("react");
|
|
3892
3896
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
3893
|
-
var
|
|
3894
|
-
var
|
|
3897
|
+
var import_icons13 = require("@elementor/icons");
|
|
3898
|
+
var import_ui32 = require("@elementor/ui");
|
|
3895
3899
|
var import_i18n29 = require("@wordpress/i18n");
|
|
3896
|
-
var InlineStartIcon2 = (0,
|
|
3897
|
-
var InlineEndIcon2 = (0,
|
|
3900
|
+
var InlineStartIcon2 = (0, import_ui32.withDirection)(import_icons13.SideLeftIcon);
|
|
3901
|
+
var InlineEndIcon2 = (0, import_ui32.withDirection)(import_icons13.SideRightIcon);
|
|
3898
3902
|
var sideIcons = {
|
|
3899
|
-
"inset-block-start": /* @__PURE__ */ React53.createElement(
|
|
3900
|
-
"inset-block-end": /* @__PURE__ */ React53.createElement(
|
|
3903
|
+
"inset-block-start": /* @__PURE__ */ React53.createElement(import_icons13.SideTopIcon, { fontSize: "tiny" }),
|
|
3904
|
+
"inset-block-end": /* @__PURE__ */ React53.createElement(import_icons13.SideBottomIcon, { fontSize: "tiny" }),
|
|
3901
3905
|
"inset-inline-start": /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
3902
3906
|
"inset-inline-end": /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
3903
3907
|
};
|
|
@@ -3906,14 +3910,14 @@ var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n29.__)("Left",
|
|
|
3906
3910
|
var DimensionsField = () => {
|
|
3907
3911
|
const { isSiteRtl } = useDirection();
|
|
3908
3912
|
const rowRefs = [(0, import_react26.useRef)(null), (0, import_react26.useRef)(null)];
|
|
3909
|
-
return /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(
|
|
3913
|
+
return /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(import_ui32.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React53.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n29.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React53.createElement(
|
|
3910
3914
|
DimensionField,
|
|
3911
3915
|
{
|
|
3912
3916
|
side: "inset-inline-end",
|
|
3913
3917
|
label: getInlineEndLabel(isSiteRtl),
|
|
3914
3918
|
rowRef: rowRefs[0]
|
|
3915
3919
|
}
|
|
3916
|
-
)), /* @__PURE__ */ React53.createElement(
|
|
3920
|
+
)), /* @__PURE__ */ React53.createElement(import_ui32.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React53.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n29.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React53.createElement(
|
|
3917
3921
|
DimensionField,
|
|
3918
3922
|
{
|
|
3919
3923
|
side: "inset-inline-start",
|
|
@@ -3926,7 +3930,7 @@ var DimensionField = ({
|
|
|
3926
3930
|
side,
|
|
3927
3931
|
label,
|
|
3928
3932
|
rowRef
|
|
3929
|
-
}) => /* @__PURE__ */ React53.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React53.createElement(
|
|
3933
|
+
}) => /* @__PURE__ */ React53.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React53.createElement(import_ui32.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React53.createElement(import_ui32.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React53.createElement(ControlLabel, null, label)), /* @__PURE__ */ React53.createElement(import_ui32.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React53.createElement(
|
|
3930
3934
|
import_editor_controls28.SizeControl,
|
|
3931
3935
|
{
|
|
3932
3936
|
startIcon: sideIcons[side],
|
|
@@ -4023,7 +4027,7 @@ var usePersistDimensions = () => {
|
|
|
4023
4027
|
var React62 = __toESM(require("react"));
|
|
4024
4028
|
var import_react28 = require("react");
|
|
4025
4029
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4026
|
-
var
|
|
4030
|
+
var import_ui34 = require("@elementor/ui");
|
|
4027
4031
|
var import_i18n37 = require("@wordpress/i18n");
|
|
4028
4032
|
|
|
4029
4033
|
// src/components/style-tab-collapsible-content.tsx
|
|
@@ -4032,7 +4036,7 @@ var React59 = __toESM(require("react"));
|
|
|
4032
4036
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4033
4037
|
var React58 = __toESM(require("react"));
|
|
4034
4038
|
var import_editor_styles_repository13 = require("@elementor/editor-styles-repository");
|
|
4035
|
-
var
|
|
4039
|
+
var import_ui33 = require("@elementor/ui");
|
|
4036
4040
|
var import_i18n34 = require("@wordpress/i18n");
|
|
4037
4041
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4038
4042
|
const { id, meta, provider } = useStyle();
|
|
@@ -4049,7 +4053,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4049
4053
|
}
|
|
4050
4054
|
const hasValueLabel = (0, import_i18n34.__)("Has effective styles", "elementor");
|
|
4051
4055
|
const hasOverridesLabel = (0, import_i18n34.__)("Has overridden styles", "elementor");
|
|
4052
|
-
return /* @__PURE__ */ React58.createElement(
|
|
4056
|
+
return /* @__PURE__ */ React58.createElement(import_ui33.Tooltip, { title: (0, import_i18n34.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React58.createElement(import_ui33.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React58.createElement(
|
|
4053
4057
|
StyleIndicator,
|
|
4054
4058
|
{
|
|
4055
4059
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4125,26 +4129,26 @@ var ObjectFitField = () => {
|
|
|
4125
4129
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4126
4130
|
var React61 = __toESM(require("react"));
|
|
4127
4131
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4128
|
-
var
|
|
4132
|
+
var import_icons14 = require("@elementor/icons");
|
|
4129
4133
|
var import_i18n36 = require("@wordpress/i18n");
|
|
4130
4134
|
var OVERFLOW_LABEL = (0, import_i18n36.__)("Overflow", "elementor");
|
|
4131
4135
|
var options6 = [
|
|
4132
4136
|
{
|
|
4133
4137
|
value: "visible",
|
|
4134
4138
|
label: (0, import_i18n36.__)("Visible", "elementor"),
|
|
4135
|
-
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(
|
|
4139
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons14.EyeIcon, { fontSize: size }),
|
|
4136
4140
|
showTooltip: true
|
|
4137
4141
|
},
|
|
4138
4142
|
{
|
|
4139
4143
|
value: "hidden",
|
|
4140
4144
|
label: (0, import_i18n36.__)("Hidden", "elementor"),
|
|
4141
|
-
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(
|
|
4145
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons14.EyeOffIcon, { fontSize: size }),
|
|
4142
4146
|
showTooltip: true
|
|
4143
4147
|
},
|
|
4144
4148
|
{
|
|
4145
4149
|
value: "auto",
|
|
4146
4150
|
label: (0, import_i18n36.__)("Auto", "elementor"),
|
|
4147
|
-
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(
|
|
4151
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons14.LetterAIcon, { fontSize: size }),
|
|
4148
4152
|
showTooltip: true
|
|
4149
4153
|
}
|
|
4150
4154
|
];
|
|
@@ -4188,10 +4192,10 @@ var CssSizeProps = [
|
|
|
4188
4192
|
var ASPECT_RATIO_LABEL = (0, import_i18n37.__)("Aspect Ratio", "elementor");
|
|
4189
4193
|
var SizeSection = () => {
|
|
4190
4194
|
const gridRowRefs = [(0, import_react28.useRef)(null), (0, import_react28.useRef)(null), (0, import_react28.useRef)(null)];
|
|
4191
|
-
return /* @__PURE__ */ React62.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React62.createElement(
|
|
4195
|
+
return /* @__PURE__ */ React62.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React62.createElement(import_ui34.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React62.createElement(import_ui34.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React62.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(import_ui34.Stack, null, /* @__PURE__ */ React62.createElement(OverflowField, null)), /* @__PURE__ */ React62.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React62.createElement(import_ui34.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React62.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React62.createElement(import_editor_controls34.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(ObjectFitField, null), /* @__PURE__ */ React62.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n37.__)("Object position", "elementor") }, /* @__PURE__ */ React62.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(import_editor_controls34.PositionControl, null))))));
|
|
4192
4196
|
};
|
|
4193
4197
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4194
|
-
return /* @__PURE__ */ React62.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React62.createElement(
|
|
4198
|
+
return /* @__PURE__ */ React62.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React62.createElement(import_ui34.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React62.createElement(import_ui34.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, label)), /* @__PURE__ */ React62.createElement(import_ui34.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(import_editor_controls34.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
4195
4199
|
};
|
|
4196
4200
|
|
|
4197
4201
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
@@ -4310,20 +4314,20 @@ var FontSizeField = () => {
|
|
|
4310
4314
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4311
4315
|
var React68 = __toESM(require("react"));
|
|
4312
4316
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
4313
|
-
var
|
|
4317
|
+
var import_icons15 = require("@elementor/icons");
|
|
4314
4318
|
var import_i18n44 = require("@wordpress/i18n");
|
|
4315
4319
|
var FONT_STYLE_LABEL = (0, import_i18n44.__)("Font style", "elementor");
|
|
4316
4320
|
var options7 = [
|
|
4317
4321
|
{
|
|
4318
4322
|
value: "normal",
|
|
4319
4323
|
label: (0, import_i18n44.__)("Normal", "elementor"),
|
|
4320
|
-
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(
|
|
4324
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons15.MinusIcon, { fontSize: size }),
|
|
4321
4325
|
showTooltip: true
|
|
4322
4326
|
},
|
|
4323
4327
|
{
|
|
4324
4328
|
value: "italic",
|
|
4325
4329
|
label: (0, import_i18n44.__)("Italic", "elementor"),
|
|
4326
|
-
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(
|
|
4330
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons15.ItalicIcon, { fontSize: size }),
|
|
4327
4331
|
showTooltip: true
|
|
4328
4332
|
}
|
|
4329
4333
|
];
|
|
@@ -4376,12 +4380,12 @@ var LineHeightField = () => {
|
|
|
4376
4380
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
4377
4381
|
var React72 = __toESM(require("react"));
|
|
4378
4382
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
4379
|
-
var
|
|
4380
|
-
var
|
|
4383
|
+
var import_icons16 = require("@elementor/icons");
|
|
4384
|
+
var import_ui35 = require("@elementor/ui");
|
|
4381
4385
|
var import_i18n48 = require("@wordpress/i18n");
|
|
4382
4386
|
var TEXT_ALIGNMENT_LABEL = (0, import_i18n48.__)("Text align", "elementor");
|
|
4383
|
-
var AlignStartIcon = (0,
|
|
4384
|
-
var AlignEndIcon = (0,
|
|
4387
|
+
var AlignStartIcon = (0, import_ui35.withDirection)(import_icons16.AlignLeftIcon);
|
|
4388
|
+
var AlignEndIcon = (0, import_ui35.withDirection)(import_icons16.AlignRightIcon);
|
|
4385
4389
|
var options8 = [
|
|
4386
4390
|
{
|
|
4387
4391
|
value: "start",
|
|
@@ -4392,7 +4396,7 @@ var options8 = [
|
|
|
4392
4396
|
{
|
|
4393
4397
|
value: "center",
|
|
4394
4398
|
label: (0, import_i18n48.__)("Center", "elementor"),
|
|
4395
|
-
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(
|
|
4399
|
+
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons16.AlignCenterIcon, { fontSize: size }),
|
|
4396
4400
|
showTooltip: true
|
|
4397
4401
|
},
|
|
4398
4402
|
{
|
|
@@ -4404,7 +4408,7 @@ var options8 = [
|
|
|
4404
4408
|
{
|
|
4405
4409
|
value: "justify",
|
|
4406
4410
|
label: (0, import_i18n48.__)("Justify", "elementor"),
|
|
4407
|
-
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(
|
|
4411
|
+
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons16.AlignJustifiedIcon, { fontSize: size }),
|
|
4408
4412
|
showTooltip: true
|
|
4409
4413
|
}
|
|
4410
4414
|
];
|
|
@@ -4424,33 +4428,33 @@ var TextColorField = () => {
|
|
|
4424
4428
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
4425
4429
|
var React74 = __toESM(require("react"));
|
|
4426
4430
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
4427
|
-
var
|
|
4431
|
+
var import_icons17 = require("@elementor/icons");
|
|
4428
4432
|
var import_i18n50 = require("@wordpress/i18n");
|
|
4429
4433
|
var TEXT_DECORATION_LABEL = (0, import_i18n50.__)("Line decoration", "elementor");
|
|
4430
4434
|
var options9 = [
|
|
4431
4435
|
{
|
|
4432
4436
|
value: "none",
|
|
4433
4437
|
label: (0, import_i18n50.__)("None", "elementor"),
|
|
4434
|
-
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(
|
|
4438
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons17.MinusIcon, { fontSize: size }),
|
|
4435
4439
|
showTooltip: true,
|
|
4436
4440
|
exclusive: true
|
|
4437
4441
|
},
|
|
4438
4442
|
{
|
|
4439
4443
|
value: "underline",
|
|
4440
4444
|
label: (0, import_i18n50.__)("Underline", "elementor"),
|
|
4441
|
-
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(
|
|
4445
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons17.UnderlineIcon, { fontSize: size }),
|
|
4442
4446
|
showTooltip: true
|
|
4443
4447
|
},
|
|
4444
4448
|
{
|
|
4445
4449
|
value: "line-through",
|
|
4446
4450
|
label: (0, import_i18n50.__)("Line-through", "elementor"),
|
|
4447
|
-
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(
|
|
4451
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons17.StrikethroughIcon, { fontSize: size }),
|
|
4448
4452
|
showTooltip: true
|
|
4449
4453
|
},
|
|
4450
4454
|
{
|
|
4451
4455
|
value: "overline",
|
|
4452
4456
|
label: (0, import_i18n50.__)("Overline", "elementor"),
|
|
4453
|
-
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(
|
|
4457
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons17.OverlineIcon, { fontSize: size }),
|
|
4454
4458
|
showTooltip: true
|
|
4455
4459
|
}
|
|
4456
4460
|
];
|
|
@@ -4459,20 +4463,20 @@ var TextDecorationField = () => /* @__PURE__ */ React74.createElement(StylesFiel
|
|
|
4459
4463
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
4460
4464
|
var React75 = __toESM(require("react"));
|
|
4461
4465
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
4462
|
-
var
|
|
4466
|
+
var import_icons18 = require("@elementor/icons");
|
|
4463
4467
|
var import_i18n51 = require("@wordpress/i18n");
|
|
4464
4468
|
var TEXT_DIRECTION_LABEL = (0, import_i18n51.__)("Direction", "elementor");
|
|
4465
4469
|
var options10 = [
|
|
4466
4470
|
{
|
|
4467
4471
|
value: "ltr",
|
|
4468
4472
|
label: (0, import_i18n51.__)("Left to right", "elementor"),
|
|
4469
|
-
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(
|
|
4473
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons18.TextDirectionLtrIcon, { fontSize: size }),
|
|
4470
4474
|
showTooltip: true
|
|
4471
4475
|
},
|
|
4472
4476
|
{
|
|
4473
4477
|
value: "rtl",
|
|
4474
4478
|
label: (0, import_i18n51.__)("Right to left", "elementor"),
|
|
4475
|
-
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(
|
|
4479
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons18.TextDirectionRtlIcon, { fontSize: size }),
|
|
4476
4480
|
showTooltip: true
|
|
4477
4481
|
}
|
|
4478
4482
|
];
|
|
@@ -4487,8 +4491,8 @@ var import_i18n52 = require("@wordpress/i18n");
|
|
|
4487
4491
|
|
|
4488
4492
|
// src/components/add-or-remove-content.tsx
|
|
4489
4493
|
var React76 = __toESM(require("react"));
|
|
4490
|
-
var
|
|
4491
|
-
var
|
|
4494
|
+
var import_icons19 = require("@elementor/icons");
|
|
4495
|
+
var import_ui36 = require("@elementor/ui");
|
|
4492
4496
|
var SIZE3 = "tiny";
|
|
4493
4497
|
var AddOrRemoveContent = ({
|
|
4494
4498
|
isAdded,
|
|
@@ -4499,7 +4503,7 @@ var AddOrRemoveContent = ({
|
|
|
4499
4503
|
renderLabel
|
|
4500
4504
|
}) => {
|
|
4501
4505
|
return /* @__PURE__ */ React76.createElement(SectionContent, null, /* @__PURE__ */ React76.createElement(
|
|
4502
|
-
|
|
4506
|
+
import_ui36.Stack,
|
|
4503
4507
|
{
|
|
4504
4508
|
direction: "row",
|
|
4505
4509
|
sx: {
|
|
@@ -4509,8 +4513,8 @@ var AddOrRemoveContent = ({
|
|
|
4509
4513
|
}
|
|
4510
4514
|
},
|
|
4511
4515
|
renderLabel(),
|
|
4512
|
-
isAdded ? /* @__PURE__ */ React76.createElement(
|
|
4513
|
-
), /* @__PURE__ */ React76.createElement(
|
|
4516
|
+
isAdded ? /* @__PURE__ */ React76.createElement(import_ui36.IconButton, { size: SIZE3, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React76.createElement(import_icons19.MinusIcon, { fontSize: SIZE3 })) : /* @__PURE__ */ React76.createElement(import_ui36.IconButton, { size: SIZE3, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React76.createElement(import_icons19.PlusIcon, { fontSize: SIZE3 }))
|
|
4517
|
+
), /* @__PURE__ */ React76.createElement(import_ui36.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React76.createElement(SectionContent, null, children)));
|
|
4514
4518
|
};
|
|
4515
4519
|
|
|
4516
4520
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -4558,32 +4562,32 @@ var TextStrokeField = () => {
|
|
|
4558
4562
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
4559
4563
|
var React78 = __toESM(require("react"));
|
|
4560
4564
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
4561
|
-
var
|
|
4565
|
+
var import_icons20 = require("@elementor/icons");
|
|
4562
4566
|
var import_i18n53 = require("@wordpress/i18n");
|
|
4563
4567
|
var TEXT_TRANSFORM_LABEL = (0, import_i18n53.__)("Text transform", "elementor");
|
|
4564
4568
|
var options11 = [
|
|
4565
4569
|
{
|
|
4566
4570
|
value: "none",
|
|
4567
4571
|
label: (0, import_i18n53.__)("None", "elementor"),
|
|
4568
|
-
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(
|
|
4572
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons20.MinusIcon, { fontSize: size }),
|
|
4569
4573
|
showTooltip: true
|
|
4570
4574
|
},
|
|
4571
4575
|
{
|
|
4572
4576
|
value: "capitalize",
|
|
4573
4577
|
label: (0, import_i18n53.__)("Capitalize", "elementor"),
|
|
4574
|
-
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(
|
|
4578
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons20.LetterCaseIcon, { fontSize: size }),
|
|
4575
4579
|
showTooltip: true
|
|
4576
4580
|
},
|
|
4577
4581
|
{
|
|
4578
4582
|
value: "uppercase",
|
|
4579
4583
|
label: (0, import_i18n53.__)("Uppercase", "elementor"),
|
|
4580
|
-
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(
|
|
4584
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons20.LetterCaseUpperIcon, { fontSize: size }),
|
|
4581
4585
|
showTooltip: true
|
|
4582
4586
|
},
|
|
4583
4587
|
{
|
|
4584
4588
|
value: "lowercase",
|
|
4585
4589
|
label: (0, import_i18n53.__)("Lowercase", "elementor"),
|
|
4586
|
-
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(
|
|
4590
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons20.LetterCaseLowerIcon, { fontSize: size }),
|
|
4587
4591
|
showTooltip: true
|
|
4588
4592
|
}
|
|
4589
4593
|
];
|
|
@@ -4669,7 +4673,7 @@ var StyleTab = () => {
|
|
|
4669
4673
|
},
|
|
4670
4674
|
setMetaState: setActiveStyleState
|
|
4671
4675
|
},
|
|
4672
|
-
/* @__PURE__ */ React82.createElement(import_session7.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React82.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React82.createElement(ClassesHeader, null, /* @__PURE__ */ React82.createElement(CssClassSelector, null), /* @__PURE__ */ React82.createElement(
|
|
4676
|
+
/* @__PURE__ */ React82.createElement(import_session7.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React82.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React82.createElement(ClassesHeader, null, /* @__PURE__ */ React82.createElement(CssClassSelector, null), /* @__PURE__ */ React82.createElement(import_ui37.Divider, null)), /* @__PURE__ */ React82.createElement(SectionsList, null, /* @__PURE__ */ React82.createElement(
|
|
4673
4677
|
StyleTabSection,
|
|
4674
4678
|
{
|
|
4675
4679
|
section: {
|
|
@@ -4792,12 +4796,12 @@ var StyleTab = () => {
|
|
|
4792
4796
|
"transition"
|
|
4793
4797
|
]
|
|
4794
4798
|
}
|
|
4795
|
-
), /* @__PURE__ */ React82.createElement(StyleTabSlot, null)), /* @__PURE__ */ React82.createElement(
|
|
4799
|
+
), /* @__PURE__ */ React82.createElement(StyleTabSlot, null)), /* @__PURE__ */ React82.createElement(import_ui37.Box, { sx: { height: "150px" } })))
|
|
4796
4800
|
));
|
|
4797
4801
|
};
|
|
4798
4802
|
function ClassesHeader({ children }) {
|
|
4799
4803
|
const scrollDirection = useScrollDirection();
|
|
4800
|
-
return /* @__PURE__ */ React82.createElement(
|
|
4804
|
+
return /* @__PURE__ */ React82.createElement(import_ui37.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
4801
4805
|
}
|
|
4802
4806
|
function useCurrentClassesProp() {
|
|
4803
4807
|
const { elementType } = useElement();
|
|
@@ -4824,9 +4828,9 @@ var PanelTabContent = () => {
|
|
|
4824
4828
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
4825
4829
|
const isInteractionsActive = (0, import_editor_v1_adapters6.isExperimentActive)("e_interactions");
|
|
4826
4830
|
const [currentTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
4827
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
4828
|
-
return /* @__PURE__ */ React83.createElement(ScrollProvider, null, /* @__PURE__ */ React83.createElement(
|
|
4829
|
-
|
|
4831
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui38.useTabs)(currentTab);
|
|
4832
|
+
return /* @__PURE__ */ React83.createElement(ScrollProvider, null, /* @__PURE__ */ React83.createElement(import_ui38.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React83.createElement(import_ui38.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React83.createElement(
|
|
4833
|
+
import_ui38.Tabs,
|
|
4830
4834
|
{
|
|
4831
4835
|
variant: "fullWidth",
|
|
4832
4836
|
size: "small",
|
|
@@ -4837,10 +4841,10 @@ var PanelTabContent = () => {
|
|
|
4837
4841
|
setCurrentTab(newValue);
|
|
4838
4842
|
}
|
|
4839
4843
|
},
|
|
4840
|
-
/* @__PURE__ */ React83.createElement(
|
|
4841
|
-
/* @__PURE__ */ React83.createElement(
|
|
4842
|
-
isInteractionsActive && /* @__PURE__ */ React83.createElement(
|
|
4843
|
-
), /* @__PURE__ */ React83.createElement(
|
|
4844
|
+
/* @__PURE__ */ React83.createElement(import_ui38.Tab, { label: (0, import_i18n56.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
4845
|
+
/* @__PURE__ */ React83.createElement(import_ui38.Tab, { label: (0, import_i18n56.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
4846
|
+
isInteractionsActive && /* @__PURE__ */ React83.createElement(import_ui38.Tab, { label: (0, import_i18n56.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
4847
|
+
), /* @__PURE__ */ React83.createElement(import_ui38.Divider, null)), /* @__PURE__ */ React83.createElement(import_ui38.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React83.createElement(SettingsTab, null)), /* @__PURE__ */ React83.createElement(import_ui38.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React83.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React83.createElement(import_ui38.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React83.createElement(InteractionsTab, null))));
|
|
4844
4848
|
};
|
|
4845
4849
|
|
|
4846
4850
|
// src/components/editing-panel.tsx
|
|
@@ -4854,15 +4858,20 @@ var EditingPanel = () => {
|
|
|
4854
4858
|
return null;
|
|
4855
4859
|
}
|
|
4856
4860
|
const panelTitle = (0, import_i18n57.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
4857
|
-
|
|
4861
|
+
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
4862
|
+
let panelContent = /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React84.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React84.createElement(import_icons21.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React84.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React84.createElement(EditingPanelTabs, null)));
|
|
4863
|
+
if (ReplacementComponent) {
|
|
4864
|
+
panelContent = /* @__PURE__ */ React84.createElement(ReplacementComponent, null);
|
|
4865
|
+
}
|
|
4866
|
+
return /* @__PURE__ */ React84.createElement(import_ui39.ErrorBoundary, { fallback: /* @__PURE__ */ React84.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React84.createElement(import_session8.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React84.createElement(import_editor_ui6.ThemeProvider, null, /* @__PURE__ */ React84.createElement(import_editor_controls51.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React84.createElement(import_editor_controls51.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React84.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React84.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React84.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
4858
4867
|
};
|
|
4859
4868
|
|
|
4860
4869
|
// src/components/popover-body.tsx
|
|
4861
4870
|
var React85 = __toESM(require("react"));
|
|
4862
|
-
var
|
|
4871
|
+
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
4863
4872
|
var PopoverBody = (props) => {
|
|
4864
4873
|
const sectionWidth = useSectionWidth();
|
|
4865
|
-
return /* @__PURE__ */ React85.createElement(
|
|
4874
|
+
return /* @__PURE__ */ React85.createElement(import_editor_ui7.PopoverBody, { ...props, width: sectionWidth });
|
|
4866
4875
|
};
|
|
4867
4876
|
|
|
4868
4877
|
// src/init.ts
|
|
@@ -4915,8 +4924,8 @@ var React86 = __toESM(require("react"));
|
|
|
4915
4924
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
4916
4925
|
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
4917
4926
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
4918
|
-
var
|
|
4919
|
-
var
|
|
4927
|
+
var import_icons22 = require("@elementor/icons");
|
|
4928
|
+
var import_ui40 = require("@elementor/ui");
|
|
4920
4929
|
var import_i18n59 = require("@wordpress/i18n");
|
|
4921
4930
|
|
|
4922
4931
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
@@ -5171,7 +5180,7 @@ var ItemLabel = ({ value, index }) => {
|
|
|
5171
5180
|
const id = value.id ?? "";
|
|
5172
5181
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(id);
|
|
5173
5182
|
const elementTitle = editorSettings?.title;
|
|
5174
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5183
|
+
return /* @__PURE__ */ React86.createElement(import_ui40.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React86.createElement("span", null, elementTitle), /* @__PURE__ */ React86.createElement(ItemDefaultTab, { index }));
|
|
5175
5184
|
};
|
|
5176
5185
|
var ItemDefaultTab = ({ index }) => {
|
|
5177
5186
|
const { value: defaultItem } = (0, import_editor_controls53.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
@@ -5179,19 +5188,19 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5179
5188
|
if (!isDefault) {
|
|
5180
5189
|
return null;
|
|
5181
5190
|
}
|
|
5182
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5191
|
+
return /* @__PURE__ */ React86.createElement(import_ui40.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n59.__)("Default", "elementor") });
|
|
5183
5192
|
};
|
|
5184
5193
|
var ItemContent = ({ value, index }) => {
|
|
5185
5194
|
if (!value.id) {
|
|
5186
5195
|
return null;
|
|
5187
5196
|
}
|
|
5188
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5197
|
+
return /* @__PURE__ */ React86.createElement(import_ui40.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React86.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React86.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n59.__)("Tabs", "elementor") }, /* @__PURE__ */ React86.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5189
5198
|
};
|
|
5190
5199
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5191
5200
|
const { value, setValue } = (0, import_editor_controls53.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
5192
5201
|
const isDefault = value === tabIndex;
|
|
5193
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5194
|
-
|
|
5202
|
+
return /* @__PURE__ */ React86.createElement(import_ui40.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React86.createElement(import_editor_controls53.ControlFormLabel, null, (0, import_i18n59.__)("Set as default tab", "elementor")), /* @__PURE__ */ React86.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React86.createElement(
|
|
5203
|
+
import_ui40.Switch,
|
|
5195
5204
|
{
|
|
5196
5205
|
size: "small",
|
|
5197
5206
|
checked: isDefault,
|
|
@@ -5208,8 +5217,8 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5208
5217
|
var TabLabelControl = ({ elementId }) => {
|
|
5209
5218
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
|
|
5210
5219
|
const label = editorSettings?.title ?? "";
|
|
5211
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5212
|
-
|
|
5220
|
+
return /* @__PURE__ */ React86.createElement(import_ui40.Stack, { gap: 1 }, /* @__PURE__ */ React86.createElement(import_editor_controls53.ControlFormLabel, null, (0, import_i18n59.__)("Tab name", "elementor")), /* @__PURE__ */ React86.createElement(
|
|
5221
|
+
import_ui40.TextField,
|
|
5213
5222
|
{
|
|
5214
5223
|
size: "tiny",
|
|
5215
5224
|
value: label,
|
|
@@ -5230,18 +5239,18 @@ var ConditionalTooltip = ({
|
|
|
5230
5239
|
return children;
|
|
5231
5240
|
}
|
|
5232
5241
|
return /* @__PURE__ */ React86.createElement(
|
|
5233
|
-
|
|
5242
|
+
import_ui40.Infotip,
|
|
5234
5243
|
{
|
|
5235
5244
|
arrow: false,
|
|
5236
5245
|
content: /* @__PURE__ */ React86.createElement(
|
|
5237
|
-
|
|
5246
|
+
import_ui40.Alert,
|
|
5238
5247
|
{
|
|
5239
5248
|
color: "secondary",
|
|
5240
|
-
icon: /* @__PURE__ */ React86.createElement(
|
|
5249
|
+
icon: /* @__PURE__ */ React86.createElement(import_icons22.InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
5241
5250
|
size: "small",
|
|
5242
5251
|
sx: { width: 288 }
|
|
5243
5252
|
},
|
|
5244
|
-
/* @__PURE__ */ React86.createElement(
|
|
5253
|
+
/* @__PURE__ */ React86.createElement(import_ui40.Typography, { variant: "body2" }, (0, import_i18n59.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
5245
5254
|
)
|
|
5246
5255
|
},
|
|
5247
5256
|
/* @__PURE__ */ React86.createElement("span", null, children)
|
|
@@ -5268,7 +5277,7 @@ var import_editor_controls60 = require("@elementor/editor-controls");
|
|
|
5268
5277
|
var React87 = __toESM(require("react"));
|
|
5269
5278
|
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
5270
5279
|
var import_editor_props18 = require("@elementor/editor-props");
|
|
5271
|
-
var
|
|
5280
|
+
var import_icons23 = require("@elementor/icons");
|
|
5272
5281
|
|
|
5273
5282
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
5274
5283
|
var import_react39 = require("react");
|
|
@@ -5361,7 +5370,7 @@ var useDynamicTag = (tagName) => {
|
|
|
5361
5370
|
};
|
|
5362
5371
|
|
|
5363
5372
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5364
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React87.createElement(
|
|
5373
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React87.createElement(import_icons23.DatabaseIcon, { fontSize: "tiny" });
|
|
5365
5374
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
5366
5375
|
const context = (0, import_editor_controls55.useBoundProp)(import_editor_props18.backgroundImageOverlayPropTypeUtil);
|
|
5367
5376
|
return /* @__PURE__ */ React87.createElement(import_editor_controls55.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React87.createElement(import_editor_controls55.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React87.createElement(Wrapper2, { rawValue: value.value })));
|
|
@@ -5380,9 +5389,9 @@ var Content = ({ rawValue }) => {
|
|
|
5380
5389
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5381
5390
|
var React91 = __toESM(require("react"));
|
|
5382
5391
|
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5383
|
-
var
|
|
5384
|
-
var
|
|
5385
|
-
var
|
|
5392
|
+
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
5393
|
+
var import_icons25 = require("@elementor/icons");
|
|
5394
|
+
var import_ui42 = require("@elementor/ui");
|
|
5386
5395
|
var import_i18n61 = require("@wordpress/i18n");
|
|
5387
5396
|
|
|
5388
5397
|
// src/hooks/use-persist-dynamic-value.ts
|
|
@@ -5482,15 +5491,15 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5482
5491
|
var import_react40 = require("react");
|
|
5483
5492
|
var React90 = __toESM(require("react"));
|
|
5484
5493
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5485
|
-
var
|
|
5486
|
-
var
|
|
5487
|
-
var
|
|
5494
|
+
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
5495
|
+
var import_icons24 = require("@elementor/icons");
|
|
5496
|
+
var import_ui41 = require("@elementor/ui");
|
|
5488
5497
|
var import_i18n60 = require("@wordpress/i18n");
|
|
5489
5498
|
var SIZE4 = "tiny";
|
|
5490
5499
|
var DynamicSelection = ({ close: closePopover }) => {
|
|
5491
5500
|
const [searchValue, setSearchValue] = (0, import_react40.useState)("");
|
|
5492
5501
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
5493
|
-
const theme = (0,
|
|
5502
|
+
const theme = (0, import_ui41.useTheme)();
|
|
5494
5503
|
const { value: anyValue } = (0, import_editor_controls57.useBoundProp)();
|
|
5495
5504
|
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls57.useBoundProp)(dynamicPropTypeUtil);
|
|
5496
5505
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
@@ -5521,21 +5530,21 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
5521
5530
|
}))
|
|
5522
5531
|
]);
|
|
5523
5532
|
return /* @__PURE__ */ React90.createElement(PopoverBody, { "aria-label": (0, import_i18n60.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React90.createElement(
|
|
5524
|
-
|
|
5533
|
+
import_editor_ui8.PopoverHeader,
|
|
5525
5534
|
{
|
|
5526
5535
|
title: (0, import_i18n60.__)("Dynamic tags", "elementor"),
|
|
5527
5536
|
onClose: closePopover,
|
|
5528
|
-
icon: /* @__PURE__ */ React90.createElement(
|
|
5537
|
+
icon: /* @__PURE__ */ React90.createElement(import_icons24.DatabaseIcon, { fontSize: SIZE4 })
|
|
5529
5538
|
}
|
|
5530
5539
|
), hasNoDynamicTags ? /* @__PURE__ */ React90.createElement(NoDynamicTags, null) : /* @__PURE__ */ React90.createElement(import_react40.Fragment, null, /* @__PURE__ */ React90.createElement(
|
|
5531
|
-
|
|
5540
|
+
import_editor_ui8.SearchField,
|
|
5532
5541
|
{
|
|
5533
5542
|
value: searchValue,
|
|
5534
5543
|
onSearch: handleSearch,
|
|
5535
5544
|
placeholder: (0, import_i18n60.__)("Search dynamic tags\u2026", "elementor")
|
|
5536
5545
|
}
|
|
5537
|
-
), /* @__PURE__ */ React90.createElement(
|
|
5538
|
-
|
|
5546
|
+
), /* @__PURE__ */ React90.createElement(import_ui41.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
5547
|
+
import_editor_ui8.PopoverMenuList,
|
|
5539
5548
|
{
|
|
5540
5549
|
items: virtualizedItems,
|
|
5541
5550
|
onSelect: handleSetDynamicTag,
|
|
@@ -5547,7 +5556,7 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
5547
5556
|
)));
|
|
5548
5557
|
};
|
|
5549
5558
|
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElement(
|
|
5550
|
-
|
|
5559
|
+
import_ui41.Stack,
|
|
5551
5560
|
{
|
|
5552
5561
|
gap: 1,
|
|
5553
5562
|
alignItems: "center",
|
|
@@ -5557,12 +5566,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElem
|
|
|
5557
5566
|
color: "text.secondary",
|
|
5558
5567
|
sx: { pb: 3.5 }
|
|
5559
5568
|
},
|
|
5560
|
-
/* @__PURE__ */ React90.createElement(
|
|
5561
|
-
/* @__PURE__ */ React90.createElement(
|
|
5562
|
-
/* @__PURE__ */ React90.createElement(
|
|
5569
|
+
/* @__PURE__ */ React90.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5570
|
+
/* @__PURE__ */ React90.createElement(import_ui41.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n60.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React90.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
5571
|
+
/* @__PURE__ */ React90.createElement(import_ui41.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n60.__)("Try something else.", "elementor"), /* @__PURE__ */ React90.createElement(import_ui41.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n60.__)("Clear & try again", "elementor")))
|
|
5563
5572
|
);
|
|
5564
|
-
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(
|
|
5565
|
-
|
|
5573
|
+
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(import_ui41.Divider, null), /* @__PURE__ */ React90.createElement(
|
|
5574
|
+
import_ui41.Stack,
|
|
5566
5575
|
{
|
|
5567
5576
|
gap: 1,
|
|
5568
5577
|
alignItems: "center",
|
|
@@ -5572,9 +5581,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(React90.Fragment
|
|
|
5572
5581
|
color: "text.secondary",
|
|
5573
5582
|
sx: { pb: 3.5 }
|
|
5574
5583
|
},
|
|
5575
|
-
/* @__PURE__ */ React90.createElement(
|
|
5576
|
-
/* @__PURE__ */ React90.createElement(
|
|
5577
|
-
/* @__PURE__ */ React90.createElement(
|
|
5584
|
+
/* @__PURE__ */ React90.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5585
|
+
/* @__PURE__ */ React90.createElement(import_ui41.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n60.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
5586
|
+
/* @__PURE__ */ React90.createElement(import_ui41.Typography, { align: "center", variant: "caption" }, (0, import_i18n60.__)("You'll need Elementor Pro to use this feature.", "elementor"))
|
|
5578
5587
|
));
|
|
5579
5588
|
var useFilteredOptions = (searchValue) => {
|
|
5580
5589
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -5599,7 +5608,7 @@ var DynamicSelectionControl = () => {
|
|
|
5599
5608
|
const { setValue: setAnyValue } = (0, import_editor_controls58.useBoundProp)();
|
|
5600
5609
|
const { bind, value } = (0, import_editor_controls58.useBoundProp)(dynamicPropTypeUtil);
|
|
5601
5610
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
5602
|
-
const selectionPopoverState = (0,
|
|
5611
|
+
const selectionPopoverState = (0, import_ui42.usePopupState)({ variant: "popover" });
|
|
5603
5612
|
const { name: tagName = "" } = value;
|
|
5604
5613
|
const dynamicTag = useDynamicTag(tagName);
|
|
5605
5614
|
const removeDynamicTag = () => {
|
|
@@ -5608,26 +5617,26 @@ var DynamicSelectionControl = () => {
|
|
|
5608
5617
|
if (!dynamicTag) {
|
|
5609
5618
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
5610
5619
|
}
|
|
5611
|
-
return /* @__PURE__ */ React91.createElement(
|
|
5612
|
-
|
|
5620
|
+
return /* @__PURE__ */ React91.createElement(import_ui42.Box, null, /* @__PURE__ */ React91.createElement(
|
|
5621
|
+
import_ui42.UnstableTag,
|
|
5613
5622
|
{
|
|
5614
5623
|
fullWidth: true,
|
|
5615
5624
|
showActionsOnHover: true,
|
|
5616
5625
|
label: dynamicTag.label,
|
|
5617
|
-
startIcon: /* @__PURE__ */ React91.createElement(
|
|
5618
|
-
...(0,
|
|
5626
|
+
startIcon: /* @__PURE__ */ React91.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE5 }),
|
|
5627
|
+
...(0, import_ui42.bindTrigger)(selectionPopoverState),
|
|
5619
5628
|
actions: /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React91.createElement(
|
|
5620
|
-
|
|
5629
|
+
import_ui42.IconButton,
|
|
5621
5630
|
{
|
|
5622
5631
|
size: SIZE5,
|
|
5623
5632
|
onClick: removeDynamicTag,
|
|
5624
5633
|
"aria-label": (0, import_i18n61.__)("Remove dynamic value", "elementor")
|
|
5625
5634
|
},
|
|
5626
|
-
/* @__PURE__ */ React91.createElement(
|
|
5635
|
+
/* @__PURE__ */ React91.createElement(import_icons25.XIcon, { fontSize: SIZE5 })
|
|
5627
5636
|
))
|
|
5628
5637
|
}
|
|
5629
5638
|
), /* @__PURE__ */ React91.createElement(
|
|
5630
|
-
|
|
5639
|
+
import_ui42.Popover,
|
|
5631
5640
|
{
|
|
5632
5641
|
disablePortal: true,
|
|
5633
5642
|
disableScrollLock: true,
|
|
@@ -5636,27 +5645,27 @@ var DynamicSelectionControl = () => {
|
|
|
5636
5645
|
PaperProps: {
|
|
5637
5646
|
sx: { my: 1 }
|
|
5638
5647
|
},
|
|
5639
|
-
...(0,
|
|
5648
|
+
...(0, import_ui42.bindPopover)(selectionPopoverState)
|
|
5640
5649
|
},
|
|
5641
5650
|
/* @__PURE__ */ React91.createElement(PopoverBody, { "aria-label": (0, import_i18n61.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React91.createElement(DynamicSelection, { close: selectionPopoverState.close }))
|
|
5642
5651
|
));
|
|
5643
5652
|
};
|
|
5644
5653
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
5645
|
-
const popupState = (0,
|
|
5654
|
+
const popupState = (0, import_ui42.usePopupState)({ variant: "popover" });
|
|
5646
5655
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
5647
5656
|
if (!hasDynamicSettings) {
|
|
5648
5657
|
return null;
|
|
5649
5658
|
}
|
|
5650
5659
|
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(
|
|
5651
|
-
|
|
5660
|
+
import_ui42.IconButton,
|
|
5652
5661
|
{
|
|
5653
5662
|
size: SIZE5,
|
|
5654
|
-
...(0,
|
|
5663
|
+
...(0, import_ui42.bindTrigger)(popupState),
|
|
5655
5664
|
"aria-label": (0, import_i18n61.__)("Dynamic settings", "elementor")
|
|
5656
5665
|
},
|
|
5657
|
-
/* @__PURE__ */ React91.createElement(
|
|
5666
|
+
/* @__PURE__ */ React91.createElement(import_icons25.SettingsIcon, { fontSize: SIZE5 })
|
|
5658
5667
|
), /* @__PURE__ */ React91.createElement(
|
|
5659
|
-
|
|
5668
|
+
import_ui42.Popover,
|
|
5660
5669
|
{
|
|
5661
5670
|
disablePortal: true,
|
|
5662
5671
|
disableScrollLock: true,
|
|
@@ -5665,39 +5674,39 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
5665
5674
|
PaperProps: {
|
|
5666
5675
|
sx: { my: 1 }
|
|
5667
5676
|
},
|
|
5668
|
-
...(0,
|
|
5677
|
+
...(0, import_ui42.bindPopover)(popupState)
|
|
5669
5678
|
},
|
|
5670
5679
|
/* @__PURE__ */ React91.createElement(PopoverBody, { "aria-label": (0, import_i18n61.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React91.createElement(
|
|
5671
|
-
|
|
5680
|
+
import_editor_ui9.PopoverHeader,
|
|
5672
5681
|
{
|
|
5673
5682
|
title: dynamicTag.label,
|
|
5674
5683
|
onClose: popupState.close,
|
|
5675
|
-
icon: /* @__PURE__ */ React91.createElement(
|
|
5684
|
+
icon: /* @__PURE__ */ React91.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE5 })
|
|
5676
5685
|
}
|
|
5677
5686
|
), /* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
5678
5687
|
));
|
|
5679
5688
|
};
|
|
5680
5689
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
5681
5690
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
5682
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
5691
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui42.useTabs)(0);
|
|
5683
5692
|
if (!tabs.length) {
|
|
5684
5693
|
return null;
|
|
5685
5694
|
}
|
|
5686
5695
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
5687
5696
|
const singleTab = tabs[0];
|
|
5688
|
-
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(
|
|
5697
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(import_ui42.Divider, null), /* @__PURE__ */ React91.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
5689
5698
|
}
|
|
5690
|
-
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React91.createElement(
|
|
5691
|
-
|
|
5699
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React91.createElement(import_ui42.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React91.createElement(
|
|
5700
|
+
import_ui42.Tab,
|
|
5692
5701
|
{
|
|
5693
5702
|
key: index,
|
|
5694
5703
|
label: value.label,
|
|
5695
5704
|
sx: { px: 1, py: 0.5 },
|
|
5696
5705
|
...getTabProps(index)
|
|
5697
5706
|
}
|
|
5698
|
-
))), /* @__PURE__ */ React91.createElement(
|
|
5707
|
+
))), /* @__PURE__ */ React91.createElement(import_ui42.Divider, null), tabs.map(({ value }, index) => {
|
|
5699
5708
|
return /* @__PURE__ */ React91.createElement(
|
|
5700
|
-
|
|
5709
|
+
import_ui42.TabPanel,
|
|
5701
5710
|
{
|
|
5702
5711
|
key: index,
|
|
5703
5712
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
@@ -5745,10 +5754,10 @@ var Control2 = ({ control }) => {
|
|
|
5745
5754
|
display: "grid",
|
|
5746
5755
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
5747
5756
|
} : {};
|
|
5748
|
-
return /* @__PURE__ */ React91.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React91.createElement(
|
|
5757
|
+
return /* @__PURE__ */ React91.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React91.createElement(import_ui42.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React91.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React91.createElement(import_editor_controls58.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React91.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React91.createElement(Control, { type: control.type, props: controlProps }))));
|
|
5749
5758
|
};
|
|
5750
5759
|
function ControlsItemsStack({ items: items3 }) {
|
|
5751
|
-
return /* @__PURE__ */ React91.createElement(
|
|
5760
|
+
return /* @__PURE__ */ React91.createElement(import_ui42.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
5752
5761
|
(item) => item.type === "control" ? /* @__PURE__ */ React91.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
5753
5762
|
));
|
|
5754
5763
|
}
|
|
@@ -5805,14 +5814,14 @@ function getDynamicValue(name, settings) {
|
|
|
5805
5814
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
5806
5815
|
var React92 = __toESM(require("react"));
|
|
5807
5816
|
var import_editor_controls59 = require("@elementor/editor-controls");
|
|
5808
|
-
var
|
|
5817
|
+
var import_icons26 = require("@elementor/icons");
|
|
5809
5818
|
var import_i18n62 = require("@wordpress/i18n");
|
|
5810
5819
|
var usePropDynamicAction = () => {
|
|
5811
5820
|
const { propType } = (0, import_editor_controls59.useBoundProp)();
|
|
5812
5821
|
const visible = !!propType && supportsDynamic(propType);
|
|
5813
5822
|
return {
|
|
5814
5823
|
visible,
|
|
5815
|
-
icon:
|
|
5824
|
+
icon: import_icons26.DatabaseIcon,
|
|
5816
5825
|
title: (0, import_i18n62.__)("Dynamic tags", "elementor"),
|
|
5817
5826
|
content: ({ close }) => /* @__PURE__ */ React92.createElement(DynamicSelection, { close })
|
|
5818
5827
|
};
|
|
@@ -5845,7 +5854,7 @@ var init = () => {
|
|
|
5845
5854
|
|
|
5846
5855
|
// src/reset-style-props.tsx
|
|
5847
5856
|
var import_editor_controls61 = require("@elementor/editor-controls");
|
|
5848
|
-
var
|
|
5857
|
+
var import_icons27 = require("@elementor/icons");
|
|
5849
5858
|
var import_i18n63 = require("@wordpress/i18n");
|
|
5850
5859
|
|
|
5851
5860
|
// src/utils/is-equal.ts
|
|
@@ -5919,7 +5928,7 @@ function useResetStyleValueProps() {
|
|
|
5919
5928
|
return {
|
|
5920
5929
|
visible,
|
|
5921
5930
|
title: (0, import_i18n63.__)("Clear", "elementor"),
|
|
5922
|
-
icon:
|
|
5931
|
+
icon: import_icons27.BrushBigIcon,
|
|
5923
5932
|
onClick: () => resetValue()
|
|
5924
5933
|
};
|
|
5925
5934
|
}
|
|
@@ -5935,8 +5944,8 @@ var import_i18n67 = require("@wordpress/i18n");
|
|
|
5935
5944
|
var React97 = __toESM(require("react"));
|
|
5936
5945
|
var import_react42 = require("react");
|
|
5937
5946
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
5938
|
-
var
|
|
5939
|
-
var
|
|
5947
|
+
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
5948
|
+
var import_ui47 = require("@elementor/ui");
|
|
5940
5949
|
var import_i18n66 = require("@wordpress/i18n");
|
|
5941
5950
|
|
|
5942
5951
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
@@ -6014,18 +6023,18 @@ var stylesInheritanceTransformersRegistry = (0, import_editor_canvas4.createTran
|
|
|
6014
6023
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6015
6024
|
var React93 = __toESM(require("react"));
|
|
6016
6025
|
var import_editor_responsive4 = require("@elementor/editor-responsive");
|
|
6017
|
-
var
|
|
6018
|
-
var
|
|
6026
|
+
var import_icons28 = require("@elementor/icons");
|
|
6027
|
+
var import_ui43 = require("@elementor/ui");
|
|
6019
6028
|
var SIZE6 = "tiny";
|
|
6020
6029
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
6021
6030
|
var breakpointIconMap = {
|
|
6022
|
-
widescreen:
|
|
6023
|
-
desktop:
|
|
6024
|
-
laptop:
|
|
6025
|
-
tablet_extra:
|
|
6026
|
-
tablet:
|
|
6027
|
-
mobile_extra:
|
|
6028
|
-
mobile:
|
|
6031
|
+
widescreen: import_icons28.WidescreenIcon,
|
|
6032
|
+
desktop: import_icons28.DesktopIcon,
|
|
6033
|
+
laptop: import_icons28.LaptopIcon,
|
|
6034
|
+
tablet_extra: import_icons28.TabletLandscapeIcon,
|
|
6035
|
+
tablet: import_icons28.TabletPortraitIcon,
|
|
6036
|
+
mobile_extra: import_icons28.MobileLandscapeIcon,
|
|
6037
|
+
mobile: import_icons28.MobilePortraitIcon
|
|
6029
6038
|
};
|
|
6030
6039
|
var BreakpointIcon = ({ breakpoint }) => {
|
|
6031
6040
|
const breakpoints = (0, import_editor_responsive4.useBreakpoints)();
|
|
@@ -6035,21 +6044,21 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6035
6044
|
return null;
|
|
6036
6045
|
}
|
|
6037
6046
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6038
|
-
return /* @__PURE__ */ React93.createElement(
|
|
6047
|
+
return /* @__PURE__ */ React93.createElement(import_ui43.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React93.createElement(IconComponent, { fontSize: SIZE6, sx: { mt: "2px" } }));
|
|
6039
6048
|
};
|
|
6040
6049
|
|
|
6041
6050
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6042
6051
|
var React94 = __toESM(require("react"));
|
|
6043
6052
|
var import_editor_styles_repository15 = require("@elementor/editor-styles-repository");
|
|
6044
|
-
var
|
|
6045
|
-
var
|
|
6053
|
+
var import_icons29 = require("@elementor/icons");
|
|
6054
|
+
var import_ui44 = require("@elementor/ui");
|
|
6046
6055
|
var import_i18n65 = require("@wordpress/i18n");
|
|
6047
6056
|
var SIZE7 = "tiny";
|
|
6048
6057
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6049
6058
|
const isBaseStyle = provider === import_editor_styles_repository15.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
6050
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */ React94.createElement(
|
|
6059
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React94.createElement(import_ui44.Tooltip, { title: (0, import_i18n65.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React94.createElement(import_icons29.InfoCircleIcon, { fontSize: SIZE7 })) : void 0;
|
|
6051
6060
|
return /* @__PURE__ */ React94.createElement(
|
|
6052
|
-
|
|
6061
|
+
import_ui44.Chip,
|
|
6053
6062
|
{
|
|
6054
6063
|
label: displayLabel,
|
|
6055
6064
|
size: SIZE7,
|
|
@@ -6075,10 +6084,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
6075
6084
|
|
|
6076
6085
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
6077
6086
|
var React95 = __toESM(require("react"));
|
|
6078
|
-
var
|
|
6087
|
+
var import_ui45 = require("@elementor/ui");
|
|
6079
6088
|
var ValueComponent = ({ index, value }) => {
|
|
6080
6089
|
return /* @__PURE__ */ React95.createElement(
|
|
6081
|
-
|
|
6090
|
+
import_ui45.Typography,
|
|
6082
6091
|
{
|
|
6083
6092
|
variant: "caption",
|
|
6084
6093
|
color: "text.tertiary",
|
|
@@ -6099,8 +6108,8 @@ var ValueComponent = ({ index, value }) => {
|
|
|
6099
6108
|
|
|
6100
6109
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
6101
6110
|
var React96 = __toESM(require("react"));
|
|
6102
|
-
var
|
|
6103
|
-
var ActionIcons = () => /* @__PURE__ */ React96.createElement(
|
|
6111
|
+
var import_ui46 = require("@elementor/ui");
|
|
6112
|
+
var ActionIcons = () => /* @__PURE__ */ React96.createElement(import_ui46.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
6104
6113
|
|
|
6105
6114
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6106
6115
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -6134,8 +6143,8 @@ var StylesInheritanceInfotip = ({
|
|
|
6134
6143
|
});
|
|
6135
6144
|
}, [key, propType]);
|
|
6136
6145
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
6137
|
-
const infotipContent = /* @__PURE__ */ React97.createElement(
|
|
6138
|
-
|
|
6146
|
+
const infotipContent = /* @__PURE__ */ React97.createElement(import_ui47.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React97.createElement(
|
|
6147
|
+
import_ui47.Card,
|
|
6139
6148
|
{
|
|
6140
6149
|
elevation: 0,
|
|
6141
6150
|
sx: {
|
|
@@ -6148,7 +6157,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6148
6157
|
}
|
|
6149
6158
|
},
|
|
6150
6159
|
/* @__PURE__ */ React97.createElement(
|
|
6151
|
-
|
|
6160
|
+
import_ui47.Box,
|
|
6152
6161
|
{
|
|
6153
6162
|
sx: {
|
|
6154
6163
|
position: "sticky",
|
|
@@ -6157,10 +6166,10 @@ var StylesInheritanceInfotip = ({
|
|
|
6157
6166
|
backgroundColor: "background.paper"
|
|
6158
6167
|
}
|
|
6159
6168
|
},
|
|
6160
|
-
/* @__PURE__ */ React97.createElement(
|
|
6169
|
+
/* @__PURE__ */ React97.createElement(import_editor_ui10.PopoverHeader, { title: (0, import_i18n66.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
6161
6170
|
),
|
|
6162
6171
|
/* @__PURE__ */ React97.createElement(
|
|
6163
|
-
|
|
6172
|
+
import_ui47.CardContent,
|
|
6164
6173
|
{
|
|
6165
6174
|
sx: {
|
|
6166
6175
|
display: "flex",
|
|
@@ -6173,9 +6182,9 @@ var StylesInheritanceInfotip = ({
|
|
|
6173
6182
|
}
|
|
6174
6183
|
}
|
|
6175
6184
|
},
|
|
6176
|
-
/* @__PURE__ */ React97.createElement(
|
|
6185
|
+
/* @__PURE__ */ React97.createElement(import_ui47.Stack, { gap: 1.5, sx: { pl: 3, pr: 1, pb: 2 }, role: "list" }, items3.map((item, index) => {
|
|
6177
6186
|
return /* @__PURE__ */ React97.createElement(
|
|
6178
|
-
|
|
6187
|
+
import_ui47.Box,
|
|
6179
6188
|
{
|
|
6180
6189
|
key: item.id,
|
|
6181
6190
|
display: "flex",
|
|
@@ -6187,7 +6196,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6187
6196
|
)
|
|
6188
6197
|
},
|
|
6189
6198
|
/* @__PURE__ */ React97.createElement(
|
|
6190
|
-
|
|
6199
|
+
import_ui47.Box,
|
|
6191
6200
|
{
|
|
6192
6201
|
display: "flex",
|
|
6193
6202
|
gap: 0.5,
|
|
@@ -6203,7 +6212,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6203
6212
|
)
|
|
6204
6213
|
));
|
|
6205
6214
|
if (isDisabled) {
|
|
6206
|
-
return /* @__PURE__ */ React97.createElement(
|
|
6215
|
+
return /* @__PURE__ */ React97.createElement(import_ui47.Box, { sx: { display: "inline-flex" } }, children);
|
|
6207
6216
|
}
|
|
6208
6217
|
return /* @__PURE__ */ React97.createElement(
|
|
6209
6218
|
TooltipOrInfotip,
|
|
@@ -6213,7 +6222,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6213
6222
|
infotipContent,
|
|
6214
6223
|
isDisabled
|
|
6215
6224
|
},
|
|
6216
|
-
/* @__PURE__ */ React97.createElement(
|
|
6225
|
+
/* @__PURE__ */ React97.createElement(import_ui47.IconButton, { onClick: toggleInfotip, "aria-label": label, sx: { my: "-1px" }, disabled: isDisabled }, children)
|
|
6217
6226
|
);
|
|
6218
6227
|
};
|
|
6219
6228
|
function TooltipOrInfotip({
|
|
@@ -6227,11 +6236,11 @@ function TooltipOrInfotip({
|
|
|
6227
6236
|
const isSiteRtl = direction.isSiteRtl;
|
|
6228
6237
|
const forceInfotipAlignLeft = isSiteRtl ? 9999999 : -9999999;
|
|
6229
6238
|
if (isDisabled) {
|
|
6230
|
-
return /* @__PURE__ */ React97.createElement(
|
|
6239
|
+
return /* @__PURE__ */ React97.createElement(import_ui47.Box, { sx: { display: "inline-flex" } }, children);
|
|
6231
6240
|
}
|
|
6232
6241
|
if (showInfotip) {
|
|
6233
6242
|
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(
|
|
6234
|
-
|
|
6243
|
+
import_ui47.Backdrop,
|
|
6235
6244
|
{
|
|
6236
6245
|
open: showInfotip,
|
|
6237
6246
|
onClick: onClose,
|
|
@@ -6241,7 +6250,7 @@ function TooltipOrInfotip({
|
|
|
6241
6250
|
}
|
|
6242
6251
|
}
|
|
6243
6252
|
), /* @__PURE__ */ React97.createElement(
|
|
6244
|
-
|
|
6253
|
+
import_ui47.Infotip,
|
|
6245
6254
|
{
|
|
6246
6255
|
placement: "top",
|
|
6247
6256
|
content: infotipContent,
|
|
@@ -6267,7 +6276,7 @@ function TooltipOrInfotip({
|
|
|
6267
6276
|
children
|
|
6268
6277
|
));
|
|
6269
6278
|
}
|
|
6270
|
-
return /* @__PURE__ */ React97.createElement(
|
|
6279
|
+
return /* @__PURE__ */ React97.createElement(import_ui47.Tooltip, { title: (0, import_i18n66.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
6271
6280
|
}
|
|
6272
6281
|
|
|
6273
6282
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -6338,23 +6347,23 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
6338
6347
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
6339
6348
|
var React99 = __toESM(require("react"));
|
|
6340
6349
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
6341
|
-
var
|
|
6350
|
+
var import_ui48 = require("@elementor/ui");
|
|
6342
6351
|
var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) => {
|
|
6343
6352
|
if (!values || values.length === 0) {
|
|
6344
6353
|
return null;
|
|
6345
6354
|
}
|
|
6346
|
-
return /* @__PURE__ */ React99.createElement(
|
|
6355
|
+
return /* @__PURE__ */ React99.createElement(import_ui48.Stack, { direction: "column" }, values.map((item, index) => /* @__PURE__ */ React99.createElement(import_ui48.Stack, { key: index }, item)));
|
|
6347
6356
|
});
|
|
6348
6357
|
|
|
6349
6358
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
6350
6359
|
var React100 = __toESM(require("react"));
|
|
6351
6360
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
6352
|
-
var
|
|
6353
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React100.createElement(
|
|
6361
|
+
var import_ui49 = require("@elementor/ui");
|
|
6362
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React100.createElement(import_ui49.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React100.createElement(ItemLabelColor, { value })));
|
|
6354
6363
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
6355
6364
|
return /* @__PURE__ */ React100.createElement("span", null, color);
|
|
6356
6365
|
};
|
|
6357
|
-
var StyledUnstableColorIndicator = (0,
|
|
6366
|
+
var StyledUnstableColorIndicator = (0, import_ui49.styled)(import_ui49.UnstableColorIndicator)(({ theme }) => ({
|
|
6358
6367
|
width: "1em",
|
|
6359
6368
|
height: "1em",
|
|
6360
6369
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -6365,9 +6374,9 @@ var StyledUnstableColorIndicator = (0, import_ui50.styled)(import_ui50.UnstableC
|
|
|
6365
6374
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
6366
6375
|
var React101 = __toESM(require("react"));
|
|
6367
6376
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
6368
|
-
var
|
|
6377
|
+
var import_ui50 = require("@elementor/ui");
|
|
6369
6378
|
var import_i18n68 = require("@wordpress/i18n");
|
|
6370
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React101.createElement(
|
|
6379
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React101.createElement(import_ui50.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React101.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React101.createElement(ItemLabelGradient, { value })));
|
|
6371
6380
|
var ItemIconGradient = ({ value }) => {
|
|
6372
6381
|
const gradient = getGradientValue(value);
|
|
6373
6382
|
return /* @__PURE__ */ React101.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
@@ -6389,14 +6398,14 @@ var getGradientValue = (gradient) => {
|
|
|
6389
6398
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
6390
6399
|
var React102 = __toESM(require("react"));
|
|
6391
6400
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
6392
|
-
var
|
|
6393
|
-
var
|
|
6401
|
+
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
6402
|
+
var import_ui51 = require("@elementor/ui");
|
|
6394
6403
|
var import_wp_media = require("@elementor/wp-media");
|
|
6395
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React102.createElement(
|
|
6404
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React102.createElement(import_ui51.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React102.createElement(ItemIconImage, { value }), /* @__PURE__ */ React102.createElement(ItemLabelImage, { value })));
|
|
6396
6405
|
var ItemIconImage = ({ value }) => {
|
|
6397
6406
|
const { imageUrl } = useImage(value);
|
|
6398
6407
|
return /* @__PURE__ */ React102.createElement(
|
|
6399
|
-
|
|
6408
|
+
import_ui51.CardMedia,
|
|
6400
6409
|
{
|
|
6401
6410
|
image: imageUrl,
|
|
6402
6411
|
sx: (theme) => ({
|
|
@@ -6411,7 +6420,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
6411
6420
|
};
|
|
6412
6421
|
var ItemLabelImage = ({ value }) => {
|
|
6413
6422
|
const { imageTitle } = useImage(value);
|
|
6414
|
-
return /* @__PURE__ */ React102.createElement(
|
|
6423
|
+
return /* @__PURE__ */ React102.createElement(import_editor_ui11.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React102.createElement("span", null, imageTitle));
|
|
6415
6424
|
};
|
|
6416
6425
|
var useImage = (image) => {
|
|
6417
6426
|
let imageTitle, imageUrl = null;
|
|
@@ -6438,7 +6447,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
6438
6447
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
6439
6448
|
var React103 = __toESM(require("react"));
|
|
6440
6449
|
var import_editor_canvas10 = require("@elementor/editor-canvas");
|
|
6441
|
-
var
|
|
6450
|
+
var import_ui52 = require("@elementor/ui");
|
|
6442
6451
|
var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value) => {
|
|
6443
6452
|
if (!value) {
|
|
6444
6453
|
return null;
|
|
@@ -6447,20 +6456,20 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
|
|
|
6447
6456
|
const colorValue = color || "#000000";
|
|
6448
6457
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
6449
6458
|
const positionValue = position || "outset";
|
|
6450
|
-
return /* @__PURE__ */ React103.createElement(
|
|
6459
|
+
return /* @__PURE__ */ React103.createElement(import_ui52.Stack, { direction: "column", gap: 0.5, pb: 1 }, /* @__PURE__ */ React103.createElement("span", null, colorValue, " ", positionValue, ", ", sizes));
|
|
6451
6460
|
});
|
|
6452
6461
|
|
|
6453
6462
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
6454
6463
|
var React104 = __toESM(require("react"));
|
|
6455
6464
|
var import_editor_canvas11 = require("@elementor/editor-canvas");
|
|
6456
|
-
var
|
|
6465
|
+
var import_ui53 = require("@elementor/ui");
|
|
6457
6466
|
function isValidCSSColor(value) {
|
|
6458
6467
|
if (!value.trim()) {
|
|
6459
6468
|
return false;
|
|
6460
6469
|
}
|
|
6461
6470
|
return CSS.supports("color", value.trim());
|
|
6462
6471
|
}
|
|
6463
|
-
var StyledColorIndicator = (0,
|
|
6472
|
+
var StyledColorIndicator = (0, import_ui53.styled)(import_ui53.UnstableColorIndicator)(({ theme }) => ({
|
|
6464
6473
|
width: "1em",
|
|
6465
6474
|
height: "1em",
|
|
6466
6475
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -6471,13 +6480,13 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
|
|
|
6471
6480
|
if (!isValidCSSColor(value)) {
|
|
6472
6481
|
return value;
|
|
6473
6482
|
}
|
|
6474
|
-
return /* @__PURE__ */ React104.createElement(
|
|
6483
|
+
return /* @__PURE__ */ React104.createElement(import_ui53.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React104.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React104.createElement("span", null, value));
|
|
6475
6484
|
});
|
|
6476
6485
|
|
|
6477
6486
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|
|
6478
6487
|
var React105 = __toESM(require("react"));
|
|
6479
6488
|
var import_editor_canvas12 = require("@elementor/editor-canvas");
|
|
6480
|
-
var
|
|
6489
|
+
var import_ui54 = require("@elementor/ui");
|
|
6481
6490
|
var createRepeaterToItemsTransformer = (originalTransformer, separator = " ") => {
|
|
6482
6491
|
return (0, import_editor_canvas12.createTransformer)((value, options12) => {
|
|
6483
6492
|
const stringResult = originalTransformer(value, options12);
|
|
@@ -6488,7 +6497,7 @@ var createRepeaterToItemsTransformer = (originalTransformer, separator = " ") =>
|
|
|
6488
6497
|
if (parts.length <= 1) {
|
|
6489
6498
|
return stringResult;
|
|
6490
6499
|
}
|
|
6491
|
-
return /* @__PURE__ */ React105.createElement(
|
|
6500
|
+
return /* @__PURE__ */ React105.createElement(import_ui54.Stack, { direction: "column", gap: 0.5 }, parts.map((part, index) => /* @__PURE__ */ React105.createElement(import_ui54.Stack, { key: index }, part.trim())));
|
|
6492
6501
|
});
|
|
6493
6502
|
};
|
|
6494
6503
|
|
|
@@ -6590,6 +6599,7 @@ var blockV1Panel = () => {
|
|
|
6590
6599
|
injectIntoPanelHeaderTop,
|
|
6591
6600
|
injectIntoStyleTab,
|
|
6592
6601
|
registerControlReplacement,
|
|
6602
|
+
registerEditingPanelReplacement,
|
|
6593
6603
|
registerFieldIndicator,
|
|
6594
6604
|
registerStyleProviderToColors,
|
|
6595
6605
|
stylesInheritanceTransformersRegistry,
|
|
@@ -6601,6 +6611,7 @@ var blockV1Panel = () => {
|
|
|
6601
6611
|
usePanelActions,
|
|
6602
6612
|
usePanelStatus,
|
|
6603
6613
|
useSectionWidth,
|
|
6614
|
+
useStateByElement,
|
|
6604
6615
|
useStyle,
|
|
6605
6616
|
useStylesRerender
|
|
6606
6617
|
});
|