@elementor/editor-editing-panel 4.2.0-928 → 4.2.0-930
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 +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +444 -430
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +444 -430
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/editing-panel-sticky-promotion.tsx +24 -0
- package/src/components/editing-panel.tsx +3 -1
- package/src/dynamics/dynamic-transformer.ts +12 -9
- package/src/dynamics/types.ts +2 -5
package/dist/index.mjs
CHANGED
|
@@ -1897,7 +1897,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1897
1897
|
};
|
|
1898
1898
|
|
|
1899
1899
|
// src/components/editing-panel.tsx
|
|
1900
|
-
import * as
|
|
1900
|
+
import * as React91 from "react";
|
|
1901
1901
|
import {
|
|
1902
1902
|
ControlActionsProvider,
|
|
1903
1903
|
ControlReplacementsProvider,
|
|
@@ -1932,16 +1932,29 @@ function EditorPanelErrorFallback() {
|
|
|
1932
1932
|
return /* @__PURE__ */ React15.createElement(Box3, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React15.createElement(Alert2, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React15.createElement("strong", null, "Something went wrong")));
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
|
+
// src/components/editing-panel-sticky-promotion.tsx
|
|
1936
|
+
import * as React16 from "react";
|
|
1937
|
+
function getStickyPromotion() {
|
|
1938
|
+
return window.elementor?.config?.editingPanelStickyPromotion;
|
|
1939
|
+
}
|
|
1940
|
+
var EditingPanelStickyPromotion = () => {
|
|
1941
|
+
const promotion = getStickyPromotion();
|
|
1942
|
+
if (!promotion) {
|
|
1943
|
+
return null;
|
|
1944
|
+
}
|
|
1945
|
+
return /* @__PURE__ */ React16.createElement("div", { className: "elementor-panel-editor-sticky-promotion" }, /* @__PURE__ */ React16.createElement("div", { className: "elementor-get-pro-sticky-message" }, promotion.message, " ", /* @__PURE__ */ React16.createElement("a", { target: "_blank", rel: "noreferrer", href: promotion.url }, promotion.button_text)));
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1935
1948
|
// src/components/editing-panel-tabs.tsx
|
|
1936
1949
|
import { Fragment as Fragment9 } from "react";
|
|
1937
|
-
import * as
|
|
1950
|
+
import * as React90 from "react";
|
|
1938
1951
|
import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
|
|
1939
1952
|
import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
|
|
1940
1953
|
import { Divider as Divider6, Stack as Stack14, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1941
1954
|
import { __ as __63 } from "@wordpress/i18n";
|
|
1942
1955
|
|
|
1943
1956
|
// src/contexts/scroll-context.tsx
|
|
1944
|
-
import * as
|
|
1957
|
+
import * as React17 from "react";
|
|
1945
1958
|
import { createContext as createContext5, useContext as useContext5, useEffect as useEffect3, useRef as useRef2, useState as useState5 } from "react";
|
|
1946
1959
|
import { styled as styled3 } from "@elementor/ui";
|
|
1947
1960
|
var ScrollContext = createContext5(void 0);
|
|
@@ -1973,7 +1986,7 @@ function ScrollProvider({ children }) {
|
|
|
1973
1986
|
scrollElement.removeEventListener("scroll", handleScroll);
|
|
1974
1987
|
};
|
|
1975
1988
|
});
|
|
1976
|
-
return /* @__PURE__ */
|
|
1989
|
+
return /* @__PURE__ */ React17.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React17.createElement(ScrollPanel, { ref }, children));
|
|
1977
1990
|
}
|
|
1978
1991
|
function useScrollDirection() {
|
|
1979
1992
|
return useContext5(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
|
|
@@ -2029,24 +2042,24 @@ var useStateByElement = (key, initialValue) => {
|
|
|
2029
2042
|
};
|
|
2030
2043
|
|
|
2031
2044
|
// src/components/interactions-tab.tsx
|
|
2032
|
-
import * as
|
|
2045
|
+
import * as React19 from "react";
|
|
2033
2046
|
import { InteractionsTab as InteractionsTabContent } from "@elementor/editor-interactions";
|
|
2034
2047
|
|
|
2035
2048
|
// src/components/sections-list.tsx
|
|
2036
|
-
import * as
|
|
2049
|
+
import * as React18 from "react";
|
|
2037
2050
|
import { List } from "@elementor/ui";
|
|
2038
2051
|
function SectionsList(props) {
|
|
2039
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ React18.createElement(List, { disablePadding: true, component: "div", ...props });
|
|
2040
2053
|
}
|
|
2041
2054
|
|
|
2042
2055
|
// src/components/interactions-tab.tsx
|
|
2043
2056
|
var InteractionsTab = () => {
|
|
2044
2057
|
const { element } = useElement();
|
|
2045
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ React19.createElement(SectionsList, null, /* @__PURE__ */ React19.createElement(InteractionsTabContent, { elementId: element.id }));
|
|
2046
2059
|
};
|
|
2047
2060
|
|
|
2048
2061
|
// src/components/settings-tab.tsx
|
|
2049
|
-
import * as
|
|
2062
|
+
import * as React25 from "react";
|
|
2050
2063
|
import { SessionStorageProvider } from "@elementor/session";
|
|
2051
2064
|
|
|
2052
2065
|
// src/utils/prop-dependency-utils.ts
|
|
@@ -2263,7 +2276,7 @@ function removePreviousValueFromStorage({ path, elementId }) {
|
|
|
2263
2276
|
}
|
|
2264
2277
|
|
|
2265
2278
|
// src/components/section.tsx
|
|
2266
|
-
import * as
|
|
2279
|
+
import * as React20 from "react";
|
|
2267
2280
|
import { useId as useId2, useRef as useRef3 } from "react";
|
|
2268
2281
|
import { CollapseIcon, getCollapsibleValue, SectionRefContext } from "@elementor/editor-ui";
|
|
2269
2282
|
import { Collapse, Divider as Divider2, ListItemButton, ListItemText, Stack as Stack5 } from "@elementor/ui";
|
|
@@ -2281,7 +2294,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2281
2294
|
const id = useId2();
|
|
2282
2295
|
const labelId = `label-${id}`;
|
|
2283
2296
|
const contentId = `content-${id}`;
|
|
2284
|
-
return /* @__PURE__ */
|
|
2297
|
+
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
|
|
2285
2298
|
ListItemButton,
|
|
2286
2299
|
{
|
|
2287
2300
|
id: labelId,
|
|
@@ -2290,7 +2303,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2290
2303
|
onClick: handleClick,
|
|
2291
2304
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2292
2305
|
},
|
|
2293
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ React20.createElement(Stack5, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React20.createElement(
|
|
2294
2307
|
ListItemText,
|
|
2295
2308
|
{
|
|
2296
2309
|
secondary: title,
|
|
@@ -2299,7 +2312,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2299
2312
|
}
|
|
2300
2313
|
), getCollapsibleValue(titleEnd, isOpen)),
|
|
2301
2314
|
action?.component,
|
|
2302
|
-
/* @__PURE__ */
|
|
2315
|
+
/* @__PURE__ */ React20.createElement(
|
|
2303
2316
|
CollapseIcon,
|
|
2304
2317
|
{
|
|
2305
2318
|
open: isOpen,
|
|
@@ -2309,7 +2322,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2309
2322
|
sx: { ml: 1 }
|
|
2310
2323
|
}
|
|
2311
2324
|
)
|
|
2312
|
-
), /* @__PURE__ */
|
|
2325
|
+
), /* @__PURE__ */ React20.createElement(
|
|
2313
2326
|
Collapse,
|
|
2314
2327
|
{
|
|
2315
2328
|
id: contentId,
|
|
@@ -2318,17 +2331,17 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2318
2331
|
timeout: "auto",
|
|
2319
2332
|
unmountOnExit
|
|
2320
2333
|
},
|
|
2321
|
-
/* @__PURE__ */
|
|
2322
|
-
), /* @__PURE__ */
|
|
2334
|
+
/* @__PURE__ */ React20.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React20.createElement(Stack5, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
|
|
2335
|
+
), /* @__PURE__ */ React20.createElement(Divider2, null));
|
|
2323
2336
|
}
|
|
2324
2337
|
|
|
2325
2338
|
// src/components/settings-control.tsx
|
|
2326
|
-
import * as
|
|
2339
|
+
import * as React24 from "react";
|
|
2327
2340
|
import { ControlAdornmentsProvider } from "@elementor/editor-controls";
|
|
2328
2341
|
import { Divider as Divider3, styled as styled5 } from "@elementor/ui";
|
|
2329
2342
|
|
|
2330
2343
|
// src/controls-registry/control.tsx
|
|
2331
|
-
import * as
|
|
2344
|
+
import * as React21 from "react";
|
|
2332
2345
|
|
|
2333
2346
|
// src/controls-registry/controls-registry.tsx
|
|
2334
2347
|
import {
|
|
@@ -2459,17 +2472,17 @@ var Control = ({ props, type }) => {
|
|
|
2459
2472
|
context: { controlType: type }
|
|
2460
2473
|
});
|
|
2461
2474
|
}
|
|
2462
|
-
return /* @__PURE__ */
|
|
2475
|
+
return /* @__PURE__ */ React21.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
2463
2476
|
};
|
|
2464
2477
|
|
|
2465
2478
|
// src/controls-registry/control-type-container.tsx
|
|
2466
|
-
import * as
|
|
2479
|
+
import * as React22 from "react";
|
|
2467
2480
|
import { Box as Box4, styled as styled4 } from "@elementor/ui";
|
|
2468
2481
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
2469
2482
|
if (layout === "custom") {
|
|
2470
2483
|
return children;
|
|
2471
2484
|
}
|
|
2472
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ React22.createElement(StyledContainer, { layout }, children);
|
|
2473
2486
|
};
|
|
2474
2487
|
var StyledContainer = styled4(Box4, {
|
|
2475
2488
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
@@ -2497,7 +2510,7 @@ var getStyleByLayout = (layout) => {
|
|
|
2497
2510
|
};
|
|
2498
2511
|
|
|
2499
2512
|
// src/controls-registry/settings-field.tsx
|
|
2500
|
-
import * as
|
|
2513
|
+
import * as React23 from "react";
|
|
2501
2514
|
import { useMemo as useMemo7 } from "react";
|
|
2502
2515
|
import { PropKeyProvider, PropProvider } from "@elementor/editor-controls";
|
|
2503
2516
|
import { setDocumentModifiedStatus as setDocumentModifiedStatus2 } from "@elementor/editor-documents";
|
|
@@ -2547,7 +2560,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2547
2560
|
updateElementSettings3({ id: elementId, props: settings, withHistory: false });
|
|
2548
2561
|
}
|
|
2549
2562
|
};
|
|
2550
|
-
return /* @__PURE__ */
|
|
2563
|
+
return /* @__PURE__ */ React23.createElement(PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React23.createElement(PropKeyProvider, { bind }, children));
|
|
2551
2564
|
};
|
|
2552
2565
|
function useUndoableUpdateElementProp({
|
|
2553
2566
|
elementId,
|
|
@@ -2610,9 +2623,9 @@ var SettingsControl = ({ control: { value, type } }) => {
|
|
|
2610
2623
|
controlProps.label = value.label;
|
|
2611
2624
|
}
|
|
2612
2625
|
if (type === "element-control") {
|
|
2613
|
-
return /* @__PURE__ */
|
|
2626
|
+
return /* @__PURE__ */ React24.createElement(ControlLayout, { control: value, layout, controlProps });
|
|
2614
2627
|
}
|
|
2615
|
-
return /* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ React24.createElement(SettingsField, { bind: value.bind, propDisplayName: value.label || value.bind }, /* @__PURE__ */ React24.createElement(ControlLayout, { control: value, layout, controlProps }));
|
|
2616
2629
|
};
|
|
2617
2630
|
var ControlLayout = ({
|
|
2618
2631
|
control,
|
|
@@ -2620,7 +2633,7 @@ var ControlLayout = ({
|
|
|
2620
2633
|
controlProps
|
|
2621
2634
|
}) => {
|
|
2622
2635
|
const controlType = control.type;
|
|
2623
|
-
return /* @__PURE__ */
|
|
2636
|
+
return /* @__PURE__ */ React24.createElement(ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React24.createElement(Divider3, 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 }))));
|
|
2624
2637
|
};
|
|
2625
2638
|
function populateChildControlProps(props) {
|
|
2626
2639
|
if (props.childControlType) {
|
|
@@ -2644,9 +2657,9 @@ var SettingsTab = () => {
|
|
|
2644
2657
|
const settingsDefault = useDefaultPanelSettings();
|
|
2645
2658
|
const currentSettings = settings;
|
|
2646
2659
|
const isDefaultExpanded = (sectionId) => !!sectionId && settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2647
|
-
return /* @__PURE__ */
|
|
2660
|
+
return /* @__PURE__ */ React25.createElement(SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React25.createElement(SectionsList, null, elementType.controls.map((control, index) => {
|
|
2648
2661
|
if (isControl(control)) {
|
|
2649
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ React25.createElement(SettingsControl, { key: getKey(control, element), control });
|
|
2650
2663
|
}
|
|
2651
2664
|
const { type, value } = control;
|
|
2652
2665
|
if (type === "section") {
|
|
@@ -2659,7 +2672,7 @@ var SettingsTab = () => {
|
|
|
2659
2672
|
if (!sectionItems.length) {
|
|
2660
2673
|
return null;
|
|
2661
2674
|
}
|
|
2662
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ React25.createElement(
|
|
2663
2676
|
Section,
|
|
2664
2677
|
{
|
|
2665
2678
|
title: value.label,
|
|
@@ -2694,7 +2707,7 @@ function renderSectionItems({
|
|
|
2694
2707
|
if (item.type === "control" && isControlHiddenByDependencies(item, propsSchema, settings)) {
|
|
2695
2708
|
return [];
|
|
2696
2709
|
}
|
|
2697
|
-
return [/* @__PURE__ */
|
|
2710
|
+
return [/* @__PURE__ */ React25.createElement(SettingsControl, { key: getKey(item, element), control: item })];
|
|
2698
2711
|
}) ?? [];
|
|
2699
2712
|
}
|
|
2700
2713
|
function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
@@ -2703,7 +2716,7 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2703
2716
|
}
|
|
2704
2717
|
|
|
2705
2718
|
// src/components/style-tab.tsx
|
|
2706
|
-
import * as
|
|
2719
|
+
import * as React89 from "react";
|
|
2707
2720
|
import { useState as useState9 } from "react";
|
|
2708
2721
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2709
2722
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
@@ -2713,7 +2726,7 @@ import { Box as Box6, Divider as Divider5, Stack as Stack13 } from "@elementor/u
|
|
|
2713
2726
|
import { __ as __62 } from "@wordpress/i18n";
|
|
2714
2727
|
|
|
2715
2728
|
// src/contexts/styles-inheritance-context.tsx
|
|
2716
|
-
import * as
|
|
2729
|
+
import * as React26 from "react";
|
|
2717
2730
|
import { createContext as createContext6, useContext as useContext6, useMemo as useMemo8 } from "react";
|
|
2718
2731
|
import { getWidgetsCache } from "@elementor/editor-elements";
|
|
2719
2732
|
import { classesPropTypeUtil as classesPropTypeUtil3 } from "@elementor/editor-props";
|
|
@@ -2954,7 +2967,7 @@ function StyleInheritanceProvider({ children }) {
|
|
|
2954
2967
|
const styleDefs = useAppliedStyles();
|
|
2955
2968
|
const breakpointsTree = getBreakpointsTree2();
|
|
2956
2969
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
2957
|
-
return /* @__PURE__ */
|
|
2970
|
+
return /* @__PURE__ */ React26.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
2958
2971
|
}
|
|
2959
2972
|
function useStylesInheritanceSnapshot() {
|
|
2960
2973
|
const context = useContext6(Context4);
|
|
@@ -3037,12 +3050,12 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
3037
3050
|
}
|
|
3038
3051
|
|
|
3039
3052
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3040
|
-
import * as
|
|
3053
|
+
import * as React29 from "react";
|
|
3041
3054
|
import { BackgroundControl } from "@elementor/editor-controls";
|
|
3042
3055
|
import { __ as __10 } from "@wordpress/i18n";
|
|
3043
3056
|
|
|
3044
3057
|
// src/controls-registry/styles-field.tsx
|
|
3045
|
-
import * as
|
|
3058
|
+
import * as React27 from "react";
|
|
3046
3059
|
import { ControlAdornmentsProvider as ControlAdornmentsProvider2, PropKeyProvider as PropKeyProvider2, PropProvider as PropProvider2 } from "@elementor/editor-controls";
|
|
3047
3060
|
import { dimensionsPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil2 } from "@elementor/editor-props";
|
|
3048
3061
|
import { getStylesSchema as getStylesSchema2 } from "@elementor/editor-styles";
|
|
@@ -3187,7 +3200,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3187
3200
|
const setValue = (newValue) => {
|
|
3188
3201
|
fields.setValue(newValue[bind]);
|
|
3189
3202
|
};
|
|
3190
|
-
return /* @__PURE__ */
|
|
3203
|
+
return /* @__PURE__ */ React27.createElement(ControlAdornmentsProvider2, { items: getFieldIndicators("styles") }, /* @__PURE__ */ React27.createElement(
|
|
3191
3204
|
PropProvider2,
|
|
3192
3205
|
{
|
|
3193
3206
|
propType,
|
|
@@ -3196,12 +3209,12 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3196
3209
|
placeholder: placeholderValues,
|
|
3197
3210
|
isDisabled: () => !canEdit
|
|
3198
3211
|
},
|
|
3199
|
-
/* @__PURE__ */
|
|
3212
|
+
/* @__PURE__ */ React27.createElement(PropKeyProvider2, { bind }, /* @__PURE__ */ React27.createElement(ConditionalField, null, children))
|
|
3200
3213
|
));
|
|
3201
3214
|
};
|
|
3202
3215
|
|
|
3203
3216
|
// src/components/section-content.tsx
|
|
3204
|
-
import * as
|
|
3217
|
+
import * as React28 from "react";
|
|
3205
3218
|
import { Stack as Stack6 } from "@elementor/ui";
|
|
3206
3219
|
var SectionContent = ({
|
|
3207
3220
|
gap = 2,
|
|
@@ -3209,32 +3222,32 @@ var SectionContent = ({
|
|
|
3209
3222
|
children,
|
|
3210
3223
|
"aria-label": ariaLabel,
|
|
3211
3224
|
className
|
|
3212
|
-
}) => /* @__PURE__ */
|
|
3225
|
+
}) => /* @__PURE__ */ React28.createElement(Stack6, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3213
3226
|
|
|
3214
3227
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3215
3228
|
var BACKGROUND_LABEL = __10("Background", "elementor");
|
|
3216
3229
|
var BackgroundSection = () => {
|
|
3217
|
-
return /* @__PURE__ */
|
|
3230
|
+
return /* @__PURE__ */ React29.createElement(SectionContent, null, /* @__PURE__ */ React29.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React29.createElement(BackgroundControl, null)));
|
|
3218
3231
|
};
|
|
3219
3232
|
|
|
3220
3233
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3221
|
-
import * as
|
|
3234
|
+
import * as React36 from "react";
|
|
3222
3235
|
|
|
3223
3236
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3224
|
-
import * as
|
|
3237
|
+
import * as React31 from "react";
|
|
3225
3238
|
import { ColorControl } from "@elementor/editor-controls";
|
|
3226
3239
|
import { __ as __11 } from "@wordpress/i18n";
|
|
3227
3240
|
|
|
3228
3241
|
// src/components/styles-field-layout.tsx
|
|
3229
|
-
import * as
|
|
3242
|
+
import * as React30 from "react";
|
|
3230
3243
|
import { Grid, Stack as Stack7 } from "@elementor/ui";
|
|
3231
|
-
var StylesFieldLayout =
|
|
3244
|
+
var StylesFieldLayout = React30.forwardRef((props, ref) => {
|
|
3232
3245
|
const { direction = "row", children, label, infoTooltip } = props;
|
|
3233
3246
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3234
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ React30.createElement(LayoutComponent, { label, infoTooltip, ref, children });
|
|
3235
3248
|
});
|
|
3236
|
-
var Row =
|
|
3237
|
-
return /* @__PURE__ */
|
|
3249
|
+
var Row = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3250
|
+
return /* @__PURE__ */ React30.createElement(Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref, "aria-label": `${label} control` }, /* @__PURE__ */ React30.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React30.createElement(ControlLabel, { infoTooltip }, label)), /* @__PURE__ */ React30.createElement(
|
|
3238
3251
|
Grid,
|
|
3239
3252
|
{
|
|
3240
3253
|
item: true,
|
|
@@ -3246,16 +3259,16 @@ var Row = React29.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
|
3246
3259
|
children
|
|
3247
3260
|
));
|
|
3248
3261
|
});
|
|
3249
|
-
var Column =
|
|
3250
|
-
return /* @__PURE__ */
|
|
3262
|
+
var Column = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3263
|
+
return /* @__PURE__ */ React30.createElement(Stack7, { gap: 0.75, ref }, /* @__PURE__ */ React30.createElement(ControlLabel, { infoTooltip }, label), children);
|
|
3251
3264
|
});
|
|
3252
3265
|
|
|
3253
3266
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3254
3267
|
var BORDER_COLOR_LABEL = __11("Border color", "elementor");
|
|
3255
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3268
|
+
var BorderColorField = () => /* @__PURE__ */ React31.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(ColorControl, null)));
|
|
3256
3269
|
|
|
3257
3270
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3258
|
-
import * as
|
|
3271
|
+
import * as React33 from "react";
|
|
3259
3272
|
import { EqualUnequalSizesControl } from "@elementor/editor-controls";
|
|
3260
3273
|
import { borderRadiusPropTypeUtil } from "@elementor/editor-props";
|
|
3261
3274
|
import {
|
|
@@ -3278,11 +3291,11 @@ function useDirection() {
|
|
|
3278
3291
|
}
|
|
3279
3292
|
|
|
3280
3293
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3281
|
-
import * as
|
|
3294
|
+
import * as React32 from "react";
|
|
3282
3295
|
import { DirectionProvider, ThemeProvider as ThemeProvider2 } from "@elementor/ui";
|
|
3283
3296
|
var UiProviders = ({ children }) => {
|
|
3284
3297
|
const { isSiteRtl } = useDirection();
|
|
3285
|
-
return /* @__PURE__ */
|
|
3298
|
+
return /* @__PURE__ */ React32.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React32.createElement(ThemeProvider2, null, children));
|
|
3286
3299
|
};
|
|
3287
3300
|
|
|
3288
3301
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
@@ -3303,36 +3316,36 @@ var getCorners = (isSiteRtl) => [
|
|
|
3303
3316
|
{
|
|
3304
3317
|
label: getStartStartLabel(isSiteRtl),
|
|
3305
3318
|
ariaLabel: getStartStartAriaLabel(isSiteRtl),
|
|
3306
|
-
icon: /* @__PURE__ */
|
|
3319
|
+
icon: /* @__PURE__ */ React33.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3307
3320
|
bind: "start-start"
|
|
3308
3321
|
},
|
|
3309
3322
|
{
|
|
3310
3323
|
label: getStartEndLabel(isSiteRtl),
|
|
3311
3324
|
ariaLabel: getStartEndAriaLabel(isSiteRtl),
|
|
3312
|
-
icon: /* @__PURE__ */
|
|
3325
|
+
icon: /* @__PURE__ */ React33.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3313
3326
|
bind: "start-end"
|
|
3314
3327
|
},
|
|
3315
3328
|
{
|
|
3316
3329
|
label: getEndStartLabel(isSiteRtl),
|
|
3317
3330
|
ariaLabel: getEndStartAriaLabel(isSiteRtl),
|
|
3318
|
-
icon: /* @__PURE__ */
|
|
3331
|
+
icon: /* @__PURE__ */ React33.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3319
3332
|
bind: "end-start"
|
|
3320
3333
|
},
|
|
3321
3334
|
{
|
|
3322
3335
|
label: getEndEndLabel(isSiteRtl),
|
|
3323
3336
|
ariaLabel: getEndEndAriaLabel(isSiteRtl),
|
|
3324
|
-
icon: /* @__PURE__ */
|
|
3337
|
+
icon: /* @__PURE__ */ React33.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3325
3338
|
bind: "end-end"
|
|
3326
3339
|
}
|
|
3327
3340
|
];
|
|
3328
3341
|
var BorderRadiusField = () => {
|
|
3329
3342
|
const { isSiteRtl } = useDirection();
|
|
3330
|
-
return /* @__PURE__ */
|
|
3343
|
+
return /* @__PURE__ */ React33.createElement(UiProviders, null, /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React33.createElement(
|
|
3331
3344
|
EqualUnequalSizesControl,
|
|
3332
3345
|
{
|
|
3333
3346
|
items: getCorners(isSiteRtl),
|
|
3334
3347
|
label: BORDER_RADIUS_LABEL,
|
|
3335
|
-
icon: /* @__PURE__ */
|
|
3348
|
+
icon: /* @__PURE__ */ React33.createElement(BorderCornersIcon, { fontSize: "tiny" }),
|
|
3336
3349
|
tooltipLabel: __12("Adjust corners", "elementor"),
|
|
3337
3350
|
multiSizePropTypeUtil: borderRadiusPropTypeUtil
|
|
3338
3351
|
}
|
|
@@ -3340,7 +3353,7 @@ var BorderRadiusField = () => {
|
|
|
3340
3353
|
};
|
|
3341
3354
|
|
|
3342
3355
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3343
|
-
import * as
|
|
3356
|
+
import * as React34 from "react";
|
|
3344
3357
|
import { SelectControl } from "@elementor/editor-controls";
|
|
3345
3358
|
import { __ as __13 } from "@wordpress/i18n";
|
|
3346
3359
|
var BORDER_TYPE_LABEL = __13("Border type", "elementor");
|
|
@@ -3355,10 +3368,10 @@ var borderStyles = [
|
|
|
3355
3368
|
{ value: "inset", label: __13("Inset", "elementor") },
|
|
3356
3369
|
{ value: "outset", label: __13("Outset", "elementor") }
|
|
3357
3370
|
];
|
|
3358
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3371
|
+
var BorderStyleField = () => /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(SelectControl, { options: borderStyles })));
|
|
3359
3372
|
|
|
3360
3373
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3361
|
-
import * as
|
|
3374
|
+
import * as React35 from "react";
|
|
3362
3375
|
import { EqualUnequalSizesControl as EqualUnequalSizesControl2 } from "@elementor/editor-controls";
|
|
3363
3376
|
import { borderWidthPropTypeUtil } from "@elementor/editor-props";
|
|
3364
3377
|
import { SideAllIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
@@ -3371,36 +3384,36 @@ var getEdges = (isSiteRtl) => [
|
|
|
3371
3384
|
{
|
|
3372
3385
|
label: __14("Top", "elementor"),
|
|
3373
3386
|
ariaLabel: __14("Border top width", "elementor"),
|
|
3374
|
-
icon: /* @__PURE__ */
|
|
3387
|
+
icon: /* @__PURE__ */ React35.createElement(SideTopIcon, { fontSize: "tiny" }),
|
|
3375
3388
|
bind: "block-start"
|
|
3376
3389
|
},
|
|
3377
3390
|
{
|
|
3378
3391
|
label: isSiteRtl ? __14("Left", "elementor") : __14("Right", "elementor"),
|
|
3379
3392
|
ariaLabel: isSiteRtl ? __14("Border left width", "elementor") : __14("Border right width", "elementor"),
|
|
3380
|
-
icon: /* @__PURE__ */
|
|
3393
|
+
icon: /* @__PURE__ */ React35.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3381
3394
|
bind: "inline-end"
|
|
3382
3395
|
},
|
|
3383
3396
|
{
|
|
3384
3397
|
label: __14("Bottom", "elementor"),
|
|
3385
3398
|
ariaLabel: __14("Border bottom width", "elementor"),
|
|
3386
|
-
icon: /* @__PURE__ */
|
|
3399
|
+
icon: /* @__PURE__ */ React35.createElement(SideBottomIcon, { fontSize: "tiny" }),
|
|
3387
3400
|
bind: "block-end"
|
|
3388
3401
|
},
|
|
3389
3402
|
{
|
|
3390
3403
|
label: isSiteRtl ? __14("Right", "elementor") : __14("Left", "elementor"),
|
|
3391
3404
|
ariaLabel: isSiteRtl ? __14("Border right width", "elementor") : __14("Border left width", "elementor"),
|
|
3392
|
-
icon: /* @__PURE__ */
|
|
3405
|
+
icon: /* @__PURE__ */ React35.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3393
3406
|
bind: "inline-start"
|
|
3394
3407
|
}
|
|
3395
3408
|
];
|
|
3396
3409
|
var BorderWidthField = () => {
|
|
3397
3410
|
const { isSiteRtl } = useDirection();
|
|
3398
|
-
return /* @__PURE__ */
|
|
3411
|
+
return /* @__PURE__ */ React35.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React35.createElement(
|
|
3399
3412
|
EqualUnequalSizesControl2,
|
|
3400
3413
|
{
|
|
3401
3414
|
items: getEdges(isSiteRtl),
|
|
3402
3415
|
label: BORDER_WIDTH_LABEL,
|
|
3403
|
-
icon: /* @__PURE__ */
|
|
3416
|
+
icon: /* @__PURE__ */ React35.createElement(SideAllIcon, { fontSize: "tiny" }),
|
|
3404
3417
|
tooltipLabel: __14("Adjust borders", "elementor"),
|
|
3405
3418
|
multiSizePropTypeUtil: borderWidthPropTypeUtil
|
|
3406
3419
|
}
|
|
@@ -3408,10 +3421,10 @@ var BorderWidthField = () => {
|
|
|
3408
3421
|
};
|
|
3409
3422
|
|
|
3410
3423
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3411
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3424
|
+
var BorderSection = () => /* @__PURE__ */ React36.createElement(SectionContent, null, /* @__PURE__ */ React36.createElement(BorderWidthField, null), /* @__PURE__ */ React36.createElement(BorderColorField, null), /* @__PURE__ */ React36.createElement(BorderStyleField, null), /* @__PURE__ */ React36.createElement(BorderRadiusField, null));
|
|
3412
3425
|
|
|
3413
3426
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3414
|
-
import * as
|
|
3427
|
+
import * as React40 from "react";
|
|
3415
3428
|
import {
|
|
3416
3429
|
BoxShadowRepeaterControl,
|
|
3417
3430
|
FilterRepeaterControl,
|
|
@@ -3459,12 +3472,12 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3459
3472
|
};
|
|
3460
3473
|
|
|
3461
3474
|
// src/components/panel-divider.tsx
|
|
3462
|
-
import * as
|
|
3475
|
+
import * as React37 from "react";
|
|
3463
3476
|
import { Divider as Divider4 } from "@elementor/ui";
|
|
3464
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3477
|
+
var PanelDivider = () => /* @__PURE__ */ React37.createElement(Divider4, { sx: { my: 0.5 } });
|
|
3465
3478
|
|
|
3466
3479
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3467
|
-
import * as
|
|
3480
|
+
import * as React38 from "react";
|
|
3468
3481
|
import { SelectControl as SelectControl2 } from "@elementor/editor-controls";
|
|
3469
3482
|
import { __ as __15 } from "@wordpress/i18n";
|
|
3470
3483
|
var BLEND_MODE_LABEL = __15("Blend mode", "elementor");
|
|
@@ -3487,18 +3500,18 @@ var blendModeOptions = [
|
|
|
3487
3500
|
{ label: __15("Hard light", "elementor"), value: "hard-light" }
|
|
3488
3501
|
];
|
|
3489
3502
|
var BlendModeField = () => {
|
|
3490
|
-
return /* @__PURE__ */
|
|
3503
|
+
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(SelectControl2, { options: blendModeOptions })));
|
|
3491
3504
|
};
|
|
3492
3505
|
|
|
3493
3506
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3494
|
-
import * as
|
|
3507
|
+
import * as React39 from "react";
|
|
3495
3508
|
import { useRef as useRef5 } from "react";
|
|
3496
3509
|
import { SizeControl as SizeControl2 } from "@elementor/editor-controls";
|
|
3497
3510
|
import { __ as __16 } from "@wordpress/i18n";
|
|
3498
3511
|
var OPACITY_LABEL = __16("Opacity", "elementor");
|
|
3499
3512
|
var OpacityControlField = () => {
|
|
3500
3513
|
const rowRef = useRef5(null);
|
|
3501
|
-
return /* @__PURE__ */
|
|
3514
|
+
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(SizeControl2, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3502
3515
|
};
|
|
3503
3516
|
|
|
3504
3517
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
@@ -3511,17 +3524,17 @@ var EffectsSection = () => {
|
|
|
3511
3524
|
const { element } = useElement();
|
|
3512
3525
|
const { meta } = useStyle();
|
|
3513
3526
|
const canHaveChildren = canElementHaveChildren(element?.id ?? "");
|
|
3514
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ React40.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React40.createElement(BlendModeField, null), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(OpacityControlField, null), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React40.createElement(BoxShadowRepeaterControl, null)), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React40.createElement(TransformRepeaterControl, { showChildrenPerspective: canHaveChildren })), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React40.createElement(
|
|
3515
3528
|
TransitionRepeaterControl,
|
|
3516
3529
|
{
|
|
3517
3530
|
currentStyleState: meta.state,
|
|
3518
3531
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3519
3532
|
}
|
|
3520
|
-
)), /* @__PURE__ */
|
|
3533
|
+
)), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React40.createElement(FilterRepeaterControl, null)), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React40.createElement(FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3521
3534
|
};
|
|
3522
3535
|
|
|
3523
3536
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3524
|
-
import * as
|
|
3537
|
+
import * as React61 from "react";
|
|
3525
3538
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3526
3539
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3527
3540
|
import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
|
|
@@ -3552,11 +3565,11 @@ function useComputedStyle(elementId) {
|
|
|
3552
3565
|
}
|
|
3553
3566
|
|
|
3554
3567
|
// src/components/style-tab-collapsible-content.tsx
|
|
3555
|
-
import * as
|
|
3568
|
+
import * as React42 from "react";
|
|
3556
3569
|
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
3557
3570
|
|
|
3558
3571
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
3559
|
-
import * as
|
|
3572
|
+
import * as React41 from "react";
|
|
3560
3573
|
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
3561
3574
|
import { Stack as Stack8, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
3562
3575
|
import { __ as __18 } from "@wordpress/i18n";
|
|
@@ -3564,7 +3577,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3564
3577
|
const { id, meta, provider } = useStyle();
|
|
3565
3578
|
const snapshot = useStylesInheritanceSnapshot();
|
|
3566
3579
|
if (fields.includes("custom_css")) {
|
|
3567
|
-
return /* @__PURE__ */
|
|
3580
|
+
return /* @__PURE__ */ React41.createElement(CustomCssIndicator, null);
|
|
3568
3581
|
}
|
|
3569
3582
|
const snapshotFields = Object.fromEntries(
|
|
3570
3583
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -3575,7 +3588,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3575
3588
|
}
|
|
3576
3589
|
const hasValueLabel = __18("Has effective styles", "elementor");
|
|
3577
3590
|
const hasOverridesLabel = __18("Has overridden styles", "elementor");
|
|
3578
|
-
return /* @__PURE__ */
|
|
3591
|
+
return /* @__PURE__ */ React41.createElement(Tooltip2, { title: __18("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React41.createElement(Stack8, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React41.createElement(
|
|
3579
3592
|
StyleIndicator,
|
|
3580
3593
|
{
|
|
3581
3594
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -3583,7 +3596,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3583
3596
|
role: "listitem",
|
|
3584
3597
|
"aria-label": hasValueLabel
|
|
3585
3598
|
}
|
|
3586
|
-
), hasOverrides && /* @__PURE__ */
|
|
3599
|
+
), hasOverrides && /* @__PURE__ */ React41.createElement(
|
|
3587
3600
|
StyleIndicator,
|
|
3588
3601
|
{
|
|
3589
3602
|
isOverridden: true,
|
|
@@ -3623,17 +3636,17 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
3623
3636
|
|
|
3624
3637
|
// src/components/style-tab-collapsible-content.tsx
|
|
3625
3638
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
3626
|
-
return /* @__PURE__ */
|
|
3639
|
+
return /* @__PURE__ */ React42.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
3627
3640
|
};
|
|
3628
3641
|
function getStylesInheritanceIndicators(fields) {
|
|
3629
3642
|
if (fields.length === 0) {
|
|
3630
3643
|
return null;
|
|
3631
3644
|
}
|
|
3632
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
3645
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React42.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
3633
3646
|
}
|
|
3634
3647
|
|
|
3635
3648
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3636
|
-
import * as
|
|
3649
|
+
import * as React44 from "react";
|
|
3637
3650
|
import { ToggleControl as ToggleControl2 } from "@elementor/editor-controls";
|
|
3638
3651
|
import {
|
|
3639
3652
|
JustifyBottomIcon,
|
|
@@ -3647,7 +3660,7 @@ import { withDirection as withDirection3 } from "@elementor/ui";
|
|
|
3647
3660
|
import { __ as __20 } from "@wordpress/i18n";
|
|
3648
3661
|
|
|
3649
3662
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3650
|
-
import * as
|
|
3663
|
+
import * as React43 from "react";
|
|
3651
3664
|
import { useRef as useRef6 } from "react";
|
|
3652
3665
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
3653
3666
|
import { __ as __19 } from "@wordpress/i18n";
|
|
@@ -3673,7 +3686,7 @@ var RotatedIcon = ({
|
|
|
3673
3686
|
}) => {
|
|
3674
3687
|
const rotate = useRef6(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3675
3688
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3676
|
-
return /* @__PURE__ */
|
|
3689
|
+
return /* @__PURE__ */ React43.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3677
3690
|
};
|
|
3678
3691
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3679
3692
|
const { value: direction } = useStylesField("flex-direction", {
|
|
@@ -3706,44 +3719,44 @@ var options = [
|
|
|
3706
3719
|
{
|
|
3707
3720
|
value: "start",
|
|
3708
3721
|
label: __20("Start", "elementor"),
|
|
3709
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3722
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3710
3723
|
showTooltip: true
|
|
3711
3724
|
},
|
|
3712
3725
|
{
|
|
3713
3726
|
value: "center",
|
|
3714
3727
|
label: __20("Center", "elementor"),
|
|
3715
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3728
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
3716
3729
|
showTooltip: true
|
|
3717
3730
|
},
|
|
3718
3731
|
{
|
|
3719
3732
|
value: "end",
|
|
3720
3733
|
label: __20("End", "elementor"),
|
|
3721
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3734
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3722
3735
|
showTooltip: true
|
|
3723
3736
|
},
|
|
3724
3737
|
{
|
|
3725
3738
|
value: "space-between",
|
|
3726
3739
|
label: __20("Space between", "elementor"),
|
|
3727
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3740
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
3728
3741
|
showTooltip: true
|
|
3729
3742
|
},
|
|
3730
3743
|
{
|
|
3731
3744
|
value: "space-around",
|
|
3732
3745
|
label: __20("Space around", "elementor"),
|
|
3733
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3746
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
3734
3747
|
showTooltip: true
|
|
3735
3748
|
},
|
|
3736
3749
|
{
|
|
3737
3750
|
value: "space-evenly",
|
|
3738
3751
|
label: __20("Space evenly", "elementor"),
|
|
3739
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3752
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
3740
3753
|
showTooltip: true
|
|
3741
3754
|
}
|
|
3742
3755
|
];
|
|
3743
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3756
|
+
var AlignContentField = () => /* @__PURE__ */ React44.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React44.createElement(UiProviders, null, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React44.createElement(ToggleControl2, { options, fullWidth: true }))));
|
|
3744
3757
|
|
|
3745
3758
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3746
|
-
import * as
|
|
3759
|
+
import * as React45 from "react";
|
|
3747
3760
|
import { ToggleControl as ToggleControl3 } from "@elementor/editor-controls";
|
|
3748
3761
|
import {
|
|
3749
3762
|
LayoutAlignCenterIcon as CenterIcon2,
|
|
@@ -3764,34 +3777,34 @@ var options2 = [
|
|
|
3764
3777
|
{
|
|
3765
3778
|
value: "start",
|
|
3766
3779
|
label: __21("Start", "elementor"),
|
|
3767
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3780
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3768
3781
|
showTooltip: true
|
|
3769
3782
|
},
|
|
3770
3783
|
{
|
|
3771
3784
|
value: "center",
|
|
3772
3785
|
label: __21("Center", "elementor"),
|
|
3773
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3786
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
3774
3787
|
showTooltip: true
|
|
3775
3788
|
},
|
|
3776
3789
|
{
|
|
3777
3790
|
value: "end",
|
|
3778
3791
|
label: __21("End", "elementor"),
|
|
3779
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3792
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3780
3793
|
showTooltip: true
|
|
3781
3794
|
},
|
|
3782
3795
|
{
|
|
3783
3796
|
value: "stretch",
|
|
3784
3797
|
label: __21("Stretch", "elementor"),
|
|
3785
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3798
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
3786
3799
|
showTooltip: true
|
|
3787
3800
|
}
|
|
3788
3801
|
];
|
|
3789
3802
|
var AlignItemsField = () => {
|
|
3790
|
-
return /* @__PURE__ */
|
|
3803
|
+
return /* @__PURE__ */ React45.createElement(UiProviders, null, /* @__PURE__ */ React45.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React45.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React45.createElement(ToggleControl3, { options: options2 }))));
|
|
3791
3804
|
};
|
|
3792
3805
|
|
|
3793
3806
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3794
|
-
import * as
|
|
3807
|
+
import * as React46 from "react";
|
|
3795
3808
|
import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
|
|
3796
3809
|
import {
|
|
3797
3810
|
LayoutAlignCenterIcon as CenterIcon3,
|
|
@@ -3817,7 +3830,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3817
3830
|
{
|
|
3818
3831
|
value: "start",
|
|
3819
3832
|
label: __22("Start", "elementor"),
|
|
3820
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3833
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3821
3834
|
RotatedIcon,
|
|
3822
3835
|
{
|
|
3823
3836
|
icon: StartIcon3,
|
|
@@ -3831,7 +3844,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3831
3844
|
{
|
|
3832
3845
|
value: "center",
|
|
3833
3846
|
label: __22("Center", "elementor"),
|
|
3834
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3847
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3835
3848
|
RotatedIcon,
|
|
3836
3849
|
{
|
|
3837
3850
|
icon: CenterIcon3,
|
|
@@ -3845,7 +3858,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3845
3858
|
{
|
|
3846
3859
|
value: "end",
|
|
3847
3860
|
label: __22("End", "elementor"),
|
|
3848
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3861
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3849
3862
|
RotatedIcon,
|
|
3850
3863
|
{
|
|
3851
3864
|
icon: EndIcon3,
|
|
@@ -3859,7 +3872,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3859
3872
|
{
|
|
3860
3873
|
value: "stretch",
|
|
3861
3874
|
label: __22("Stretch", "elementor"),
|
|
3862
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3875
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3863
3876
|
RotatedIcon,
|
|
3864
3877
|
{
|
|
3865
3878
|
icon: JustifyIcon2,
|
|
@@ -3871,10 +3884,10 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3871
3884
|
showTooltip: true
|
|
3872
3885
|
}
|
|
3873
3886
|
];
|
|
3874
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3887
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React46.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React46.createElement(UiProviders, null, /* @__PURE__ */ React46.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React46.createElement(ToggleControl4, { options: getOptions(parentStyleDirection) }))));
|
|
3875
3888
|
|
|
3876
3889
|
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3877
|
-
import * as
|
|
3890
|
+
import * as React47 from "react";
|
|
3878
3891
|
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
3879
3892
|
import {
|
|
3880
3893
|
JustifyBottomIcon as JustifyBottomIcon2,
|
|
@@ -3888,44 +3901,44 @@ var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
|
3888
3901
|
row: 0,
|
|
3889
3902
|
column: -90
|
|
3890
3903
|
};
|
|
3891
|
-
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3904
|
+
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */ React47.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React47.createElement(UiProviders, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React47.createElement(ToggleControl5, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3892
3905
|
var RotatedIcon2 = ({
|
|
3893
3906
|
icon: Icon,
|
|
3894
3907
|
size,
|
|
3895
3908
|
offset
|
|
3896
|
-
}) => /* @__PURE__ */
|
|
3909
|
+
}) => /* @__PURE__ */ React47.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3897
3910
|
var getOptions2 = (parentStyleDirection) => {
|
|
3898
3911
|
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3899
3912
|
return [
|
|
3900
3913
|
{
|
|
3901
3914
|
value: "start",
|
|
3902
3915
|
label: __23("Start", "elementor"),
|
|
3903
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3916
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyTopIcon2, size, offset }),
|
|
3904
3917
|
showTooltip: true
|
|
3905
3918
|
},
|
|
3906
3919
|
{
|
|
3907
3920
|
value: "center",
|
|
3908
3921
|
label: __23("Center", "elementor"),
|
|
3909
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3922
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyCenterIcon, size, offset }),
|
|
3910
3923
|
showTooltip: true
|
|
3911
3924
|
},
|
|
3912
3925
|
{
|
|
3913
3926
|
value: "end",
|
|
3914
3927
|
label: __23("End", "elementor"),
|
|
3915
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3928
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyBottomIcon2, size, offset }),
|
|
3916
3929
|
showTooltip: true
|
|
3917
3930
|
},
|
|
3918
3931
|
{
|
|
3919
3932
|
value: "stretch",
|
|
3920
3933
|
label: __23("Stretch", "elementor"),
|
|
3921
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3934
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyIcon3, size, offset }),
|
|
3922
3935
|
showTooltip: true
|
|
3923
3936
|
}
|
|
3924
3937
|
];
|
|
3925
3938
|
};
|
|
3926
3939
|
|
|
3927
3940
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3928
|
-
import * as
|
|
3941
|
+
import * as React48 from "react";
|
|
3929
3942
|
import { useMemo as useMemo9 } from "react";
|
|
3930
3943
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
3931
3944
|
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
@@ -3976,12 +3989,12 @@ var DisplayField = () => {
|
|
|
3976
3989
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3977
3990
|
[isGridActive]
|
|
3978
3991
|
);
|
|
3979
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React48.createElement(ToggleControl6, { options: items3, maxItems: 4, fullWidth: true })));
|
|
3980
3993
|
};
|
|
3981
3994
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3982
3995
|
|
|
3983
3996
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3984
|
-
import * as
|
|
3997
|
+
import * as React49 from "react";
|
|
3985
3998
|
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
3986
3999
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
3987
4000
|
import { withDirection as withDirection6 } from "@elementor/ui";
|
|
@@ -3993,14 +4006,14 @@ var options3 = [
|
|
|
3993
4006
|
label: __25("Row", "elementor"),
|
|
3994
4007
|
renderContent: ({ size }) => {
|
|
3995
4008
|
const StartIcon7 = withDirection6(ArrowRightIcon);
|
|
3996
|
-
return /* @__PURE__ */
|
|
4009
|
+
return /* @__PURE__ */ React49.createElement(StartIcon7, { fontSize: size });
|
|
3997
4010
|
},
|
|
3998
4011
|
showTooltip: true
|
|
3999
4012
|
},
|
|
4000
4013
|
{
|
|
4001
4014
|
value: "column",
|
|
4002
4015
|
label: __25("Column", "elementor"),
|
|
4003
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4016
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
4004
4017
|
showTooltip: true
|
|
4005
4018
|
},
|
|
4006
4019
|
{
|
|
@@ -4008,23 +4021,23 @@ var options3 = [
|
|
|
4008
4021
|
label: __25("Reversed row", "elementor"),
|
|
4009
4022
|
renderContent: ({ size }) => {
|
|
4010
4023
|
const EndIcon6 = withDirection6(ArrowLeftIcon);
|
|
4011
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ React49.createElement(EndIcon6, { fontSize: size });
|
|
4012
4025
|
},
|
|
4013
4026
|
showTooltip: true
|
|
4014
4027
|
},
|
|
4015
4028
|
{
|
|
4016
4029
|
value: "column-reverse",
|
|
4017
4030
|
label: __25("Reversed column", "elementor"),
|
|
4018
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4031
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
4019
4032
|
showTooltip: true
|
|
4020
4033
|
}
|
|
4021
4034
|
];
|
|
4022
4035
|
var FlexDirectionField = () => {
|
|
4023
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React49.createElement(ToggleControl7, { options: options3 }))));
|
|
4024
4037
|
};
|
|
4025
4038
|
|
|
4026
4039
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
4027
|
-
import * as
|
|
4040
|
+
import * as React50 from "react";
|
|
4028
4041
|
import { useEffect as useEffect5, useMemo as useMemo10, useState as useState7 } from "react";
|
|
4029
4042
|
import {
|
|
4030
4043
|
ControlToggleButtonGroup,
|
|
@@ -4048,24 +4061,24 @@ var items = [
|
|
|
4048
4061
|
{
|
|
4049
4062
|
value: FIRST,
|
|
4050
4063
|
label: __26("First", "elementor"),
|
|
4051
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4064
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
4052
4065
|
showTooltip: true
|
|
4053
4066
|
},
|
|
4054
4067
|
{
|
|
4055
4068
|
value: LAST,
|
|
4056
4069
|
label: __26("Last", "elementor"),
|
|
4057
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4070
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
4058
4071
|
showTooltip: true
|
|
4059
4072
|
},
|
|
4060
4073
|
{
|
|
4061
4074
|
value: CUSTOM,
|
|
4062
4075
|
label: __26("Custom", "elementor"),
|
|
4063
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4076
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(PencilIcon, { fontSize: size }),
|
|
4064
4077
|
showTooltip: true
|
|
4065
4078
|
}
|
|
4066
4079
|
];
|
|
4067
4080
|
var FlexOrderField = () => {
|
|
4068
|
-
return /* @__PURE__ */
|
|
4081
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(SectionContent, null, /* @__PURE__ */ React50.createElement(FlexOrderFieldContent, null))));
|
|
4069
4082
|
};
|
|
4070
4083
|
function FlexOrderFieldContent() {
|
|
4071
4084
|
const {
|
|
@@ -4110,7 +4123,7 @@ function FlexOrderFieldContent() {
|
|
|
4110
4123
|
};
|
|
4111
4124
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
4112
4125
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
4113
|
-
return /* @__PURE__ */
|
|
4126
|
+
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React50.createElement(
|
|
4114
4127
|
ControlToggleButtonGroup,
|
|
4115
4128
|
{
|
|
4116
4129
|
items,
|
|
@@ -4120,7 +4133,7 @@ function FlexOrderFieldContent() {
|
|
|
4120
4133
|
placeholder: groupPlaceholder,
|
|
4121
4134
|
disabled: !canEdit
|
|
4122
4135
|
}
|
|
4123
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4136
|
+
)), isCustomVisible && /* @__PURE__ */ React50.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, __26("Custom order", "elementor"))), /* @__PURE__ */ React50.createElement(Grid2, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React50.createElement(
|
|
4124
4137
|
NumberControl2,
|
|
4125
4138
|
{
|
|
4126
4139
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4144,7 +4157,7 @@ var getGroupControlValue = (order) => {
|
|
|
4144
4157
|
};
|
|
4145
4158
|
|
|
4146
4159
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
4147
|
-
import * as
|
|
4160
|
+
import * as React51 from "react";
|
|
4148
4161
|
import { useEffect as useEffect6, useMemo as useMemo11, useRef as useRef7, useState as useState8 } from "react";
|
|
4149
4162
|
import {
|
|
4150
4163
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
@@ -4163,24 +4176,24 @@ var items2 = [
|
|
|
4163
4176
|
{
|
|
4164
4177
|
value: "flex-grow",
|
|
4165
4178
|
label: __27("Grow", "elementor"),
|
|
4166
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4179
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(ExpandIcon, { fontSize: size }),
|
|
4167
4180
|
showTooltip: true
|
|
4168
4181
|
},
|
|
4169
4182
|
{
|
|
4170
4183
|
value: "flex-shrink",
|
|
4171
4184
|
label: __27("Shrink", "elementor"),
|
|
4172
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4185
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(ShrinkIcon, { fontSize: size }),
|
|
4173
4186
|
showTooltip: true
|
|
4174
4187
|
},
|
|
4175
4188
|
{
|
|
4176
4189
|
value: "custom",
|
|
4177
4190
|
label: __27("Custom", "elementor"),
|
|
4178
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4191
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(PencilIcon2, { fontSize: size }),
|
|
4179
4192
|
showTooltip: true
|
|
4180
4193
|
}
|
|
4181
4194
|
];
|
|
4182
4195
|
var FlexSizeField = () => {
|
|
4183
|
-
return /* @__PURE__ */
|
|
4196
|
+
return /* @__PURE__ */ React51.createElement(UiProviders, null, /* @__PURE__ */ React51.createElement(SectionContent, null, /* @__PURE__ */ React51.createElement(StylesField, { bind: "flex", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React51.createElement(FlexSizeFieldContent, null))));
|
|
4184
4197
|
};
|
|
4185
4198
|
var FlexSizeFieldContent = () => {
|
|
4186
4199
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -4209,7 +4222,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4209
4222
|
};
|
|
4210
4223
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4211
4224
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4212
|
-
return /* @__PURE__ */
|
|
4225
|
+
return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React51.createElement(
|
|
4213
4226
|
ControlToggleButtonGroup2,
|
|
4214
4227
|
{
|
|
4215
4228
|
value: activeGroup ?? null,
|
|
@@ -4219,7 +4232,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4219
4232
|
items: items2,
|
|
4220
4233
|
exclusive: true
|
|
4221
4234
|
}
|
|
4222
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4235
|
+
)), isCustomVisible && /* @__PURE__ */ React51.createElement(FlexCustomField, null));
|
|
4223
4236
|
};
|
|
4224
4237
|
function extractFlexValues(source) {
|
|
4225
4238
|
return {
|
|
@@ -4261,7 +4274,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4261
4274
|
var FlexCustomField = () => {
|
|
4262
4275
|
const flexBasisRowRef = useRef7(null);
|
|
4263
4276
|
const context = useBoundProp3(flexPropTypeUtil);
|
|
4264
|
-
return /* @__PURE__ */
|
|
4277
|
+
return /* @__PURE__ */ React51.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: __27("Grow", "elementor") }, /* @__PURE__ */ React51.createElement(PropKeyProvider3, { bind: "flexGrow" }, /* @__PURE__ */ React51.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: __27("Shrink", "elementor") }, /* @__PURE__ */ React51.createElement(PropKeyProvider3, { bind: "flexShrink" }, /* @__PURE__ */ React51.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: __27("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React51.createElement(PropKeyProvider3, { bind: "flexBasis" }, /* @__PURE__ */ React51.createElement(SizeControl3, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4265
4278
|
};
|
|
4266
4279
|
var getActiveGroup = ({
|
|
4267
4280
|
grow,
|
|
@@ -4285,16 +4298,16 @@ var getActiveGroup = ({
|
|
|
4285
4298
|
};
|
|
4286
4299
|
|
|
4287
4300
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4288
|
-
import * as
|
|
4301
|
+
import * as React52 from "react";
|
|
4289
4302
|
import { GapControl } from "@elementor/editor-controls";
|
|
4290
4303
|
import { __ as __28 } from "@wordpress/i18n";
|
|
4291
4304
|
var GAPS_LABEL = __28("Gaps", "elementor");
|
|
4292
4305
|
var GapControlField = () => {
|
|
4293
|
-
return /* @__PURE__ */
|
|
4306
|
+
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React52.createElement(GapControl, { label: GAPS_LABEL }));
|
|
4294
4307
|
};
|
|
4295
4308
|
|
|
4296
4309
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
4297
|
-
import * as
|
|
4310
|
+
import * as React53 from "react";
|
|
4298
4311
|
import { ControlToggleButtonGroup as ControlToggleButtonGroup3 } from "@elementor/editor-controls";
|
|
4299
4312
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon3, ArrowRightIcon as ArrowRightIcon2, LayoutDashboardIcon } from "@elementor/icons";
|
|
4300
4313
|
import { Grid as Grid3, ToggleButton, Tooltip as Tooltip3, withDirection as withDirection7 } from "@elementor/ui";
|
|
@@ -4306,13 +4319,13 @@ var directionOptions = [
|
|
|
4306
4319
|
{
|
|
4307
4320
|
value: "row",
|
|
4308
4321
|
label: __29("Row", "elementor"),
|
|
4309
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4322
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(StartIcon4, { fontSize: size }),
|
|
4310
4323
|
showTooltip: true
|
|
4311
4324
|
},
|
|
4312
4325
|
{
|
|
4313
4326
|
value: "column",
|
|
4314
4327
|
label: __29("Column", "elementor"),
|
|
4315
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4328
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(ArrowDownSmallIcon3, { fontSize: size }),
|
|
4316
4329
|
showTooltip: true
|
|
4317
4330
|
}
|
|
4318
4331
|
];
|
|
@@ -4341,7 +4354,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4341
4354
|
const handleDenseToggle = () => {
|
|
4342
4355
|
setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
|
|
4343
4356
|
};
|
|
4344
|
-
return /* @__PURE__ */
|
|
4357
|
+
return /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React53.createElement(Grid3, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React53.createElement(Grid3, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React53.createElement(
|
|
4345
4358
|
ControlToggleButtonGroup3,
|
|
4346
4359
|
{
|
|
4347
4360
|
items: directionOptions,
|
|
@@ -4350,7 +4363,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4350
4363
|
exclusive: true,
|
|
4351
4364
|
fullWidth: true
|
|
4352
4365
|
}
|
|
4353
|
-
)), /* @__PURE__ */
|
|
4366
|
+
)), /* @__PURE__ */ React53.createElement(Grid3, { item: true }, /* @__PURE__ */ React53.createElement(Tooltip3, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React53.createElement(
|
|
4354
4367
|
ToggleButton,
|
|
4355
4368
|
{
|
|
4356
4369
|
value: "dense",
|
|
@@ -4359,13 +4372,13 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4359
4372
|
size: "tiny",
|
|
4360
4373
|
"aria-label": DENSE_LABEL
|
|
4361
4374
|
},
|
|
4362
|
-
/* @__PURE__ */
|
|
4375
|
+
/* @__PURE__ */ React53.createElement(LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4363
4376
|
)))));
|
|
4364
4377
|
};
|
|
4365
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4378
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React53.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(GridAutoFlowFieldContent, null)));
|
|
4366
4379
|
|
|
4367
4380
|
// src/components/style-sections/layout-section/grid-auto-track-fields.tsx
|
|
4368
|
-
import * as
|
|
4381
|
+
import * as React54 from "react";
|
|
4369
4382
|
import { useRef as useRef8 } from "react";
|
|
4370
4383
|
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
4371
4384
|
import { Stack as Stack9 } from "@elementor/ui";
|
|
@@ -4381,7 +4394,7 @@ var AUTO_COLUMNS_TOOLTIP = __30(
|
|
|
4381
4394
|
"Set the size for new columns created automatically when content exceeds the defined grid.",
|
|
4382
4395
|
"elementor"
|
|
4383
4396
|
);
|
|
4384
|
-
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */
|
|
4397
|
+
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */ React54.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { infoTooltip, label, ref: rowRef }, /* @__PURE__ */ React54.createElement(
|
|
4385
4398
|
SizeControl4,
|
|
4386
4399
|
{
|
|
4387
4400
|
enablePropTypeUnits: true,
|
|
@@ -4391,7 +4404,7 @@ var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__
|
|
|
4391
4404
|
)));
|
|
4392
4405
|
var GridAutoTrackFields = () => {
|
|
4393
4406
|
const rowRef = useRef8(null);
|
|
4394
|
-
return /* @__PURE__ */
|
|
4407
|
+
return /* @__PURE__ */ React54.createElement(Stack9, { gap: 2, pt: 2, ref: rowRef }, /* @__PURE__ */ React54.createElement(
|
|
4395
4408
|
GridAutoTrackField,
|
|
4396
4409
|
{
|
|
4397
4410
|
bind: "grid-auto-rows",
|
|
@@ -4399,7 +4412,7 @@ var GridAutoTrackFields = () => {
|
|
|
4399
4412
|
label: AUTO_ROWS_LABEL,
|
|
4400
4413
|
rowRef
|
|
4401
4414
|
}
|
|
4402
|
-
), /* @__PURE__ */
|
|
4415
|
+
), /* @__PURE__ */ React54.createElement(
|
|
4403
4416
|
GridAutoTrackField,
|
|
4404
4417
|
{
|
|
4405
4418
|
bind: "grid-auto-columns",
|
|
@@ -4411,7 +4424,7 @@ var GridAutoTrackFields = () => {
|
|
|
4411
4424
|
};
|
|
4412
4425
|
|
|
4413
4426
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4414
|
-
import * as
|
|
4427
|
+
import * as React55 from "react";
|
|
4415
4428
|
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
4416
4429
|
import {
|
|
4417
4430
|
LayoutAlignCenterIcon as CenterIcon4,
|
|
@@ -4428,41 +4441,41 @@ var options4 = [
|
|
|
4428
4441
|
{
|
|
4429
4442
|
value: "start",
|
|
4430
4443
|
label: __31("Start", "elementor"),
|
|
4431
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4444
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(StartIcon5, { fontSize: size }),
|
|
4432
4445
|
showTooltip: true
|
|
4433
4446
|
},
|
|
4434
4447
|
{
|
|
4435
4448
|
value: "center",
|
|
4436
4449
|
label: __31("Center", "elementor"),
|
|
4437
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4450
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(CenterIcon4, { fontSize: size }),
|
|
4438
4451
|
showTooltip: true
|
|
4439
4452
|
},
|
|
4440
4453
|
{
|
|
4441
4454
|
value: "end",
|
|
4442
4455
|
label: __31("End", "elementor"),
|
|
4443
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4456
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(EndIcon4, { fontSize: size }),
|
|
4444
4457
|
showTooltip: true
|
|
4445
4458
|
},
|
|
4446
4459
|
{
|
|
4447
4460
|
value: "stretch",
|
|
4448
4461
|
label: __31("Stretch", "elementor"),
|
|
4449
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4462
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(StretchIcon, { fontSize: size }),
|
|
4450
4463
|
showTooltip: true
|
|
4451
4464
|
}
|
|
4452
4465
|
];
|
|
4453
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4466
|
+
var GridJustifyItemsField = () => /* @__PURE__ */ React55.createElement(StylesField, { bind: "justify-items", propDisplayName: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React55.createElement(UiProviders, null, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { label: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React55.createElement(ToggleControl8, { options: options4 }))));
|
|
4454
4467
|
|
|
4455
4468
|
// src/components/style-sections/layout-section/grid-outline-field.tsx
|
|
4456
|
-
import * as
|
|
4469
|
+
import * as React56 from "react";
|
|
4457
4470
|
import { SwitchControl as SwitchControl2 } from "@elementor/editor-controls";
|
|
4458
4471
|
import { __ as __32 } from "@wordpress/i18n";
|
|
4459
4472
|
var GRID_OUTLINE_LABEL = __32("Show Grid Outline", "elementor");
|
|
4460
4473
|
var GridOutlineField = () => {
|
|
4461
|
-
return /* @__PURE__ */
|
|
4474
|
+
return /* @__PURE__ */ React56.createElement(SettingsField, { bind: "grid_outline", propDisplayName: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(SwitchControl2, null)));
|
|
4462
4475
|
};
|
|
4463
4476
|
|
|
4464
4477
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4465
|
-
import * as
|
|
4478
|
+
import * as React57 from "react";
|
|
4466
4479
|
import { useRef as useRef9 } from "react";
|
|
4467
4480
|
import { ControlActions, createControl, SizeComponent, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
|
|
4468
4481
|
import { Grid as Grid4 } from "@elementor/ui";
|
|
@@ -4563,8 +4576,8 @@ var unitOf = (v, fallback = FR) => {
|
|
|
4563
4576
|
};
|
|
4564
4577
|
|
|
4565
4578
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4566
|
-
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */
|
|
4567
|
-
var GridTrackSizeInput = createControl((props) => /* @__PURE__ */
|
|
4579
|
+
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */ React57.createElement(ControlActions, null, children);
|
|
4580
|
+
var GridTrackSizeInput = createControl((props) => /* @__PURE__ */ React57.createElement(
|
|
4568
4581
|
SizeComponent,
|
|
4569
4582
|
{
|
|
4570
4583
|
units: UNITS,
|
|
@@ -4596,7 +4609,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4596
4609
|
}
|
|
4597
4610
|
setValue(toPropValue(next));
|
|
4598
4611
|
};
|
|
4599
|
-
return /* @__PURE__ */
|
|
4612
|
+
return /* @__PURE__ */ React57.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React57.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React57.createElement(
|
|
4600
4613
|
GridTrackSizeInput,
|
|
4601
4614
|
{
|
|
4602
4615
|
value: displayValue,
|
|
@@ -4606,22 +4619,22 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4606
4619
|
}
|
|
4607
4620
|
)));
|
|
4608
4621
|
};
|
|
4609
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4610
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4622
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React57.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4623
|
+
var GridSizeFields = () => /* @__PURE__ */ React57.createElement(Grid4, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-columns", label: __33("Columns", "elementor") })), /* @__PURE__ */ React57.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-rows", label: __33("Rows", "elementor") })));
|
|
4611
4624
|
|
|
4612
4625
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4613
|
-
import * as
|
|
4626
|
+
import * as React58 from "react";
|
|
4614
4627
|
import { GridSpanControl } from "@elementor/editor-controls";
|
|
4615
4628
|
import { Grid as Grid5 } from "@elementor/ui";
|
|
4616
4629
|
import { __ as __34 } from "@wordpress/i18n";
|
|
4617
4630
|
var GridSpanFieldContent = ({ label }) => {
|
|
4618
|
-
return /* @__PURE__ */
|
|
4631
|
+
return /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React58.createElement(GridSpanControl, null));
|
|
4619
4632
|
};
|
|
4620
|
-
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4621
|
-
var GridSpanFields = () => /* @__PURE__ */
|
|
4633
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React58.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4634
|
+
var GridSpanFields = () => /* @__PURE__ */ React58.createElement(Grid5, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-column", label: __34("Grid column", "elementor") })), /* @__PURE__ */ React58.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-row", label: __34("Grid row", "elementor") })));
|
|
4622
4635
|
|
|
4623
4636
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4624
|
-
import * as
|
|
4637
|
+
import * as React59 from "react";
|
|
4625
4638
|
import { ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
4626
4639
|
import {
|
|
4627
4640
|
JustifyBottomIcon as JustifyBottomIcon3,
|
|
@@ -4644,44 +4657,44 @@ var options5 = [
|
|
|
4644
4657
|
{
|
|
4645
4658
|
value: "flex-start",
|
|
4646
4659
|
label: __35("Start", "elementor"),
|
|
4647
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4660
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4648
4661
|
showTooltip: true
|
|
4649
4662
|
},
|
|
4650
4663
|
{
|
|
4651
4664
|
value: "center",
|
|
4652
4665
|
label: __35("Center", "elementor"),
|
|
4653
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4666
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: CenterIcon5, size, ...iconProps4 }),
|
|
4654
4667
|
showTooltip: true
|
|
4655
4668
|
},
|
|
4656
4669
|
{
|
|
4657
4670
|
value: "flex-end",
|
|
4658
4671
|
label: __35("End", "elementor"),
|
|
4659
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4672
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4660
4673
|
showTooltip: true
|
|
4661
4674
|
},
|
|
4662
4675
|
{
|
|
4663
4676
|
value: "space-between",
|
|
4664
4677
|
label: __35("Space between", "elementor"),
|
|
4665
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4678
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
4666
4679
|
showTooltip: true
|
|
4667
4680
|
},
|
|
4668
4681
|
{
|
|
4669
4682
|
value: "space-around",
|
|
4670
4683
|
label: __35("Space around", "elementor"),
|
|
4671
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4684
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
4672
4685
|
showTooltip: true
|
|
4673
4686
|
},
|
|
4674
4687
|
{
|
|
4675
4688
|
value: "space-evenly",
|
|
4676
4689
|
label: __35("Space evenly", "elementor"),
|
|
4677
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4690
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
4678
4691
|
showTooltip: true
|
|
4679
4692
|
}
|
|
4680
4693
|
];
|
|
4681
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4694
|
+
var JustifyContentField = () => /* @__PURE__ */ React59.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React59.createElement(UiProviders, null, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React59.createElement(ToggleControl9, { options: options5, fullWidth: true }))));
|
|
4682
4695
|
|
|
4683
4696
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4684
|
-
import * as
|
|
4697
|
+
import * as React60 from "react";
|
|
4685
4698
|
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
4686
4699
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4687
4700
|
import { __ as __36 } from "@wordpress/i18n";
|
|
@@ -4690,24 +4703,24 @@ var options6 = [
|
|
|
4690
4703
|
{
|
|
4691
4704
|
value: "nowrap",
|
|
4692
4705
|
label: __36("No wrap", "elementor"),
|
|
4693
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4706
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(ArrowRightIcon3, { fontSize: size }),
|
|
4694
4707
|
showTooltip: true
|
|
4695
4708
|
},
|
|
4696
4709
|
{
|
|
4697
4710
|
value: "wrap",
|
|
4698
4711
|
label: __36("Wrap", "elementor"),
|
|
4699
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4712
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(ArrowBackIcon, { fontSize: size }),
|
|
4700
4713
|
showTooltip: true
|
|
4701
4714
|
},
|
|
4702
4715
|
{
|
|
4703
4716
|
value: "wrap-reverse",
|
|
4704
4717
|
label: __36("Reversed wrap", "elementor"),
|
|
4705
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4718
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
4706
4719
|
showTooltip: true
|
|
4707
4720
|
}
|
|
4708
4721
|
];
|
|
4709
4722
|
var WrapField = () => {
|
|
4710
|
-
return /* @__PURE__ */
|
|
4723
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React60.createElement(UiProviders, null, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React60.createElement(ToggleControl10, { options: options6 }))));
|
|
4711
4724
|
};
|
|
4712
4725
|
|
|
4713
4726
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -4734,17 +4747,17 @@ var LayoutSection = () => {
|
|
|
4734
4747
|
}
|
|
4735
4748
|
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4736
4749
|
};
|
|
4737
|
-
return /* @__PURE__ */
|
|
4750
|
+
return /* @__PURE__ */ React61.createElement(SectionContent, null, /* @__PURE__ */ React61.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React61.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React61.createElement(FlexChildFields, { parentStyleDirection: getParentStyleDirection() }), isGridExperimentActive && isDisplayGrid && /* @__PURE__ */ React61.createElement(GridFields, null), isGridExperimentActive && "grid" === parentStyle?.display && /* @__PURE__ */ React61.createElement(GridChildFields, { parentStyleDirection: getParentStyleDirection() }));
|
|
4738
4751
|
};
|
|
4739
4752
|
var FlexFields = () => {
|
|
4740
4753
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4741
4754
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4742
4755
|
});
|
|
4743
|
-
return /* @__PURE__ */
|
|
4756
|
+
return /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(FlexDirectionField, null), /* @__PURE__ */ React61.createElement(JustifyContentField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React61.createElement(AlignContentField, null));
|
|
4744
4757
|
};
|
|
4745
|
-
var GridFields = () => /* @__PURE__ */
|
|
4746
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4747
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4758
|
+
var GridFields = () => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(GridOutlineField, null), /* @__PURE__ */ React61.createElement(GridSizeFields, null), /* @__PURE__ */ React61.createElement(GridAutoFlowField, null), /* @__PURE__ */ React61.createElement(StyleTabCollapsibleContent, { fields: ["grid-auto-rows", "grid-auto-columns"] }, /* @__PURE__ */ React61.createElement(GridAutoTrackFields, null)), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null));
|
|
4759
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ControlFormLabel2, null, __37("Flex child", "elementor")), /* @__PURE__ */ React61.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null), /* @__PURE__ */ React61.createElement(FlexSizeField, null));
|
|
4760
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ControlFormLabel2, null, __37("Grid child", "elementor")), /* @__PURE__ */ React61.createElement(GridSpanFields, null), /* @__PURE__ */ React61.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null));
|
|
4748
4761
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4749
4762
|
const value = display?.value ?? local?.value;
|
|
4750
4763
|
if (!value) {
|
|
@@ -4754,14 +4767,14 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4754
4767
|
};
|
|
4755
4768
|
|
|
4756
4769
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4757
|
-
import * as
|
|
4770
|
+
import * as React66 from "react";
|
|
4758
4771
|
import { useEffect as useEffect7, useRef as useRef12 } from "react";
|
|
4759
4772
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
4760
4773
|
import { styled as styled6 } from "@elementor/ui";
|
|
4761
4774
|
import { __ as __42 } from "@wordpress/i18n";
|
|
4762
4775
|
|
|
4763
4776
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4764
|
-
import * as
|
|
4777
|
+
import * as React62 from "react";
|
|
4765
4778
|
import { useRef as useRef10 } from "react";
|
|
4766
4779
|
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
4767
4780
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
@@ -4770,24 +4783,24 @@ import { __ as __38 } from "@wordpress/i18n";
|
|
|
4770
4783
|
var InlineStartIcon2 = withDirection10(SideLeftIcon2);
|
|
4771
4784
|
var InlineEndIcon2 = withDirection10(SideRightIcon2);
|
|
4772
4785
|
var sideIcons = {
|
|
4773
|
-
"inset-block-start": /* @__PURE__ */
|
|
4774
|
-
"inset-block-end": /* @__PURE__ */
|
|
4775
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4776
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4786
|
+
"inset-block-start": /* @__PURE__ */ React62.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
4787
|
+
"inset-block-end": /* @__PURE__ */ React62.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
4788
|
+
"inset-inline-start": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4789
|
+
"inset-inline-end": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4777
4790
|
};
|
|
4778
4791
|
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __38("Right", "elementor") : __38("Left", "elementor");
|
|
4779
4792
|
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __38("Left", "elementor") : __38("Right", "elementor");
|
|
4780
4793
|
var DimensionsField = () => {
|
|
4781
4794
|
const { isSiteRtl } = useDirection();
|
|
4782
4795
|
const rowRefs = [useRef10(null), useRef10(null)];
|
|
4783
|
-
return /* @__PURE__ */
|
|
4796
|
+
return /* @__PURE__ */ React62.createElement(UiProviders, null, /* @__PURE__ */ React62.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-start", label: __38("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React62.createElement(
|
|
4784
4797
|
DimensionField,
|
|
4785
4798
|
{
|
|
4786
4799
|
side: "inset-inline-end",
|
|
4787
4800
|
label: getInlineEndLabel(isSiteRtl),
|
|
4788
4801
|
rowRef: rowRefs[0]
|
|
4789
4802
|
}
|
|
4790
|
-
)), /* @__PURE__ */
|
|
4803
|
+
)), /* @__PURE__ */ React62.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-end", label: __38("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React62.createElement(
|
|
4791
4804
|
DimensionField,
|
|
4792
4805
|
{
|
|
4793
4806
|
side: "inset-inline-start",
|
|
@@ -4800,7 +4813,7 @@ var DimensionField = ({
|
|
|
4800
4813
|
side,
|
|
4801
4814
|
label,
|
|
4802
4815
|
rowRef
|
|
4803
|
-
}) => /* @__PURE__ */
|
|
4816
|
+
}) => /* @__PURE__ */ React62.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React62.createElement(Grid6, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React62.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, label)), /* @__PURE__ */ React62.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(
|
|
4804
4817
|
SizeControl5,
|
|
4805
4818
|
{
|
|
4806
4819
|
startIcon: sideIcons[side],
|
|
@@ -4811,7 +4824,7 @@ var DimensionField = ({
|
|
|
4811
4824
|
))));
|
|
4812
4825
|
|
|
4813
4826
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4814
|
-
import * as
|
|
4827
|
+
import * as React63 from "react";
|
|
4815
4828
|
import { useRef as useRef11 } from "react";
|
|
4816
4829
|
import { SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4817
4830
|
import { __ as __39 } from "@wordpress/i18n";
|
|
@@ -4819,11 +4832,11 @@ var OFFSET_LABEL = __39("Anchor offset", "elementor");
|
|
|
4819
4832
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4820
4833
|
var OffsetField = () => {
|
|
4821
4834
|
const rowRef = useRef11(null);
|
|
4822
|
-
return /* @__PURE__ */
|
|
4835
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React63.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React63.createElement(SizeControl6, { units: UNITS2, anchorRef: rowRef })));
|
|
4823
4836
|
};
|
|
4824
4837
|
|
|
4825
4838
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4826
|
-
import * as
|
|
4839
|
+
import * as React64 from "react";
|
|
4827
4840
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
4828
4841
|
import { __ as __40 } from "@wordpress/i18n";
|
|
4829
4842
|
var POSITION_LABEL = __40("Position", "elementor");
|
|
@@ -4835,23 +4848,23 @@ var positionOptions = [
|
|
|
4835
4848
|
{ label: __40("Sticky", "elementor"), value: "sticky" }
|
|
4836
4849
|
];
|
|
4837
4850
|
var PositionField = () => {
|
|
4838
|
-
return /* @__PURE__ */
|
|
4851
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(SelectControl3, { options: positionOptions })));
|
|
4839
4852
|
};
|
|
4840
4853
|
|
|
4841
4854
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4842
|
-
import * as
|
|
4855
|
+
import * as React65 from "react";
|
|
4843
4856
|
import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
|
|
4844
4857
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
4845
4858
|
import { Alert as Alert3, AlertTitle as AlertTitle2, Box as Box5, Infotip } from "@elementor/ui";
|
|
4846
4859
|
import { __ as __41 } from "@wordpress/i18n";
|
|
4847
4860
|
var Z_INDEX_LABEL = __41("Z-index", "elementor");
|
|
4848
4861
|
var ZIndexField = ({ disabled }) => {
|
|
4849
|
-
const StyleField = /* @__PURE__ */
|
|
4850
|
-
const content = /* @__PURE__ */
|
|
4862
|
+
const StyleField = /* @__PURE__ */ React65.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(NumberControl4, { disabled })));
|
|
4863
|
+
const content = /* @__PURE__ */ React65.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(AlertTitle2, null, __41("Z-index", "elementor")), /* @__PURE__ */ React65.createElement(Box5, { component: "span" }, __41(
|
|
4851
4864
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4852
4865
|
"elementor"
|
|
4853
4866
|
)));
|
|
4854
|
-
return disabled ? /* @__PURE__ */
|
|
4867
|
+
return disabled ? /* @__PURE__ */ React65.createElement(
|
|
4855
4868
|
Infotip,
|
|
4856
4869
|
{
|
|
4857
4870
|
placement: "right",
|
|
@@ -4859,8 +4872,8 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4859
4872
|
color: "secondary",
|
|
4860
4873
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
4861
4874
|
},
|
|
4862
|
-
/* @__PURE__ */
|
|
4863
|
-
) : /* @__PURE__ */
|
|
4875
|
+
/* @__PURE__ */ React65.createElement(Box5, null, StyleField)
|
|
4876
|
+
) : /* @__PURE__ */ React65.createElement(React65.Fragment, null, StyleField);
|
|
4864
4877
|
};
|
|
4865
4878
|
|
|
4866
4879
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -4892,7 +4905,7 @@ var PositionSection = () => {
|
|
|
4892
4905
|
}
|
|
4893
4906
|
positionPrevRef.current = position;
|
|
4894
4907
|
}, [position?.value]);
|
|
4895
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ React66.createElement(StyledSectionContent, null, /* @__PURE__ */ React66.createElement(PositionField, null), /* @__PURE__ */ React66.createElement(DimensionsField, null), /* @__PURE__ */ React66.createElement(ZIndexField, { disabled: !position || position?.value === POSITION_STATIC }), /* @__PURE__ */ React66.createElement(PanelDivider, null), /* @__PURE__ */ React66.createElement(OffsetField, null));
|
|
4896
4909
|
};
|
|
4897
4910
|
var usePersistDimensions = () => {
|
|
4898
4911
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4942,14 +4955,14 @@ var StyledSectionContent = styled6(SectionContent, {
|
|
|
4942
4955
|
}));
|
|
4943
4956
|
|
|
4944
4957
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4945
|
-
import * as
|
|
4958
|
+
import * as React69 from "react";
|
|
4946
4959
|
import { useRef as useRef13 } from "react";
|
|
4947
4960
|
import { AspectRatioControl, PositionControl, SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4948
4961
|
import { Grid as Grid7, Stack as Stack11 } from "@elementor/ui";
|
|
4949
4962
|
import { __ as __45 } from "@wordpress/i18n";
|
|
4950
4963
|
|
|
4951
4964
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4952
|
-
import * as
|
|
4965
|
+
import * as React67 from "react";
|
|
4953
4966
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4954
4967
|
import { __ as __43 } from "@wordpress/i18n";
|
|
4955
4968
|
var OBJECT_FIT_LABEL = __43("Object fit", "elementor");
|
|
@@ -4961,11 +4974,11 @@ var positionOptions2 = [
|
|
|
4961
4974
|
{ label: __43("Scale down", "elementor"), value: "scale-down" }
|
|
4962
4975
|
];
|
|
4963
4976
|
var ObjectFitField = () => {
|
|
4964
|
-
return /* @__PURE__ */
|
|
4977
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(SelectControl4, { options: positionOptions2 })));
|
|
4965
4978
|
};
|
|
4966
4979
|
|
|
4967
4980
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4968
|
-
import * as
|
|
4981
|
+
import * as React68 from "react";
|
|
4969
4982
|
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
4970
4983
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
4971
4984
|
import { __ as __44 } from "@wordpress/i18n";
|
|
@@ -4974,24 +4987,24 @@ var options7 = [
|
|
|
4974
4987
|
{
|
|
4975
4988
|
value: "visible",
|
|
4976
4989
|
label: __44("Visible", "elementor"),
|
|
4977
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4990
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(EyeIcon, { fontSize: size }),
|
|
4978
4991
|
showTooltip: true
|
|
4979
4992
|
},
|
|
4980
4993
|
{
|
|
4981
4994
|
value: "hidden",
|
|
4982
4995
|
label: __44("Hidden", "elementor"),
|
|
4983
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4996
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(EyeOffIcon, { fontSize: size }),
|
|
4984
4997
|
showTooltip: true
|
|
4985
4998
|
},
|
|
4986
4999
|
{
|
|
4987
5000
|
value: "auto",
|
|
4988
5001
|
label: __44("Auto", "elementor"),
|
|
4989
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5002
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(LetterAIcon, { fontSize: size }),
|
|
4990
5003
|
showTooltip: true
|
|
4991
5004
|
}
|
|
4992
5005
|
];
|
|
4993
5006
|
var OverflowField = () => {
|
|
4994
|
-
return /* @__PURE__ */
|
|
5007
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React68.createElement(ToggleControl11, { options: options7 })));
|
|
4995
5008
|
};
|
|
4996
5009
|
|
|
4997
5010
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -5030,55 +5043,55 @@ var CssSizeProps = [
|
|
|
5030
5043
|
var ASPECT_RATIO_LABEL = __45("Aspect Ratio", "elementor");
|
|
5031
5044
|
var SizeSection = () => {
|
|
5032
5045
|
const gridRowRefs = [useRef13(null), useRef13(null), useRef13(null)];
|
|
5033
|
-
return /* @__PURE__ */
|
|
5046
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React69.createElement(Grid7, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React69.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(Stack11, null, /* @__PURE__ */ React69.createElement(OverflowField, null)), /* @__PURE__ */ React69.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React69.createElement(Stack11, { gap: 2, pt: 2 }, /* @__PURE__ */ React69.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React69.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(ObjectFitField, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "object-position", propDisplayName: __45("Object position", "elementor") }, /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(PositionControl, null))))));
|
|
5034
5047
|
};
|
|
5035
5048
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
5036
|
-
return /* @__PURE__ */
|
|
5049
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React69.createElement(Grid7, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(ControlLabel, null, label)), /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(SizeControl7, { extendedOptions, anchorRef: rowRef }))));
|
|
5037
5050
|
};
|
|
5038
5051
|
|
|
5039
5052
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
5040
|
-
import * as
|
|
5053
|
+
import * as React70 from "react";
|
|
5041
5054
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
5042
5055
|
import { __ as __46 } from "@wordpress/i18n";
|
|
5043
5056
|
var MARGIN_LABEL = __46("Margin", "elementor");
|
|
5044
5057
|
var PADDING_LABEL = __46("Padding", "elementor");
|
|
5045
5058
|
var SpacingSection = () => {
|
|
5046
5059
|
const { isSiteRtl } = useDirection();
|
|
5047
|
-
return /* @__PURE__ */
|
|
5060
|
+
return /* @__PURE__ */ React70.createElement(SectionContent, null, /* @__PURE__ */ React70.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React70.createElement(
|
|
5048
5061
|
LinkedDimensionsControl,
|
|
5049
5062
|
{
|
|
5050
5063
|
label: MARGIN_LABEL,
|
|
5051
5064
|
isSiteRtl,
|
|
5052
5065
|
min: -Number.MAX_SAFE_INTEGER
|
|
5053
5066
|
}
|
|
5054
|
-
)), /* @__PURE__ */
|
|
5067
|
+
)), /* @__PURE__ */ React70.createElement(PanelDivider, null), /* @__PURE__ */ React70.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React70.createElement(LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
5055
5068
|
};
|
|
5056
5069
|
|
|
5057
5070
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5058
|
-
import * as
|
|
5071
|
+
import * as React87 from "react";
|
|
5059
5072
|
|
|
5060
5073
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
5061
|
-
import * as
|
|
5074
|
+
import * as React71 from "react";
|
|
5062
5075
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
5063
5076
|
import { __ as __47 } from "@wordpress/i18n";
|
|
5064
5077
|
var COLUMN_COUNT_LABEL = __47("Columns", "elementor");
|
|
5065
5078
|
var ColumnCountField = () => {
|
|
5066
|
-
return /* @__PURE__ */
|
|
5079
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(NumberControl5, { shouldForceInt: true, min: 0, step: 1 })));
|
|
5067
5080
|
};
|
|
5068
5081
|
|
|
5069
5082
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
5070
|
-
import * as
|
|
5083
|
+
import * as React72 from "react";
|
|
5071
5084
|
import { useRef as useRef14 } from "react";
|
|
5072
5085
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
5073
5086
|
import { __ as __48 } from "@wordpress/i18n";
|
|
5074
5087
|
var COLUMN_GAP_LABEL = __48("Column gap", "elementor");
|
|
5075
5088
|
var ColumnGapField = () => {
|
|
5076
5089
|
const rowRef = useRef14(null);
|
|
5077
|
-
return /* @__PURE__ */
|
|
5090
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React72.createElement(SizeControl8, { anchorRef: rowRef })));
|
|
5078
5091
|
};
|
|
5079
5092
|
|
|
5080
5093
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
5081
|
-
import * as
|
|
5094
|
+
import * as React73 from "react";
|
|
5082
5095
|
import { FontFamilyControl, useFontFamilies } from "@elementor/editor-controls";
|
|
5083
5096
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
5084
5097
|
import { __ as __49 } from "@wordpress/i18n";
|
|
@@ -5089,7 +5102,7 @@ var FontFamilyField = () => {
|
|
|
5089
5102
|
if (fontFamilies.length === 0) {
|
|
5090
5103
|
return null;
|
|
5091
5104
|
}
|
|
5092
|
-
return /* @__PURE__ */
|
|
5105
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React73.createElement(
|
|
5093
5106
|
FontFamilyControl,
|
|
5094
5107
|
{
|
|
5095
5108
|
fontFamilies,
|
|
@@ -5100,18 +5113,18 @@ var FontFamilyField = () => {
|
|
|
5100
5113
|
};
|
|
5101
5114
|
|
|
5102
5115
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
5103
|
-
import * as
|
|
5116
|
+
import * as React74 from "react";
|
|
5104
5117
|
import { useRef as useRef15 } from "react";
|
|
5105
5118
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
5106
5119
|
import { __ as __50 } from "@wordpress/i18n";
|
|
5107
5120
|
var FONT_SIZE_LABEL = __50("Font size", "elementor");
|
|
5108
5121
|
var FontSizeField = () => {
|
|
5109
5122
|
const rowRef = useRef15(null);
|
|
5110
|
-
return /* @__PURE__ */
|
|
5123
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React74.createElement(SizeControl9, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
5111
5124
|
};
|
|
5112
5125
|
|
|
5113
5126
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
5114
|
-
import * as
|
|
5127
|
+
import * as React75 from "react";
|
|
5115
5128
|
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
5116
5129
|
import { ItalicIcon, MinusIcon } from "@elementor/icons";
|
|
5117
5130
|
import { __ as __51 } from "@wordpress/i18n";
|
|
@@ -5120,22 +5133,22 @@ var options8 = [
|
|
|
5120
5133
|
{
|
|
5121
5134
|
value: "normal",
|
|
5122
5135
|
label: __51("Normal", "elementor"),
|
|
5123
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5136
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(MinusIcon, { fontSize: size }),
|
|
5124
5137
|
showTooltip: true
|
|
5125
5138
|
},
|
|
5126
5139
|
{
|
|
5127
5140
|
value: "italic",
|
|
5128
5141
|
label: __51("Italic", "elementor"),
|
|
5129
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5142
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(ItalicIcon, { fontSize: size }),
|
|
5130
5143
|
showTooltip: true
|
|
5131
5144
|
}
|
|
5132
5145
|
];
|
|
5133
5146
|
var FontStyleField = () => {
|
|
5134
|
-
return /* @__PURE__ */
|
|
5147
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React75.createElement(ToggleControl12, { options: options8 })));
|
|
5135
5148
|
};
|
|
5136
5149
|
|
|
5137
5150
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5138
|
-
import * as
|
|
5151
|
+
import * as React76 from "react";
|
|
5139
5152
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
5140
5153
|
import { __ as __52 } from "@wordpress/i18n";
|
|
5141
5154
|
var FONT_WEIGHT_LABEL = __52("Font weight", "elementor");
|
|
@@ -5151,33 +5164,33 @@ var fontWeightOptions = [
|
|
|
5151
5164
|
{ value: "900", label: __52("900 - Black", "elementor") }
|
|
5152
5165
|
];
|
|
5153
5166
|
var FontWeightField = () => {
|
|
5154
|
-
return /* @__PURE__ */
|
|
5167
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(SelectControl5, { options: fontWeightOptions })));
|
|
5155
5168
|
};
|
|
5156
5169
|
|
|
5157
5170
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
5158
|
-
import * as
|
|
5171
|
+
import * as React77 from "react";
|
|
5159
5172
|
import { useRef as useRef16 } from "react";
|
|
5160
5173
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
5161
5174
|
import { __ as __53 } from "@wordpress/i18n";
|
|
5162
5175
|
var LETTER_SPACING_LABEL = __53("Letter spacing", "elementor");
|
|
5163
5176
|
var LetterSpacingField = () => {
|
|
5164
5177
|
const rowRef = useRef16(null);
|
|
5165
|
-
return /* @__PURE__ */
|
|
5178
|
+
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React77.createElement(SizeControl10, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5166
5179
|
};
|
|
5167
5180
|
|
|
5168
5181
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
5169
|
-
import * as
|
|
5182
|
+
import * as React78 from "react";
|
|
5170
5183
|
import { useRef as useRef17 } from "react";
|
|
5171
5184
|
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
5172
5185
|
import { __ as __54 } from "@wordpress/i18n";
|
|
5173
5186
|
var LINE_HEIGHT_LABEL = __54("Line height", "elementor");
|
|
5174
5187
|
var LineHeightField = () => {
|
|
5175
5188
|
const rowRef = useRef17(null);
|
|
5176
|
-
return /* @__PURE__ */
|
|
5189
|
+
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(SizeControl11, { anchorRef: rowRef })));
|
|
5177
5190
|
};
|
|
5178
5191
|
|
|
5179
5192
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
5180
|
-
import * as
|
|
5193
|
+
import * as React79 from "react";
|
|
5181
5194
|
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
5182
5195
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
5183
5196
|
import { withDirection as withDirection11 } from "@elementor/ui";
|
|
@@ -5189,43 +5202,43 @@ var options9 = [
|
|
|
5189
5202
|
{
|
|
5190
5203
|
value: "start",
|
|
5191
5204
|
label: __55("Start", "elementor"),
|
|
5192
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5205
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignStartIcon, { fontSize: size }),
|
|
5193
5206
|
showTooltip: true
|
|
5194
5207
|
},
|
|
5195
5208
|
{
|
|
5196
5209
|
value: "center",
|
|
5197
5210
|
label: __55("Center", "elementor"),
|
|
5198
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5211
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignCenterIcon, { fontSize: size }),
|
|
5199
5212
|
showTooltip: true
|
|
5200
5213
|
},
|
|
5201
5214
|
{
|
|
5202
5215
|
value: "end",
|
|
5203
5216
|
label: __55("End", "elementor"),
|
|
5204
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5217
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignEndIcon, { fontSize: size }),
|
|
5205
5218
|
showTooltip: true
|
|
5206
5219
|
},
|
|
5207
5220
|
{
|
|
5208
5221
|
value: "justify",
|
|
5209
5222
|
label: __55("Justify", "elementor"),
|
|
5210
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5223
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
5211
5224
|
showTooltip: true
|
|
5212
5225
|
}
|
|
5213
5226
|
];
|
|
5214
5227
|
var TextAlignmentField = () => {
|
|
5215
|
-
return /* @__PURE__ */
|
|
5228
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React79.createElement(UiProviders, null, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React79.createElement(ToggleControl13, { options: options9 }))));
|
|
5216
5229
|
};
|
|
5217
5230
|
|
|
5218
5231
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5219
|
-
import * as
|
|
5232
|
+
import * as React80 from "react";
|
|
5220
5233
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
5221
5234
|
import { __ as __56 } from "@wordpress/i18n";
|
|
5222
5235
|
var TEXT_COLOR_LABEL = __56("Text color", "elementor");
|
|
5223
5236
|
var TextColorField = () => {
|
|
5224
|
-
return /* @__PURE__ */
|
|
5237
|
+
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(ColorControl2, { id: "text-color-control" })));
|
|
5225
5238
|
};
|
|
5226
5239
|
|
|
5227
5240
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
5228
|
-
import * as
|
|
5241
|
+
import * as React81 from "react";
|
|
5229
5242
|
import { ToggleControl as ToggleControl14 } from "@elementor/editor-controls";
|
|
5230
5243
|
import { MinusIcon as MinusIcon2, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
5231
5244
|
import { __ as __57 } from "@wordpress/i18n";
|
|
@@ -5234,33 +5247,33 @@ var options10 = [
|
|
|
5234
5247
|
{
|
|
5235
5248
|
value: "none",
|
|
5236
5249
|
label: __57("None", "elementor"),
|
|
5237
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5250
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(MinusIcon2, { fontSize: size }),
|
|
5238
5251
|
showTooltip: true,
|
|
5239
5252
|
exclusive: true
|
|
5240
5253
|
},
|
|
5241
5254
|
{
|
|
5242
5255
|
value: "underline",
|
|
5243
5256
|
label: __57("Underline", "elementor"),
|
|
5244
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5257
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(UnderlineIcon, { fontSize: size }),
|
|
5245
5258
|
showTooltip: true
|
|
5246
5259
|
},
|
|
5247
5260
|
{
|
|
5248
5261
|
value: "line-through",
|
|
5249
5262
|
label: __57("Line-through", "elementor"),
|
|
5250
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5263
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(StrikethroughIcon, { fontSize: size }),
|
|
5251
5264
|
showTooltip: true
|
|
5252
5265
|
},
|
|
5253
5266
|
{
|
|
5254
5267
|
value: "overline",
|
|
5255
5268
|
label: __57("Overline", "elementor"),
|
|
5256
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5269
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(OverlineIcon, { fontSize: size }),
|
|
5257
5270
|
showTooltip: true
|
|
5258
5271
|
}
|
|
5259
5272
|
];
|
|
5260
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
5273
|
+
var TextDecorationField = () => /* @__PURE__ */ React81.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React81.createElement(ToggleControl14, { options: options10, exclusive: false })));
|
|
5261
5274
|
|
|
5262
5275
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
5263
|
-
import * as
|
|
5276
|
+
import * as React82 from "react";
|
|
5264
5277
|
import { ToggleControl as ToggleControl15 } from "@elementor/editor-controls";
|
|
5265
5278
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
5266
5279
|
import { __ as __58 } from "@wordpress/i18n";
|
|
@@ -5269,27 +5282,27 @@ var options11 = [
|
|
|
5269
5282
|
{
|
|
5270
5283
|
value: "ltr",
|
|
5271
5284
|
label: __58("Left to right", "elementor"),
|
|
5272
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5285
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
5273
5286
|
showTooltip: true
|
|
5274
5287
|
},
|
|
5275
5288
|
{
|
|
5276
5289
|
value: "rtl",
|
|
5277
5290
|
label: __58("Right to left", "elementor"),
|
|
5278
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5291
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
5279
5292
|
showTooltip: true
|
|
5280
5293
|
}
|
|
5281
5294
|
];
|
|
5282
5295
|
var TextDirectionField = () => {
|
|
5283
|
-
return /* @__PURE__ */
|
|
5296
|
+
return /* @__PURE__ */ React82.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React82.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React82.createElement(ToggleControl15, { options: options11 })));
|
|
5284
5297
|
};
|
|
5285
5298
|
|
|
5286
5299
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5287
|
-
import * as
|
|
5300
|
+
import * as React84 from "react";
|
|
5288
5301
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
5289
5302
|
import { __ as __59 } from "@wordpress/i18n";
|
|
5290
5303
|
|
|
5291
5304
|
// src/components/add-or-remove-content.tsx
|
|
5292
|
-
import * as
|
|
5305
|
+
import * as React83 from "react";
|
|
5293
5306
|
import { MinusIcon as MinusIcon3, PlusIcon } from "@elementor/icons";
|
|
5294
5307
|
import { Collapse as Collapse2, IconButton, Stack as Stack12 } from "@elementor/ui";
|
|
5295
5308
|
var SIZE = "tiny";
|
|
@@ -5301,7 +5314,7 @@ var AddOrRemoveContent = ({
|
|
|
5301
5314
|
disabled,
|
|
5302
5315
|
renderLabel
|
|
5303
5316
|
}) => {
|
|
5304
|
-
return /* @__PURE__ */
|
|
5317
|
+
return /* @__PURE__ */ React83.createElement(SectionContent, null, /* @__PURE__ */ React83.createElement(
|
|
5305
5318
|
Stack12,
|
|
5306
5319
|
{
|
|
5307
5320
|
direction: "row",
|
|
@@ -5312,8 +5325,8 @@ var AddOrRemoveContent = ({
|
|
|
5312
5325
|
}
|
|
5313
5326
|
},
|
|
5314
5327
|
renderLabel(),
|
|
5315
|
-
isAdded ? /* @__PURE__ */
|
|
5316
|
-
), /* @__PURE__ */
|
|
5328
|
+
isAdded ? /* @__PURE__ */ React83.createElement(IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React83.createElement(MinusIcon3, { fontSize: SIZE })) : /* @__PURE__ */ React83.createElement(IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React83.createElement(PlusIcon, { fontSize: SIZE }))
|
|
5329
|
+
), /* @__PURE__ */ React83.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React83.createElement(SectionContent, null, children)));
|
|
5317
5330
|
};
|
|
5318
5331
|
|
|
5319
5332
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5345,21 +5358,21 @@ var TextStrokeField = () => {
|
|
|
5345
5358
|
setValue(null);
|
|
5346
5359
|
};
|
|
5347
5360
|
const hasTextStroke = Boolean(value);
|
|
5348
|
-
return /* @__PURE__ */
|
|
5361
|
+
return /* @__PURE__ */ React84.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React84.createElement(
|
|
5349
5362
|
AddOrRemoveContent,
|
|
5350
5363
|
{
|
|
5351
5364
|
isAdded: hasTextStroke,
|
|
5352
5365
|
onAdd: addTextStroke,
|
|
5353
5366
|
onRemove: removeTextStroke,
|
|
5354
5367
|
disabled: !canEdit,
|
|
5355
|
-
renderLabel: () => /* @__PURE__ */
|
|
5368
|
+
renderLabel: () => /* @__PURE__ */ React84.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
5356
5369
|
},
|
|
5357
|
-
/* @__PURE__ */
|
|
5370
|
+
/* @__PURE__ */ React84.createElement(StrokeControl, null)
|
|
5358
5371
|
));
|
|
5359
5372
|
};
|
|
5360
5373
|
|
|
5361
5374
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
5362
|
-
import * as
|
|
5375
|
+
import * as React85 from "react";
|
|
5363
5376
|
import { ToggleControl as ToggleControl16 } from "@elementor/editor-controls";
|
|
5364
5377
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
5365
5378
|
import { __ as __60 } from "@wordpress/i18n";
|
|
@@ -5368,44 +5381,44 @@ var options12 = [
|
|
|
5368
5381
|
{
|
|
5369
5382
|
value: "none",
|
|
5370
5383
|
label: __60("None", "elementor"),
|
|
5371
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5384
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(MinusIcon4, { fontSize: size }),
|
|
5372
5385
|
showTooltip: true
|
|
5373
5386
|
},
|
|
5374
5387
|
{
|
|
5375
5388
|
value: "capitalize",
|
|
5376
5389
|
label: __60("Capitalize", "elementor"),
|
|
5377
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5390
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(LetterCaseIcon, { fontSize: size }),
|
|
5378
5391
|
showTooltip: true
|
|
5379
5392
|
},
|
|
5380
5393
|
{
|
|
5381
5394
|
value: "uppercase",
|
|
5382
5395
|
label: __60("Uppercase", "elementor"),
|
|
5383
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5396
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
5384
5397
|
showTooltip: true
|
|
5385
5398
|
},
|
|
5386
5399
|
{
|
|
5387
5400
|
value: "lowercase",
|
|
5388
5401
|
label: __60("Lowercase", "elementor"),
|
|
5389
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5402
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
5390
5403
|
showTooltip: true
|
|
5391
5404
|
}
|
|
5392
5405
|
];
|
|
5393
|
-
var TransformField = () => /* @__PURE__ */
|
|
5406
|
+
var TransformField = () => /* @__PURE__ */ React85.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React85.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React85.createElement(ToggleControl16, { options: options12 })));
|
|
5394
5407
|
|
|
5395
5408
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
5396
|
-
import * as
|
|
5409
|
+
import * as React86 from "react";
|
|
5397
5410
|
import { useRef as useRef18 } from "react";
|
|
5398
5411
|
import { SizeControl as SizeControl12 } from "@elementor/editor-controls";
|
|
5399
5412
|
import { __ as __61 } from "@wordpress/i18n";
|
|
5400
5413
|
var WORD_SPACING_LABEL = __61("Word spacing", "elementor");
|
|
5401
5414
|
var WordSpacingField = () => {
|
|
5402
5415
|
const rowRef = useRef18(null);
|
|
5403
|
-
return /* @__PURE__ */
|
|
5416
|
+
return /* @__PURE__ */ React86.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React86.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React86.createElement(SizeControl12, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5404
5417
|
};
|
|
5405
5418
|
|
|
5406
5419
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5407
5420
|
var TypographySection = () => {
|
|
5408
|
-
return /* @__PURE__ */
|
|
5421
|
+
return /* @__PURE__ */ React87.createElement(SectionContent, null, /* @__PURE__ */ React87.createElement(FontFamilyField, null), /* @__PURE__ */ React87.createElement(FontWeightField, null), /* @__PURE__ */ React87.createElement(FontSizeField, null), /* @__PURE__ */ React87.createElement(PanelDivider, null), /* @__PURE__ */ React87.createElement(TextAlignmentField, null), /* @__PURE__ */ React87.createElement(TextColorField, null), /* @__PURE__ */ React87.createElement(
|
|
5409
5422
|
StyleTabCollapsibleContent,
|
|
5410
5423
|
{
|
|
5411
5424
|
fields: [
|
|
@@ -5420,18 +5433,18 @@ var TypographySection = () => {
|
|
|
5420
5433
|
"stroke"
|
|
5421
5434
|
]
|
|
5422
5435
|
},
|
|
5423
|
-
/* @__PURE__ */
|
|
5436
|
+
/* @__PURE__ */ React87.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React87.createElement(LineHeightField, null), /* @__PURE__ */ React87.createElement(LetterSpacingField, null), /* @__PURE__ */ React87.createElement(WordSpacingField, null), /* @__PURE__ */ React87.createElement(ColumnCountField, null), /* @__PURE__ */ React87.createElement(ColumnGapField, null), /* @__PURE__ */ React87.createElement(PanelDivider, null), /* @__PURE__ */ React87.createElement(TextDecorationField, null), /* @__PURE__ */ React87.createElement(TransformField, null), /* @__PURE__ */ React87.createElement(TextDirectionField, null), /* @__PURE__ */ React87.createElement(FontStyleField, null), /* @__PURE__ */ React87.createElement(TextStrokeField, null))
|
|
5424
5437
|
));
|
|
5425
5438
|
};
|
|
5426
5439
|
|
|
5427
5440
|
// src/components/style-tab-section.tsx
|
|
5428
|
-
import * as
|
|
5441
|
+
import * as React88 from "react";
|
|
5429
5442
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5430
5443
|
const { component, name, title, action } = section;
|
|
5431
5444
|
const tabDefaults = useDefaultPanelSettings();
|
|
5432
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5445
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React88.createElement(React88.Fragment, null));
|
|
5433
5446
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
5434
|
-
return /* @__PURE__ */
|
|
5447
|
+
return /* @__PURE__ */ React88.createElement(
|
|
5435
5448
|
Section,
|
|
5436
5449
|
{
|
|
5437
5450
|
title,
|
|
@@ -5440,7 +5453,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5440
5453
|
unmountOnExit,
|
|
5441
5454
|
action
|
|
5442
5455
|
},
|
|
5443
|
-
/* @__PURE__ */
|
|
5456
|
+
/* @__PURE__ */ React88.createElement(SectionComponent, null)
|
|
5444
5457
|
);
|
|
5445
5458
|
};
|
|
5446
5459
|
|
|
@@ -5462,7 +5475,7 @@ var StyleTab = () => {
|
|
|
5462
5475
|
if (!currentClassesProp) {
|
|
5463
5476
|
return null;
|
|
5464
5477
|
}
|
|
5465
|
-
return /* @__PURE__ */
|
|
5478
|
+
return /* @__PURE__ */ React89.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React89.createElement(
|
|
5466
5479
|
StyleProvider,
|
|
5467
5480
|
{
|
|
5468
5481
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5473,7 +5486,7 @@ var StyleTab = () => {
|
|
|
5473
5486
|
},
|
|
5474
5487
|
setMetaState: setActiveStyleState
|
|
5475
5488
|
},
|
|
5476
|
-
/* @__PURE__ */
|
|
5489
|
+
/* @__PURE__ */ React89.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React89.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React89.createElement(ClassesHeader, null, /* @__PURE__ */ React89.createElement(CssClassSelector, null), /* @__PURE__ */ React89.createElement(Divider5, null)), /* @__PURE__ */ React89.createElement(SectionsList, null, /* @__PURE__ */ React89.createElement(
|
|
5477
5490
|
StyleTabSection,
|
|
5478
5491
|
{
|
|
5479
5492
|
section: {
|
|
@@ -5497,7 +5510,7 @@ var StyleTab = () => {
|
|
|
5497
5510
|
"grid-auto-columns"
|
|
5498
5511
|
]
|
|
5499
5512
|
}
|
|
5500
|
-
), /* @__PURE__ */
|
|
5513
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5501
5514
|
StyleTabSection,
|
|
5502
5515
|
{
|
|
5503
5516
|
section: {
|
|
@@ -5507,7 +5520,7 @@ var StyleTab = () => {
|
|
|
5507
5520
|
},
|
|
5508
5521
|
fields: ["margin", "padding"]
|
|
5509
5522
|
}
|
|
5510
|
-
), /* @__PURE__ */
|
|
5523
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5511
5524
|
StyleTabSection,
|
|
5512
5525
|
{
|
|
5513
5526
|
section: {
|
|
@@ -5527,7 +5540,7 @@ var StyleTab = () => {
|
|
|
5527
5540
|
"object-fit"
|
|
5528
5541
|
]
|
|
5529
5542
|
}
|
|
5530
|
-
), /* @__PURE__ */
|
|
5543
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5531
5544
|
StyleTabSection,
|
|
5532
5545
|
{
|
|
5533
5546
|
section: {
|
|
@@ -5537,7 +5550,7 @@ var StyleTab = () => {
|
|
|
5537
5550
|
},
|
|
5538
5551
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5539
5552
|
}
|
|
5540
|
-
), /* @__PURE__ */
|
|
5553
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5541
5554
|
StyleTabSection,
|
|
5542
5555
|
{
|
|
5543
5556
|
section: {
|
|
@@ -5562,7 +5575,7 @@ var StyleTab = () => {
|
|
|
5562
5575
|
"stroke"
|
|
5563
5576
|
]
|
|
5564
5577
|
}
|
|
5565
|
-
), /* @__PURE__ */
|
|
5578
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5566
5579
|
StyleTabSection,
|
|
5567
5580
|
{
|
|
5568
5581
|
section: {
|
|
@@ -5572,7 +5585,7 @@ var StyleTab = () => {
|
|
|
5572
5585
|
},
|
|
5573
5586
|
fields: ["background"]
|
|
5574
5587
|
}
|
|
5575
|
-
), /* @__PURE__ */
|
|
5588
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5576
5589
|
StyleTabSection,
|
|
5577
5590
|
{
|
|
5578
5591
|
section: {
|
|
@@ -5582,7 +5595,7 @@ var StyleTab = () => {
|
|
|
5582
5595
|
},
|
|
5583
5596
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5584
5597
|
}
|
|
5585
|
-
), /* @__PURE__ */
|
|
5598
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5586
5599
|
StyleTabSection,
|
|
5587
5600
|
{
|
|
5588
5601
|
section: {
|
|
@@ -5601,12 +5614,12 @@ var StyleTab = () => {
|
|
|
5601
5614
|
"transition"
|
|
5602
5615
|
]
|
|
5603
5616
|
}
|
|
5604
|
-
), /* @__PURE__ */
|
|
5617
|
+
), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(Box6, { sx: { height: "150px" } })))
|
|
5605
5618
|
));
|
|
5606
5619
|
};
|
|
5607
5620
|
function ClassesHeader({ children }) {
|
|
5608
5621
|
const scrollDirection = useScrollDirection();
|
|
5609
|
-
return /* @__PURE__ */
|
|
5622
|
+
return /* @__PURE__ */ React89.createElement(Stack13, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5610
5623
|
}
|
|
5611
5624
|
function useCurrentClassesProp() {
|
|
5612
5625
|
const { elementType } = useElement();
|
|
@@ -5625,7 +5638,7 @@ var EditingPanelTabs = () => {
|
|
|
5625
5638
|
return (
|
|
5626
5639
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5627
5640
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5628
|
-
/* @__PURE__ */
|
|
5641
|
+
/* @__PURE__ */ React90.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React90.createElement(PanelTabContent, null))
|
|
5629
5642
|
);
|
|
5630
5643
|
};
|
|
5631
5644
|
var PanelTabContent = () => {
|
|
@@ -5637,7 +5650,7 @@ var PanelTabContent = () => {
|
|
|
5637
5650
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5638
5651
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5639
5652
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5640
|
-
return /* @__PURE__ */
|
|
5653
|
+
return /* @__PURE__ */ React90.createElement(ScrollProvider, null, /* @__PURE__ */ React90.createElement(Stack14, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React90.createElement(Stack14, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React90.createElement(
|
|
5641
5654
|
Tabs,
|
|
5642
5655
|
{
|
|
5643
5656
|
variant: "fullWidth",
|
|
@@ -5649,10 +5662,10 @@ var PanelTabContent = () => {
|
|
|
5649
5662
|
setCurrentTab(newValue);
|
|
5650
5663
|
}
|
|
5651
5664
|
},
|
|
5652
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5653
|
-
/* @__PURE__ */
|
|
5654
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5655
|
-
), /* @__PURE__ */
|
|
5665
|
+
!isPromotedElement && /* @__PURE__ */ React90.createElement(Tab, { label: __63("General", "elementor"), ...getTabProps("settings") }),
|
|
5666
|
+
/* @__PURE__ */ React90.createElement(Tab, { label: __63("Style", "elementor"), ...getTabProps("style") }),
|
|
5667
|
+
isInteractionsActive && /* @__PURE__ */ React90.createElement(Tab, { label: __63("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5668
|
+
), /* @__PURE__ */ React90.createElement(Divider6, null)), !isPromotedElement && /* @__PURE__ */ React90.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React90.createElement(SettingsTab, null)), /* @__PURE__ */ React90.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React90.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React90.createElement(TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React90.createElement(InteractionsTab, null))));
|
|
5656
5669
|
};
|
|
5657
5670
|
|
|
5658
5671
|
// src/components/editing-panel.tsx
|
|
@@ -5667,11 +5680,11 @@ var EditingPanel = () => {
|
|
|
5667
5680
|
}
|
|
5668
5681
|
const panelTitle = __64("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5669
5682
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5670
|
-
let panelContent = /* @__PURE__ */
|
|
5683
|
+
let panelContent = /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(PanelHeader, null, /* @__PURE__ */ React91.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React91.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React91.createElement(PanelBody, { sx: { height: "auto", flex: 1, minHeight: 0 } }, /* @__PURE__ */ React91.createElement(EditingPanelTabs, null)), /* @__PURE__ */ React91.createElement(EditingPanelStickyPromotion, null));
|
|
5671
5684
|
if (ReplacementComponent) {
|
|
5672
|
-
panelContent = /* @__PURE__ */
|
|
5685
|
+
panelContent = /* @__PURE__ */ React91.createElement(ReplacementComponent, null);
|
|
5673
5686
|
}
|
|
5674
|
-
return /* @__PURE__ */
|
|
5687
|
+
return /* @__PURE__ */ React91.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React91.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React91.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React91.createElement(ThemeProvider3, null, /* @__PURE__ */ React91.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React91.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React91.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React91.createElement(Panel, null, /* @__PURE__ */ React91.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5675
5688
|
};
|
|
5676
5689
|
|
|
5677
5690
|
// src/init.ts
|
|
@@ -5723,21 +5736,21 @@ var EditingPanelHooks = () => {
|
|
|
5723
5736
|
import { AttributesControl, DisplayConditionsControl } from "@elementor/editor-controls";
|
|
5724
5737
|
|
|
5725
5738
|
// src/components/promotions/custom-css.tsx
|
|
5726
|
-
import * as
|
|
5739
|
+
import * as React92 from "react";
|
|
5727
5740
|
import { useRef as useRef19 } from "react";
|
|
5728
5741
|
import { PromotionTrigger } from "@elementor/editor-controls";
|
|
5729
5742
|
import { __ as __65 } from "@wordpress/i18n";
|
|
5730
5743
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5731
5744
|
var CustomCssSection = () => {
|
|
5732
5745
|
const triggerRef = useRef19(null);
|
|
5733
|
-
return /* @__PURE__ */
|
|
5746
|
+
return /* @__PURE__ */ React92.createElement(
|
|
5734
5747
|
StyleTabSection,
|
|
5735
5748
|
{
|
|
5736
5749
|
section: {
|
|
5737
5750
|
name: "Custom CSS",
|
|
5738
5751
|
title: __65("Custom CSS", "elementor"),
|
|
5739
5752
|
action: {
|
|
5740
|
-
component: /* @__PURE__ */
|
|
5753
|
+
component: /* @__PURE__ */ React92.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5741
5754
|
onClick: () => triggerRef.current?.toggle()
|
|
5742
5755
|
}
|
|
5743
5756
|
}
|
|
@@ -5759,7 +5772,7 @@ var init = () => {
|
|
|
5759
5772
|
};
|
|
5760
5773
|
|
|
5761
5774
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5762
|
-
import * as
|
|
5775
|
+
import * as React93 from "react";
|
|
5763
5776
|
import {
|
|
5764
5777
|
ControlFormLabel as ControlFormLabel3,
|
|
5765
5778
|
Repeater,
|
|
@@ -5996,7 +6009,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5996
6009
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5997
6010
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5998
6011
|
var TabsControl = ({ label }) => {
|
|
5999
|
-
return /* @__PURE__ */
|
|
6012
|
+
return /* @__PURE__ */ React93.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __67("Tabs", "elementor") }, /* @__PURE__ */ React93.createElement(TabsControlContent, { label }));
|
|
6000
6013
|
};
|
|
6001
6014
|
var TabsControlContent = ({ label }) => {
|
|
6002
6015
|
const { element } = useElement();
|
|
@@ -6040,7 +6053,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6040
6053
|
});
|
|
6041
6054
|
}
|
|
6042
6055
|
};
|
|
6043
|
-
return /* @__PURE__ */
|
|
6056
|
+
return /* @__PURE__ */ React93.createElement(
|
|
6044
6057
|
Repeater,
|
|
6045
6058
|
{
|
|
6046
6059
|
showToggle: false,
|
|
@@ -6060,7 +6073,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6060
6073
|
};
|
|
6061
6074
|
var ItemLabel = ({ value, index }) => {
|
|
6062
6075
|
const elementTitle = value?.title;
|
|
6063
|
-
return /* @__PURE__ */
|
|
6076
|
+
return /* @__PURE__ */ React93.createElement(Stack15, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React93.createElement("span", null, elementTitle), /* @__PURE__ */ React93.createElement(ItemDefaultTab, { index }));
|
|
6064
6077
|
};
|
|
6065
6078
|
var ItemDefaultTab = ({ index }) => {
|
|
6066
6079
|
const { value: defaultItem } = useBoundProp6(numberPropTypeUtil4);
|
|
@@ -6068,18 +6081,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
6068
6081
|
if (!isDefault) {
|
|
6069
6082
|
return null;
|
|
6070
6083
|
}
|
|
6071
|
-
return /* @__PURE__ */
|
|
6084
|
+
return /* @__PURE__ */ React93.createElement(Chip4, { size: "tiny", shape: "rounded", label: __67("Default", "elementor") });
|
|
6072
6085
|
};
|
|
6073
6086
|
var ItemContent = ({ value, index }) => {
|
|
6074
6087
|
if (!value.id) {
|
|
6075
6088
|
return null;
|
|
6076
6089
|
}
|
|
6077
|
-
return /* @__PURE__ */
|
|
6090
|
+
return /* @__PURE__ */ React93.createElement(Stack15, { p: 2, gap: 1.5 }, /* @__PURE__ */ React93.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React93.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __67("Tabs", "elementor") }, /* @__PURE__ */ React93.createElement(DefaultTabControl, { tabIndex: index })));
|
|
6078
6091
|
};
|
|
6079
6092
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
6080
6093
|
const { value, setValue } = useBoundProp6(numberPropTypeUtil4);
|
|
6081
6094
|
const isDefault = value === tabIndex;
|
|
6082
|
-
return /* @__PURE__ */
|
|
6095
|
+
return /* @__PURE__ */ React93.createElement(Stack15, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React93.createElement(ControlFormLabel3, null, __67("Set as default tab", "elementor")), /* @__PURE__ */ React93.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React93.createElement(
|
|
6083
6096
|
Switch,
|
|
6084
6097
|
{
|
|
6085
6098
|
size: "small",
|
|
@@ -6097,7 +6110,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6097
6110
|
var TabLabelControl = ({ elementId }) => {
|
|
6098
6111
|
const editorSettings = useElementEditorSettings(elementId);
|
|
6099
6112
|
const label = editorSettings?.title ?? "";
|
|
6100
|
-
return /* @__PURE__ */
|
|
6113
|
+
return /* @__PURE__ */ React93.createElement(Stack15, { gap: 1 }, /* @__PURE__ */ React93.createElement(ControlFormLabel3, null, __67("Tab name", "elementor")), /* @__PURE__ */ React93.createElement(
|
|
6101
6114
|
TextField2,
|
|
6102
6115
|
{
|
|
6103
6116
|
size: "tiny",
|
|
@@ -6118,22 +6131,22 @@ var ConditionalTooltip = ({
|
|
|
6118
6131
|
if (!showTooltip) {
|
|
6119
6132
|
return children;
|
|
6120
6133
|
}
|
|
6121
|
-
return /* @__PURE__ */
|
|
6134
|
+
return /* @__PURE__ */ React93.createElement(
|
|
6122
6135
|
Infotip2,
|
|
6123
6136
|
{
|
|
6124
6137
|
arrow: false,
|
|
6125
|
-
content: /* @__PURE__ */
|
|
6138
|
+
content: /* @__PURE__ */ React93.createElement(
|
|
6126
6139
|
Alert4,
|
|
6127
6140
|
{
|
|
6128
6141
|
color: "secondary",
|
|
6129
|
-
icon: /* @__PURE__ */
|
|
6142
|
+
icon: /* @__PURE__ */ React93.createElement(InfoCircleFilledIcon2, { fontSize: "tiny" }),
|
|
6130
6143
|
size: "small",
|
|
6131
6144
|
sx: { width: 288 }
|
|
6132
6145
|
},
|
|
6133
|
-
/* @__PURE__ */
|
|
6146
|
+
/* @__PURE__ */ React93.createElement(Typography5, { variant: "body2" }, __67("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6134
6147
|
)
|
|
6135
6148
|
},
|
|
6136
|
-
/* @__PURE__ */
|
|
6149
|
+
/* @__PURE__ */ React93.createElement("span", null, children)
|
|
6137
6150
|
);
|
|
6138
6151
|
};
|
|
6139
6152
|
|
|
@@ -6159,7 +6172,7 @@ import {
|
|
|
6159
6172
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
6160
6173
|
|
|
6161
6174
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6162
|
-
import * as
|
|
6175
|
+
import * as React94 from "react";
|
|
6163
6176
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
|
|
6164
6177
|
import {
|
|
6165
6178
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -6302,24 +6315,24 @@ var useDynamicTag = (tagName) => {
|
|
|
6302
6315
|
};
|
|
6303
6316
|
|
|
6304
6317
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6305
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6318
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React94.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
6306
6319
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6307
6320
|
const context = useBoundProp8(backgroundImageOverlayPropTypeUtil);
|
|
6308
|
-
return /* @__PURE__ */
|
|
6321
|
+
return /* @__PURE__ */ React94.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React94.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React94.createElement(Wrapper2, { rawValue: value.value })));
|
|
6309
6322
|
};
|
|
6310
6323
|
var Wrapper2 = ({ rawValue }) => {
|
|
6311
6324
|
const { propType } = useBoundProp8();
|
|
6312
6325
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6313
|
-
return /* @__PURE__ */
|
|
6326
|
+
return /* @__PURE__ */ React94.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React94.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React94.createElement(Content, { rawValue: rawValue.image })));
|
|
6314
6327
|
};
|
|
6315
6328
|
var Content = ({ rawValue }) => {
|
|
6316
6329
|
const src = rawValue.value.src;
|
|
6317
6330
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6318
|
-
return /* @__PURE__ */
|
|
6331
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, dynamicTag?.label);
|
|
6319
6332
|
};
|
|
6320
6333
|
|
|
6321
6334
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6322
|
-
import * as
|
|
6335
|
+
import * as React98 from "react";
|
|
6323
6336
|
import {
|
|
6324
6337
|
ControlFormLabel as ControlFormLabel4,
|
|
6325
6338
|
PropKeyProvider as PropKeyProvider6,
|
|
@@ -6355,11 +6368,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6355
6368
|
};
|
|
6356
6369
|
|
|
6357
6370
|
// src/dynamics/dynamic-control.tsx
|
|
6358
|
-
import * as
|
|
6371
|
+
import * as React96 from "react";
|
|
6359
6372
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
6360
6373
|
|
|
6361
6374
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6362
|
-
import * as
|
|
6375
|
+
import * as React95 from "react";
|
|
6363
6376
|
import { useMemo as useMemo14 } from "react";
|
|
6364
6377
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
6365
6378
|
var DynamicConditionalControl = ({
|
|
@@ -6401,10 +6414,10 @@ var DynamicConditionalControl = ({
|
|
|
6401
6414
|
return { ...defaults, ...convertedSettings };
|
|
6402
6415
|
}, [defaults, convertedSettings]);
|
|
6403
6416
|
if (!propType?.dependencies?.terms.length) {
|
|
6404
|
-
return /* @__PURE__ */
|
|
6417
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, children);
|
|
6405
6418
|
}
|
|
6406
6419
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
6407
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6420
|
+
return isHidden ? null : /* @__PURE__ */ React95.createElement(React95.Fragment, null, children);
|
|
6408
6421
|
};
|
|
6409
6422
|
|
|
6410
6423
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6429,7 +6442,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6429
6442
|
});
|
|
6430
6443
|
};
|
|
6431
6444
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6432
|
-
return /* @__PURE__ */
|
|
6445
|
+
return /* @__PURE__ */ React96.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React96.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React96.createElement(
|
|
6433
6446
|
DynamicConditionalControl,
|
|
6434
6447
|
{
|
|
6435
6448
|
propType: dynamicPropType,
|
|
@@ -6441,7 +6454,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6441
6454
|
};
|
|
6442
6455
|
|
|
6443
6456
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6444
|
-
import * as
|
|
6457
|
+
import * as React97 from "react";
|
|
6445
6458
|
import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
|
|
6446
6459
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
|
|
6447
6460
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
@@ -6494,19 +6507,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6494
6507
|
]);
|
|
6495
6508
|
const getPopOverContent = () => {
|
|
6496
6509
|
if (hasNoDynamicTags) {
|
|
6497
|
-
return /* @__PURE__ */
|
|
6510
|
+
return /* @__PURE__ */ React97.createElement(NoDynamicTags, null);
|
|
6498
6511
|
}
|
|
6499
6512
|
if (expired) {
|
|
6500
|
-
return /* @__PURE__ */
|
|
6513
|
+
return /* @__PURE__ */ React97.createElement(ExpiredDynamicTags, null);
|
|
6501
6514
|
}
|
|
6502
|
-
return /* @__PURE__ */
|
|
6515
|
+
return /* @__PURE__ */ React97.createElement(Fragment14, null, /* @__PURE__ */ React97.createElement(
|
|
6503
6516
|
SearchField,
|
|
6504
6517
|
{
|
|
6505
6518
|
value: searchValue,
|
|
6506
6519
|
onSearch: handleSearch,
|
|
6507
6520
|
placeholder: __68("Search dynamic tags\u2026", "elementor")
|
|
6508
6521
|
}
|
|
6509
|
-
), /* @__PURE__ */
|
|
6522
|
+
), /* @__PURE__ */ React97.createElement(Divider7, null), /* @__PURE__ */ React97.createElement(
|
|
6510
6523
|
PopoverMenuList,
|
|
6511
6524
|
{
|
|
6512
6525
|
items: virtualizedItems,
|
|
@@ -6514,20 +6527,20 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6514
6527
|
onClose: closePopover,
|
|
6515
6528
|
selectedValue: dynamicValue?.name,
|
|
6516
6529
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6517
|
-
noResultsComponent: /* @__PURE__ */
|
|
6530
|
+
noResultsComponent: /* @__PURE__ */ React97.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6518
6531
|
}
|
|
6519
6532
|
));
|
|
6520
6533
|
};
|
|
6521
|
-
return /* @__PURE__ */
|
|
6534
|
+
return /* @__PURE__ */ React97.createElement(SectionPopoverBody, { "aria-label": __68("Dynamic tags", "elementor") }, /* @__PURE__ */ React97.createElement(
|
|
6522
6535
|
PopoverHeader,
|
|
6523
6536
|
{
|
|
6524
6537
|
title: __68("Dynamic tags", "elementor"),
|
|
6525
6538
|
onClose: closePopover,
|
|
6526
|
-
icon: /* @__PURE__ */
|
|
6539
|
+
icon: /* @__PURE__ */ React97.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
6527
6540
|
}
|
|
6528
6541
|
), getPopOverContent());
|
|
6529
6542
|
};
|
|
6530
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6543
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React97.createElement(
|
|
6531
6544
|
Stack16,
|
|
6532
6545
|
{
|
|
6533
6546
|
gap: 1,
|
|
@@ -6538,11 +6551,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React96.createElem
|
|
|
6538
6551
|
color: "text.secondary",
|
|
6539
6552
|
sx: { pb: 3.5 }
|
|
6540
6553
|
},
|
|
6541
|
-
/* @__PURE__ */
|
|
6542
|
-
/* @__PURE__ */
|
|
6543
|
-
/* @__PURE__ */
|
|
6554
|
+
/* @__PURE__ */ React97.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6555
|
+
/* @__PURE__ */ React97.createElement(Typography6, { align: "center", variant: "subtitle2" }, __68("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React97.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6556
|
+
/* @__PURE__ */ React97.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __68("Try something else.", "elementor"), /* @__PURE__ */ React97.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __68("Clear & try again", "elementor")))
|
|
6544
6557
|
);
|
|
6545
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6558
|
+
var NoDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(Divider7, null), /* @__PURE__ */ React97.createElement(
|
|
6546
6559
|
Stack16,
|
|
6547
6560
|
{
|
|
6548
6561
|
gap: 1,
|
|
@@ -6553,10 +6566,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fragment
|
|
|
6553
6566
|
color: "text.secondary",
|
|
6554
6567
|
sx: { pb: 3.5 }
|
|
6555
6568
|
},
|
|
6556
|
-
/* @__PURE__ */
|
|
6557
|
-
/* @__PURE__ */
|
|
6558
|
-
/* @__PURE__ */
|
|
6559
|
-
/* @__PURE__ */
|
|
6569
|
+
/* @__PURE__ */ React97.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6570
|
+
/* @__PURE__ */ React97.createElement(Typography6, { align: "center", variant: "subtitle2" }, __68("Streamline your workflow with dynamic tags", "elementor")),
|
|
6571
|
+
/* @__PURE__ */ React97.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __68("Upgrade now to display your content dynamically.", "elementor")),
|
|
6572
|
+
/* @__PURE__ */ React97.createElement(
|
|
6560
6573
|
CtaButton,
|
|
6561
6574
|
{
|
|
6562
6575
|
size: "small",
|
|
@@ -6565,7 +6578,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fragment
|
|
|
6565
6578
|
}
|
|
6566
6579
|
)
|
|
6567
6580
|
));
|
|
6568
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6581
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(Divider7, null), /* @__PURE__ */ React97.createElement(
|
|
6569
6582
|
Stack16,
|
|
6570
6583
|
{
|
|
6571
6584
|
gap: 1,
|
|
@@ -6576,10 +6589,10 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fra
|
|
|
6576
6589
|
color: "text.secondary",
|
|
6577
6590
|
sx: { pb: 3.5 }
|
|
6578
6591
|
},
|
|
6579
|
-
/* @__PURE__ */
|
|
6580
|
-
/* @__PURE__ */
|
|
6581
|
-
/* @__PURE__ */
|
|
6582
|
-
/* @__PURE__ */
|
|
6592
|
+
/* @__PURE__ */ React97.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6593
|
+
/* @__PURE__ */ React97.createElement(Typography6, { align: "center", variant: "subtitle2" }, __68("Unlock your Dynamic tags again", "elementor")),
|
|
6594
|
+
/* @__PURE__ */ React97.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __68("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6595
|
+
/* @__PURE__ */ React97.createElement(
|
|
6583
6596
|
CtaButton,
|
|
6584
6597
|
{
|
|
6585
6598
|
size: "small",
|
|
@@ -6622,7 +6635,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6622
6635
|
const { name: tagName = "" } = value;
|
|
6623
6636
|
const dynamicTag = useDynamicTag(tagName);
|
|
6624
6637
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6625
|
-
return /* @__PURE__ */
|
|
6638
|
+
return /* @__PURE__ */ React98.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React98.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React98.createElement(OriginalControl, { ...props })));
|
|
6626
6639
|
}
|
|
6627
6640
|
const removeDynamicTag = () => {
|
|
6628
6641
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6630,25 +6643,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6630
6643
|
if (!dynamicTag) {
|
|
6631
6644
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6632
6645
|
}
|
|
6633
|
-
return /* @__PURE__ */
|
|
6646
|
+
return /* @__PURE__ */ React98.createElement(Box7, null, /* @__PURE__ */ React98.createElement(
|
|
6634
6647
|
Tag,
|
|
6635
6648
|
{
|
|
6636
6649
|
fullWidth: true,
|
|
6637
6650
|
showActionsOnHover: true,
|
|
6638
6651
|
label: dynamicTag.label,
|
|
6639
|
-
startIcon: /* @__PURE__ */
|
|
6652
|
+
startIcon: /* @__PURE__ */ React98.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
6640
6653
|
...bindTrigger2(selectionPopoverState),
|
|
6641
|
-
actions: /* @__PURE__ */
|
|
6654
|
+
actions: /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React98.createElement(
|
|
6642
6655
|
IconButton2,
|
|
6643
6656
|
{
|
|
6644
6657
|
size: SIZE3,
|
|
6645
6658
|
onClick: removeDynamicTag,
|
|
6646
6659
|
"aria-label": __69("Remove dynamic value", "elementor")
|
|
6647
6660
|
},
|
|
6648
|
-
/* @__PURE__ */
|
|
6661
|
+
/* @__PURE__ */ React98.createElement(XIcon, { fontSize: SIZE3 })
|
|
6649
6662
|
))
|
|
6650
6663
|
}
|
|
6651
|
-
), /* @__PURE__ */
|
|
6664
|
+
), /* @__PURE__ */ React98.createElement(
|
|
6652
6665
|
Popover,
|
|
6653
6666
|
{
|
|
6654
6667
|
disablePortal: true,
|
|
@@ -6660,7 +6673,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6660
6673
|
},
|
|
6661
6674
|
...bindPopover(selectionPopoverState)
|
|
6662
6675
|
},
|
|
6663
|
-
/* @__PURE__ */
|
|
6676
|
+
/* @__PURE__ */ React98.createElement(SectionPopoverBody2, { "aria-label": __69("Dynamic tags", "elementor") }, /* @__PURE__ */ React98.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6664
6677
|
));
|
|
6665
6678
|
};
|
|
6666
6679
|
var DynamicSettingsPopover = ({
|
|
@@ -6672,7 +6685,7 @@ var DynamicSettingsPopover = ({
|
|
|
6672
6685
|
if (!hasDynamicSettings) {
|
|
6673
6686
|
return null;
|
|
6674
6687
|
}
|
|
6675
|
-
return /* @__PURE__ */
|
|
6688
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(
|
|
6676
6689
|
IconButton2,
|
|
6677
6690
|
{
|
|
6678
6691
|
size: SIZE3,
|
|
@@ -6680,8 +6693,8 @@ var DynamicSettingsPopover = ({
|
|
|
6680
6693
|
...!disabled && bindTrigger2(popupState),
|
|
6681
6694
|
"aria-label": __69("Dynamic settings", "elementor")
|
|
6682
6695
|
},
|
|
6683
|
-
/* @__PURE__ */
|
|
6684
|
-
), /* @__PURE__ */
|
|
6696
|
+
/* @__PURE__ */ React98.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
6697
|
+
), /* @__PURE__ */ React98.createElement(
|
|
6685
6698
|
Popover,
|
|
6686
6699
|
{
|
|
6687
6700
|
disablePortal: true,
|
|
@@ -6693,14 +6706,14 @@ var DynamicSettingsPopover = ({
|
|
|
6693
6706
|
},
|
|
6694
6707
|
...bindPopover(popupState)
|
|
6695
6708
|
},
|
|
6696
|
-
/* @__PURE__ */
|
|
6709
|
+
/* @__PURE__ */ React98.createElement(SectionPopoverBody2, { "aria-label": __69("Dynamic settings", "elementor") }, /* @__PURE__ */ React98.createElement(
|
|
6697
6710
|
PopoverHeader2,
|
|
6698
6711
|
{
|
|
6699
6712
|
title: dynamicTag.label,
|
|
6700
6713
|
onClose: popupState.close,
|
|
6701
|
-
icon: /* @__PURE__ */
|
|
6714
|
+
icon: /* @__PURE__ */ React98.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
6702
6715
|
}
|
|
6703
|
-
), /* @__PURE__ */
|
|
6716
|
+
), /* @__PURE__ */ React98.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6704
6717
|
));
|
|
6705
6718
|
};
|
|
6706
6719
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6711,9 +6724,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6711
6724
|
}
|
|
6712
6725
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6713
6726
|
const singleTab = tabs[0];
|
|
6714
|
-
return /* @__PURE__ */
|
|
6727
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(Divider8, null), /* @__PURE__ */ React98.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6715
6728
|
}
|
|
6716
|
-
return /* @__PURE__ */
|
|
6729
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React98.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React98.createElement(
|
|
6717
6730
|
Tab2,
|
|
6718
6731
|
{
|
|
6719
6732
|
key: index,
|
|
@@ -6721,15 +6734,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6721
6734
|
sx: { px: 1, py: 0.5 },
|
|
6722
6735
|
...getTabProps(index)
|
|
6723
6736
|
}
|
|
6724
|
-
))), /* @__PURE__ */
|
|
6725
|
-
return /* @__PURE__ */
|
|
6737
|
+
))), /* @__PURE__ */ React98.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
6738
|
+
return /* @__PURE__ */ React98.createElement(
|
|
6726
6739
|
TabPanel2,
|
|
6727
6740
|
{
|
|
6728
6741
|
key: index,
|
|
6729
6742
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6730
6743
|
...getTabPanelProps(index)
|
|
6731
6744
|
},
|
|
6732
|
-
/* @__PURE__ */
|
|
6745
|
+
/* @__PURE__ */ React98.createElement(ControlsItemsStack, { items: value.items })
|
|
6733
6746
|
);
|
|
6734
6747
|
}));
|
|
6735
6748
|
};
|
|
@@ -6771,11 +6784,11 @@ var Control2 = ({ control }) => {
|
|
|
6771
6784
|
display: "grid",
|
|
6772
6785
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6773
6786
|
} : {};
|
|
6774
|
-
return /* @__PURE__ */
|
|
6787
|
+
return /* @__PURE__ */ React98.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React98.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React98.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(ControlFormLabel4, null, control.label)) : null, /* @__PURE__ */ React98.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6775
6788
|
};
|
|
6776
6789
|
function ControlsItemsStack({ items: items3 }) {
|
|
6777
|
-
return /* @__PURE__ */
|
|
6778
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6790
|
+
return /* @__PURE__ */ React98.createElement(Stack17, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6791
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React98.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6779
6792
|
));
|
|
6780
6793
|
}
|
|
6781
6794
|
|
|
@@ -6791,11 +6804,12 @@ var DynamicTagsManagerNotFoundError = createError2({
|
|
|
6791
6804
|
});
|
|
6792
6805
|
|
|
6793
6806
|
// src/dynamics/dynamic-transformer.ts
|
|
6794
|
-
var dynamicTransformer = createTransformer((value, { propType }) => {
|
|
6807
|
+
var dynamicTransformer = createTransformer((value, { propType, renderContext }) => {
|
|
6795
6808
|
if (!value?.name || !isDynamicTagSupported(value.name)) {
|
|
6796
6809
|
return propType?.default ?? null;
|
|
6797
6810
|
}
|
|
6798
|
-
|
|
6811
|
+
const renderPostId = renderContext?.currentPostId;
|
|
6812
|
+
return getDynamicValue(value.name, simpleTransform(value?.settings ?? {}), renderPostId);
|
|
6799
6813
|
});
|
|
6800
6814
|
function simpleTransform(props) {
|
|
6801
6815
|
const transformed = Object.entries(props).map(([settingKey, settingValue]) => {
|
|
@@ -6804,7 +6818,7 @@ function simpleTransform(props) {
|
|
|
6804
6818
|
});
|
|
6805
6819
|
return Object.fromEntries(transformed);
|
|
6806
6820
|
}
|
|
6807
|
-
function getDynamicValue(name, settings) {
|
|
6821
|
+
function getDynamicValue(name, settings, renderPostId) {
|
|
6808
6822
|
const { dynamicTags } = window.elementor ?? {};
|
|
6809
6823
|
if (!dynamicTags) {
|
|
6810
6824
|
throw new DynamicTagsManagerNotFoundError();
|
|
@@ -6814,6 +6828,9 @@ function getDynamicValue(name, settings) {
|
|
|
6814
6828
|
if (!tag) {
|
|
6815
6829
|
return null;
|
|
6816
6830
|
}
|
|
6831
|
+
if (renderPostId) {
|
|
6832
|
+
tag.editorRenderPostId = renderPostId;
|
|
6833
|
+
}
|
|
6817
6834
|
return dynamicTags.loadTagDataFromCache(tag) ?? null;
|
|
6818
6835
|
};
|
|
6819
6836
|
const tagValue = getTagValue();
|
|
@@ -6821,17 +6838,14 @@ function getDynamicValue(name, settings) {
|
|
|
6821
6838
|
return tagValue;
|
|
6822
6839
|
}
|
|
6823
6840
|
return new Promise((resolve) => {
|
|
6824
|
-
dynamicTags.refreshCacheFromServer(
|
|
6825
|
-
()
|
|
6826
|
-
|
|
6827
|
-
},
|
|
6828
|
-
{ disableCache: true }
|
|
6829
|
-
);
|
|
6841
|
+
dynamicTags.refreshCacheFromServer(() => {
|
|
6842
|
+
resolve(getTagValue());
|
|
6843
|
+
});
|
|
6830
6844
|
});
|
|
6831
6845
|
}
|
|
6832
6846
|
|
|
6833
6847
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6834
|
-
import * as
|
|
6848
|
+
import * as React99 from "react";
|
|
6835
6849
|
import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
|
|
6836
6850
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
6837
6851
|
import { __ as __70 } from "@wordpress/i18n";
|
|
@@ -6842,7 +6856,7 @@ var usePropDynamicAction = () => {
|
|
|
6842
6856
|
visible,
|
|
6843
6857
|
icon: DatabaseIcon4,
|
|
6844
6858
|
title: __70("Dynamic tags", "elementor"),
|
|
6845
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6859
|
+
content: ({ close }) => /* @__PURE__ */ React99.createElement(DynamicSelection, { close })
|
|
6846
6860
|
};
|
|
6847
6861
|
};
|
|
6848
6862
|
|
|
@@ -6960,14 +6974,14 @@ function useResetStyleValueProps() {
|
|
|
6960
6974
|
}
|
|
6961
6975
|
|
|
6962
6976
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6963
|
-
import * as
|
|
6977
|
+
import * as React105 from "react";
|
|
6964
6978
|
import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
|
|
6965
6979
|
import { isEmpty as isEmpty3 } from "@elementor/editor-props";
|
|
6966
6980
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
6967
6981
|
import { __ as __75 } from "@wordpress/i18n";
|
|
6968
6982
|
|
|
6969
6983
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6970
|
-
import * as
|
|
6984
|
+
import * as React104 from "react";
|
|
6971
6985
|
import { useMemo as useMemo15, useRef as useRef20, useState as useState12 } from "react";
|
|
6972
6986
|
import {
|
|
6973
6987
|
createPropsResolver as createPropsResolver2,
|
|
@@ -7063,7 +7077,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
7063
7077
|
};
|
|
7064
7078
|
|
|
7065
7079
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
7066
|
-
import * as
|
|
7080
|
+
import * as React100 from "react";
|
|
7067
7081
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
7068
7082
|
import {
|
|
7069
7083
|
DesktopIcon,
|
|
@@ -7094,11 +7108,11 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
7094
7108
|
return null;
|
|
7095
7109
|
}
|
|
7096
7110
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
7097
|
-
return /* @__PURE__ */
|
|
7111
|
+
return /* @__PURE__ */ React100.createElement(Tooltip4, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React100.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
7098
7112
|
};
|
|
7099
7113
|
|
|
7100
7114
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
7101
|
-
import * as
|
|
7115
|
+
import * as React101 from "react";
|
|
7102
7116
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
7103
7117
|
import { InfoCircleIcon as InfoCircleIcon2 } from "@elementor/icons";
|
|
7104
7118
|
import { Chip as Chip5, Tooltip as Tooltip5 } from "@elementor/ui";
|
|
@@ -7106,8 +7120,8 @@ import { __ as __73 } from "@wordpress/i18n";
|
|
|
7106
7120
|
var SIZE5 = "tiny";
|
|
7107
7121
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
7108
7122
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
7109
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
7110
|
-
return /* @__PURE__ */
|
|
7123
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React101.createElement(Tooltip5, { title: __73("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React101.createElement(InfoCircleIcon2, { fontSize: SIZE5 })) : void 0;
|
|
7124
|
+
return /* @__PURE__ */ React101.createElement(
|
|
7111
7125
|
Chip5,
|
|
7112
7126
|
{
|
|
7113
7127
|
label: displayLabel,
|
|
@@ -7133,10 +7147,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
7133
7147
|
};
|
|
7134
7148
|
|
|
7135
7149
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
7136
|
-
import * as
|
|
7150
|
+
import * as React102 from "react";
|
|
7137
7151
|
import { Tooltip as Tooltip6, Typography as Typography7 } from "@elementor/ui";
|
|
7138
7152
|
var ValueComponent = ({ index, value }) => {
|
|
7139
|
-
return /* @__PURE__ */
|
|
7153
|
+
return /* @__PURE__ */ React102.createElement(Tooltip6, { title: value, placement: "top" }, /* @__PURE__ */ React102.createElement(
|
|
7140
7154
|
Typography7,
|
|
7141
7155
|
{
|
|
7142
7156
|
variant: "caption",
|
|
@@ -7158,9 +7172,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7158
7172
|
};
|
|
7159
7173
|
|
|
7160
7174
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7161
|
-
import * as
|
|
7175
|
+
import * as React103 from "react";
|
|
7162
7176
|
import { Box as Box8 } from "@elementor/ui";
|
|
7163
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7177
|
+
var ActionIcons = () => /* @__PURE__ */ React103.createElement(Box8, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7164
7178
|
|
|
7165
7179
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7166
7180
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7196,7 +7210,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7196
7210
|
});
|
|
7197
7211
|
}, [key, propType]);
|
|
7198
7212
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7199
|
-
const infotipContent = /* @__PURE__ */
|
|
7213
|
+
const infotipContent = /* @__PURE__ */ React104.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React104.createElement(
|
|
7200
7214
|
Card,
|
|
7201
7215
|
{
|
|
7202
7216
|
elevation: 0,
|
|
@@ -7209,7 +7223,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7209
7223
|
flexDirection: "column"
|
|
7210
7224
|
}
|
|
7211
7225
|
},
|
|
7212
|
-
/* @__PURE__ */
|
|
7226
|
+
/* @__PURE__ */ React104.createElement(
|
|
7213
7227
|
Box9,
|
|
7214
7228
|
{
|
|
7215
7229
|
sx: {
|
|
@@ -7219,9 +7233,9 @@ var StylesInheritanceInfotip = ({
|
|
|
7219
7233
|
backgroundColor: "background.paper"
|
|
7220
7234
|
}
|
|
7221
7235
|
},
|
|
7222
|
-
/* @__PURE__ */
|
|
7236
|
+
/* @__PURE__ */ React104.createElement(PopoverHeader3, { title: __74("Style origin", "elementor"), onClose: closeInfotip })
|
|
7223
7237
|
),
|
|
7224
|
-
/* @__PURE__ */
|
|
7238
|
+
/* @__PURE__ */ React104.createElement(
|
|
7225
7239
|
CardContent,
|
|
7226
7240
|
{
|
|
7227
7241
|
sx: {
|
|
@@ -7235,8 +7249,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7235
7249
|
}
|
|
7236
7250
|
}
|
|
7237
7251
|
},
|
|
7238
|
-
/* @__PURE__ */
|
|
7239
|
-
return /* @__PURE__ */
|
|
7252
|
+
/* @__PURE__ */ React104.createElement(Stack18, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7253
|
+
return /* @__PURE__ */ React104.createElement(
|
|
7240
7254
|
Box9,
|
|
7241
7255
|
{
|
|
7242
7256
|
key: item.id,
|
|
@@ -7248,26 +7262,26 @@ var StylesInheritanceInfotip = ({
|
|
|
7248
7262
|
item.displayLabel
|
|
7249
7263
|
)
|
|
7250
7264
|
},
|
|
7251
|
-
/* @__PURE__ */
|
|
7265
|
+
/* @__PURE__ */ React104.createElement(
|
|
7252
7266
|
Box9,
|
|
7253
7267
|
{
|
|
7254
7268
|
display: "flex",
|
|
7255
7269
|
gap: 0.5,
|
|
7256
7270
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7257
7271
|
},
|
|
7258
|
-
/* @__PURE__ */
|
|
7259
|
-
/* @__PURE__ */
|
|
7260
|
-
/* @__PURE__ */
|
|
7272
|
+
/* @__PURE__ */ React104.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7273
|
+
/* @__PURE__ */ React104.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7274
|
+
/* @__PURE__ */ React104.createElement(ValueComponent, { index, value: item.value })
|
|
7261
7275
|
),
|
|
7262
|
-
/* @__PURE__ */
|
|
7276
|
+
/* @__PURE__ */ React104.createElement(ActionIcons, null)
|
|
7263
7277
|
);
|
|
7264
7278
|
}))
|
|
7265
7279
|
)
|
|
7266
7280
|
));
|
|
7267
7281
|
if (isDisabled) {
|
|
7268
|
-
return /* @__PURE__ */
|
|
7282
|
+
return /* @__PURE__ */ React104.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
7269
7283
|
}
|
|
7270
|
-
return /* @__PURE__ */
|
|
7284
|
+
return /* @__PURE__ */ React104.createElement(Box9, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React104.createElement(
|
|
7271
7285
|
TooltipOrInfotip,
|
|
7272
7286
|
{
|
|
7273
7287
|
showInfotip,
|
|
@@ -7275,7 +7289,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7275
7289
|
infotipContent,
|
|
7276
7290
|
isDisabled
|
|
7277
7291
|
},
|
|
7278
|
-
/* @__PURE__ */
|
|
7292
|
+
/* @__PURE__ */ React104.createElement(
|
|
7279
7293
|
IconButton3,
|
|
7280
7294
|
{
|
|
7281
7295
|
onClick: toggleInfotip,
|
|
@@ -7295,10 +7309,10 @@ function TooltipOrInfotip({
|
|
|
7295
7309
|
isDisabled
|
|
7296
7310
|
}) {
|
|
7297
7311
|
if (isDisabled) {
|
|
7298
|
-
return /* @__PURE__ */
|
|
7312
|
+
return /* @__PURE__ */ React104.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
7299
7313
|
}
|
|
7300
7314
|
if (showInfotip) {
|
|
7301
|
-
return /* @__PURE__ */
|
|
7315
|
+
return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(
|
|
7302
7316
|
Backdrop,
|
|
7303
7317
|
{
|
|
7304
7318
|
open: showInfotip,
|
|
@@ -7308,7 +7322,7 @@ function TooltipOrInfotip({
|
|
|
7308
7322
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7309
7323
|
}
|
|
7310
7324
|
}
|
|
7311
|
-
), /* @__PURE__ */
|
|
7325
|
+
), /* @__PURE__ */ React104.createElement(
|
|
7312
7326
|
Infotip3,
|
|
7313
7327
|
{
|
|
7314
7328
|
placement: "top-end",
|
|
@@ -7320,7 +7334,7 @@ function TooltipOrInfotip({
|
|
|
7320
7334
|
children
|
|
7321
7335
|
));
|
|
7322
7336
|
}
|
|
7323
|
-
return /* @__PURE__ */
|
|
7337
|
+
return /* @__PURE__ */ React104.createElement(Tooltip7, { title: __74("Style origin", "elementor"), placement: "top" }, children);
|
|
7324
7338
|
}
|
|
7325
7339
|
|
|
7326
7340
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7333,7 +7347,7 @@ var StylesInheritanceIndicator = ({
|
|
|
7333
7347
|
if (!path || !inheritanceChain.length) {
|
|
7334
7348
|
return null;
|
|
7335
7349
|
}
|
|
7336
|
-
return /* @__PURE__ */
|
|
7350
|
+
return /* @__PURE__ */ React105.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7337
7351
|
};
|
|
7338
7352
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7339
7353
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -7349,7 +7363,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7349
7363
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7350
7364
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7351
7365
|
};
|
|
7352
|
-
return /* @__PURE__ */
|
|
7366
|
+
return /* @__PURE__ */ React105.createElement(
|
|
7353
7367
|
StylesInheritanceInfotip,
|
|
7354
7368
|
{
|
|
7355
7369
|
inheritanceChain,
|
|
@@ -7358,7 +7372,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7358
7372
|
label,
|
|
7359
7373
|
isDisabled
|
|
7360
7374
|
},
|
|
7361
|
-
/* @__PURE__ */
|
|
7375
|
+
/* @__PURE__ */ React105.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7362
7376
|
);
|
|
7363
7377
|
};
|
|
7364
7378
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
@@ -7393,7 +7407,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7393
7407
|
]);
|
|
7394
7408
|
|
|
7395
7409
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7396
|
-
import * as
|
|
7410
|
+
import * as React106 from "react";
|
|
7397
7411
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
7398
7412
|
var arrayTransformer = createTransformer2((values) => {
|
|
7399
7413
|
if (!values || values.length === 0) {
|
|
@@ -7403,16 +7417,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
7403
7417
|
if (allStrings) {
|
|
7404
7418
|
return values.join(" ");
|
|
7405
7419
|
}
|
|
7406
|
-
return /* @__PURE__ */
|
|
7420
|
+
return /* @__PURE__ */ React106.createElement(React106.Fragment, null, values.map((item, index) => /* @__PURE__ */ React106.createElement(React106.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7407
7421
|
});
|
|
7408
7422
|
|
|
7409
7423
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7410
|
-
import * as
|
|
7424
|
+
import * as React107 from "react";
|
|
7411
7425
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
7412
7426
|
import { Stack as Stack19, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
|
|
7413
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
7427
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React107.createElement(Stack19, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React107.createElement(ItemLabelColor, { value })));
|
|
7414
7428
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7415
|
-
return /* @__PURE__ */
|
|
7429
|
+
return /* @__PURE__ */ React107.createElement("span", null, color);
|
|
7416
7430
|
};
|
|
7417
7431
|
var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
|
|
7418
7432
|
width: "1em",
|
|
@@ -7423,20 +7437,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
|
|
|
7423
7437
|
}));
|
|
7424
7438
|
|
|
7425
7439
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7426
|
-
import * as
|
|
7440
|
+
import * as React108 from "react";
|
|
7427
7441
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
7428
7442
|
import { Stack as Stack20 } from "@elementor/ui";
|
|
7429
7443
|
import { __ as __76 } from "@wordpress/i18n";
|
|
7430
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
7444
|
+
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React108.createElement(Stack20, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React108.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React108.createElement(ItemLabelGradient, { value })));
|
|
7431
7445
|
var ItemIconGradient = ({ value }) => {
|
|
7432
7446
|
const gradient = getGradientValue(value);
|
|
7433
|
-
return /* @__PURE__ */
|
|
7447
|
+
return /* @__PURE__ */ React108.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7434
7448
|
};
|
|
7435
7449
|
var ItemLabelGradient = ({ value }) => {
|
|
7436
7450
|
if (value.type === "linear") {
|
|
7437
|
-
return /* @__PURE__ */
|
|
7451
|
+
return /* @__PURE__ */ React108.createElement("span", null, __76("Linear gradient", "elementor"));
|
|
7438
7452
|
}
|
|
7439
|
-
return /* @__PURE__ */
|
|
7453
|
+
return /* @__PURE__ */ React108.createElement("span", null, __76("Radial gradient", "elementor"));
|
|
7440
7454
|
};
|
|
7441
7455
|
var getGradientValue = (gradient) => {
|
|
7442
7456
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7447,15 +7461,15 @@ var getGradientValue = (gradient) => {
|
|
|
7447
7461
|
};
|
|
7448
7462
|
|
|
7449
7463
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7450
|
-
import * as
|
|
7464
|
+
import * as React109 from "react";
|
|
7451
7465
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
7452
7466
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
7453
7467
|
import { CardMedia, Stack as Stack21 } from "@elementor/ui";
|
|
7454
7468
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
7455
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
7469
|
+
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React109.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React109.createElement(ItemIconImage, { value }), /* @__PURE__ */ React109.createElement(ItemLabelImage, { value })));
|
|
7456
7470
|
var ItemIconImage = ({ value }) => {
|
|
7457
7471
|
const { imageUrl } = useImage(value);
|
|
7458
|
-
return /* @__PURE__ */
|
|
7472
|
+
return /* @__PURE__ */ React109.createElement(
|
|
7459
7473
|
CardMedia,
|
|
7460
7474
|
{
|
|
7461
7475
|
image: imageUrl,
|
|
@@ -7471,7 +7485,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7471
7485
|
};
|
|
7472
7486
|
var ItemLabelImage = ({ value }) => {
|
|
7473
7487
|
const { imageTitle } = useImage(value);
|
|
7474
|
-
return /* @__PURE__ */
|
|
7488
|
+
return /* @__PURE__ */ React109.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React109.createElement("span", null, imageTitle));
|
|
7475
7489
|
};
|
|
7476
7490
|
var useImage = (image) => {
|
|
7477
7491
|
let imageTitle, imageUrl = null;
|
|
@@ -7496,7 +7510,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7496
7510
|
};
|
|
7497
7511
|
|
|
7498
7512
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7499
|
-
import * as
|
|
7513
|
+
import * as React110 from "react";
|
|
7500
7514
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
7501
7515
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
7502
7516
|
if (!value) {
|
|
@@ -7506,11 +7520,11 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
7506
7520
|
const colorValue = color || "#000000";
|
|
7507
7521
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7508
7522
|
const positionValue = position || "outset";
|
|
7509
|
-
return /* @__PURE__ */
|
|
7523
|
+
return /* @__PURE__ */ React110.createElement(React110.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7510
7524
|
});
|
|
7511
7525
|
|
|
7512
7526
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7513
|
-
import * as
|
|
7527
|
+
import * as React111 from "react";
|
|
7514
7528
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
7515
7529
|
import { Stack as Stack22, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
7516
7530
|
function isValidCSSColor(value) {
|
|
@@ -7530,7 +7544,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
7530
7544
|
if (!isValidCSSColor(value)) {
|
|
7531
7545
|
return value;
|
|
7532
7546
|
}
|
|
7533
|
-
return /* @__PURE__ */
|
|
7547
|
+
return /* @__PURE__ */ React111.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React111.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React111.createElement("span", null, value));
|
|
7534
7548
|
});
|
|
7535
7549
|
|
|
7536
7550
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|