@elementor/editor-editing-panel 4.2.0-927 → 4.2.0-929
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.js +434 -421
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +434 -421
- 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/dist/index.js
CHANGED
|
@@ -1933,7 +1933,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1933
1933
|
};
|
|
1934
1934
|
|
|
1935
1935
|
// src/components/editing-panel.tsx
|
|
1936
|
-
var
|
|
1936
|
+
var React91 = __toESM(require("react"));
|
|
1937
1937
|
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
1938
1938
|
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
1939
1939
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
@@ -1964,16 +1964,29 @@ function EditorPanelErrorFallback() {
|
|
|
1964
1964
|
return /* @__PURE__ */ React15.createElement(import_ui10.Box, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React15.createElement(import_ui10.Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React15.createElement("strong", null, "Something went wrong")));
|
|
1965
1965
|
}
|
|
1966
1966
|
|
|
1967
|
+
// src/components/editing-panel-sticky-promotion.tsx
|
|
1968
|
+
var React16 = __toESM(require("react"));
|
|
1969
|
+
function getStickyPromotion() {
|
|
1970
|
+
return window.elementor?.config?.editingPanelStickyPromotion;
|
|
1971
|
+
}
|
|
1972
|
+
var EditingPanelStickyPromotion = () => {
|
|
1973
|
+
const promotion = getStickyPromotion();
|
|
1974
|
+
if (!promotion) {
|
|
1975
|
+
return null;
|
|
1976
|
+
}
|
|
1977
|
+
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)));
|
|
1978
|
+
};
|
|
1979
|
+
|
|
1967
1980
|
// src/components/editing-panel-tabs.tsx
|
|
1968
1981
|
var import_react38 = require("react");
|
|
1969
|
-
var
|
|
1982
|
+
var React90 = __toESM(require("react"));
|
|
1970
1983
|
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
1971
1984
|
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
1972
1985
|
var import_ui43 = require("@elementor/ui");
|
|
1973
1986
|
var import_i18n63 = require("@wordpress/i18n");
|
|
1974
1987
|
|
|
1975
1988
|
// src/contexts/scroll-context.tsx
|
|
1976
|
-
var
|
|
1989
|
+
var React17 = __toESM(require("react"));
|
|
1977
1990
|
var import_react15 = require("react");
|
|
1978
1991
|
var import_ui11 = require("@elementor/ui");
|
|
1979
1992
|
var ScrollContext = (0, import_react15.createContext)(void 0);
|
|
@@ -2005,7 +2018,7 @@ function ScrollProvider({ children }) {
|
|
|
2005
2018
|
scrollElement.removeEventListener("scroll", handleScroll);
|
|
2006
2019
|
};
|
|
2007
2020
|
});
|
|
2008
|
-
return /* @__PURE__ */
|
|
2021
|
+
return /* @__PURE__ */ React17.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React17.createElement(ScrollPanel, { ref }, children));
|
|
2009
2022
|
}
|
|
2010
2023
|
function useScrollDirection() {
|
|
2011
2024
|
return (0, import_react15.useContext)(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
|
|
@@ -2061,24 +2074,24 @@ var useStateByElement = (key, initialValue) => {
|
|
|
2061
2074
|
};
|
|
2062
2075
|
|
|
2063
2076
|
// src/components/interactions-tab.tsx
|
|
2064
|
-
var
|
|
2077
|
+
var React19 = __toESM(require("react"));
|
|
2065
2078
|
var import_editor_interactions = require("@elementor/editor-interactions");
|
|
2066
2079
|
|
|
2067
2080
|
// src/components/sections-list.tsx
|
|
2068
|
-
var
|
|
2081
|
+
var React18 = __toESM(require("react"));
|
|
2069
2082
|
var import_ui12 = require("@elementor/ui");
|
|
2070
2083
|
function SectionsList(props) {
|
|
2071
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ React18.createElement(import_ui12.List, { disablePadding: true, component: "div", ...props });
|
|
2072
2085
|
}
|
|
2073
2086
|
|
|
2074
2087
|
// src/components/interactions-tab.tsx
|
|
2075
2088
|
var InteractionsTab = () => {
|
|
2076
2089
|
const { element } = useElement();
|
|
2077
|
-
return /* @__PURE__ */
|
|
2090
|
+
return /* @__PURE__ */ React19.createElement(SectionsList, null, /* @__PURE__ */ React19.createElement(import_editor_interactions.InteractionsTab, { elementId: element.id }));
|
|
2078
2091
|
};
|
|
2079
2092
|
|
|
2080
2093
|
// src/components/settings-tab.tsx
|
|
2081
|
-
var
|
|
2094
|
+
var React25 = __toESM(require("react"));
|
|
2082
2095
|
var import_session6 = require("@elementor/session");
|
|
2083
2096
|
|
|
2084
2097
|
// src/utils/prop-dependency-utils.ts
|
|
@@ -2288,7 +2301,7 @@ function removePreviousValueFromStorage({ path, elementId }) {
|
|
|
2288
2301
|
}
|
|
2289
2302
|
|
|
2290
2303
|
// src/components/section.tsx
|
|
2291
|
-
var
|
|
2304
|
+
var React20 = __toESM(require("react"));
|
|
2292
2305
|
var import_react17 = require("react");
|
|
2293
2306
|
var import_editor_ui5 = require("@elementor/editor-ui");
|
|
2294
2307
|
var import_ui13 = require("@elementor/ui");
|
|
@@ -2306,7 +2319,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2306
2319
|
const id = (0, import_react17.useId)();
|
|
2307
2320
|
const labelId = `label-${id}`;
|
|
2308
2321
|
const contentId = `content-${id}`;
|
|
2309
|
-
return /* @__PURE__ */
|
|
2322
|
+
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
|
|
2310
2323
|
import_ui13.ListItemButton,
|
|
2311
2324
|
{
|
|
2312
2325
|
id: labelId,
|
|
@@ -2315,7 +2328,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2315
2328
|
onClick: handleClick,
|
|
2316
2329
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2317
2330
|
},
|
|
2318
|
-
/* @__PURE__ */
|
|
2331
|
+
/* @__PURE__ */ React20.createElement(import_ui13.Stack, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React20.createElement(
|
|
2319
2332
|
import_ui13.ListItemText,
|
|
2320
2333
|
{
|
|
2321
2334
|
secondary: title,
|
|
@@ -2324,7 +2337,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2324
2337
|
}
|
|
2325
2338
|
), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen)),
|
|
2326
2339
|
action?.component,
|
|
2327
|
-
/* @__PURE__ */
|
|
2340
|
+
/* @__PURE__ */ React20.createElement(
|
|
2328
2341
|
import_editor_ui5.CollapseIcon,
|
|
2329
2342
|
{
|
|
2330
2343
|
open: isOpen,
|
|
@@ -2334,7 +2347,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2334
2347
|
sx: { ml: 1 }
|
|
2335
2348
|
}
|
|
2336
2349
|
)
|
|
2337
|
-
), /* @__PURE__ */
|
|
2350
|
+
), /* @__PURE__ */ React20.createElement(
|
|
2338
2351
|
import_ui13.Collapse,
|
|
2339
2352
|
{
|
|
2340
2353
|
id: contentId,
|
|
@@ -2343,17 +2356,17 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2343
2356
|
timeout: "auto",
|
|
2344
2357
|
unmountOnExit
|
|
2345
2358
|
},
|
|
2346
|
-
/* @__PURE__ */
|
|
2347
|
-
), /* @__PURE__ */
|
|
2359
|
+
/* @__PURE__ */ React20.createElement(import_editor_ui5.SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React20.createElement(import_ui13.Stack, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
|
|
2360
|
+
), /* @__PURE__ */ React20.createElement(import_ui13.Divider, null));
|
|
2348
2361
|
}
|
|
2349
2362
|
|
|
2350
2363
|
// src/components/settings-control.tsx
|
|
2351
|
-
var
|
|
2364
|
+
var React24 = __toESM(require("react"));
|
|
2352
2365
|
var import_editor_controls4 = require("@elementor/editor-controls");
|
|
2353
2366
|
var import_ui15 = require("@elementor/ui");
|
|
2354
2367
|
|
|
2355
2368
|
// src/controls-registry/control.tsx
|
|
2356
|
-
var
|
|
2369
|
+
var React21 = __toESM(require("react"));
|
|
2357
2370
|
|
|
2358
2371
|
// src/controls-registry/controls-registry.tsx
|
|
2359
2372
|
var import_editor_controls2 = require("@elementor/editor-controls");
|
|
@@ -2439,17 +2452,17 @@ var Control = ({ props, type }) => {
|
|
|
2439
2452
|
context: { controlType: type }
|
|
2440
2453
|
});
|
|
2441
2454
|
}
|
|
2442
|
-
return /* @__PURE__ */
|
|
2455
|
+
return /* @__PURE__ */ React21.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
2443
2456
|
};
|
|
2444
2457
|
|
|
2445
2458
|
// src/controls-registry/control-type-container.tsx
|
|
2446
|
-
var
|
|
2459
|
+
var React22 = __toESM(require("react"));
|
|
2447
2460
|
var import_ui14 = require("@elementor/ui");
|
|
2448
2461
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
2449
2462
|
if (layout === "custom") {
|
|
2450
2463
|
return children;
|
|
2451
2464
|
}
|
|
2452
|
-
return /* @__PURE__ */
|
|
2465
|
+
return /* @__PURE__ */ React22.createElement(StyledContainer, { layout }, children);
|
|
2453
2466
|
};
|
|
2454
2467
|
var StyledContainer = (0, import_ui14.styled)(import_ui14.Box, {
|
|
2455
2468
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
@@ -2477,7 +2490,7 @@ var getStyleByLayout = (layout) => {
|
|
|
2477
2490
|
};
|
|
2478
2491
|
|
|
2479
2492
|
// src/controls-registry/settings-field.tsx
|
|
2480
|
-
var
|
|
2493
|
+
var React23 = __toESM(require("react"));
|
|
2481
2494
|
var import_react18 = require("react");
|
|
2482
2495
|
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
2483
2496
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
@@ -2527,7 +2540,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2527
2540
|
(0, import_editor_elements6.updateElementSettings)({ id: elementId, props: settings, withHistory: false });
|
|
2528
2541
|
}
|
|
2529
2542
|
};
|
|
2530
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ React23.createElement(import_editor_controls3.PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React23.createElement(import_editor_controls3.PropKeyProvider, { bind }, children));
|
|
2531
2544
|
};
|
|
2532
2545
|
function useUndoableUpdateElementProp({
|
|
2533
2546
|
elementId,
|
|
@@ -2590,9 +2603,9 @@ var SettingsControl = ({ control: { value, type } }) => {
|
|
|
2590
2603
|
controlProps.label = value.label;
|
|
2591
2604
|
}
|
|
2592
2605
|
if (type === "element-control") {
|
|
2593
|
-
return /* @__PURE__ */
|
|
2606
|
+
return /* @__PURE__ */ React24.createElement(ControlLayout, { control: value, layout, controlProps });
|
|
2594
2607
|
}
|
|
2595
|
-
return /* @__PURE__ */
|
|
2608
|
+
return /* @__PURE__ */ React24.createElement(SettingsField, { bind: value.bind, propDisplayName: value.label || value.bind }, /* @__PURE__ */ React24.createElement(ControlLayout, { control: value, layout, controlProps }));
|
|
2596
2609
|
};
|
|
2597
2610
|
var ControlLayout = ({
|
|
2598
2611
|
control,
|
|
@@ -2600,7 +2613,7 @@ var ControlLayout = ({
|
|
|
2600
2613
|
controlProps
|
|
2601
2614
|
}) => {
|
|
2602
2615
|
const controlType = control.type;
|
|
2603
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ React24.createElement(import_editor_controls4.ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React24.createElement(import_ui15.Divider, null), /* @__PURE__ */ React24.createElement(Wrapper, { "data-type": "settings-field" }, /* @__PURE__ */ React24.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React24.createElement(ControlLabel, null, control.label) : null, /* @__PURE__ */ React24.createElement(Control, { type: controlType, props: controlProps }))));
|
|
2604
2617
|
};
|
|
2605
2618
|
function populateChildControlProps(props) {
|
|
2606
2619
|
if (props.childControlType) {
|
|
@@ -2624,9 +2637,9 @@ var SettingsTab = () => {
|
|
|
2624
2637
|
const settingsDefault = useDefaultPanelSettings();
|
|
2625
2638
|
const currentSettings = settings;
|
|
2626
2639
|
const isDefaultExpanded = (sectionId) => !!sectionId && settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2627
|
-
return /* @__PURE__ */
|
|
2640
|
+
return /* @__PURE__ */ React25.createElement(import_session6.SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React25.createElement(SectionsList, null, elementType.controls.map((control, index) => {
|
|
2628
2641
|
if (isControl(control)) {
|
|
2629
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ React25.createElement(SettingsControl, { key: getKey(control, element), control });
|
|
2630
2643
|
}
|
|
2631
2644
|
const { type, value } = control;
|
|
2632
2645
|
if (type === "section") {
|
|
@@ -2639,7 +2652,7 @@ var SettingsTab = () => {
|
|
|
2639
2652
|
if (!sectionItems.length) {
|
|
2640
2653
|
return null;
|
|
2641
2654
|
}
|
|
2642
|
-
return /* @__PURE__ */
|
|
2655
|
+
return /* @__PURE__ */ React25.createElement(
|
|
2643
2656
|
Section,
|
|
2644
2657
|
{
|
|
2645
2658
|
title: value.label,
|
|
@@ -2674,7 +2687,7 @@ function renderSectionItems({
|
|
|
2674
2687
|
if (item.type === "control" && isControlHiddenByDependencies(item, propsSchema, settings)) {
|
|
2675
2688
|
return [];
|
|
2676
2689
|
}
|
|
2677
|
-
return [/* @__PURE__ */
|
|
2690
|
+
return [/* @__PURE__ */ React25.createElement(SettingsControl, { key: getKey(item, element), control: item })];
|
|
2678
2691
|
}) ?? [];
|
|
2679
2692
|
}
|
|
2680
2693
|
function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
@@ -2683,7 +2696,7 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2683
2696
|
}
|
|
2684
2697
|
|
|
2685
2698
|
// src/components/style-tab.tsx
|
|
2686
|
-
var
|
|
2699
|
+
var React89 = __toESM(require("react"));
|
|
2687
2700
|
var import_react37 = require("react");
|
|
2688
2701
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
2689
2702
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
@@ -2693,7 +2706,7 @@ var import_ui42 = require("@elementor/ui");
|
|
|
2693
2706
|
var import_i18n62 = require("@wordpress/i18n");
|
|
2694
2707
|
|
|
2695
2708
|
// src/contexts/styles-inheritance-context.tsx
|
|
2696
|
-
var
|
|
2709
|
+
var React26 = __toESM(require("react"));
|
|
2697
2710
|
var import_react19 = require("react");
|
|
2698
2711
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
2699
2712
|
var import_editor_props9 = require("@elementor/editor-props");
|
|
@@ -2931,7 +2944,7 @@ function StyleInheritanceProvider({ children }) {
|
|
|
2931
2944
|
const styleDefs = useAppliedStyles();
|
|
2932
2945
|
const breakpointsTree = (0, import_editor_responsive2.getBreakpointsTree)();
|
|
2933
2946
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
2934
|
-
return /* @__PURE__ */
|
|
2947
|
+
return /* @__PURE__ */ React26.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
2935
2948
|
}
|
|
2936
2949
|
function useStylesInheritanceSnapshot() {
|
|
2937
2950
|
const context = (0, import_react19.useContext)(Context4);
|
|
@@ -3014,12 +3027,12 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
3014
3027
|
}
|
|
3015
3028
|
|
|
3016
3029
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3017
|
-
var
|
|
3030
|
+
var React29 = __toESM(require("react"));
|
|
3018
3031
|
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
3019
3032
|
var import_i18n10 = require("@wordpress/i18n");
|
|
3020
3033
|
|
|
3021
3034
|
// src/controls-registry/styles-field.tsx
|
|
3022
|
-
var
|
|
3035
|
+
var React27 = __toESM(require("react"));
|
|
3023
3036
|
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
3024
3037
|
var import_editor_props11 = require("@elementor/editor-props");
|
|
3025
3038
|
var import_editor_styles6 = require("@elementor/editor-styles");
|
|
@@ -3164,7 +3177,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3164
3177
|
const setValue = (newValue) => {
|
|
3165
3178
|
fields.setValue(newValue[bind]);
|
|
3166
3179
|
};
|
|
3167
|
-
return /* @__PURE__ */
|
|
3180
|
+
return /* @__PURE__ */ React27.createElement(import_editor_controls6.ControlAdornmentsProvider, { items: getFieldIndicators("styles") }, /* @__PURE__ */ React27.createElement(
|
|
3168
3181
|
import_editor_controls6.PropProvider,
|
|
3169
3182
|
{
|
|
3170
3183
|
propType,
|
|
@@ -3173,12 +3186,12 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3173
3186
|
placeholder: placeholderValues,
|
|
3174
3187
|
isDisabled: () => !canEdit
|
|
3175
3188
|
},
|
|
3176
|
-
/* @__PURE__ */
|
|
3189
|
+
/* @__PURE__ */ React27.createElement(import_editor_controls6.PropKeyProvider, { bind }, /* @__PURE__ */ React27.createElement(ConditionalField, null, children))
|
|
3177
3190
|
));
|
|
3178
3191
|
};
|
|
3179
3192
|
|
|
3180
3193
|
// src/components/section-content.tsx
|
|
3181
|
-
var
|
|
3194
|
+
var React28 = __toESM(require("react"));
|
|
3182
3195
|
var import_ui16 = require("@elementor/ui");
|
|
3183
3196
|
var SectionContent = ({
|
|
3184
3197
|
gap = 2,
|
|
@@ -3186,32 +3199,32 @@ var SectionContent = ({
|
|
|
3186
3199
|
children,
|
|
3187
3200
|
"aria-label": ariaLabel,
|
|
3188
3201
|
className
|
|
3189
|
-
}) => /* @__PURE__ */
|
|
3202
|
+
}) => /* @__PURE__ */ React28.createElement(import_ui16.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3190
3203
|
|
|
3191
3204
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3192
3205
|
var BACKGROUND_LABEL = (0, import_i18n10.__)("Background", "elementor");
|
|
3193
3206
|
var BackgroundSection = () => {
|
|
3194
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ React29.createElement(SectionContent, null, /* @__PURE__ */ React29.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React29.createElement(import_editor_controls7.BackgroundControl, null)));
|
|
3195
3208
|
};
|
|
3196
3209
|
|
|
3197
3210
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3198
|
-
var
|
|
3211
|
+
var React36 = __toESM(require("react"));
|
|
3199
3212
|
|
|
3200
3213
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3201
|
-
var
|
|
3214
|
+
var React31 = __toESM(require("react"));
|
|
3202
3215
|
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
3203
3216
|
var import_i18n11 = require("@wordpress/i18n");
|
|
3204
3217
|
|
|
3205
3218
|
// src/components/styles-field-layout.tsx
|
|
3206
|
-
var
|
|
3219
|
+
var React30 = __toESM(require("react"));
|
|
3207
3220
|
var import_ui17 = require("@elementor/ui");
|
|
3208
|
-
var StylesFieldLayout =
|
|
3221
|
+
var StylesFieldLayout = React30.forwardRef((props, ref) => {
|
|
3209
3222
|
const { direction = "row", children, label, infoTooltip } = props;
|
|
3210
3223
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3211
|
-
return /* @__PURE__ */
|
|
3224
|
+
return /* @__PURE__ */ React30.createElement(LayoutComponent, { label, infoTooltip, ref, children });
|
|
3212
3225
|
});
|
|
3213
|
-
var Row =
|
|
3214
|
-
return /* @__PURE__ */
|
|
3226
|
+
var Row = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3227
|
+
return /* @__PURE__ */ React30.createElement(import_ui17.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref, "aria-label": `${label} control` }, /* @__PURE__ */ React30.createElement(import_ui17.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React30.createElement(ControlLabel, { infoTooltip }, label)), /* @__PURE__ */ React30.createElement(
|
|
3215
3228
|
import_ui17.Grid,
|
|
3216
3229
|
{
|
|
3217
3230
|
item: true,
|
|
@@ -3223,16 +3236,16 @@ var Row = React29.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
|
3223
3236
|
children
|
|
3224
3237
|
));
|
|
3225
3238
|
});
|
|
3226
|
-
var Column =
|
|
3227
|
-
return /* @__PURE__ */
|
|
3239
|
+
var Column = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3240
|
+
return /* @__PURE__ */ React30.createElement(import_ui17.Stack, { gap: 0.75, ref }, /* @__PURE__ */ React30.createElement(ControlLabel, { infoTooltip }, label), children);
|
|
3228
3241
|
});
|
|
3229
3242
|
|
|
3230
3243
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3231
3244
|
var BORDER_COLOR_LABEL = (0, import_i18n11.__)("Border color", "elementor");
|
|
3232
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3245
|
+
var BorderColorField = () => /* @__PURE__ */ React31.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(import_editor_controls8.ColorControl, null)));
|
|
3233
3246
|
|
|
3234
3247
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3235
|
-
var
|
|
3248
|
+
var React33 = __toESM(require("react"));
|
|
3236
3249
|
var import_editor_controls9 = require("@elementor/editor-controls");
|
|
3237
3250
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
3238
3251
|
var import_icons5 = require("@elementor/icons");
|
|
@@ -3249,11 +3262,11 @@ function useDirection() {
|
|
|
3249
3262
|
}
|
|
3250
3263
|
|
|
3251
3264
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3252
|
-
var
|
|
3265
|
+
var React32 = __toESM(require("react"));
|
|
3253
3266
|
var import_ui19 = require("@elementor/ui");
|
|
3254
3267
|
var UiProviders = ({ children }) => {
|
|
3255
3268
|
const { isSiteRtl } = useDirection();
|
|
3256
|
-
return /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ React32.createElement(import_ui19.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React32.createElement(import_ui19.ThemeProvider, null, children));
|
|
3257
3270
|
};
|
|
3258
3271
|
|
|
3259
3272
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
@@ -3274,36 +3287,36 @@ var getCorners = (isSiteRtl) => [
|
|
|
3274
3287
|
{
|
|
3275
3288
|
label: getStartStartLabel(isSiteRtl),
|
|
3276
3289
|
ariaLabel: getStartStartAriaLabel(isSiteRtl),
|
|
3277
|
-
icon: /* @__PURE__ */
|
|
3290
|
+
icon: /* @__PURE__ */ React33.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3278
3291
|
bind: "start-start"
|
|
3279
3292
|
},
|
|
3280
3293
|
{
|
|
3281
3294
|
label: getStartEndLabel(isSiteRtl),
|
|
3282
3295
|
ariaLabel: getStartEndAriaLabel(isSiteRtl),
|
|
3283
|
-
icon: /* @__PURE__ */
|
|
3296
|
+
icon: /* @__PURE__ */ React33.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3284
3297
|
bind: "start-end"
|
|
3285
3298
|
},
|
|
3286
3299
|
{
|
|
3287
3300
|
label: getEndStartLabel(isSiteRtl),
|
|
3288
3301
|
ariaLabel: getEndStartAriaLabel(isSiteRtl),
|
|
3289
|
-
icon: /* @__PURE__ */
|
|
3302
|
+
icon: /* @__PURE__ */ React33.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3290
3303
|
bind: "end-start"
|
|
3291
3304
|
},
|
|
3292
3305
|
{
|
|
3293
3306
|
label: getEndEndLabel(isSiteRtl),
|
|
3294
3307
|
ariaLabel: getEndEndAriaLabel(isSiteRtl),
|
|
3295
|
-
icon: /* @__PURE__ */
|
|
3308
|
+
icon: /* @__PURE__ */ React33.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3296
3309
|
bind: "end-end"
|
|
3297
3310
|
}
|
|
3298
3311
|
];
|
|
3299
3312
|
var BorderRadiusField = () => {
|
|
3300
3313
|
const { isSiteRtl } = useDirection();
|
|
3301
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ React33.createElement(UiProviders, null, /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React33.createElement(
|
|
3302
3315
|
import_editor_controls9.EqualUnequalSizesControl,
|
|
3303
3316
|
{
|
|
3304
3317
|
items: getCorners(isSiteRtl),
|
|
3305
3318
|
label: BORDER_RADIUS_LABEL,
|
|
3306
|
-
icon: /* @__PURE__ */
|
|
3319
|
+
icon: /* @__PURE__ */ React33.createElement(import_icons5.BorderCornersIcon, { fontSize: "tiny" }),
|
|
3307
3320
|
tooltipLabel: (0, import_i18n12.__)("Adjust corners", "elementor"),
|
|
3308
3321
|
multiSizePropTypeUtil: import_editor_props12.borderRadiusPropTypeUtil
|
|
3309
3322
|
}
|
|
@@ -3311,7 +3324,7 @@ var BorderRadiusField = () => {
|
|
|
3311
3324
|
};
|
|
3312
3325
|
|
|
3313
3326
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3314
|
-
var
|
|
3327
|
+
var React34 = __toESM(require("react"));
|
|
3315
3328
|
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
3316
3329
|
var import_i18n13 = require("@wordpress/i18n");
|
|
3317
3330
|
var BORDER_TYPE_LABEL = (0, import_i18n13.__)("Border type", "elementor");
|
|
@@ -3326,10 +3339,10 @@ var borderStyles = [
|
|
|
3326
3339
|
{ value: "inset", label: (0, import_i18n13.__)("Inset", "elementor") },
|
|
3327
3340
|
{ value: "outset", label: (0, import_i18n13.__)("Outset", "elementor") }
|
|
3328
3341
|
];
|
|
3329
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3342
|
+
var BorderStyleField = () => /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(import_editor_controls10.SelectControl, { options: borderStyles })));
|
|
3330
3343
|
|
|
3331
3344
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3332
|
-
var
|
|
3345
|
+
var React35 = __toESM(require("react"));
|
|
3333
3346
|
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
3334
3347
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3335
3348
|
var import_icons6 = require("@elementor/icons");
|
|
@@ -3342,36 +3355,36 @@ var getEdges = (isSiteRtl) => [
|
|
|
3342
3355
|
{
|
|
3343
3356
|
label: (0, import_i18n14.__)("Top", "elementor"),
|
|
3344
3357
|
ariaLabel: (0, import_i18n14.__)("Border top width", "elementor"),
|
|
3345
|
-
icon: /* @__PURE__ */
|
|
3358
|
+
icon: /* @__PURE__ */ React35.createElement(import_icons6.SideTopIcon, { fontSize: "tiny" }),
|
|
3346
3359
|
bind: "block-start"
|
|
3347
3360
|
},
|
|
3348
3361
|
{
|
|
3349
3362
|
label: isSiteRtl ? (0, import_i18n14.__)("Left", "elementor") : (0, import_i18n14.__)("Right", "elementor"),
|
|
3350
3363
|
ariaLabel: isSiteRtl ? (0, import_i18n14.__)("Border left width", "elementor") : (0, import_i18n14.__)("Border right width", "elementor"),
|
|
3351
|
-
icon: /* @__PURE__ */
|
|
3364
|
+
icon: /* @__PURE__ */ React35.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3352
3365
|
bind: "inline-end"
|
|
3353
3366
|
},
|
|
3354
3367
|
{
|
|
3355
3368
|
label: (0, import_i18n14.__)("Bottom", "elementor"),
|
|
3356
3369
|
ariaLabel: (0, import_i18n14.__)("Border bottom width", "elementor"),
|
|
3357
|
-
icon: /* @__PURE__ */
|
|
3370
|
+
icon: /* @__PURE__ */ React35.createElement(import_icons6.SideBottomIcon, { fontSize: "tiny" }),
|
|
3358
3371
|
bind: "block-end"
|
|
3359
3372
|
},
|
|
3360
3373
|
{
|
|
3361
3374
|
label: isSiteRtl ? (0, import_i18n14.__)("Right", "elementor") : (0, import_i18n14.__)("Left", "elementor"),
|
|
3362
3375
|
ariaLabel: isSiteRtl ? (0, import_i18n14.__)("Border right width", "elementor") : (0, import_i18n14.__)("Border left width", "elementor"),
|
|
3363
|
-
icon: /* @__PURE__ */
|
|
3376
|
+
icon: /* @__PURE__ */ React35.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3364
3377
|
bind: "inline-start"
|
|
3365
3378
|
}
|
|
3366
3379
|
];
|
|
3367
3380
|
var BorderWidthField = () => {
|
|
3368
3381
|
const { isSiteRtl } = useDirection();
|
|
3369
|
-
return /* @__PURE__ */
|
|
3382
|
+
return /* @__PURE__ */ React35.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React35.createElement(
|
|
3370
3383
|
import_editor_controls11.EqualUnequalSizesControl,
|
|
3371
3384
|
{
|
|
3372
3385
|
items: getEdges(isSiteRtl),
|
|
3373
3386
|
label: BORDER_WIDTH_LABEL,
|
|
3374
|
-
icon: /* @__PURE__ */
|
|
3387
|
+
icon: /* @__PURE__ */ React35.createElement(import_icons6.SideAllIcon, { fontSize: "tiny" }),
|
|
3375
3388
|
tooltipLabel: (0, import_i18n14.__)("Adjust borders", "elementor"),
|
|
3376
3389
|
multiSizePropTypeUtil: import_editor_props13.borderWidthPropTypeUtil
|
|
3377
3390
|
}
|
|
@@ -3379,10 +3392,10 @@ var BorderWidthField = () => {
|
|
|
3379
3392
|
};
|
|
3380
3393
|
|
|
3381
3394
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3382
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3395
|
+
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));
|
|
3383
3396
|
|
|
3384
3397
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3385
|
-
var
|
|
3398
|
+
var React40 = __toESM(require("react"));
|
|
3386
3399
|
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
3387
3400
|
var import_i18n17 = require("@wordpress/i18n");
|
|
3388
3401
|
|
|
@@ -3425,12 +3438,12 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3425
3438
|
};
|
|
3426
3439
|
|
|
3427
3440
|
// src/components/panel-divider.tsx
|
|
3428
|
-
var
|
|
3441
|
+
var React37 = __toESM(require("react"));
|
|
3429
3442
|
var import_ui22 = require("@elementor/ui");
|
|
3430
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3443
|
+
var PanelDivider = () => /* @__PURE__ */ React37.createElement(import_ui22.Divider, { sx: { my: 0.5 } });
|
|
3431
3444
|
|
|
3432
3445
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3433
|
-
var
|
|
3446
|
+
var React38 = __toESM(require("react"));
|
|
3434
3447
|
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
3435
3448
|
var import_i18n15 = require("@wordpress/i18n");
|
|
3436
3449
|
var BLEND_MODE_LABEL = (0, import_i18n15.__)("Blend mode", "elementor");
|
|
@@ -3453,18 +3466,18 @@ var blendModeOptions = [
|
|
|
3453
3466
|
{ label: (0, import_i18n15.__)("Hard light", "elementor"), value: "hard-light" }
|
|
3454
3467
|
];
|
|
3455
3468
|
var BlendModeField = () => {
|
|
3456
|
-
return /* @__PURE__ */
|
|
3469
|
+
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(import_editor_controls12.SelectControl, { options: blendModeOptions })));
|
|
3457
3470
|
};
|
|
3458
3471
|
|
|
3459
3472
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3460
|
-
var
|
|
3473
|
+
var React39 = __toESM(require("react"));
|
|
3461
3474
|
var import_react21 = require("react");
|
|
3462
3475
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3463
3476
|
var import_i18n16 = require("@wordpress/i18n");
|
|
3464
3477
|
var OPACITY_LABEL = (0, import_i18n16.__)("Opacity", "elementor");
|
|
3465
3478
|
var OpacityControlField = () => {
|
|
3466
3479
|
const rowRef = (0, import_react21.useRef)(null);
|
|
3467
|
-
return /* @__PURE__ */
|
|
3480
|
+
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls13.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3468
3481
|
};
|
|
3469
3482
|
|
|
3470
3483
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
@@ -3477,17 +3490,17 @@ var EffectsSection = () => {
|
|
|
3477
3490
|
const { element } = useElement();
|
|
3478
3491
|
const { meta } = useStyle();
|
|
3479
3492
|
const canHaveChildren = canElementHaveChildren(element?.id ?? "");
|
|
3480
|
-
return /* @__PURE__ */
|
|
3493
|
+
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(import_editor_controls14.BoxShadowRepeaterControl, null)), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React40.createElement(import_editor_controls14.TransformRepeaterControl, { showChildrenPerspective: canHaveChildren })), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React40.createElement(
|
|
3481
3494
|
import_editor_controls14.TransitionRepeaterControl,
|
|
3482
3495
|
{
|
|
3483
3496
|
currentStyleState: meta.state,
|
|
3484
3497
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3485
3498
|
}
|
|
3486
|
-
)), /* @__PURE__ */
|
|
3499
|
+
)), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React40.createElement(import_editor_controls14.FilterRepeaterControl, null)), /* @__PURE__ */ React40.createElement(PanelDivider, null), /* @__PURE__ */ React40.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React40.createElement(import_editor_controls14.FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3487
3500
|
};
|
|
3488
3501
|
|
|
3489
3502
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3490
|
-
var
|
|
3503
|
+
var React61 = __toESM(require("react"));
|
|
3491
3504
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
3492
3505
|
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3493
3506
|
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
@@ -3518,11 +3531,11 @@ function useComputedStyle(elementId) {
|
|
|
3518
3531
|
}
|
|
3519
3532
|
|
|
3520
3533
|
// src/components/style-tab-collapsible-content.tsx
|
|
3521
|
-
var
|
|
3534
|
+
var React42 = __toESM(require("react"));
|
|
3522
3535
|
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
3523
3536
|
|
|
3524
3537
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
3525
|
-
var
|
|
3538
|
+
var React41 = __toESM(require("react"));
|
|
3526
3539
|
var import_editor_styles_repository17 = require("@elementor/editor-styles-repository");
|
|
3527
3540
|
var import_ui23 = require("@elementor/ui");
|
|
3528
3541
|
var import_i18n18 = require("@wordpress/i18n");
|
|
@@ -3530,7 +3543,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3530
3543
|
const { id, meta, provider } = useStyle();
|
|
3531
3544
|
const snapshot = useStylesInheritanceSnapshot();
|
|
3532
3545
|
if (fields.includes("custom_css")) {
|
|
3533
|
-
return /* @__PURE__ */
|
|
3546
|
+
return /* @__PURE__ */ React41.createElement(CustomCssIndicator, null);
|
|
3534
3547
|
}
|
|
3535
3548
|
const snapshotFields = Object.fromEntries(
|
|
3536
3549
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -3541,7 +3554,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3541
3554
|
}
|
|
3542
3555
|
const hasValueLabel = (0, import_i18n18.__)("Has effective styles", "elementor");
|
|
3543
3556
|
const hasOverridesLabel = (0, import_i18n18.__)("Has overridden styles", "elementor");
|
|
3544
|
-
return /* @__PURE__ */
|
|
3557
|
+
return /* @__PURE__ */ React41.createElement(import_ui23.Tooltip, { title: (0, import_i18n18.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React41.createElement(import_ui23.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React41.createElement(
|
|
3545
3558
|
StyleIndicator,
|
|
3546
3559
|
{
|
|
3547
3560
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -3549,7 +3562,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3549
3562
|
role: "listitem",
|
|
3550
3563
|
"aria-label": hasValueLabel
|
|
3551
3564
|
}
|
|
3552
|
-
), hasOverrides && /* @__PURE__ */
|
|
3565
|
+
), hasOverrides && /* @__PURE__ */ React41.createElement(
|
|
3553
3566
|
StyleIndicator,
|
|
3554
3567
|
{
|
|
3555
3568
|
isOverridden: true,
|
|
@@ -3589,24 +3602,24 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
3589
3602
|
|
|
3590
3603
|
// src/components/style-tab-collapsible-content.tsx
|
|
3591
3604
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
3592
|
-
return /* @__PURE__ */
|
|
3605
|
+
return /* @__PURE__ */ React42.createElement(import_editor_ui6.CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
3593
3606
|
};
|
|
3594
3607
|
function getStylesInheritanceIndicators(fields) {
|
|
3595
3608
|
if (fields.length === 0) {
|
|
3596
3609
|
return null;
|
|
3597
3610
|
}
|
|
3598
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
3611
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React42.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
3599
3612
|
}
|
|
3600
3613
|
|
|
3601
3614
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3602
|
-
var
|
|
3615
|
+
var React44 = __toESM(require("react"));
|
|
3603
3616
|
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
3604
3617
|
var import_icons7 = require("@elementor/icons");
|
|
3605
3618
|
var import_ui25 = require("@elementor/ui");
|
|
3606
3619
|
var import_i18n20 = require("@wordpress/i18n");
|
|
3607
3620
|
|
|
3608
3621
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3609
|
-
var
|
|
3622
|
+
var React43 = __toESM(require("react"));
|
|
3610
3623
|
var import_react22 = require("react");
|
|
3611
3624
|
var import_ui24 = require("@elementor/ui");
|
|
3612
3625
|
var import_i18n19 = require("@wordpress/i18n");
|
|
@@ -3632,7 +3645,7 @@ var RotatedIcon = ({
|
|
|
3632
3645
|
}) => {
|
|
3633
3646
|
const rotate = (0, import_react22.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3634
3647
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3635
|
-
return /* @__PURE__ */
|
|
3648
|
+
return /* @__PURE__ */ React43.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3636
3649
|
};
|
|
3637
3650
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3638
3651
|
const { value: direction } = useStylesField("flex-direction", {
|
|
@@ -3665,44 +3678,44 @@ var options = [
|
|
|
3665
3678
|
{
|
|
3666
3679
|
value: "start",
|
|
3667
3680
|
label: (0, import_i18n20.__)("Start", "elementor"),
|
|
3668
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3681
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3669
3682
|
showTooltip: true
|
|
3670
3683
|
},
|
|
3671
3684
|
{
|
|
3672
3685
|
value: "center",
|
|
3673
3686
|
label: (0, import_i18n20.__)("Center", "elementor"),
|
|
3674
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3687
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifyCenterIcon, size, ...iconProps }),
|
|
3675
3688
|
showTooltip: true
|
|
3676
3689
|
},
|
|
3677
3690
|
{
|
|
3678
3691
|
value: "end",
|
|
3679
3692
|
label: (0, import_i18n20.__)("End", "elementor"),
|
|
3680
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3693
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3681
3694
|
showTooltip: true
|
|
3682
3695
|
},
|
|
3683
3696
|
{
|
|
3684
3697
|
value: "space-between",
|
|
3685
3698
|
label: (0, import_i18n20.__)("Space between", "elementor"),
|
|
3686
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3699
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
3687
3700
|
showTooltip: true
|
|
3688
3701
|
},
|
|
3689
3702
|
{
|
|
3690
3703
|
value: "space-around",
|
|
3691
3704
|
label: (0, import_i18n20.__)("Space around", "elementor"),
|
|
3692
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3705
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
3693
3706
|
showTooltip: true
|
|
3694
3707
|
},
|
|
3695
3708
|
{
|
|
3696
3709
|
value: "space-evenly",
|
|
3697
3710
|
label: (0, import_i18n20.__)("Space evenly", "elementor"),
|
|
3698
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3711
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
3699
3712
|
showTooltip: true
|
|
3700
3713
|
}
|
|
3701
3714
|
];
|
|
3702
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3715
|
+
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(import_editor_controls15.ToggleControl, { options, fullWidth: true }))));
|
|
3703
3716
|
|
|
3704
3717
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3705
|
-
var
|
|
3718
|
+
var React45 = __toESM(require("react"));
|
|
3706
3719
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
3707
3720
|
var import_icons8 = require("@elementor/icons");
|
|
3708
3721
|
var import_ui26 = require("@elementor/ui");
|
|
@@ -3718,34 +3731,34 @@ var options2 = [
|
|
|
3718
3731
|
{
|
|
3719
3732
|
value: "start",
|
|
3720
3733
|
label: (0, import_i18n21.__)("Start", "elementor"),
|
|
3721
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3734
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3722
3735
|
showTooltip: true
|
|
3723
3736
|
},
|
|
3724
3737
|
{
|
|
3725
3738
|
value: "center",
|
|
3726
3739
|
label: (0, import_i18n21.__)("Center", "elementor"),
|
|
3727
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3740
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
3728
3741
|
showTooltip: true
|
|
3729
3742
|
},
|
|
3730
3743
|
{
|
|
3731
3744
|
value: "end",
|
|
3732
3745
|
label: (0, import_i18n21.__)("End", "elementor"),
|
|
3733
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3746
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3734
3747
|
showTooltip: true
|
|
3735
3748
|
},
|
|
3736
3749
|
{
|
|
3737
3750
|
value: "stretch",
|
|
3738
3751
|
label: (0, import_i18n21.__)("Stretch", "elementor"),
|
|
3739
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3752
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
3740
3753
|
showTooltip: true
|
|
3741
3754
|
}
|
|
3742
3755
|
];
|
|
3743
3756
|
var AlignItemsField = () => {
|
|
3744
|
-
return /* @__PURE__ */
|
|
3757
|
+
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(import_editor_controls16.ToggleControl, { options: options2 }))));
|
|
3745
3758
|
};
|
|
3746
3759
|
|
|
3747
3760
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3748
|
-
var
|
|
3761
|
+
var React46 = __toESM(require("react"));
|
|
3749
3762
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3750
3763
|
var import_icons9 = require("@elementor/icons");
|
|
3751
3764
|
var import_ui27 = require("@elementor/ui");
|
|
@@ -3766,7 +3779,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3766
3779
|
{
|
|
3767
3780
|
value: "start",
|
|
3768
3781
|
label: (0, import_i18n22.__)("Start", "elementor"),
|
|
3769
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3782
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3770
3783
|
RotatedIcon,
|
|
3771
3784
|
{
|
|
3772
3785
|
icon: StartIcon3,
|
|
@@ -3780,7 +3793,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3780
3793
|
{
|
|
3781
3794
|
value: "center",
|
|
3782
3795
|
label: (0, import_i18n22.__)("Center", "elementor"),
|
|
3783
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3796
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3784
3797
|
RotatedIcon,
|
|
3785
3798
|
{
|
|
3786
3799
|
icon: import_icons9.LayoutAlignCenterIcon,
|
|
@@ -3794,7 +3807,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3794
3807
|
{
|
|
3795
3808
|
value: "end",
|
|
3796
3809
|
label: (0, import_i18n22.__)("End", "elementor"),
|
|
3797
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3810
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3798
3811
|
RotatedIcon,
|
|
3799
3812
|
{
|
|
3800
3813
|
icon: EndIcon3,
|
|
@@ -3808,7 +3821,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3808
3821
|
{
|
|
3809
3822
|
value: "stretch",
|
|
3810
3823
|
label: (0, import_i18n22.__)("Stretch", "elementor"),
|
|
3811
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3824
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3812
3825
|
RotatedIcon,
|
|
3813
3826
|
{
|
|
3814
3827
|
icon: import_icons9.LayoutDistributeVerticalIcon,
|
|
@@ -3820,10 +3833,10 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3820
3833
|
showTooltip: true
|
|
3821
3834
|
}
|
|
3822
3835
|
];
|
|
3823
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3836
|
+
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(import_editor_controls17.ToggleControl, { options: getOptions(parentStyleDirection) }))));
|
|
3824
3837
|
|
|
3825
3838
|
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3826
|
-
var
|
|
3839
|
+
var React47 = __toESM(require("react"));
|
|
3827
3840
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3828
3841
|
var import_icons10 = require("@elementor/icons");
|
|
3829
3842
|
var import_i18n23 = require("@wordpress/i18n");
|
|
@@ -3832,44 +3845,44 @@ var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
|
3832
3845
|
row: 0,
|
|
3833
3846
|
column: -90
|
|
3834
3847
|
};
|
|
3835
|
-
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3848
|
+
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(import_editor_controls18.ToggleControl, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3836
3849
|
var RotatedIcon2 = ({
|
|
3837
3850
|
icon: Icon,
|
|
3838
3851
|
size,
|
|
3839
3852
|
offset
|
|
3840
|
-
}) => /* @__PURE__ */
|
|
3853
|
+
}) => /* @__PURE__ */ React47.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3841
3854
|
var getOptions2 = (parentStyleDirection) => {
|
|
3842
3855
|
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3843
3856
|
return [
|
|
3844
3857
|
{
|
|
3845
3858
|
value: "start",
|
|
3846
3859
|
label: (0, import_i18n23.__)("Start", "elementor"),
|
|
3847
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3860
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.JustifyTopIcon, size, offset }),
|
|
3848
3861
|
showTooltip: true
|
|
3849
3862
|
},
|
|
3850
3863
|
{
|
|
3851
3864
|
value: "center",
|
|
3852
3865
|
label: (0, import_i18n23.__)("Center", "elementor"),
|
|
3853
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3866
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.JustifyCenterIcon, size, offset }),
|
|
3854
3867
|
showTooltip: true
|
|
3855
3868
|
},
|
|
3856
3869
|
{
|
|
3857
3870
|
value: "end",
|
|
3858
3871
|
label: (0, import_i18n23.__)("End", "elementor"),
|
|
3859
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3872
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.JustifyBottomIcon, size, offset }),
|
|
3860
3873
|
showTooltip: true
|
|
3861
3874
|
},
|
|
3862
3875
|
{
|
|
3863
3876
|
value: "stretch",
|
|
3864
3877
|
label: (0, import_i18n23.__)("Stretch", "elementor"),
|
|
3865
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3878
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.LayoutDistributeVerticalIcon, size, offset }),
|
|
3866
3879
|
showTooltip: true
|
|
3867
3880
|
}
|
|
3868
3881
|
];
|
|
3869
3882
|
};
|
|
3870
3883
|
|
|
3871
3884
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3872
|
-
var
|
|
3885
|
+
var React48 = __toESM(require("react"));
|
|
3873
3886
|
var import_react23 = require("react");
|
|
3874
3887
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3875
3888
|
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
@@ -3920,12 +3933,12 @@ var DisplayField = () => {
|
|
|
3920
3933
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3921
3934
|
[isGridActive]
|
|
3922
3935
|
);
|
|
3923
|
-
return /* @__PURE__ */
|
|
3936
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React48.createElement(import_editor_controls19.ToggleControl, { options: items3, maxItems: 4, fullWidth: true })));
|
|
3924
3937
|
};
|
|
3925
3938
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3926
3939
|
|
|
3927
3940
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3928
|
-
var
|
|
3941
|
+
var React49 = __toESM(require("react"));
|
|
3929
3942
|
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
3930
3943
|
var import_icons11 = require("@elementor/icons");
|
|
3931
3944
|
var import_ui28 = require("@elementor/ui");
|
|
@@ -3937,14 +3950,14 @@ var options3 = [
|
|
|
3937
3950
|
label: (0, import_i18n25.__)("Row", "elementor"),
|
|
3938
3951
|
renderContent: ({ size }) => {
|
|
3939
3952
|
const StartIcon7 = (0, import_ui28.withDirection)(import_icons11.ArrowRightIcon);
|
|
3940
|
-
return /* @__PURE__ */
|
|
3953
|
+
return /* @__PURE__ */ React49.createElement(StartIcon7, { fontSize: size });
|
|
3941
3954
|
},
|
|
3942
3955
|
showTooltip: true
|
|
3943
3956
|
},
|
|
3944
3957
|
{
|
|
3945
3958
|
value: "column",
|
|
3946
3959
|
label: (0, import_i18n25.__)("Column", "elementor"),
|
|
3947
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3960
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
|
|
3948
3961
|
showTooltip: true
|
|
3949
3962
|
},
|
|
3950
3963
|
{
|
|
@@ -3952,23 +3965,23 @@ var options3 = [
|
|
|
3952
3965
|
label: (0, import_i18n25.__)("Reversed row", "elementor"),
|
|
3953
3966
|
renderContent: ({ size }) => {
|
|
3954
3967
|
const EndIcon6 = (0, import_ui28.withDirection)(import_icons11.ArrowLeftIcon);
|
|
3955
|
-
return /* @__PURE__ */
|
|
3968
|
+
return /* @__PURE__ */ React49.createElement(EndIcon6, { fontSize: size });
|
|
3956
3969
|
},
|
|
3957
3970
|
showTooltip: true
|
|
3958
3971
|
},
|
|
3959
3972
|
{
|
|
3960
3973
|
value: "column-reverse",
|
|
3961
3974
|
label: (0, import_i18n25.__)("Reversed column", "elementor"),
|
|
3962
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3975
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
|
|
3963
3976
|
showTooltip: true
|
|
3964
3977
|
}
|
|
3965
3978
|
];
|
|
3966
3979
|
var FlexDirectionField = () => {
|
|
3967
|
-
return /* @__PURE__ */
|
|
3980
|
+
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(import_editor_controls20.ToggleControl, { options: options3 }))));
|
|
3968
3981
|
};
|
|
3969
3982
|
|
|
3970
3983
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3971
|
-
var
|
|
3984
|
+
var React50 = __toESM(require("react"));
|
|
3972
3985
|
var import_react24 = require("react");
|
|
3973
3986
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3974
3987
|
var import_icons12 = require("@elementor/icons");
|
|
@@ -3988,24 +4001,24 @@ var items = [
|
|
|
3988
4001
|
{
|
|
3989
4002
|
value: FIRST,
|
|
3990
4003
|
label: (0, import_i18n26.__)("First", "elementor"),
|
|
3991
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4004
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
3992
4005
|
showTooltip: true
|
|
3993
4006
|
},
|
|
3994
4007
|
{
|
|
3995
4008
|
value: LAST,
|
|
3996
4009
|
label: (0, import_i18n26.__)("Last", "elementor"),
|
|
3997
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4010
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
3998
4011
|
showTooltip: true
|
|
3999
4012
|
},
|
|
4000
4013
|
{
|
|
4001
4014
|
value: CUSTOM,
|
|
4002
4015
|
label: (0, import_i18n26.__)("Custom", "elementor"),
|
|
4003
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4016
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.PencilIcon, { fontSize: size }),
|
|
4004
4017
|
showTooltip: true
|
|
4005
4018
|
}
|
|
4006
4019
|
];
|
|
4007
4020
|
var FlexOrderField = () => {
|
|
4008
|
-
return /* @__PURE__ */
|
|
4021
|
+
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))));
|
|
4009
4022
|
};
|
|
4010
4023
|
function FlexOrderFieldContent() {
|
|
4011
4024
|
const {
|
|
@@ -4050,7 +4063,7 @@ function FlexOrderFieldContent() {
|
|
|
4050
4063
|
};
|
|
4051
4064
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
4052
4065
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
4053
|
-
return /* @__PURE__ */
|
|
4066
|
+
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React50.createElement(
|
|
4054
4067
|
import_editor_controls21.ControlToggleButtonGroup,
|
|
4055
4068
|
{
|
|
4056
4069
|
items,
|
|
@@ -4060,7 +4073,7 @@ function FlexOrderFieldContent() {
|
|
|
4060
4073
|
placeholder: groupPlaceholder,
|
|
4061
4074
|
disabled: !canEdit
|
|
4062
4075
|
}
|
|
4063
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4076
|
+
)), isCustomVisible && /* @__PURE__ */ React50.createElement(import_ui29.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, (0, import_i18n26.__)("Custom order", "elementor"))), /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React50.createElement(
|
|
4064
4077
|
import_editor_controls21.NumberControl,
|
|
4065
4078
|
{
|
|
4066
4079
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4084,7 +4097,7 @@ var getGroupControlValue = (order) => {
|
|
|
4084
4097
|
};
|
|
4085
4098
|
|
|
4086
4099
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
4087
|
-
var
|
|
4100
|
+
var React51 = __toESM(require("react"));
|
|
4088
4101
|
var import_react25 = require("react");
|
|
4089
4102
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
4090
4103
|
var import_editor_props14 = require("@elementor/editor-props");
|
|
@@ -4096,24 +4109,24 @@ var items2 = [
|
|
|
4096
4109
|
{
|
|
4097
4110
|
value: "flex-grow",
|
|
4098
4111
|
label: (0, import_i18n27.__)("Grow", "elementor"),
|
|
4099
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4112
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.ExpandIcon, { fontSize: size }),
|
|
4100
4113
|
showTooltip: true
|
|
4101
4114
|
},
|
|
4102
4115
|
{
|
|
4103
4116
|
value: "flex-shrink",
|
|
4104
4117
|
label: (0, import_i18n27.__)("Shrink", "elementor"),
|
|
4105
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4118
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.ShrinkIcon, { fontSize: size }),
|
|
4106
4119
|
showTooltip: true
|
|
4107
4120
|
},
|
|
4108
4121
|
{
|
|
4109
4122
|
value: "custom",
|
|
4110
4123
|
label: (0, import_i18n27.__)("Custom", "elementor"),
|
|
4111
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4124
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
4112
4125
|
showTooltip: true
|
|
4113
4126
|
}
|
|
4114
4127
|
];
|
|
4115
4128
|
var FlexSizeField = () => {
|
|
4116
|
-
return /* @__PURE__ */
|
|
4129
|
+
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))));
|
|
4117
4130
|
};
|
|
4118
4131
|
var FlexSizeFieldContent = () => {
|
|
4119
4132
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -4142,7 +4155,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4142
4155
|
};
|
|
4143
4156
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4144
4157
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4145
|
-
return /* @__PURE__ */
|
|
4158
|
+
return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React51.createElement(
|
|
4146
4159
|
import_editor_controls22.ControlToggleButtonGroup,
|
|
4147
4160
|
{
|
|
4148
4161
|
value: activeGroup ?? null,
|
|
@@ -4152,7 +4165,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4152
4165
|
items: items2,
|
|
4153
4166
|
exclusive: true
|
|
4154
4167
|
}
|
|
4155
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4168
|
+
)), isCustomVisible && /* @__PURE__ */ React51.createElement(FlexCustomField, null));
|
|
4156
4169
|
};
|
|
4157
4170
|
function extractFlexValues(source) {
|
|
4158
4171
|
return {
|
|
@@ -4194,7 +4207,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4194
4207
|
var FlexCustomField = () => {
|
|
4195
4208
|
const flexBasisRowRef = (0, import_react25.useRef)(null);
|
|
4196
4209
|
const context = (0, import_editor_controls22.useBoundProp)(import_editor_props14.flexPropTypeUtil);
|
|
4197
|
-
return /* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ React51.createElement(import_editor_controls22.PropProvider, { ...context }, /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0, import_i18n27.__)("Grow", "elementor") }, /* @__PURE__ */ React51.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React51.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0, import_i18n27.__)("Shrink", "elementor") }, /* @__PURE__ */ React51.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React51.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0, import_i18n27.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React51.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React51.createElement(import_editor_controls22.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4198
4211
|
};
|
|
4199
4212
|
var getActiveGroup = ({
|
|
4200
4213
|
grow,
|
|
@@ -4218,16 +4231,16 @@ var getActiveGroup = ({
|
|
|
4218
4231
|
};
|
|
4219
4232
|
|
|
4220
4233
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4221
|
-
var
|
|
4234
|
+
var React52 = __toESM(require("react"));
|
|
4222
4235
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
4223
4236
|
var import_i18n28 = require("@wordpress/i18n");
|
|
4224
4237
|
var GAPS_LABEL = (0, import_i18n28.__)("Gaps", "elementor");
|
|
4225
4238
|
var GapControlField = () => {
|
|
4226
|
-
return /* @__PURE__ */
|
|
4239
|
+
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React52.createElement(import_editor_controls23.GapControl, { label: GAPS_LABEL }));
|
|
4227
4240
|
};
|
|
4228
4241
|
|
|
4229
4242
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
4230
|
-
var
|
|
4243
|
+
var React53 = __toESM(require("react"));
|
|
4231
4244
|
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
4232
4245
|
var import_icons14 = require("@elementor/icons");
|
|
4233
4246
|
var import_ui30 = require("@elementor/ui");
|
|
@@ -4239,13 +4252,13 @@ var directionOptions = [
|
|
|
4239
4252
|
{
|
|
4240
4253
|
value: "row",
|
|
4241
4254
|
label: (0, import_i18n29.__)("Row", "elementor"),
|
|
4242
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4255
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(StartIcon4, { fontSize: size }),
|
|
4243
4256
|
showTooltip: true
|
|
4244
4257
|
},
|
|
4245
4258
|
{
|
|
4246
4259
|
value: "column",
|
|
4247
4260
|
label: (0, import_i18n29.__)("Column", "elementor"),
|
|
4248
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4261
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons14.ArrowDownSmallIcon, { fontSize: size }),
|
|
4249
4262
|
showTooltip: true
|
|
4250
4263
|
}
|
|
4251
4264
|
];
|
|
@@ -4274,7 +4287,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4274
4287
|
const handleDenseToggle = () => {
|
|
4275
4288
|
setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
|
|
4276
4289
|
};
|
|
4277
|
-
return /* @__PURE__ */
|
|
4290
|
+
return /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React53.createElement(import_ui30.Grid, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React53.createElement(import_ui30.Grid, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React53.createElement(
|
|
4278
4291
|
import_editor_controls24.ControlToggleButtonGroup,
|
|
4279
4292
|
{
|
|
4280
4293
|
items: directionOptions,
|
|
@@ -4283,7 +4296,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4283
4296
|
exclusive: true,
|
|
4284
4297
|
fullWidth: true
|
|
4285
4298
|
}
|
|
4286
|
-
)), /* @__PURE__ */
|
|
4299
|
+
)), /* @__PURE__ */ React53.createElement(import_ui30.Grid, { item: true }, /* @__PURE__ */ React53.createElement(import_ui30.Tooltip, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React53.createElement(
|
|
4287
4300
|
import_ui30.ToggleButton,
|
|
4288
4301
|
{
|
|
4289
4302
|
value: "dense",
|
|
@@ -4292,13 +4305,13 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4292
4305
|
size: "tiny",
|
|
4293
4306
|
"aria-label": DENSE_LABEL
|
|
4294
4307
|
},
|
|
4295
|
-
/* @__PURE__ */
|
|
4308
|
+
/* @__PURE__ */ React53.createElement(import_icons14.LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4296
4309
|
)))));
|
|
4297
4310
|
};
|
|
4298
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4311
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React53.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(GridAutoFlowFieldContent, null)));
|
|
4299
4312
|
|
|
4300
4313
|
// src/components/style-sections/layout-section/grid-auto-track-fields.tsx
|
|
4301
|
-
var
|
|
4314
|
+
var React54 = __toESM(require("react"));
|
|
4302
4315
|
var import_react26 = require("react");
|
|
4303
4316
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
4304
4317
|
var import_ui31 = require("@elementor/ui");
|
|
@@ -4314,7 +4327,7 @@ var AUTO_COLUMNS_TOOLTIP = (0, import_i18n30.__)(
|
|
|
4314
4327
|
"Set the size for new columns created automatically when content exceeds the defined grid.",
|
|
4315
4328
|
"elementor"
|
|
4316
4329
|
);
|
|
4317
|
-
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */
|
|
4330
|
+
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */ React54.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { infoTooltip, label, ref: rowRef }, /* @__PURE__ */ React54.createElement(
|
|
4318
4331
|
import_editor_controls25.SizeControl,
|
|
4319
4332
|
{
|
|
4320
4333
|
enablePropTypeUnits: true,
|
|
@@ -4324,7 +4337,7 @@ var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__
|
|
|
4324
4337
|
)));
|
|
4325
4338
|
var GridAutoTrackFields = () => {
|
|
4326
4339
|
const rowRef = (0, import_react26.useRef)(null);
|
|
4327
|
-
return /* @__PURE__ */
|
|
4340
|
+
return /* @__PURE__ */ React54.createElement(import_ui31.Stack, { gap: 2, pt: 2, ref: rowRef }, /* @__PURE__ */ React54.createElement(
|
|
4328
4341
|
GridAutoTrackField,
|
|
4329
4342
|
{
|
|
4330
4343
|
bind: "grid-auto-rows",
|
|
@@ -4332,7 +4345,7 @@ var GridAutoTrackFields = () => {
|
|
|
4332
4345
|
label: AUTO_ROWS_LABEL,
|
|
4333
4346
|
rowRef
|
|
4334
4347
|
}
|
|
4335
|
-
), /* @__PURE__ */
|
|
4348
|
+
), /* @__PURE__ */ React54.createElement(
|
|
4336
4349
|
GridAutoTrackField,
|
|
4337
4350
|
{
|
|
4338
4351
|
bind: "grid-auto-columns",
|
|
@@ -4344,7 +4357,7 @@ var GridAutoTrackFields = () => {
|
|
|
4344
4357
|
};
|
|
4345
4358
|
|
|
4346
4359
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4347
|
-
var
|
|
4360
|
+
var React55 = __toESM(require("react"));
|
|
4348
4361
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
4349
4362
|
var import_icons15 = require("@elementor/icons");
|
|
4350
4363
|
var import_ui32 = require("@elementor/ui");
|
|
@@ -4356,41 +4369,41 @@ var options4 = [
|
|
|
4356
4369
|
{
|
|
4357
4370
|
value: "start",
|
|
4358
4371
|
label: (0, import_i18n31.__)("Start", "elementor"),
|
|
4359
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4372
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(StartIcon5, { fontSize: size }),
|
|
4360
4373
|
showTooltip: true
|
|
4361
4374
|
},
|
|
4362
4375
|
{
|
|
4363
4376
|
value: "center",
|
|
4364
4377
|
label: (0, import_i18n31.__)("Center", "elementor"),
|
|
4365
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4378
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons15.LayoutAlignCenterIcon, { fontSize: size }),
|
|
4366
4379
|
showTooltip: true
|
|
4367
4380
|
},
|
|
4368
4381
|
{
|
|
4369
4382
|
value: "end",
|
|
4370
4383
|
label: (0, import_i18n31.__)("End", "elementor"),
|
|
4371
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4384
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(EndIcon4, { fontSize: size }),
|
|
4372
4385
|
showTooltip: true
|
|
4373
4386
|
},
|
|
4374
4387
|
{
|
|
4375
4388
|
value: "stretch",
|
|
4376
4389
|
label: (0, import_i18n31.__)("Stretch", "elementor"),
|
|
4377
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4390
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons15.LayoutDistributeVerticalIcon, { fontSize: size }),
|
|
4378
4391
|
showTooltip: true
|
|
4379
4392
|
}
|
|
4380
4393
|
];
|
|
4381
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4394
|
+
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(import_editor_controls26.ToggleControl, { options: options4 }))));
|
|
4382
4395
|
|
|
4383
4396
|
// src/components/style-sections/layout-section/grid-outline-field.tsx
|
|
4384
|
-
var
|
|
4397
|
+
var React56 = __toESM(require("react"));
|
|
4385
4398
|
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
4386
4399
|
var import_i18n32 = require("@wordpress/i18n");
|
|
4387
4400
|
var GRID_OUTLINE_LABEL = (0, import_i18n32.__)("Show Grid Outline", "elementor");
|
|
4388
4401
|
var GridOutlineField = () => {
|
|
4389
|
-
return /* @__PURE__ */
|
|
4402
|
+
return /* @__PURE__ */ React56.createElement(SettingsField, { bind: "grid_outline", propDisplayName: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(import_editor_controls27.SwitchControl, null)));
|
|
4390
4403
|
};
|
|
4391
4404
|
|
|
4392
4405
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4393
|
-
var
|
|
4406
|
+
var React57 = __toESM(require("react"));
|
|
4394
4407
|
var import_react27 = require("react");
|
|
4395
4408
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
4396
4409
|
var import_ui33 = require("@elementor/ui");
|
|
@@ -4488,8 +4501,8 @@ var unitOf = (v, fallback = FR) => {
|
|
|
4488
4501
|
};
|
|
4489
4502
|
|
|
4490
4503
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4491
|
-
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */
|
|
4492
|
-
var GridTrackSizeInput = (0, import_editor_controls28.createControl)((props) => /* @__PURE__ */
|
|
4504
|
+
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */ React57.createElement(import_editor_controls28.ControlActions, null, children);
|
|
4505
|
+
var GridTrackSizeInput = (0, import_editor_controls28.createControl)((props) => /* @__PURE__ */ React57.createElement(
|
|
4493
4506
|
import_editor_controls28.SizeComponent,
|
|
4494
4507
|
{
|
|
4495
4508
|
units: UNITS,
|
|
@@ -4521,7 +4534,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4521
4534
|
}
|
|
4522
4535
|
setValue(toPropValue(next));
|
|
4523
4536
|
};
|
|
4524
|
-
return /* @__PURE__ */
|
|
4537
|
+
return /* @__PURE__ */ React57.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React57.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React57.createElement(
|
|
4525
4538
|
GridTrackSizeInput,
|
|
4526
4539
|
{
|
|
4527
4540
|
value: displayValue,
|
|
@@ -4531,22 +4544,22 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4531
4544
|
}
|
|
4532
4545
|
)));
|
|
4533
4546
|
};
|
|
4534
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4535
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4547
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React57.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4548
|
+
var GridSizeFields = () => /* @__PURE__ */ React57.createElement(import_ui33.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-columns", label: (0, import_i18n33.__)("Columns", "elementor") })), /* @__PURE__ */ React57.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-rows", label: (0, import_i18n33.__)("Rows", "elementor") })));
|
|
4536
4549
|
|
|
4537
4550
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4538
|
-
var
|
|
4551
|
+
var React58 = __toESM(require("react"));
|
|
4539
4552
|
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
4540
4553
|
var import_ui34 = require("@elementor/ui");
|
|
4541
4554
|
var import_i18n34 = require("@wordpress/i18n");
|
|
4542
4555
|
var GridSpanFieldContent = ({ label }) => {
|
|
4543
|
-
return /* @__PURE__ */
|
|
4556
|
+
return /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React58.createElement(import_editor_controls29.GridSpanControl, null));
|
|
4544
4557
|
};
|
|
4545
|
-
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4546
|
-
var GridSpanFields = () => /* @__PURE__ */
|
|
4558
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React58.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4559
|
+
var GridSpanFields = () => /* @__PURE__ */ React58.createElement(import_ui34.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-column", label: (0, import_i18n34.__)("Grid column", "elementor") })), /* @__PURE__ */ React58.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-row", label: (0, import_i18n34.__)("Grid row", "elementor") })));
|
|
4547
4560
|
|
|
4548
4561
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4549
|
-
var
|
|
4562
|
+
var React59 = __toESM(require("react"));
|
|
4550
4563
|
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
4551
4564
|
var import_icons16 = require("@elementor/icons");
|
|
4552
4565
|
var import_ui35 = require("@elementor/ui");
|
|
@@ -4562,44 +4575,44 @@ var options5 = [
|
|
|
4562
4575
|
{
|
|
4563
4576
|
value: "flex-start",
|
|
4564
4577
|
label: (0, import_i18n35.__)("Start", "elementor"),
|
|
4565
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4578
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4566
4579
|
showTooltip: true
|
|
4567
4580
|
},
|
|
4568
4581
|
{
|
|
4569
4582
|
value: "center",
|
|
4570
4583
|
label: (0, import_i18n35.__)("Center", "elementor"),
|
|
4571
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4584
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifyCenterIcon, size, ...iconProps4 }),
|
|
4572
4585
|
showTooltip: true
|
|
4573
4586
|
},
|
|
4574
4587
|
{
|
|
4575
4588
|
value: "flex-end",
|
|
4576
4589
|
label: (0, import_i18n35.__)("End", "elementor"),
|
|
4577
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4590
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4578
4591
|
showTooltip: true
|
|
4579
4592
|
},
|
|
4580
4593
|
{
|
|
4581
4594
|
value: "space-between",
|
|
4582
4595
|
label: (0, import_i18n35.__)("Space between", "elementor"),
|
|
4583
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4596
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
4584
4597
|
showTooltip: true
|
|
4585
4598
|
},
|
|
4586
4599
|
{
|
|
4587
4600
|
value: "space-around",
|
|
4588
4601
|
label: (0, import_i18n35.__)("Space around", "elementor"),
|
|
4589
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4602
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
4590
4603
|
showTooltip: true
|
|
4591
4604
|
},
|
|
4592
4605
|
{
|
|
4593
4606
|
value: "space-evenly",
|
|
4594
4607
|
label: (0, import_i18n35.__)("Space evenly", "elementor"),
|
|
4595
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4608
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
4596
4609
|
showTooltip: true
|
|
4597
4610
|
}
|
|
4598
4611
|
];
|
|
4599
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4612
|
+
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(import_editor_controls30.ToggleControl, { options: options5, fullWidth: true }))));
|
|
4600
4613
|
|
|
4601
4614
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4602
|
-
var
|
|
4615
|
+
var React60 = __toESM(require("react"));
|
|
4603
4616
|
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
4604
4617
|
var import_icons17 = require("@elementor/icons");
|
|
4605
4618
|
var import_i18n36 = require("@wordpress/i18n");
|
|
@@ -4608,24 +4621,24 @@ var options6 = [
|
|
|
4608
4621
|
{
|
|
4609
4622
|
value: "nowrap",
|
|
4610
4623
|
label: (0, import_i18n36.__)("No wrap", "elementor"),
|
|
4611
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4624
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons17.ArrowRightIcon, { fontSize: size }),
|
|
4612
4625
|
showTooltip: true
|
|
4613
4626
|
},
|
|
4614
4627
|
{
|
|
4615
4628
|
value: "wrap",
|
|
4616
4629
|
label: (0, import_i18n36.__)("Wrap", "elementor"),
|
|
4617
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4630
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons17.ArrowBackIcon, { fontSize: size }),
|
|
4618
4631
|
showTooltip: true
|
|
4619
4632
|
},
|
|
4620
4633
|
{
|
|
4621
4634
|
value: "wrap-reverse",
|
|
4622
4635
|
label: (0, import_i18n36.__)("Reversed wrap", "elementor"),
|
|
4623
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4636
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons17.ArrowForwardIcon, { fontSize: size }),
|
|
4624
4637
|
showTooltip: true
|
|
4625
4638
|
}
|
|
4626
4639
|
];
|
|
4627
4640
|
var WrapField = () => {
|
|
4628
|
-
return /* @__PURE__ */
|
|
4641
|
+
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(import_editor_controls31.ToggleControl, { options: options6 }))));
|
|
4629
4642
|
};
|
|
4630
4643
|
|
|
4631
4644
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -4652,17 +4665,17 @@ var LayoutSection = () => {
|
|
|
4652
4665
|
}
|
|
4653
4666
|
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4654
4667
|
};
|
|
4655
|
-
return /* @__PURE__ */
|
|
4668
|
+
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() }));
|
|
4656
4669
|
};
|
|
4657
4670
|
var FlexFields = () => {
|
|
4658
4671
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4659
4672
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4660
4673
|
});
|
|
4661
|
-
return /* @__PURE__ */
|
|
4674
|
+
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));
|
|
4662
4675
|
};
|
|
4663
|
-
var GridFields = () => /* @__PURE__ */
|
|
4664
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4665
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4676
|
+
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));
|
|
4677
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls32.ControlFormLabel, null, (0, import_i18n37.__)("Flex child", "elementor")), /* @__PURE__ */ React61.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null), /* @__PURE__ */ React61.createElement(FlexSizeField, null));
|
|
4678
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls32.ControlFormLabel, null, (0, import_i18n37.__)("Grid child", "elementor")), /* @__PURE__ */ React61.createElement(GridSpanFields, null), /* @__PURE__ */ React61.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null));
|
|
4666
4679
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4667
4680
|
const value = display?.value ?? local?.value;
|
|
4668
4681
|
if (!value) {
|
|
@@ -4672,14 +4685,14 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4672
4685
|
};
|
|
4673
4686
|
|
|
4674
4687
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4675
|
-
var
|
|
4688
|
+
var React66 = __toESM(require("react"));
|
|
4676
4689
|
var import_react30 = require("react");
|
|
4677
4690
|
var import_session7 = require("@elementor/session");
|
|
4678
4691
|
var import_ui38 = require("@elementor/ui");
|
|
4679
4692
|
var import_i18n42 = require("@wordpress/i18n");
|
|
4680
4693
|
|
|
4681
4694
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4682
|
-
var
|
|
4695
|
+
var React62 = __toESM(require("react"));
|
|
4683
4696
|
var import_react28 = require("react");
|
|
4684
4697
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4685
4698
|
var import_icons18 = require("@elementor/icons");
|
|
@@ -4688,24 +4701,24 @@ var import_i18n38 = require("@wordpress/i18n");
|
|
|
4688
4701
|
var InlineStartIcon2 = (0, import_ui36.withDirection)(import_icons18.SideLeftIcon);
|
|
4689
4702
|
var InlineEndIcon2 = (0, import_ui36.withDirection)(import_icons18.SideRightIcon);
|
|
4690
4703
|
var sideIcons = {
|
|
4691
|
-
"inset-block-start": /* @__PURE__ */
|
|
4692
|
-
"inset-block-end": /* @__PURE__ */
|
|
4693
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4694
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4704
|
+
"inset-block-start": /* @__PURE__ */ React62.createElement(import_icons18.SideTopIcon, { fontSize: "tiny" }),
|
|
4705
|
+
"inset-block-end": /* @__PURE__ */ React62.createElement(import_icons18.SideBottomIcon, { fontSize: "tiny" }),
|
|
4706
|
+
"inset-inline-start": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4707
|
+
"inset-inline-end": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4695
4708
|
};
|
|
4696
4709
|
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n38.__)("Right", "elementor") : (0, import_i18n38.__)("Left", "elementor");
|
|
4697
4710
|
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n38.__)("Left", "elementor") : (0, import_i18n38.__)("Right", "elementor");
|
|
4698
4711
|
var DimensionsField = () => {
|
|
4699
4712
|
const { isSiteRtl } = useDirection();
|
|
4700
4713
|
const rowRefs = [(0, import_react28.useRef)(null), (0, import_react28.useRef)(null)];
|
|
4701
|
-
return /* @__PURE__ */
|
|
4714
|
+
return /* @__PURE__ */ React62.createElement(UiProviders, null, /* @__PURE__ */ React62.createElement(import_ui36.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n38.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React62.createElement(
|
|
4702
4715
|
DimensionField,
|
|
4703
4716
|
{
|
|
4704
4717
|
side: "inset-inline-end",
|
|
4705
4718
|
label: getInlineEndLabel(isSiteRtl),
|
|
4706
4719
|
rowRef: rowRefs[0]
|
|
4707
4720
|
}
|
|
4708
|
-
)), /* @__PURE__ */
|
|
4721
|
+
)), /* @__PURE__ */ React62.createElement(import_ui36.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n38.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React62.createElement(
|
|
4709
4722
|
DimensionField,
|
|
4710
4723
|
{
|
|
4711
4724
|
side: "inset-inline-start",
|
|
@@ -4718,7 +4731,7 @@ var DimensionField = ({
|
|
|
4718
4731
|
side,
|
|
4719
4732
|
label,
|
|
4720
4733
|
rowRef
|
|
4721
|
-
}) => /* @__PURE__ */
|
|
4734
|
+
}) => /* @__PURE__ */ React62.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React62.createElement(import_ui36.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React62.createElement(import_ui36.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, label)), /* @__PURE__ */ React62.createElement(import_ui36.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(
|
|
4722
4735
|
import_editor_controls33.SizeControl,
|
|
4723
4736
|
{
|
|
4724
4737
|
startIcon: sideIcons[side],
|
|
@@ -4729,7 +4742,7 @@ var DimensionField = ({
|
|
|
4729
4742
|
))));
|
|
4730
4743
|
|
|
4731
4744
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4732
|
-
var
|
|
4745
|
+
var React63 = __toESM(require("react"));
|
|
4733
4746
|
var import_react29 = require("react");
|
|
4734
4747
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4735
4748
|
var import_i18n39 = require("@wordpress/i18n");
|
|
@@ -4737,11 +4750,11 @@ var OFFSET_LABEL = (0, import_i18n39.__)("Anchor offset", "elementor");
|
|
|
4737
4750
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4738
4751
|
var OffsetField = () => {
|
|
4739
4752
|
const rowRef = (0, import_react29.useRef)(null);
|
|
4740
|
-
return /* @__PURE__ */
|
|
4753
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React63.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React63.createElement(import_editor_controls34.SizeControl, { units: UNITS2, anchorRef: rowRef })));
|
|
4741
4754
|
};
|
|
4742
4755
|
|
|
4743
4756
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4744
|
-
var
|
|
4757
|
+
var React64 = __toESM(require("react"));
|
|
4745
4758
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
4746
4759
|
var import_i18n40 = require("@wordpress/i18n");
|
|
4747
4760
|
var POSITION_LABEL = (0, import_i18n40.__)("Position", "elementor");
|
|
@@ -4753,23 +4766,23 @@ var positionOptions = [
|
|
|
4753
4766
|
{ label: (0, import_i18n40.__)("Sticky", "elementor"), value: "sticky" }
|
|
4754
4767
|
];
|
|
4755
4768
|
var PositionField = () => {
|
|
4756
|
-
return /* @__PURE__ */
|
|
4769
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(import_editor_controls35.SelectControl, { options: positionOptions })));
|
|
4757
4770
|
};
|
|
4758
4771
|
|
|
4759
4772
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4760
|
-
var
|
|
4773
|
+
var React65 = __toESM(require("react"));
|
|
4761
4774
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
4762
4775
|
var import_icons19 = require("@elementor/icons");
|
|
4763
4776
|
var import_ui37 = require("@elementor/ui");
|
|
4764
4777
|
var import_i18n41 = require("@wordpress/i18n");
|
|
4765
4778
|
var Z_INDEX_LABEL = (0, import_i18n41.__)("Z-index", "elementor");
|
|
4766
4779
|
var ZIndexField = ({ disabled }) => {
|
|
4767
|
-
const StyleField = /* @__PURE__ */
|
|
4768
|
-
const content = /* @__PURE__ */
|
|
4780
|
+
const StyleField = /* @__PURE__ */ React65.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(import_editor_controls36.NumberControl, { disabled })));
|
|
4781
|
+
const content = /* @__PURE__ */ React65.createElement(import_ui37.Alert, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(import_icons19.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(import_ui37.AlertTitle, null, (0, import_i18n41.__)("Z-index", "elementor")), /* @__PURE__ */ React65.createElement(import_ui37.Box, { component: "span" }, (0, import_i18n41.__)(
|
|
4769
4782
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4770
4783
|
"elementor"
|
|
4771
4784
|
)));
|
|
4772
|
-
return disabled ? /* @__PURE__ */
|
|
4785
|
+
return disabled ? /* @__PURE__ */ React65.createElement(
|
|
4773
4786
|
import_ui37.Infotip,
|
|
4774
4787
|
{
|
|
4775
4788
|
placement: "right",
|
|
@@ -4777,8 +4790,8 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4777
4790
|
color: "secondary",
|
|
4778
4791
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
4779
4792
|
},
|
|
4780
|
-
/* @__PURE__ */
|
|
4781
|
-
) : /* @__PURE__ */
|
|
4793
|
+
/* @__PURE__ */ React65.createElement(import_ui37.Box, null, StyleField)
|
|
4794
|
+
) : /* @__PURE__ */ React65.createElement(React65.Fragment, null, StyleField);
|
|
4782
4795
|
};
|
|
4783
4796
|
|
|
4784
4797
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -4810,7 +4823,7 @@ var PositionSection = () => {
|
|
|
4810
4823
|
}
|
|
4811
4824
|
positionPrevRef.current = position;
|
|
4812
4825
|
}, [position?.value]);
|
|
4813
|
-
return /* @__PURE__ */
|
|
4826
|
+
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));
|
|
4814
4827
|
};
|
|
4815
4828
|
var usePersistDimensions = () => {
|
|
4816
4829
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4860,14 +4873,14 @@ var StyledSectionContent = (0, import_ui38.styled)(SectionContent, {
|
|
|
4860
4873
|
}));
|
|
4861
4874
|
|
|
4862
4875
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4863
|
-
var
|
|
4876
|
+
var React69 = __toESM(require("react"));
|
|
4864
4877
|
var import_react31 = require("react");
|
|
4865
4878
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
4866
4879
|
var import_ui39 = require("@elementor/ui");
|
|
4867
4880
|
var import_i18n45 = require("@wordpress/i18n");
|
|
4868
4881
|
|
|
4869
4882
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4870
|
-
var
|
|
4883
|
+
var React67 = __toESM(require("react"));
|
|
4871
4884
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4872
4885
|
var import_i18n43 = require("@wordpress/i18n");
|
|
4873
4886
|
var OBJECT_FIT_LABEL = (0, import_i18n43.__)("Object fit", "elementor");
|
|
@@ -4879,11 +4892,11 @@ var positionOptions2 = [
|
|
|
4879
4892
|
{ label: (0, import_i18n43.__)("Scale down", "elementor"), value: "scale-down" }
|
|
4880
4893
|
];
|
|
4881
4894
|
var ObjectFitField = () => {
|
|
4882
|
-
return /* @__PURE__ */
|
|
4895
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(import_editor_controls37.SelectControl, { options: positionOptions2 })));
|
|
4883
4896
|
};
|
|
4884
4897
|
|
|
4885
4898
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4886
|
-
var
|
|
4899
|
+
var React68 = __toESM(require("react"));
|
|
4887
4900
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
4888
4901
|
var import_icons20 = require("@elementor/icons");
|
|
4889
4902
|
var import_i18n44 = require("@wordpress/i18n");
|
|
@@ -4892,24 +4905,24 @@ var options7 = [
|
|
|
4892
4905
|
{
|
|
4893
4906
|
value: "visible",
|
|
4894
4907
|
label: (0, import_i18n44.__)("Visible", "elementor"),
|
|
4895
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4908
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons20.EyeIcon, { fontSize: size }),
|
|
4896
4909
|
showTooltip: true
|
|
4897
4910
|
},
|
|
4898
4911
|
{
|
|
4899
4912
|
value: "hidden",
|
|
4900
4913
|
label: (0, import_i18n44.__)("Hidden", "elementor"),
|
|
4901
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4914
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons20.EyeOffIcon, { fontSize: size }),
|
|
4902
4915
|
showTooltip: true
|
|
4903
4916
|
},
|
|
4904
4917
|
{
|
|
4905
4918
|
value: "auto",
|
|
4906
4919
|
label: (0, import_i18n44.__)("Auto", "elementor"),
|
|
4907
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4920
|
+
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons20.LetterAIcon, { fontSize: size }),
|
|
4908
4921
|
showTooltip: true
|
|
4909
4922
|
}
|
|
4910
4923
|
];
|
|
4911
4924
|
var OverflowField = () => {
|
|
4912
|
-
return /* @__PURE__ */
|
|
4925
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React68.createElement(import_editor_controls38.ToggleControl, { options: options7 })));
|
|
4913
4926
|
};
|
|
4914
4927
|
|
|
4915
4928
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4948,55 +4961,55 @@ var CssSizeProps = [
|
|
|
4948
4961
|
var ASPECT_RATIO_LABEL = (0, import_i18n45.__)("Aspect Ratio", "elementor");
|
|
4949
4962
|
var SizeSection = () => {
|
|
4950
4963
|
const gridRowRefs = [(0, import_react31.useRef)(null), (0, import_react31.useRef)(null), (0, import_react31.useRef)(null)];
|
|
4951
|
-
return /* @__PURE__ */
|
|
4964
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React69.createElement(import_ui39.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React69.createElement(import_ui39.Grid, { 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(import_ui39.Stack, null, /* @__PURE__ */ React69.createElement(OverflowField, null)), /* @__PURE__ */ React69.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React69.createElement(import_ui39.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React69.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React69.createElement(import_editor_controls39.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(ObjectFitField, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n45.__)("Object position", "elementor") }, /* @__PURE__ */ React69.createElement(import_ui39.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(import_editor_controls39.PositionControl, null))))));
|
|
4952
4965
|
};
|
|
4953
4966
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4954
|
-
return /* @__PURE__ */
|
|
4967
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React69.createElement(import_ui39.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React69.createElement(import_ui39.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(ControlLabel, null, label)), /* @__PURE__ */ React69.createElement(import_ui39.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(import_editor_controls39.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
4955
4968
|
};
|
|
4956
4969
|
|
|
4957
4970
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4958
|
-
var
|
|
4971
|
+
var React70 = __toESM(require("react"));
|
|
4959
4972
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
4960
4973
|
var import_i18n46 = require("@wordpress/i18n");
|
|
4961
4974
|
var MARGIN_LABEL = (0, import_i18n46.__)("Margin", "elementor");
|
|
4962
4975
|
var PADDING_LABEL = (0, import_i18n46.__)("Padding", "elementor");
|
|
4963
4976
|
var SpacingSection = () => {
|
|
4964
4977
|
const { isSiteRtl } = useDirection();
|
|
4965
|
-
return /* @__PURE__ */
|
|
4978
|
+
return /* @__PURE__ */ React70.createElement(SectionContent, null, /* @__PURE__ */ React70.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React70.createElement(
|
|
4966
4979
|
import_editor_controls40.LinkedDimensionsControl,
|
|
4967
4980
|
{
|
|
4968
4981
|
label: MARGIN_LABEL,
|
|
4969
4982
|
isSiteRtl,
|
|
4970
4983
|
min: -Number.MAX_SAFE_INTEGER
|
|
4971
4984
|
}
|
|
4972
|
-
)), /* @__PURE__ */
|
|
4985
|
+
)), /* @__PURE__ */ React70.createElement(PanelDivider, null), /* @__PURE__ */ React70.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React70.createElement(import_editor_controls40.LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4973
4986
|
};
|
|
4974
4987
|
|
|
4975
4988
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4976
|
-
var
|
|
4989
|
+
var React87 = __toESM(require("react"));
|
|
4977
4990
|
|
|
4978
4991
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4979
|
-
var
|
|
4992
|
+
var React71 = __toESM(require("react"));
|
|
4980
4993
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
4981
4994
|
var import_i18n47 = require("@wordpress/i18n");
|
|
4982
4995
|
var COLUMN_COUNT_LABEL = (0, import_i18n47.__)("Columns", "elementor");
|
|
4983
4996
|
var ColumnCountField = () => {
|
|
4984
|
-
return /* @__PURE__ */
|
|
4997
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(import_editor_controls41.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4985
4998
|
};
|
|
4986
4999
|
|
|
4987
5000
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4988
|
-
var
|
|
5001
|
+
var React72 = __toESM(require("react"));
|
|
4989
5002
|
var import_react32 = require("react");
|
|
4990
5003
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
4991
5004
|
var import_i18n48 = require("@wordpress/i18n");
|
|
4992
5005
|
var COLUMN_GAP_LABEL = (0, import_i18n48.__)("Column gap", "elementor");
|
|
4993
5006
|
var ColumnGapField = () => {
|
|
4994
5007
|
const rowRef = (0, import_react32.useRef)(null);
|
|
4995
|
-
return /* @__PURE__ */
|
|
5008
|
+
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(import_editor_controls42.SizeControl, { anchorRef: rowRef })));
|
|
4996
5009
|
};
|
|
4997
5010
|
|
|
4998
5011
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4999
|
-
var
|
|
5012
|
+
var React73 = __toESM(require("react"));
|
|
5000
5013
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
5001
5014
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
5002
5015
|
var import_i18n49 = require("@wordpress/i18n");
|
|
@@ -5007,7 +5020,7 @@ var FontFamilyField = () => {
|
|
|
5007
5020
|
if (fontFamilies.length === 0) {
|
|
5008
5021
|
return null;
|
|
5009
5022
|
}
|
|
5010
|
-
return /* @__PURE__ */
|
|
5023
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React73.createElement(
|
|
5011
5024
|
import_editor_controls43.FontFamilyControl,
|
|
5012
5025
|
{
|
|
5013
5026
|
fontFamilies,
|
|
@@ -5018,18 +5031,18 @@ var FontFamilyField = () => {
|
|
|
5018
5031
|
};
|
|
5019
5032
|
|
|
5020
5033
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
5021
|
-
var
|
|
5034
|
+
var React74 = __toESM(require("react"));
|
|
5022
5035
|
var import_react33 = require("react");
|
|
5023
5036
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
5024
5037
|
var import_i18n50 = require("@wordpress/i18n");
|
|
5025
5038
|
var FONT_SIZE_LABEL = (0, import_i18n50.__)("Font size", "elementor");
|
|
5026
5039
|
var FontSizeField = () => {
|
|
5027
5040
|
const rowRef = (0, import_react33.useRef)(null);
|
|
5028
|
-
return /* @__PURE__ */
|
|
5041
|
+
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(import_editor_controls44.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
5029
5042
|
};
|
|
5030
5043
|
|
|
5031
5044
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
5032
|
-
var
|
|
5045
|
+
var React75 = __toESM(require("react"));
|
|
5033
5046
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
5034
5047
|
var import_icons21 = require("@elementor/icons");
|
|
5035
5048
|
var import_i18n51 = require("@wordpress/i18n");
|
|
@@ -5038,22 +5051,22 @@ var options8 = [
|
|
|
5038
5051
|
{
|
|
5039
5052
|
value: "normal",
|
|
5040
5053
|
label: (0, import_i18n51.__)("Normal", "elementor"),
|
|
5041
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5054
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons21.MinusIcon, { fontSize: size }),
|
|
5042
5055
|
showTooltip: true
|
|
5043
5056
|
},
|
|
5044
5057
|
{
|
|
5045
5058
|
value: "italic",
|
|
5046
5059
|
label: (0, import_i18n51.__)("Italic", "elementor"),
|
|
5047
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5060
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons21.ItalicIcon, { fontSize: size }),
|
|
5048
5061
|
showTooltip: true
|
|
5049
5062
|
}
|
|
5050
5063
|
];
|
|
5051
5064
|
var FontStyleField = () => {
|
|
5052
|
-
return /* @__PURE__ */
|
|
5065
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React75.createElement(import_editor_controls45.ToggleControl, { options: options8 })));
|
|
5053
5066
|
};
|
|
5054
5067
|
|
|
5055
5068
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5056
|
-
var
|
|
5069
|
+
var React76 = __toESM(require("react"));
|
|
5057
5070
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
5058
5071
|
var import_i18n52 = require("@wordpress/i18n");
|
|
5059
5072
|
var FONT_WEIGHT_LABEL = (0, import_i18n52.__)("Font weight", "elementor");
|
|
@@ -5069,33 +5082,33 @@ var fontWeightOptions = [
|
|
|
5069
5082
|
{ value: "900", label: (0, import_i18n52.__)("900 - Black", "elementor") }
|
|
5070
5083
|
];
|
|
5071
5084
|
var FontWeightField = () => {
|
|
5072
|
-
return /* @__PURE__ */
|
|
5085
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(import_editor_controls46.SelectControl, { options: fontWeightOptions })));
|
|
5073
5086
|
};
|
|
5074
5087
|
|
|
5075
5088
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
5076
|
-
var
|
|
5089
|
+
var React77 = __toESM(require("react"));
|
|
5077
5090
|
var import_react34 = require("react");
|
|
5078
5091
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
5079
5092
|
var import_i18n53 = require("@wordpress/i18n");
|
|
5080
5093
|
var LETTER_SPACING_LABEL = (0, import_i18n53.__)("Letter spacing", "elementor");
|
|
5081
5094
|
var LetterSpacingField = () => {
|
|
5082
5095
|
const rowRef = (0, import_react34.useRef)(null);
|
|
5083
|
-
return /* @__PURE__ */
|
|
5096
|
+
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(import_editor_controls47.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5084
5097
|
};
|
|
5085
5098
|
|
|
5086
5099
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
5087
|
-
var
|
|
5100
|
+
var React78 = __toESM(require("react"));
|
|
5088
5101
|
var import_react35 = require("react");
|
|
5089
5102
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
5090
5103
|
var import_i18n54 = require("@wordpress/i18n");
|
|
5091
5104
|
var LINE_HEIGHT_LABEL = (0, import_i18n54.__)("Line height", "elementor");
|
|
5092
5105
|
var LineHeightField = () => {
|
|
5093
5106
|
const rowRef = (0, import_react35.useRef)(null);
|
|
5094
|
-
return /* @__PURE__ */
|
|
5107
|
+
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(import_editor_controls48.SizeControl, { anchorRef: rowRef })));
|
|
5095
5108
|
};
|
|
5096
5109
|
|
|
5097
5110
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
5098
|
-
var
|
|
5111
|
+
var React79 = __toESM(require("react"));
|
|
5099
5112
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
5100
5113
|
var import_icons22 = require("@elementor/icons");
|
|
5101
5114
|
var import_ui40 = require("@elementor/ui");
|
|
@@ -5107,43 +5120,43 @@ var options9 = [
|
|
|
5107
5120
|
{
|
|
5108
5121
|
value: "start",
|
|
5109
5122
|
label: (0, import_i18n55.__)("Start", "elementor"),
|
|
5110
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5123
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignStartIcon, { fontSize: size }),
|
|
5111
5124
|
showTooltip: true
|
|
5112
5125
|
},
|
|
5113
5126
|
{
|
|
5114
5127
|
value: "center",
|
|
5115
5128
|
label: (0, import_i18n55.__)("Center", "elementor"),
|
|
5116
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5129
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(import_icons22.AlignCenterIcon, { fontSize: size }),
|
|
5117
5130
|
showTooltip: true
|
|
5118
5131
|
},
|
|
5119
5132
|
{
|
|
5120
5133
|
value: "end",
|
|
5121
5134
|
label: (0, import_i18n55.__)("End", "elementor"),
|
|
5122
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5135
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignEndIcon, { fontSize: size }),
|
|
5123
5136
|
showTooltip: true
|
|
5124
5137
|
},
|
|
5125
5138
|
{
|
|
5126
5139
|
value: "justify",
|
|
5127
5140
|
label: (0, import_i18n55.__)("Justify", "elementor"),
|
|
5128
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5141
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(import_icons22.AlignJustifiedIcon, { fontSize: size }),
|
|
5129
5142
|
showTooltip: true
|
|
5130
5143
|
}
|
|
5131
5144
|
];
|
|
5132
5145
|
var TextAlignmentField = () => {
|
|
5133
|
-
return /* @__PURE__ */
|
|
5146
|
+
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(import_editor_controls49.ToggleControl, { options: options9 }))));
|
|
5134
5147
|
};
|
|
5135
5148
|
|
|
5136
5149
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5137
|
-
var
|
|
5150
|
+
var React80 = __toESM(require("react"));
|
|
5138
5151
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
5139
5152
|
var import_i18n56 = require("@wordpress/i18n");
|
|
5140
5153
|
var TEXT_COLOR_LABEL = (0, import_i18n56.__)("Text color", "elementor");
|
|
5141
5154
|
var TextColorField = () => {
|
|
5142
|
-
return /* @__PURE__ */
|
|
5155
|
+
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(import_editor_controls50.ColorControl, { id: "text-color-control" })));
|
|
5143
5156
|
};
|
|
5144
5157
|
|
|
5145
5158
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
5146
|
-
var
|
|
5159
|
+
var React81 = __toESM(require("react"));
|
|
5147
5160
|
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
5148
5161
|
var import_icons23 = require("@elementor/icons");
|
|
5149
5162
|
var import_i18n57 = require("@wordpress/i18n");
|
|
@@ -5152,33 +5165,33 @@ var options10 = [
|
|
|
5152
5165
|
{
|
|
5153
5166
|
value: "none",
|
|
5154
5167
|
label: (0, import_i18n57.__)("None", "elementor"),
|
|
5155
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5168
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.MinusIcon, { fontSize: size }),
|
|
5156
5169
|
showTooltip: true,
|
|
5157
5170
|
exclusive: true
|
|
5158
5171
|
},
|
|
5159
5172
|
{
|
|
5160
5173
|
value: "underline",
|
|
5161
5174
|
label: (0, import_i18n57.__)("Underline", "elementor"),
|
|
5162
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5175
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.UnderlineIcon, { fontSize: size }),
|
|
5163
5176
|
showTooltip: true
|
|
5164
5177
|
},
|
|
5165
5178
|
{
|
|
5166
5179
|
value: "line-through",
|
|
5167
5180
|
label: (0, import_i18n57.__)("Line-through", "elementor"),
|
|
5168
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5181
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.StrikethroughIcon, { fontSize: size }),
|
|
5169
5182
|
showTooltip: true
|
|
5170
5183
|
},
|
|
5171
5184
|
{
|
|
5172
5185
|
value: "overline",
|
|
5173
5186
|
label: (0, import_i18n57.__)("Overline", "elementor"),
|
|
5174
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5187
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.OverlineIcon, { fontSize: size }),
|
|
5175
5188
|
showTooltip: true
|
|
5176
5189
|
}
|
|
5177
5190
|
];
|
|
5178
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
5191
|
+
var TextDecorationField = () => /* @__PURE__ */ React81.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React81.createElement(import_editor_controls51.ToggleControl, { options: options10, exclusive: false })));
|
|
5179
5192
|
|
|
5180
5193
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
5181
|
-
var
|
|
5194
|
+
var React82 = __toESM(require("react"));
|
|
5182
5195
|
var import_editor_controls52 = require("@elementor/editor-controls");
|
|
5183
5196
|
var import_icons24 = require("@elementor/icons");
|
|
5184
5197
|
var import_i18n58 = require("@wordpress/i18n");
|
|
@@ -5187,27 +5200,27 @@ var options11 = [
|
|
|
5187
5200
|
{
|
|
5188
5201
|
value: "ltr",
|
|
5189
5202
|
label: (0, import_i18n58.__)("Left to right", "elementor"),
|
|
5190
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5203
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.TextDirectionLtrIcon, { fontSize: size }),
|
|
5191
5204
|
showTooltip: true
|
|
5192
5205
|
},
|
|
5193
5206
|
{
|
|
5194
5207
|
value: "rtl",
|
|
5195
5208
|
label: (0, import_i18n58.__)("Right to left", "elementor"),
|
|
5196
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5209
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.TextDirectionRtlIcon, { fontSize: size }),
|
|
5197
5210
|
showTooltip: true
|
|
5198
5211
|
}
|
|
5199
5212
|
];
|
|
5200
5213
|
var TextDirectionField = () => {
|
|
5201
|
-
return /* @__PURE__ */
|
|
5214
|
+
return /* @__PURE__ */ React82.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React82.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React82.createElement(import_editor_controls52.ToggleControl, { options: options11 })));
|
|
5202
5215
|
};
|
|
5203
5216
|
|
|
5204
5217
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5205
|
-
var
|
|
5218
|
+
var React84 = __toESM(require("react"));
|
|
5206
5219
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5207
5220
|
var import_i18n59 = require("@wordpress/i18n");
|
|
5208
5221
|
|
|
5209
5222
|
// src/components/add-or-remove-content.tsx
|
|
5210
|
-
var
|
|
5223
|
+
var React83 = __toESM(require("react"));
|
|
5211
5224
|
var import_icons25 = require("@elementor/icons");
|
|
5212
5225
|
var import_ui41 = require("@elementor/ui");
|
|
5213
5226
|
var SIZE = "tiny";
|
|
@@ -5219,7 +5232,7 @@ var AddOrRemoveContent = ({
|
|
|
5219
5232
|
disabled,
|
|
5220
5233
|
renderLabel
|
|
5221
5234
|
}) => {
|
|
5222
|
-
return /* @__PURE__ */
|
|
5235
|
+
return /* @__PURE__ */ React83.createElement(SectionContent, null, /* @__PURE__ */ React83.createElement(
|
|
5223
5236
|
import_ui41.Stack,
|
|
5224
5237
|
{
|
|
5225
5238
|
direction: "row",
|
|
@@ -5230,8 +5243,8 @@ var AddOrRemoveContent = ({
|
|
|
5230
5243
|
}
|
|
5231
5244
|
},
|
|
5232
5245
|
renderLabel(),
|
|
5233
|
-
isAdded ? /* @__PURE__ */
|
|
5234
|
-
), /* @__PURE__ */
|
|
5246
|
+
isAdded ? /* @__PURE__ */ React83.createElement(import_ui41.IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React83.createElement(import_icons25.MinusIcon, { fontSize: SIZE })) : /* @__PURE__ */ React83.createElement(import_ui41.IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React83.createElement(import_icons25.PlusIcon, { fontSize: SIZE }))
|
|
5247
|
+
), /* @__PURE__ */ React83.createElement(import_ui41.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React83.createElement(SectionContent, null, children)));
|
|
5235
5248
|
};
|
|
5236
5249
|
|
|
5237
5250
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5263,21 +5276,21 @@ var TextStrokeField = () => {
|
|
|
5263
5276
|
setValue(null);
|
|
5264
5277
|
};
|
|
5265
5278
|
const hasTextStroke = Boolean(value);
|
|
5266
|
-
return /* @__PURE__ */
|
|
5279
|
+
return /* @__PURE__ */ React84.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React84.createElement(
|
|
5267
5280
|
AddOrRemoveContent,
|
|
5268
5281
|
{
|
|
5269
5282
|
isAdded: hasTextStroke,
|
|
5270
5283
|
onAdd: addTextStroke,
|
|
5271
5284
|
onRemove: removeTextStroke,
|
|
5272
5285
|
disabled: !canEdit,
|
|
5273
|
-
renderLabel: () => /* @__PURE__ */
|
|
5286
|
+
renderLabel: () => /* @__PURE__ */ React84.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
5274
5287
|
},
|
|
5275
|
-
/* @__PURE__ */
|
|
5288
|
+
/* @__PURE__ */ React84.createElement(import_editor_controls53.StrokeControl, null)
|
|
5276
5289
|
));
|
|
5277
5290
|
};
|
|
5278
5291
|
|
|
5279
5292
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
5280
|
-
var
|
|
5293
|
+
var React85 = __toESM(require("react"));
|
|
5281
5294
|
var import_editor_controls54 = require("@elementor/editor-controls");
|
|
5282
5295
|
var import_icons26 = require("@elementor/icons");
|
|
5283
5296
|
var import_i18n60 = require("@wordpress/i18n");
|
|
@@ -5286,44 +5299,44 @@ var options12 = [
|
|
|
5286
5299
|
{
|
|
5287
5300
|
value: "none",
|
|
5288
5301
|
label: (0, import_i18n60.__)("None", "elementor"),
|
|
5289
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5302
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.MinusIcon, { fontSize: size }),
|
|
5290
5303
|
showTooltip: true
|
|
5291
5304
|
},
|
|
5292
5305
|
{
|
|
5293
5306
|
value: "capitalize",
|
|
5294
5307
|
label: (0, import_i18n60.__)("Capitalize", "elementor"),
|
|
5295
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5308
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.LetterCaseIcon, { fontSize: size }),
|
|
5296
5309
|
showTooltip: true
|
|
5297
5310
|
},
|
|
5298
5311
|
{
|
|
5299
5312
|
value: "uppercase",
|
|
5300
5313
|
label: (0, import_i18n60.__)("Uppercase", "elementor"),
|
|
5301
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5314
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.LetterCaseUpperIcon, { fontSize: size }),
|
|
5302
5315
|
showTooltip: true
|
|
5303
5316
|
},
|
|
5304
5317
|
{
|
|
5305
5318
|
value: "lowercase",
|
|
5306
5319
|
label: (0, import_i18n60.__)("Lowercase", "elementor"),
|
|
5307
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5320
|
+
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.LetterCaseLowerIcon, { fontSize: size }),
|
|
5308
5321
|
showTooltip: true
|
|
5309
5322
|
}
|
|
5310
5323
|
];
|
|
5311
|
-
var TransformField = () => /* @__PURE__ */
|
|
5324
|
+
var TransformField = () => /* @__PURE__ */ React85.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React85.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React85.createElement(import_editor_controls54.ToggleControl, { options: options12 })));
|
|
5312
5325
|
|
|
5313
5326
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
5314
|
-
var
|
|
5327
|
+
var React86 = __toESM(require("react"));
|
|
5315
5328
|
var import_react36 = require("react");
|
|
5316
5329
|
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
5317
5330
|
var import_i18n61 = require("@wordpress/i18n");
|
|
5318
5331
|
var WORD_SPACING_LABEL = (0, import_i18n61.__)("Word spacing", "elementor");
|
|
5319
5332
|
var WordSpacingField = () => {
|
|
5320
5333
|
const rowRef = (0, import_react36.useRef)(null);
|
|
5321
|
-
return /* @__PURE__ */
|
|
5334
|
+
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(import_editor_controls55.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5322
5335
|
};
|
|
5323
5336
|
|
|
5324
5337
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5325
5338
|
var TypographySection = () => {
|
|
5326
|
-
return /* @__PURE__ */
|
|
5339
|
+
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(
|
|
5327
5340
|
StyleTabCollapsibleContent,
|
|
5328
5341
|
{
|
|
5329
5342
|
fields: [
|
|
@@ -5338,18 +5351,18 @@ var TypographySection = () => {
|
|
|
5338
5351
|
"stroke"
|
|
5339
5352
|
]
|
|
5340
5353
|
},
|
|
5341
|
-
/* @__PURE__ */
|
|
5354
|
+
/* @__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))
|
|
5342
5355
|
));
|
|
5343
5356
|
};
|
|
5344
5357
|
|
|
5345
5358
|
// src/components/style-tab-section.tsx
|
|
5346
|
-
var
|
|
5359
|
+
var React88 = __toESM(require("react"));
|
|
5347
5360
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5348
5361
|
const { component, name, title, action } = section;
|
|
5349
5362
|
const tabDefaults = useDefaultPanelSettings();
|
|
5350
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5363
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React88.createElement(React88.Fragment, null));
|
|
5351
5364
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
5352
|
-
return /* @__PURE__ */
|
|
5365
|
+
return /* @__PURE__ */ React88.createElement(
|
|
5353
5366
|
Section,
|
|
5354
5367
|
{
|
|
5355
5368
|
title,
|
|
@@ -5358,7 +5371,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5358
5371
|
unmountOnExit,
|
|
5359
5372
|
action
|
|
5360
5373
|
},
|
|
5361
|
-
/* @__PURE__ */
|
|
5374
|
+
/* @__PURE__ */ React88.createElement(SectionComponent, null)
|
|
5362
5375
|
);
|
|
5363
5376
|
};
|
|
5364
5377
|
|
|
@@ -5380,7 +5393,7 @@ var StyleTab = () => {
|
|
|
5380
5393
|
if (!currentClassesProp) {
|
|
5381
5394
|
return null;
|
|
5382
5395
|
}
|
|
5383
|
-
return /* @__PURE__ */
|
|
5396
|
+
return /* @__PURE__ */ React89.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React89.createElement(
|
|
5384
5397
|
StyleProvider,
|
|
5385
5398
|
{
|
|
5386
5399
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5391,7 +5404,7 @@ var StyleTab = () => {
|
|
|
5391
5404
|
},
|
|
5392
5405
|
setMetaState: setActiveStyleState
|
|
5393
5406
|
},
|
|
5394
|
-
/* @__PURE__ */
|
|
5407
|
+
/* @__PURE__ */ React89.createElement(import_session8.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React89.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React89.createElement(ClassesHeader, null, /* @__PURE__ */ React89.createElement(CssClassSelector, null), /* @__PURE__ */ React89.createElement(import_ui42.Divider, null)), /* @__PURE__ */ React89.createElement(SectionsList, null, /* @__PURE__ */ React89.createElement(
|
|
5395
5408
|
StyleTabSection,
|
|
5396
5409
|
{
|
|
5397
5410
|
section: {
|
|
@@ -5415,7 +5428,7 @@ var StyleTab = () => {
|
|
|
5415
5428
|
"grid-auto-columns"
|
|
5416
5429
|
]
|
|
5417
5430
|
}
|
|
5418
|
-
), /* @__PURE__ */
|
|
5431
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5419
5432
|
StyleTabSection,
|
|
5420
5433
|
{
|
|
5421
5434
|
section: {
|
|
@@ -5425,7 +5438,7 @@ var StyleTab = () => {
|
|
|
5425
5438
|
},
|
|
5426
5439
|
fields: ["margin", "padding"]
|
|
5427
5440
|
}
|
|
5428
|
-
), /* @__PURE__ */
|
|
5441
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5429
5442
|
StyleTabSection,
|
|
5430
5443
|
{
|
|
5431
5444
|
section: {
|
|
@@ -5445,7 +5458,7 @@ var StyleTab = () => {
|
|
|
5445
5458
|
"object-fit"
|
|
5446
5459
|
]
|
|
5447
5460
|
}
|
|
5448
|
-
), /* @__PURE__ */
|
|
5461
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5449
5462
|
StyleTabSection,
|
|
5450
5463
|
{
|
|
5451
5464
|
section: {
|
|
@@ -5455,7 +5468,7 @@ var StyleTab = () => {
|
|
|
5455
5468
|
},
|
|
5456
5469
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5457
5470
|
}
|
|
5458
|
-
), /* @__PURE__ */
|
|
5471
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5459
5472
|
StyleTabSection,
|
|
5460
5473
|
{
|
|
5461
5474
|
section: {
|
|
@@ -5480,7 +5493,7 @@ var StyleTab = () => {
|
|
|
5480
5493
|
"stroke"
|
|
5481
5494
|
]
|
|
5482
5495
|
}
|
|
5483
|
-
), /* @__PURE__ */
|
|
5496
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5484
5497
|
StyleTabSection,
|
|
5485
5498
|
{
|
|
5486
5499
|
section: {
|
|
@@ -5490,7 +5503,7 @@ var StyleTab = () => {
|
|
|
5490
5503
|
},
|
|
5491
5504
|
fields: ["background"]
|
|
5492
5505
|
}
|
|
5493
|
-
), /* @__PURE__ */
|
|
5506
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5494
5507
|
StyleTabSection,
|
|
5495
5508
|
{
|
|
5496
5509
|
section: {
|
|
@@ -5500,7 +5513,7 @@ var StyleTab = () => {
|
|
|
5500
5513
|
},
|
|
5501
5514
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5502
5515
|
}
|
|
5503
|
-
), /* @__PURE__ */
|
|
5516
|
+
), /* @__PURE__ */ React89.createElement(
|
|
5504
5517
|
StyleTabSection,
|
|
5505
5518
|
{
|
|
5506
5519
|
section: {
|
|
@@ -5519,12 +5532,12 @@ var StyleTab = () => {
|
|
|
5519
5532
|
"transition"
|
|
5520
5533
|
]
|
|
5521
5534
|
}
|
|
5522
|
-
), /* @__PURE__ */
|
|
5535
|
+
), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(import_ui42.Box, { sx: { height: "150px" } })))
|
|
5523
5536
|
));
|
|
5524
5537
|
};
|
|
5525
5538
|
function ClassesHeader({ children }) {
|
|
5526
5539
|
const scrollDirection = useScrollDirection();
|
|
5527
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ React89.createElement(import_ui42.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5528
5541
|
}
|
|
5529
5542
|
function useCurrentClassesProp() {
|
|
5530
5543
|
const { elementType } = useElement();
|
|
@@ -5543,7 +5556,7 @@ var EditingPanelTabs = () => {
|
|
|
5543
5556
|
return (
|
|
5544
5557
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5545
5558
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5546
|
-
/* @__PURE__ */
|
|
5559
|
+
/* @__PURE__ */ React90.createElement(import_react38.Fragment, { key: element.id }, /* @__PURE__ */ React90.createElement(PanelTabContent, null))
|
|
5547
5560
|
);
|
|
5548
5561
|
};
|
|
5549
5562
|
var PanelTabContent = () => {
|
|
@@ -5555,7 +5568,7 @@ var PanelTabContent = () => {
|
|
|
5555
5568
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5556
5569
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5557
5570
|
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui43.useTabs)(currentTab);
|
|
5558
|
-
return /* @__PURE__ */
|
|
5571
|
+
return /* @__PURE__ */ React90.createElement(ScrollProvider, null, /* @__PURE__ */ React90.createElement(import_ui43.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React90.createElement(import_ui43.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React90.createElement(
|
|
5559
5572
|
import_ui43.Tabs,
|
|
5560
5573
|
{
|
|
5561
5574
|
variant: "fullWidth",
|
|
@@ -5567,10 +5580,10 @@ var PanelTabContent = () => {
|
|
|
5567
5580
|
setCurrentTab(newValue);
|
|
5568
5581
|
}
|
|
5569
5582
|
},
|
|
5570
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5571
|
-
/* @__PURE__ */
|
|
5572
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5573
|
-
), /* @__PURE__ */
|
|
5583
|
+
!isPromotedElement && /* @__PURE__ */ React90.createElement(import_ui43.Tab, { label: (0, import_i18n63.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
5584
|
+
/* @__PURE__ */ React90.createElement(import_ui43.Tab, { label: (0, import_i18n63.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
5585
|
+
isInteractionsActive && /* @__PURE__ */ React90.createElement(import_ui43.Tab, { label: (0, import_i18n63.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5586
|
+
), /* @__PURE__ */ React90.createElement(import_ui43.Divider, null)), !isPromotedElement && /* @__PURE__ */ React90.createElement(import_ui43.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React90.createElement(SettingsTab, null)), /* @__PURE__ */ React90.createElement(import_ui43.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React90.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React90.createElement(import_ui43.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React90.createElement(InteractionsTab, null))));
|
|
5574
5587
|
};
|
|
5575
5588
|
|
|
5576
5589
|
// src/components/editing-panel.tsx
|
|
@@ -5585,11 +5598,11 @@ var EditingPanel = () => {
|
|
|
5585
5598
|
}
|
|
5586
5599
|
const panelTitle = (0, import_i18n64.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5587
5600
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5588
|
-
let panelContent = /* @__PURE__ */
|
|
5601
|
+
let panelContent = /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React91.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React91.createElement(import_icons27.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React91.createElement(import_editor_panels.PanelBody, { sx: { height: "auto", flex: 1, minHeight: 0 } }, /* @__PURE__ */ React91.createElement(EditingPanelTabs, null)), /* @__PURE__ */ React91.createElement(EditingPanelStickyPromotion, null));
|
|
5589
5602
|
if (ReplacementComponent) {
|
|
5590
|
-
panelContent = /* @__PURE__ */
|
|
5603
|
+
panelContent = /* @__PURE__ */ React91.createElement(ReplacementComponent, null);
|
|
5591
5604
|
}
|
|
5592
|
-
return /* @__PURE__ */
|
|
5605
|
+
return /* @__PURE__ */ React91.createElement(import_ui44.ErrorBoundary, { fallback: /* @__PURE__ */ React91.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React91.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React91.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React91.createElement(import_editor_controls56.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React91.createElement(import_editor_controls56.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React91.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React91.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React91.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5593
5606
|
};
|
|
5594
5607
|
|
|
5595
5608
|
// src/init.ts
|
|
@@ -5641,21 +5654,21 @@ var EditingPanelHooks = () => {
|
|
|
5641
5654
|
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5642
5655
|
|
|
5643
5656
|
// src/components/promotions/custom-css.tsx
|
|
5644
|
-
var
|
|
5657
|
+
var React92 = __toESM(require("react"));
|
|
5645
5658
|
var import_react40 = require("react");
|
|
5646
5659
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5647
5660
|
var import_i18n65 = require("@wordpress/i18n");
|
|
5648
5661
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5649
5662
|
var CustomCssSection = () => {
|
|
5650
5663
|
const triggerRef = (0, import_react40.useRef)(null);
|
|
5651
|
-
return /* @__PURE__ */
|
|
5664
|
+
return /* @__PURE__ */ React92.createElement(
|
|
5652
5665
|
StyleTabSection,
|
|
5653
5666
|
{
|
|
5654
5667
|
section: {
|
|
5655
5668
|
name: "Custom CSS",
|
|
5656
5669
|
title: (0, import_i18n65.__)("Custom CSS", "elementor"),
|
|
5657
5670
|
action: {
|
|
5658
|
-
component: /* @__PURE__ */
|
|
5671
|
+
component: /* @__PURE__ */ React92.createElement(import_editor_controls57.PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5659
5672
|
onClick: () => triggerRef.current?.toggle()
|
|
5660
5673
|
}
|
|
5661
5674
|
}
|
|
@@ -5677,7 +5690,7 @@ var init = () => {
|
|
|
5677
5690
|
};
|
|
5678
5691
|
|
|
5679
5692
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5680
|
-
var
|
|
5693
|
+
var React93 = __toESM(require("react"));
|
|
5681
5694
|
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
5682
5695
|
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
5683
5696
|
var import_editor_props18 = require("@elementor/editor-props");
|
|
@@ -5900,7 +5913,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5900
5913
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5901
5914
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5902
5915
|
var TabsControl = ({ label }) => {
|
|
5903
|
-
return /* @__PURE__ */
|
|
5916
|
+
return /* @__PURE__ */ React93.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n67.__)("Tabs", "elementor") }, /* @__PURE__ */ React93.createElement(TabsControlContent, { label }));
|
|
5904
5917
|
};
|
|
5905
5918
|
var TabsControlContent = ({ label }) => {
|
|
5906
5919
|
const { element } = useElement();
|
|
@@ -5944,7 +5957,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5944
5957
|
});
|
|
5945
5958
|
}
|
|
5946
5959
|
};
|
|
5947
|
-
return /* @__PURE__ */
|
|
5960
|
+
return /* @__PURE__ */ React93.createElement(
|
|
5948
5961
|
import_editor_controls60.Repeater,
|
|
5949
5962
|
{
|
|
5950
5963
|
showToggle: false,
|
|
@@ -5964,7 +5977,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5964
5977
|
};
|
|
5965
5978
|
var ItemLabel = ({ value, index }) => {
|
|
5966
5979
|
const elementTitle = value?.title;
|
|
5967
|
-
return /* @__PURE__ */
|
|
5980
|
+
return /* @__PURE__ */ React93.createElement(import_ui45.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React93.createElement("span", null, elementTitle), /* @__PURE__ */ React93.createElement(ItemDefaultTab, { index }));
|
|
5968
5981
|
};
|
|
5969
5982
|
var ItemDefaultTab = ({ index }) => {
|
|
5970
5983
|
const { value: defaultItem } = (0, import_editor_controls60.useBoundProp)(import_editor_props18.numberPropTypeUtil);
|
|
@@ -5972,18 +5985,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5972
5985
|
if (!isDefault) {
|
|
5973
5986
|
return null;
|
|
5974
5987
|
}
|
|
5975
|
-
return /* @__PURE__ */
|
|
5988
|
+
return /* @__PURE__ */ React93.createElement(import_ui45.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n67.__)("Default", "elementor") });
|
|
5976
5989
|
};
|
|
5977
5990
|
var ItemContent = ({ value, index }) => {
|
|
5978
5991
|
if (!value.id) {
|
|
5979
5992
|
return null;
|
|
5980
5993
|
}
|
|
5981
|
-
return /* @__PURE__ */
|
|
5994
|
+
return /* @__PURE__ */ React93.createElement(import_ui45.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React93.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React93.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n67.__)("Tabs", "elementor") }, /* @__PURE__ */ React93.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5982
5995
|
};
|
|
5983
5996
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5984
5997
|
const { value, setValue } = (0, import_editor_controls60.useBoundProp)(import_editor_props18.numberPropTypeUtil);
|
|
5985
5998
|
const isDefault = value === tabIndex;
|
|
5986
|
-
return /* @__PURE__ */
|
|
5999
|
+
return /* @__PURE__ */ React93.createElement(import_ui45.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React93.createElement(import_editor_controls60.ControlFormLabel, null, (0, import_i18n67.__)("Set as default tab", "elementor")), /* @__PURE__ */ React93.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React93.createElement(
|
|
5987
6000
|
import_ui45.Switch,
|
|
5988
6001
|
{
|
|
5989
6002
|
size: "small",
|
|
@@ -6001,7 +6014,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6001
6014
|
var TabLabelControl = ({ elementId }) => {
|
|
6002
6015
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
|
|
6003
6016
|
const label = editorSettings?.title ?? "";
|
|
6004
|
-
return /* @__PURE__ */
|
|
6017
|
+
return /* @__PURE__ */ React93.createElement(import_ui45.Stack, { gap: 1 }, /* @__PURE__ */ React93.createElement(import_editor_controls60.ControlFormLabel, null, (0, import_i18n67.__)("Tab name", "elementor")), /* @__PURE__ */ React93.createElement(
|
|
6005
6018
|
import_ui45.TextField,
|
|
6006
6019
|
{
|
|
6007
6020
|
size: "tiny",
|
|
@@ -6022,22 +6035,22 @@ var ConditionalTooltip = ({
|
|
|
6022
6035
|
if (!showTooltip) {
|
|
6023
6036
|
return children;
|
|
6024
6037
|
}
|
|
6025
|
-
return /* @__PURE__ */
|
|
6038
|
+
return /* @__PURE__ */ React93.createElement(
|
|
6026
6039
|
import_ui45.Infotip,
|
|
6027
6040
|
{
|
|
6028
6041
|
arrow: false,
|
|
6029
|
-
content: /* @__PURE__ */
|
|
6042
|
+
content: /* @__PURE__ */ React93.createElement(
|
|
6030
6043
|
import_ui45.Alert,
|
|
6031
6044
|
{
|
|
6032
6045
|
color: "secondary",
|
|
6033
|
-
icon: /* @__PURE__ */
|
|
6046
|
+
icon: /* @__PURE__ */ React93.createElement(import_icons28.InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
6034
6047
|
size: "small",
|
|
6035
6048
|
sx: { width: 288 }
|
|
6036
6049
|
},
|
|
6037
|
-
/* @__PURE__ */
|
|
6050
|
+
/* @__PURE__ */ React93.createElement(import_ui45.Typography, { variant: "body2" }, (0, import_i18n67.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6038
6051
|
)
|
|
6039
6052
|
},
|
|
6040
|
-
/* @__PURE__ */
|
|
6053
|
+
/* @__PURE__ */ React93.createElement("span", null, children)
|
|
6041
6054
|
);
|
|
6042
6055
|
};
|
|
6043
6056
|
|
|
@@ -6059,7 +6072,7 @@ var import_editor_controls67 = require("@elementor/editor-controls");
|
|
|
6059
6072
|
var import_menus2 = require("@elementor/menus");
|
|
6060
6073
|
|
|
6061
6074
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6062
|
-
var
|
|
6075
|
+
var React94 = __toESM(require("react"));
|
|
6063
6076
|
var import_editor_controls62 = require("@elementor/editor-controls");
|
|
6064
6077
|
var import_editor_props20 = require("@elementor/editor-props");
|
|
6065
6078
|
var import_icons29 = require("@elementor/icons");
|
|
@@ -6197,24 +6210,24 @@ var useDynamicTag = (tagName) => {
|
|
|
6197
6210
|
};
|
|
6198
6211
|
|
|
6199
6212
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6200
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6213
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React94.createElement(import_icons29.DatabaseIcon, { fontSize: "tiny" });
|
|
6201
6214
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6202
6215
|
const context = (0, import_editor_controls62.useBoundProp)(import_editor_props20.backgroundImageOverlayPropTypeUtil);
|
|
6203
|
-
return /* @__PURE__ */
|
|
6216
|
+
return /* @__PURE__ */ React94.createElement(import_editor_controls62.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React94.createElement(import_editor_controls62.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React94.createElement(Wrapper2, { rawValue: value.value })));
|
|
6204
6217
|
};
|
|
6205
6218
|
var Wrapper2 = ({ rawValue }) => {
|
|
6206
6219
|
const { propType } = (0, import_editor_controls62.useBoundProp)();
|
|
6207
6220
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6208
|
-
return /* @__PURE__ */
|
|
6221
|
+
return /* @__PURE__ */ React94.createElement(import_editor_controls62.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React94.createElement(import_editor_controls62.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React94.createElement(Content, { rawValue: rawValue.image })));
|
|
6209
6222
|
};
|
|
6210
6223
|
var Content = ({ rawValue }) => {
|
|
6211
6224
|
const src = rawValue.value.src;
|
|
6212
6225
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6213
|
-
return /* @__PURE__ */
|
|
6226
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, dynamicTag?.label);
|
|
6214
6227
|
};
|
|
6215
6228
|
|
|
6216
6229
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6217
|
-
var
|
|
6230
|
+
var React98 = __toESM(require("react"));
|
|
6218
6231
|
var import_editor_controls65 = require("@elementor/editor-controls");
|
|
6219
6232
|
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
6220
6233
|
var import_icons31 = require("@elementor/icons");
|
|
@@ -6230,11 +6243,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6230
6243
|
};
|
|
6231
6244
|
|
|
6232
6245
|
// src/dynamics/dynamic-control.tsx
|
|
6233
|
-
var
|
|
6246
|
+
var React96 = __toESM(require("react"));
|
|
6234
6247
|
var import_editor_controls63 = require("@elementor/editor-controls");
|
|
6235
6248
|
|
|
6236
6249
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6237
|
-
var
|
|
6250
|
+
var React95 = __toESM(require("react"));
|
|
6238
6251
|
var import_react44 = require("react");
|
|
6239
6252
|
var import_editor_props21 = require("@elementor/editor-props");
|
|
6240
6253
|
var DynamicConditionalControl = ({
|
|
@@ -6276,10 +6289,10 @@ var DynamicConditionalControl = ({
|
|
|
6276
6289
|
return { ...defaults, ...convertedSettings };
|
|
6277
6290
|
}, [defaults, convertedSettings]);
|
|
6278
6291
|
if (!propType?.dependencies?.terms.length) {
|
|
6279
|
-
return /* @__PURE__ */
|
|
6292
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, children);
|
|
6280
6293
|
}
|
|
6281
6294
|
const isHidden = !(0, import_editor_props21.isDependencyMet)(propType?.dependencies, effectiveSettings).isMet;
|
|
6282
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6295
|
+
return isHidden ? null : /* @__PURE__ */ React95.createElement(React95.Fragment, null, children);
|
|
6283
6296
|
};
|
|
6284
6297
|
|
|
6285
6298
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6304,7 +6317,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6304
6317
|
});
|
|
6305
6318
|
};
|
|
6306
6319
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6307
|
-
return /* @__PURE__ */
|
|
6320
|
+
return /* @__PURE__ */ React96.createElement(import_editor_controls63.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React96.createElement(import_editor_controls63.PropKeyProvider, { bind }, /* @__PURE__ */ React96.createElement(
|
|
6308
6321
|
DynamicConditionalControl,
|
|
6309
6322
|
{
|
|
6310
6323
|
propType: dynamicPropType,
|
|
@@ -6316,7 +6329,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6316
6329
|
};
|
|
6317
6330
|
|
|
6318
6331
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6319
|
-
var
|
|
6332
|
+
var React97 = __toESM(require("react"));
|
|
6320
6333
|
var import_react45 = require("react");
|
|
6321
6334
|
var import_editor_controls64 = require("@elementor/editor-controls");
|
|
6322
6335
|
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
@@ -6369,19 +6382,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6369
6382
|
]);
|
|
6370
6383
|
const getPopOverContent = () => {
|
|
6371
6384
|
if (hasNoDynamicTags) {
|
|
6372
|
-
return /* @__PURE__ */
|
|
6385
|
+
return /* @__PURE__ */ React97.createElement(NoDynamicTags, null);
|
|
6373
6386
|
}
|
|
6374
6387
|
if (expired) {
|
|
6375
|
-
return /* @__PURE__ */
|
|
6388
|
+
return /* @__PURE__ */ React97.createElement(ExpiredDynamicTags, null);
|
|
6376
6389
|
}
|
|
6377
|
-
return /* @__PURE__ */
|
|
6390
|
+
return /* @__PURE__ */ React97.createElement(import_react45.Fragment, null, /* @__PURE__ */ React97.createElement(
|
|
6378
6391
|
import_editor_ui9.SearchField,
|
|
6379
6392
|
{
|
|
6380
6393
|
value: searchValue,
|
|
6381
6394
|
onSearch: handleSearch,
|
|
6382
6395
|
placeholder: (0, import_i18n68.__)("Search dynamic tags\u2026", "elementor")
|
|
6383
6396
|
}
|
|
6384
|
-
), /* @__PURE__ */
|
|
6397
|
+
), /* @__PURE__ */ React97.createElement(import_ui46.Divider, null), /* @__PURE__ */ React97.createElement(
|
|
6385
6398
|
import_editor_ui9.PopoverMenuList,
|
|
6386
6399
|
{
|
|
6387
6400
|
items: virtualizedItems,
|
|
@@ -6389,20 +6402,20 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6389
6402
|
onClose: closePopover,
|
|
6390
6403
|
selectedValue: dynamicValue?.name,
|
|
6391
6404
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6392
|
-
noResultsComponent: /* @__PURE__ */
|
|
6405
|
+
noResultsComponent: /* @__PURE__ */ React97.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6393
6406
|
}
|
|
6394
6407
|
));
|
|
6395
6408
|
};
|
|
6396
|
-
return /* @__PURE__ */
|
|
6409
|
+
return /* @__PURE__ */ React97.createElement(import_editor_ui9.SectionPopoverBody, { "aria-label": (0, import_i18n68.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React97.createElement(
|
|
6397
6410
|
import_editor_ui9.PopoverHeader,
|
|
6398
6411
|
{
|
|
6399
6412
|
title: (0, import_i18n68.__)("Dynamic tags", "elementor"),
|
|
6400
6413
|
onClose: closePopover,
|
|
6401
|
-
icon: /* @__PURE__ */
|
|
6414
|
+
icon: /* @__PURE__ */ React97.createElement(import_icons30.DatabaseIcon, { fontSize: SIZE2 })
|
|
6402
6415
|
}
|
|
6403
6416
|
), getPopOverContent());
|
|
6404
6417
|
};
|
|
6405
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6418
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React97.createElement(
|
|
6406
6419
|
import_ui46.Stack,
|
|
6407
6420
|
{
|
|
6408
6421
|
gap: 1,
|
|
@@ -6413,11 +6426,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React96.createElem
|
|
|
6413
6426
|
color: "text.secondary",
|
|
6414
6427
|
sx: { pb: 3.5 }
|
|
6415
6428
|
},
|
|
6416
|
-
/* @__PURE__ */
|
|
6417
|
-
/* @__PURE__ */
|
|
6418
|
-
/* @__PURE__ */
|
|
6429
|
+
/* @__PURE__ */ React97.createElement(import_icons30.DatabaseIcon, { fontSize: "large" }),
|
|
6430
|
+
/* @__PURE__ */ React97.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n68.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React97.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6431
|
+
/* @__PURE__ */ React97.createElement(import_ui46.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n68.__)("Try something else.", "elementor"), /* @__PURE__ */ React97.createElement(import_ui46.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n68.__)("Clear & try again", "elementor")))
|
|
6419
6432
|
);
|
|
6420
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6433
|
+
var NoDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(import_ui46.Divider, null), /* @__PURE__ */ React97.createElement(
|
|
6421
6434
|
import_ui46.Stack,
|
|
6422
6435
|
{
|
|
6423
6436
|
gap: 1,
|
|
@@ -6428,10 +6441,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fragment
|
|
|
6428
6441
|
color: "text.secondary",
|
|
6429
6442
|
sx: { pb: 3.5 }
|
|
6430
6443
|
},
|
|
6431
|
-
/* @__PURE__ */
|
|
6432
|
-
/* @__PURE__ */
|
|
6433
|
-
/* @__PURE__ */
|
|
6434
|
-
/* @__PURE__ */
|
|
6444
|
+
/* @__PURE__ */ React97.createElement(import_icons30.DatabaseIcon, { fontSize: "large" }),
|
|
6445
|
+
/* @__PURE__ */ React97.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n68.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
6446
|
+
/* @__PURE__ */ React97.createElement(import_ui46.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n68.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
6447
|
+
/* @__PURE__ */ React97.createElement(
|
|
6435
6448
|
import_editor_ui9.CtaButton,
|
|
6436
6449
|
{
|
|
6437
6450
|
size: "small",
|
|
@@ -6440,7 +6453,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fragment
|
|
|
6440
6453
|
}
|
|
6441
6454
|
)
|
|
6442
6455
|
));
|
|
6443
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6456
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(import_ui46.Divider, null), /* @__PURE__ */ React97.createElement(
|
|
6444
6457
|
import_ui46.Stack,
|
|
6445
6458
|
{
|
|
6446
6459
|
gap: 1,
|
|
@@ -6451,10 +6464,10 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fra
|
|
|
6451
6464
|
color: "text.secondary",
|
|
6452
6465
|
sx: { pb: 3.5 }
|
|
6453
6466
|
},
|
|
6454
|
-
/* @__PURE__ */
|
|
6455
|
-
/* @__PURE__ */
|
|
6456
|
-
/* @__PURE__ */
|
|
6457
|
-
/* @__PURE__ */
|
|
6467
|
+
/* @__PURE__ */ React97.createElement(import_icons30.DatabaseIcon, { fontSize: "large" }),
|
|
6468
|
+
/* @__PURE__ */ React97.createElement(import_ui46.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n68.__)("Unlock your Dynamic tags again", "elementor")),
|
|
6469
|
+
/* @__PURE__ */ React97.createElement(import_ui46.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n68.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6470
|
+
/* @__PURE__ */ React97.createElement(
|
|
6458
6471
|
import_editor_ui9.CtaButton,
|
|
6459
6472
|
{
|
|
6460
6473
|
size: "small",
|
|
@@ -6497,7 +6510,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6497
6510
|
const { name: tagName = "" } = value;
|
|
6498
6511
|
const dynamicTag = useDynamicTag(tagName);
|
|
6499
6512
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6500
|
-
return /* @__PURE__ */
|
|
6513
|
+
return /* @__PURE__ */ React98.createElement(import_editor_controls65.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React98.createElement(import_editor_controls65.PropKeyProvider, { bind }, /* @__PURE__ */ React98.createElement(OriginalControl, { ...props })));
|
|
6501
6514
|
}
|
|
6502
6515
|
const removeDynamicTag = () => {
|
|
6503
6516
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6505,25 +6518,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6505
6518
|
if (!dynamicTag) {
|
|
6506
6519
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6507
6520
|
}
|
|
6508
|
-
return /* @__PURE__ */
|
|
6521
|
+
return /* @__PURE__ */ React98.createElement(import_ui47.Box, null, /* @__PURE__ */ React98.createElement(
|
|
6509
6522
|
import_ui47.UnstableTag,
|
|
6510
6523
|
{
|
|
6511
6524
|
fullWidth: true,
|
|
6512
6525
|
showActionsOnHover: true,
|
|
6513
6526
|
label: dynamicTag.label,
|
|
6514
|
-
startIcon: /* @__PURE__ */
|
|
6527
|
+
startIcon: /* @__PURE__ */ React98.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE3 }),
|
|
6515
6528
|
...(0, import_ui47.bindTrigger)(selectionPopoverState),
|
|
6516
|
-
actions: /* @__PURE__ */
|
|
6529
|
+
actions: /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React98.createElement(
|
|
6517
6530
|
import_ui47.IconButton,
|
|
6518
6531
|
{
|
|
6519
6532
|
size: SIZE3,
|
|
6520
6533
|
onClick: removeDynamicTag,
|
|
6521
6534
|
"aria-label": (0, import_i18n69.__)("Remove dynamic value", "elementor")
|
|
6522
6535
|
},
|
|
6523
|
-
/* @__PURE__ */
|
|
6536
|
+
/* @__PURE__ */ React98.createElement(import_icons31.XIcon, { fontSize: SIZE3 })
|
|
6524
6537
|
))
|
|
6525
6538
|
}
|
|
6526
|
-
), /* @__PURE__ */
|
|
6539
|
+
), /* @__PURE__ */ React98.createElement(
|
|
6527
6540
|
import_ui47.Popover,
|
|
6528
6541
|
{
|
|
6529
6542
|
disablePortal: true,
|
|
@@ -6535,7 +6548,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6535
6548
|
},
|
|
6536
6549
|
...(0, import_ui47.bindPopover)(selectionPopoverState)
|
|
6537
6550
|
},
|
|
6538
|
-
/* @__PURE__ */
|
|
6551
|
+
/* @__PURE__ */ React98.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n69.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React98.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6539
6552
|
));
|
|
6540
6553
|
};
|
|
6541
6554
|
var DynamicSettingsPopover = ({
|
|
@@ -6547,7 +6560,7 @@ var DynamicSettingsPopover = ({
|
|
|
6547
6560
|
if (!hasDynamicSettings) {
|
|
6548
6561
|
return null;
|
|
6549
6562
|
}
|
|
6550
|
-
return /* @__PURE__ */
|
|
6563
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(
|
|
6551
6564
|
import_ui47.IconButton,
|
|
6552
6565
|
{
|
|
6553
6566
|
size: SIZE3,
|
|
@@ -6555,8 +6568,8 @@ var DynamicSettingsPopover = ({
|
|
|
6555
6568
|
...!disabled && (0, import_ui47.bindTrigger)(popupState),
|
|
6556
6569
|
"aria-label": (0, import_i18n69.__)("Dynamic settings", "elementor")
|
|
6557
6570
|
},
|
|
6558
|
-
/* @__PURE__ */
|
|
6559
|
-
), /* @__PURE__ */
|
|
6571
|
+
/* @__PURE__ */ React98.createElement(import_icons31.SettingsIcon, { fontSize: SIZE3 })
|
|
6572
|
+
), /* @__PURE__ */ React98.createElement(
|
|
6560
6573
|
import_ui47.Popover,
|
|
6561
6574
|
{
|
|
6562
6575
|
disablePortal: true,
|
|
@@ -6568,14 +6581,14 @@ var DynamicSettingsPopover = ({
|
|
|
6568
6581
|
},
|
|
6569
6582
|
...(0, import_ui47.bindPopover)(popupState)
|
|
6570
6583
|
},
|
|
6571
|
-
/* @__PURE__ */
|
|
6584
|
+
/* @__PURE__ */ React98.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n69.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React98.createElement(
|
|
6572
6585
|
import_editor_ui10.PopoverHeader,
|
|
6573
6586
|
{
|
|
6574
6587
|
title: dynamicTag.label,
|
|
6575
6588
|
onClose: popupState.close,
|
|
6576
|
-
icon: /* @__PURE__ */
|
|
6589
|
+
icon: /* @__PURE__ */ React98.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE3 })
|
|
6577
6590
|
}
|
|
6578
|
-
), /* @__PURE__ */
|
|
6591
|
+
), /* @__PURE__ */ React98.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6579
6592
|
));
|
|
6580
6593
|
};
|
|
6581
6594
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6586,9 +6599,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6586
6599
|
}
|
|
6587
6600
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6588
6601
|
const singleTab = tabs[0];
|
|
6589
|
-
return /* @__PURE__ */
|
|
6602
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(import_ui47.Divider, null), /* @__PURE__ */ React98.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6590
6603
|
}
|
|
6591
|
-
return /* @__PURE__ */
|
|
6604
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React98.createElement(import_ui47.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React98.createElement(
|
|
6592
6605
|
import_ui47.Tab,
|
|
6593
6606
|
{
|
|
6594
6607
|
key: index,
|
|
@@ -6596,15 +6609,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6596
6609
|
sx: { px: 1, py: 0.5 },
|
|
6597
6610
|
...getTabProps(index)
|
|
6598
6611
|
}
|
|
6599
|
-
))), /* @__PURE__ */
|
|
6600
|
-
return /* @__PURE__ */
|
|
6612
|
+
))), /* @__PURE__ */ React98.createElement(import_ui47.Divider, null), tabs.map(({ value }, index) => {
|
|
6613
|
+
return /* @__PURE__ */ React98.createElement(
|
|
6601
6614
|
import_ui47.TabPanel,
|
|
6602
6615
|
{
|
|
6603
6616
|
key: index,
|
|
6604
6617
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6605
6618
|
...getTabPanelProps(index)
|
|
6606
6619
|
},
|
|
6607
|
-
/* @__PURE__ */
|
|
6620
|
+
/* @__PURE__ */ React98.createElement(ControlsItemsStack, { items: value.items })
|
|
6608
6621
|
);
|
|
6609
6622
|
}));
|
|
6610
6623
|
};
|
|
@@ -6646,11 +6659,11 @@ var Control2 = ({ control }) => {
|
|
|
6646
6659
|
display: "grid",
|
|
6647
6660
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6648
6661
|
} : {};
|
|
6649
|
-
return /* @__PURE__ */
|
|
6662
|
+
return /* @__PURE__ */ React98.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React98.createElement(import_ui47.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React98.createElement(import_ui47.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(import_editor_controls65.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React98.createElement(import_ui47.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6650
6663
|
};
|
|
6651
6664
|
function ControlsItemsStack({ items: items3 }) {
|
|
6652
|
-
return /* @__PURE__ */
|
|
6653
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6665
|
+
return /* @__PURE__ */ React98.createElement(import_ui47.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6666
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React98.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6654
6667
|
));
|
|
6655
6668
|
}
|
|
6656
6669
|
|
|
@@ -6706,7 +6719,7 @@ function getDynamicValue(name, settings) {
|
|
|
6706
6719
|
}
|
|
6707
6720
|
|
|
6708
6721
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6709
|
-
var
|
|
6722
|
+
var React99 = __toESM(require("react"));
|
|
6710
6723
|
var import_editor_controls66 = require("@elementor/editor-controls");
|
|
6711
6724
|
var import_icons32 = require("@elementor/icons");
|
|
6712
6725
|
var import_i18n70 = require("@wordpress/i18n");
|
|
@@ -6717,7 +6730,7 @@ var usePropDynamicAction = () => {
|
|
|
6717
6730
|
visible,
|
|
6718
6731
|
icon: import_icons32.DatabaseIcon,
|
|
6719
6732
|
title: (0, import_i18n70.__)("Dynamic tags", "elementor"),
|
|
6720
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6733
|
+
content: ({ close }) => /* @__PURE__ */ React99.createElement(DynamicSelection, { close })
|
|
6721
6734
|
};
|
|
6722
6735
|
};
|
|
6723
6736
|
|
|
@@ -6835,14 +6848,14 @@ function useResetStyleValueProps() {
|
|
|
6835
6848
|
}
|
|
6836
6849
|
|
|
6837
6850
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6838
|
-
var
|
|
6851
|
+
var React105 = __toESM(require("react"));
|
|
6839
6852
|
var import_editor_controls69 = require("@elementor/editor-controls");
|
|
6840
6853
|
var import_editor_props23 = require("@elementor/editor-props");
|
|
6841
6854
|
var import_editor_styles_repository20 = require("@elementor/editor-styles-repository");
|
|
6842
6855
|
var import_i18n75 = require("@wordpress/i18n");
|
|
6843
6856
|
|
|
6844
6857
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6845
|
-
var
|
|
6858
|
+
var React104 = __toESM(require("react"));
|
|
6846
6859
|
var import_react47 = require("react");
|
|
6847
6860
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
6848
6861
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
@@ -6922,7 +6935,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6922
6935
|
};
|
|
6923
6936
|
|
|
6924
6937
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6925
|
-
var
|
|
6938
|
+
var React100 = __toESM(require("react"));
|
|
6926
6939
|
var import_editor_responsive4 = require("@elementor/editor-responsive");
|
|
6927
6940
|
var import_icons34 = require("@elementor/icons");
|
|
6928
6941
|
var import_ui48 = require("@elementor/ui");
|
|
@@ -6945,11 +6958,11 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6945
6958
|
return null;
|
|
6946
6959
|
}
|
|
6947
6960
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6948
|
-
return /* @__PURE__ */
|
|
6961
|
+
return /* @__PURE__ */ React100.createElement(import_ui48.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React100.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6949
6962
|
};
|
|
6950
6963
|
|
|
6951
6964
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6952
|
-
var
|
|
6965
|
+
var React101 = __toESM(require("react"));
|
|
6953
6966
|
var import_editor_styles_repository19 = require("@elementor/editor-styles-repository");
|
|
6954
6967
|
var import_icons35 = require("@elementor/icons");
|
|
6955
6968
|
var import_ui49 = require("@elementor/ui");
|
|
@@ -6957,8 +6970,8 @@ var import_i18n73 = require("@wordpress/i18n");
|
|
|
6957
6970
|
var SIZE5 = "tiny";
|
|
6958
6971
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6959
6972
|
const isBaseStyle = provider === import_editor_styles_repository19.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
6960
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
6961
|
-
return /* @__PURE__ */
|
|
6973
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React101.createElement(import_ui49.Tooltip, { title: (0, import_i18n73.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React101.createElement(import_icons35.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
6974
|
+
return /* @__PURE__ */ React101.createElement(
|
|
6962
6975
|
import_ui49.Chip,
|
|
6963
6976
|
{
|
|
6964
6977
|
label: displayLabel,
|
|
@@ -6984,10 +6997,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
6984
6997
|
};
|
|
6985
6998
|
|
|
6986
6999
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
6987
|
-
var
|
|
7000
|
+
var React102 = __toESM(require("react"));
|
|
6988
7001
|
var import_ui50 = require("@elementor/ui");
|
|
6989
7002
|
var ValueComponent = ({ index, value }) => {
|
|
6990
|
-
return /* @__PURE__ */
|
|
7003
|
+
return /* @__PURE__ */ React102.createElement(import_ui50.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React102.createElement(
|
|
6991
7004
|
import_ui50.Typography,
|
|
6992
7005
|
{
|
|
6993
7006
|
variant: "caption",
|
|
@@ -7009,9 +7022,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7009
7022
|
};
|
|
7010
7023
|
|
|
7011
7024
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7012
|
-
var
|
|
7025
|
+
var React103 = __toESM(require("react"));
|
|
7013
7026
|
var import_ui51 = require("@elementor/ui");
|
|
7014
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7027
|
+
var ActionIcons = () => /* @__PURE__ */ React103.createElement(import_ui51.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7015
7028
|
|
|
7016
7029
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7017
7030
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7047,7 +7060,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7047
7060
|
});
|
|
7048
7061
|
}, [key, propType]);
|
|
7049
7062
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7050
|
-
const infotipContent = /* @__PURE__ */
|
|
7063
|
+
const infotipContent = /* @__PURE__ */ React104.createElement(import_ui52.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React104.createElement(
|
|
7051
7064
|
import_ui52.Card,
|
|
7052
7065
|
{
|
|
7053
7066
|
elevation: 0,
|
|
@@ -7060,7 +7073,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7060
7073
|
flexDirection: "column"
|
|
7061
7074
|
}
|
|
7062
7075
|
},
|
|
7063
|
-
/* @__PURE__ */
|
|
7076
|
+
/* @__PURE__ */ React104.createElement(
|
|
7064
7077
|
import_ui52.Box,
|
|
7065
7078
|
{
|
|
7066
7079
|
sx: {
|
|
@@ -7070,9 +7083,9 @@ var StylesInheritanceInfotip = ({
|
|
|
7070
7083
|
backgroundColor: "background.paper"
|
|
7071
7084
|
}
|
|
7072
7085
|
},
|
|
7073
|
-
/* @__PURE__ */
|
|
7086
|
+
/* @__PURE__ */ React104.createElement(import_editor_ui11.PopoverHeader, { title: (0, import_i18n74.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
7074
7087
|
),
|
|
7075
|
-
/* @__PURE__ */
|
|
7088
|
+
/* @__PURE__ */ React104.createElement(
|
|
7076
7089
|
import_ui52.CardContent,
|
|
7077
7090
|
{
|
|
7078
7091
|
sx: {
|
|
@@ -7086,8 +7099,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7086
7099
|
}
|
|
7087
7100
|
}
|
|
7088
7101
|
},
|
|
7089
|
-
/* @__PURE__ */
|
|
7090
|
-
return /* @__PURE__ */
|
|
7102
|
+
/* @__PURE__ */ React104.createElement(import_ui52.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7103
|
+
return /* @__PURE__ */ React104.createElement(
|
|
7091
7104
|
import_ui52.Box,
|
|
7092
7105
|
{
|
|
7093
7106
|
key: item.id,
|
|
@@ -7099,26 +7112,26 @@ var StylesInheritanceInfotip = ({
|
|
|
7099
7112
|
item.displayLabel
|
|
7100
7113
|
)
|
|
7101
7114
|
},
|
|
7102
|
-
/* @__PURE__ */
|
|
7115
|
+
/* @__PURE__ */ React104.createElement(
|
|
7103
7116
|
import_ui52.Box,
|
|
7104
7117
|
{
|
|
7105
7118
|
display: "flex",
|
|
7106
7119
|
gap: 0.5,
|
|
7107
7120
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7108
7121
|
},
|
|
7109
|
-
/* @__PURE__ */
|
|
7110
|
-
/* @__PURE__ */
|
|
7111
|
-
/* @__PURE__ */
|
|
7122
|
+
/* @__PURE__ */ React104.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7123
|
+
/* @__PURE__ */ React104.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7124
|
+
/* @__PURE__ */ React104.createElement(ValueComponent, { index, value: item.value })
|
|
7112
7125
|
),
|
|
7113
|
-
/* @__PURE__ */
|
|
7126
|
+
/* @__PURE__ */ React104.createElement(ActionIcons, null)
|
|
7114
7127
|
);
|
|
7115
7128
|
}))
|
|
7116
7129
|
)
|
|
7117
7130
|
));
|
|
7118
7131
|
if (isDisabled) {
|
|
7119
|
-
return /* @__PURE__ */
|
|
7132
|
+
return /* @__PURE__ */ React104.createElement(import_ui52.Box, { sx: { display: "inline-flex" } }, children);
|
|
7120
7133
|
}
|
|
7121
|
-
return /* @__PURE__ */
|
|
7134
|
+
return /* @__PURE__ */ React104.createElement(import_ui52.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React104.createElement(
|
|
7122
7135
|
TooltipOrInfotip,
|
|
7123
7136
|
{
|
|
7124
7137
|
showInfotip,
|
|
@@ -7126,7 +7139,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7126
7139
|
infotipContent,
|
|
7127
7140
|
isDisabled
|
|
7128
7141
|
},
|
|
7129
|
-
/* @__PURE__ */
|
|
7142
|
+
/* @__PURE__ */ React104.createElement(
|
|
7130
7143
|
import_ui52.IconButton,
|
|
7131
7144
|
{
|
|
7132
7145
|
onClick: toggleInfotip,
|
|
@@ -7146,10 +7159,10 @@ function TooltipOrInfotip({
|
|
|
7146
7159
|
isDisabled
|
|
7147
7160
|
}) {
|
|
7148
7161
|
if (isDisabled) {
|
|
7149
|
-
return /* @__PURE__ */
|
|
7162
|
+
return /* @__PURE__ */ React104.createElement(import_ui52.Box, { sx: { display: "inline-flex" } }, children);
|
|
7150
7163
|
}
|
|
7151
7164
|
if (showInfotip) {
|
|
7152
|
-
return /* @__PURE__ */
|
|
7165
|
+
return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(
|
|
7153
7166
|
import_ui52.Backdrop,
|
|
7154
7167
|
{
|
|
7155
7168
|
open: showInfotip,
|
|
@@ -7159,7 +7172,7 @@ function TooltipOrInfotip({
|
|
|
7159
7172
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7160
7173
|
}
|
|
7161
7174
|
}
|
|
7162
|
-
), /* @__PURE__ */
|
|
7175
|
+
), /* @__PURE__ */ React104.createElement(
|
|
7163
7176
|
import_ui52.Infotip,
|
|
7164
7177
|
{
|
|
7165
7178
|
placement: "top-end",
|
|
@@ -7171,7 +7184,7 @@ function TooltipOrInfotip({
|
|
|
7171
7184
|
children
|
|
7172
7185
|
));
|
|
7173
7186
|
}
|
|
7174
|
-
return /* @__PURE__ */
|
|
7187
|
+
return /* @__PURE__ */ React104.createElement(import_ui52.Tooltip, { title: (0, import_i18n74.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
7175
7188
|
}
|
|
7176
7189
|
|
|
7177
7190
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7184,7 +7197,7 @@ var StylesInheritanceIndicator = ({
|
|
|
7184
7197
|
if (!path || !inheritanceChain.length) {
|
|
7185
7198
|
return null;
|
|
7186
7199
|
}
|
|
7187
|
-
return /* @__PURE__ */
|
|
7200
|
+
return /* @__PURE__ */ React105.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7188
7201
|
};
|
|
7189
7202
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7190
7203
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -7200,7 +7213,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7200
7213
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7201
7214
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7202
7215
|
};
|
|
7203
|
-
return /* @__PURE__ */
|
|
7216
|
+
return /* @__PURE__ */ React105.createElement(
|
|
7204
7217
|
StylesInheritanceInfotip,
|
|
7205
7218
|
{
|
|
7206
7219
|
inheritanceChain,
|
|
@@ -7209,7 +7222,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7209
7222
|
label,
|
|
7210
7223
|
isDisabled
|
|
7211
7224
|
},
|
|
7212
|
-
/* @__PURE__ */
|
|
7225
|
+
/* @__PURE__ */ React105.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7213
7226
|
);
|
|
7214
7227
|
};
|
|
7215
7228
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
@@ -7240,7 +7253,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7240
7253
|
]);
|
|
7241
7254
|
|
|
7242
7255
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7243
|
-
var
|
|
7256
|
+
var React106 = __toESM(require("react"));
|
|
7244
7257
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
7245
7258
|
var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) => {
|
|
7246
7259
|
if (!values || values.length === 0) {
|
|
@@ -7250,16 +7263,16 @@ var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) =>
|
|
|
7250
7263
|
if (allStrings) {
|
|
7251
7264
|
return values.join(" ");
|
|
7252
7265
|
}
|
|
7253
|
-
return /* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ React106.createElement(React106.Fragment, null, values.map((item, index) => /* @__PURE__ */ React106.createElement(React106.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7254
7267
|
});
|
|
7255
7268
|
|
|
7256
7269
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7257
|
-
var
|
|
7270
|
+
var React107 = __toESM(require("react"));
|
|
7258
7271
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
7259
7272
|
var import_ui53 = require("@elementor/ui");
|
|
7260
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */
|
|
7273
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React107.createElement(import_ui53.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React107.createElement(ItemLabelColor, { value })));
|
|
7261
7274
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7262
|
-
return /* @__PURE__ */
|
|
7275
|
+
return /* @__PURE__ */ React107.createElement("span", null, color);
|
|
7263
7276
|
};
|
|
7264
7277
|
var StyledUnstableColorIndicator = (0, import_ui53.styled)(import_ui53.UnstableColorIndicator)(({ theme }) => ({
|
|
7265
7278
|
width: "1em",
|
|
@@ -7270,20 +7283,20 @@ var StyledUnstableColorIndicator = (0, import_ui53.styled)(import_ui53.UnstableC
|
|
|
7270
7283
|
}));
|
|
7271
7284
|
|
|
7272
7285
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7273
|
-
var
|
|
7286
|
+
var React108 = __toESM(require("react"));
|
|
7274
7287
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
7275
7288
|
var import_ui54 = require("@elementor/ui");
|
|
7276
7289
|
var import_i18n76 = require("@wordpress/i18n");
|
|
7277
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */
|
|
7290
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React108.createElement(import_ui54.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React108.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React108.createElement(ItemLabelGradient, { value })));
|
|
7278
7291
|
var ItemIconGradient = ({ value }) => {
|
|
7279
7292
|
const gradient = getGradientValue(value);
|
|
7280
|
-
return /* @__PURE__ */
|
|
7293
|
+
return /* @__PURE__ */ React108.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7281
7294
|
};
|
|
7282
7295
|
var ItemLabelGradient = ({ value }) => {
|
|
7283
7296
|
if (value.type === "linear") {
|
|
7284
|
-
return /* @__PURE__ */
|
|
7297
|
+
return /* @__PURE__ */ React108.createElement("span", null, (0, import_i18n76.__)("Linear gradient", "elementor"));
|
|
7285
7298
|
}
|
|
7286
|
-
return /* @__PURE__ */
|
|
7299
|
+
return /* @__PURE__ */ React108.createElement("span", null, (0, import_i18n76.__)("Radial gradient", "elementor"));
|
|
7287
7300
|
};
|
|
7288
7301
|
var getGradientValue = (gradient) => {
|
|
7289
7302
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7294,15 +7307,15 @@ var getGradientValue = (gradient) => {
|
|
|
7294
7307
|
};
|
|
7295
7308
|
|
|
7296
7309
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7297
|
-
var
|
|
7310
|
+
var React109 = __toESM(require("react"));
|
|
7298
7311
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
7299
7312
|
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
7300
7313
|
var import_ui55 = require("@elementor/ui");
|
|
7301
7314
|
var import_wp_media = require("@elementor/wp-media");
|
|
7302
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */
|
|
7315
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React109.createElement(import_ui55.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React109.createElement(ItemIconImage, { value }), /* @__PURE__ */ React109.createElement(ItemLabelImage, { value })));
|
|
7303
7316
|
var ItemIconImage = ({ value }) => {
|
|
7304
7317
|
const { imageUrl } = useImage(value);
|
|
7305
|
-
return /* @__PURE__ */
|
|
7318
|
+
return /* @__PURE__ */ React109.createElement(
|
|
7306
7319
|
import_ui55.CardMedia,
|
|
7307
7320
|
{
|
|
7308
7321
|
image: imageUrl,
|
|
@@ -7318,7 +7331,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7318
7331
|
};
|
|
7319
7332
|
var ItemLabelImage = ({ value }) => {
|
|
7320
7333
|
const { imageTitle } = useImage(value);
|
|
7321
|
-
return /* @__PURE__ */
|
|
7334
|
+
return /* @__PURE__ */ React109.createElement(import_editor_ui12.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React109.createElement("span", null, imageTitle));
|
|
7322
7335
|
};
|
|
7323
7336
|
var useImage = (image) => {
|
|
7324
7337
|
let imageTitle, imageUrl = null;
|
|
@@ -7343,7 +7356,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7343
7356
|
};
|
|
7344
7357
|
|
|
7345
7358
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7346
|
-
var
|
|
7359
|
+
var React110 = __toESM(require("react"));
|
|
7347
7360
|
var import_editor_canvas10 = require("@elementor/editor-canvas");
|
|
7348
7361
|
var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value) => {
|
|
7349
7362
|
if (!value) {
|
|
@@ -7353,11 +7366,11 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
|
|
|
7353
7366
|
const colorValue = color || "#000000";
|
|
7354
7367
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7355
7368
|
const positionValue = position || "outset";
|
|
7356
|
-
return /* @__PURE__ */
|
|
7369
|
+
return /* @__PURE__ */ React110.createElement(React110.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7357
7370
|
});
|
|
7358
7371
|
|
|
7359
7372
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7360
|
-
var
|
|
7373
|
+
var React111 = __toESM(require("react"));
|
|
7361
7374
|
var import_editor_canvas11 = require("@elementor/editor-canvas");
|
|
7362
7375
|
var import_ui56 = require("@elementor/ui");
|
|
7363
7376
|
function isValidCSSColor(value) {
|
|
@@ -7377,7 +7390,7 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
|
|
|
7377
7390
|
if (!isValidCSSColor(value)) {
|
|
7378
7391
|
return value;
|
|
7379
7392
|
}
|
|
7380
|
-
return /* @__PURE__ */
|
|
7393
|
+
return /* @__PURE__ */ React111.createElement(import_ui56.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React111.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React111.createElement("span", null, value));
|
|
7381
7394
|
});
|
|
7382
7395
|
|
|
7383
7396
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|