@elementor/editor-editing-panel 4.4.0-1090 → 4.4.0-1092
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 +1093 -1014
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +872 -793
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -24
- package/src/components/content-only-infotip.tsx +51 -0
- package/src/components/editing-panel-tabs.tsx +63 -9
package/dist/index.js
CHANGED
|
@@ -1986,17 +1986,17 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1986
1986
|
};
|
|
1987
1987
|
|
|
1988
1988
|
// src/components/editing-panel.tsx
|
|
1989
|
-
var
|
|
1989
|
+
var React93 = __toESM(require("react"));
|
|
1990
1990
|
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
1991
1991
|
var import_editor_elements15 = require("@elementor/editor-elements");
|
|
1992
1992
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1993
1993
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
1994
|
-
var
|
|
1994
|
+
var import_icons28 = require("@elementor/icons");
|
|
1995
1995
|
var import_locations5 = require("@elementor/locations");
|
|
1996
1996
|
var import_menus = require("@elementor/menus");
|
|
1997
1997
|
var import_session9 = require("@elementor/session");
|
|
1998
|
-
var
|
|
1999
|
-
var
|
|
1998
|
+
var import_ui46 = require("@elementor/ui");
|
|
1999
|
+
var import_i18n66 = require("@wordpress/i18n");
|
|
2000
2000
|
|
|
2001
2001
|
// src/editing-panel-replacement-registry.tsx
|
|
2002
2002
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -2031,11 +2031,12 @@ var EditingPanelStickyPromotion = () => {
|
|
|
2031
2031
|
};
|
|
2032
2032
|
|
|
2033
2033
|
// src/components/editing-panel-tabs.tsx
|
|
2034
|
-
var
|
|
2035
|
-
var
|
|
2034
|
+
var import_react38 = require("react");
|
|
2035
|
+
var React92 = __toESM(require("react"));
|
|
2036
|
+
var import_editor_current_user = require("@elementor/editor-current-user");
|
|
2036
2037
|
var import_editor_elements14 = require("@elementor/editor-elements");
|
|
2037
|
-
var
|
|
2038
|
-
var
|
|
2038
|
+
var import_ui45 = require("@elementor/ui");
|
|
2039
|
+
var import_i18n65 = require("@wordpress/i18n");
|
|
2039
2040
|
|
|
2040
2041
|
// src/contexts/scroll-context.tsx
|
|
2041
2042
|
var React17 = __toESM(require("react"));
|
|
@@ -2125,25 +2126,65 @@ var useStateByElement = (key, initialValue) => {
|
|
|
2125
2126
|
return [value, doUpdate];
|
|
2126
2127
|
};
|
|
2127
2128
|
|
|
2129
|
+
// src/components/content-only-infotip.tsx
|
|
2130
|
+
var React18 = __toESM(require("react"));
|
|
2131
|
+
var import_react17 = require("react");
|
|
2132
|
+
var import_icons5 = require("@elementor/icons");
|
|
2133
|
+
var import_ui12 = require("@elementor/ui");
|
|
2134
|
+
var import_i18n10 = require("@wordpress/i18n");
|
|
2135
|
+
var LEARN_MORE_URL = "https://go.elementor.com/content-only-access-infotip";
|
|
2136
|
+
var INFOTIP_WIDTH = 300;
|
|
2137
|
+
var ContentOnlyInfotip = ({ children }) => {
|
|
2138
|
+
const [isOpen, setIsOpen] = (0, import_react17.useState)(false);
|
|
2139
|
+
return /* @__PURE__ */ React18.createElement(
|
|
2140
|
+
import_ui12.Infotip,
|
|
2141
|
+
{
|
|
2142
|
+
open: isOpen,
|
|
2143
|
+
placement: "bottom",
|
|
2144
|
+
color: "secondary",
|
|
2145
|
+
content: /* @__PURE__ */ React18.createElement(import_ui12.Alert, { color: "secondary", icon: /* @__PURE__ */ React18.createElement(import_icons5.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React18.createElement(import_ui12.AlertTitle, null, (0, import_i18n10.__)("Content-only access", "elementor")), /* @__PURE__ */ React18.createElement(import_ui12.Box, { component: "span" }, (0, import_i18n10.__)("Your Site Admin has limited this role to content editing.", "elementor"), " ", /* @__PURE__ */ React18.createElement(import_ui12.Link, { href: LEARN_MORE_URL, target: "_blank", rel: "noreferrer", color: "info.main" }, (0, import_i18n10.__)("Learn More", "elementor")))),
|
|
2146
|
+
slotProps: {
|
|
2147
|
+
popper: {
|
|
2148
|
+
sx: { width: INFOTIP_WIDTH },
|
|
2149
|
+
// The popper is portaled, so it needs its own hover handlers to stay open while the pointer
|
|
2150
|
+
// travels from the tab to the "Learn More" link.
|
|
2151
|
+
onMouseEnter: () => setIsOpen(true),
|
|
2152
|
+
onMouseLeave: () => setIsOpen(false)
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
/* @__PURE__ */ React18.createElement(
|
|
2157
|
+
import_ui12.Box,
|
|
2158
|
+
{
|
|
2159
|
+
component: "span",
|
|
2160
|
+
sx: { pointerEvents: "auto" },
|
|
2161
|
+
onMouseEnter: () => setIsOpen(true),
|
|
2162
|
+
onMouseLeave: () => setIsOpen(false)
|
|
2163
|
+
},
|
|
2164
|
+
children
|
|
2165
|
+
)
|
|
2166
|
+
);
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2128
2169
|
// src/components/interactions-tab.tsx
|
|
2129
|
-
var
|
|
2170
|
+
var React20 = __toESM(require("react"));
|
|
2130
2171
|
var import_editor_interactions = require("@elementor/editor-interactions");
|
|
2131
2172
|
|
|
2132
2173
|
// src/components/sections-list.tsx
|
|
2133
|
-
var
|
|
2134
|
-
var
|
|
2174
|
+
var React19 = __toESM(require("react"));
|
|
2175
|
+
var import_ui13 = require("@elementor/ui");
|
|
2135
2176
|
function SectionsList(props) {
|
|
2136
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ React19.createElement(import_ui13.List, { disablePadding: true, component: "div", ...props });
|
|
2137
2178
|
}
|
|
2138
2179
|
|
|
2139
2180
|
// src/components/interactions-tab.tsx
|
|
2140
2181
|
var InteractionsTab = () => {
|
|
2141
2182
|
const { element } = useElement();
|
|
2142
|
-
return /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ React20.createElement(SectionsList, null, /* @__PURE__ */ React20.createElement(import_editor_interactions.InteractionsTab, { elementId: element.id }));
|
|
2143
2184
|
};
|
|
2144
2185
|
|
|
2145
2186
|
// src/components/settings-tab.tsx
|
|
2146
|
-
var
|
|
2187
|
+
var React26 = __toESM(require("react"));
|
|
2147
2188
|
var import_session6 = require("@elementor/session");
|
|
2148
2189
|
|
|
2149
2190
|
// src/utils/prop-dependency-utils.ts
|
|
@@ -2353,13 +2394,13 @@ function removePreviousValueFromStorage({ path, elementId }) {
|
|
|
2353
2394
|
}
|
|
2354
2395
|
|
|
2355
2396
|
// src/components/section.tsx
|
|
2356
|
-
var
|
|
2357
|
-
var
|
|
2397
|
+
var React21 = __toESM(require("react"));
|
|
2398
|
+
var import_react18 = require("react");
|
|
2358
2399
|
var import_editor_ui5 = require("@elementor/editor-ui");
|
|
2359
|
-
var
|
|
2400
|
+
var import_ui14 = require("@elementor/ui");
|
|
2360
2401
|
function Section({ title, children, defaultExpanded = false, titleEnd, unmountOnExit = true, action }) {
|
|
2361
2402
|
const [isOpen, setIsOpen] = useStateByElement(title, !!defaultExpanded);
|
|
2362
|
-
const ref = (0,
|
|
2403
|
+
const ref = (0, import_react18.useRef)(null);
|
|
2363
2404
|
const isDisabled = !!action;
|
|
2364
2405
|
const handleClick = () => {
|
|
2365
2406
|
if (isDisabled) {
|
|
@@ -2368,11 +2409,11 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2368
2409
|
setIsOpen(!isOpen);
|
|
2369
2410
|
}
|
|
2370
2411
|
};
|
|
2371
|
-
const id = (0,
|
|
2412
|
+
const id = (0, import_react18.useId)();
|
|
2372
2413
|
const labelId = `label-${id}`;
|
|
2373
2414
|
const contentId = `content-${id}`;
|
|
2374
|
-
return /* @__PURE__ */
|
|
2375
|
-
|
|
2415
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
|
|
2416
|
+
import_ui14.ListItemButton,
|
|
2376
2417
|
{
|
|
2377
2418
|
id: labelId,
|
|
2378
2419
|
"aria-controls": contentId,
|
|
@@ -2380,8 +2421,8 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2380
2421
|
onClick: handleClick,
|
|
2381
2422
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2382
2423
|
},
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
|
|
2424
|
+
/* @__PURE__ */ React21.createElement(import_ui14.Stack, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React21.createElement(
|
|
2425
|
+
import_ui14.ListItemText,
|
|
2385
2426
|
{
|
|
2386
2427
|
secondary: title,
|
|
2387
2428
|
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
|
|
@@ -2389,7 +2430,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2389
2430
|
}
|
|
2390
2431
|
), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen)),
|
|
2391
2432
|
action?.component,
|
|
2392
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ React21.createElement(
|
|
2393
2434
|
import_editor_ui5.CollapseIcon,
|
|
2394
2435
|
{
|
|
2395
2436
|
open: isOpen,
|
|
@@ -2399,8 +2440,8 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2399
2440
|
sx: { ml: 1 }
|
|
2400
2441
|
}
|
|
2401
2442
|
)
|
|
2402
|
-
), /* @__PURE__ */
|
|
2403
|
-
|
|
2443
|
+
), /* @__PURE__ */ React21.createElement(
|
|
2444
|
+
import_ui14.Collapse,
|
|
2404
2445
|
{
|
|
2405
2446
|
id: contentId,
|
|
2406
2447
|
"aria-labelledby": labelId,
|
|
@@ -2408,17 +2449,17 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2408
2449
|
timeout: "auto",
|
|
2409
2450
|
unmountOnExit
|
|
2410
2451
|
},
|
|
2411
|
-
/* @__PURE__ */
|
|
2412
|
-
), /* @__PURE__ */
|
|
2452
|
+
/* @__PURE__ */ React21.createElement(import_editor_ui5.SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React21.createElement(import_ui14.Stack, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
|
|
2453
|
+
), /* @__PURE__ */ React21.createElement(import_ui14.Divider, null));
|
|
2413
2454
|
}
|
|
2414
2455
|
|
|
2415
2456
|
// src/components/settings-control.tsx
|
|
2416
|
-
var
|
|
2457
|
+
var React25 = __toESM(require("react"));
|
|
2417
2458
|
var import_editor_controls4 = require("@elementor/editor-controls");
|
|
2418
|
-
var
|
|
2459
|
+
var import_ui16 = require("@elementor/ui");
|
|
2419
2460
|
|
|
2420
2461
|
// src/controls-registry/control.tsx
|
|
2421
|
-
var
|
|
2462
|
+
var React22 = __toESM(require("react"));
|
|
2422
2463
|
|
|
2423
2464
|
// src/controls-registry/controls-registry.tsx
|
|
2424
2465
|
var import_editor_controls2 = require("@elementor/editor-controls");
|
|
@@ -2505,19 +2546,19 @@ var Control = ({ props, type }) => {
|
|
|
2505
2546
|
context: { controlType: type }
|
|
2506
2547
|
});
|
|
2507
2548
|
}
|
|
2508
|
-
return /* @__PURE__ */
|
|
2549
|
+
return /* @__PURE__ */ React22.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
2509
2550
|
};
|
|
2510
2551
|
|
|
2511
2552
|
// src/controls-registry/control-type-container.tsx
|
|
2512
|
-
var
|
|
2513
|
-
var
|
|
2553
|
+
var React23 = __toESM(require("react"));
|
|
2554
|
+
var import_ui15 = require("@elementor/ui");
|
|
2514
2555
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
2515
2556
|
if (layout === "custom") {
|
|
2516
2557
|
return children;
|
|
2517
2558
|
}
|
|
2518
|
-
return /* @__PURE__ */
|
|
2559
|
+
return /* @__PURE__ */ React23.createElement(StyledContainer, { layout }, children);
|
|
2519
2560
|
};
|
|
2520
|
-
var StyledContainer = (0,
|
|
2561
|
+
var StyledContainer = (0, import_ui15.styled)(import_ui15.Box, {
|
|
2521
2562
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
2522
2563
|
})(({ layout, theme }) => ({
|
|
2523
2564
|
display: "grid",
|
|
@@ -2543,15 +2584,15 @@ var getStyleByLayout = (layout) => {
|
|
|
2543
2584
|
};
|
|
2544
2585
|
|
|
2545
2586
|
// src/controls-registry/settings-field.tsx
|
|
2546
|
-
var
|
|
2547
|
-
var
|
|
2587
|
+
var React24 = __toESM(require("react"));
|
|
2588
|
+
var import_react19 = require("react");
|
|
2548
2589
|
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
2549
2590
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
2550
2591
|
var import_editor_elements6 = require("@elementor/editor-elements");
|
|
2551
2592
|
var import_editor_props7 = require("@elementor/editor-props");
|
|
2552
2593
|
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
2553
2594
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
2554
|
-
var
|
|
2595
|
+
var import_i18n11 = require("@wordpress/i18n");
|
|
2555
2596
|
|
|
2556
2597
|
// src/utils/is-responsive-prop-type.ts
|
|
2557
2598
|
function isResponsivePropType(propType) {
|
|
@@ -2612,14 +2653,14 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2612
2653
|
(0, import_editor_elements6.updateElementSettings)({ id: elementId, props: settings, withHistory: false });
|
|
2613
2654
|
}
|
|
2614
2655
|
};
|
|
2615
|
-
return /* @__PURE__ */
|
|
2656
|
+
return /* @__PURE__ */ React24.createElement(import_editor_controls3.PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React24.createElement(import_editor_controls3.PropKeyProvider, { bind }, isResponsivePropType(propsSchema[bind]) ? /* @__PURE__ */ React24.createElement(ResponsiveBinding, null, children) : children));
|
|
2616
2657
|
};
|
|
2617
2658
|
var ResponsiveBinding = ({ children }) => {
|
|
2618
2659
|
const { value, setValue, propType, disabled } = (0, import_editor_controls3.useBoundProp)(import_editor_props7.responsivePropTypeUtil);
|
|
2619
2660
|
const breakpoint = (0, import_editor_responsive2.useActiveBreakpoint)() ?? DESKTOP_BREAKPOINT;
|
|
2620
2661
|
const activeBreakpoints = ((0, import_editor_responsive2.useBreakpoints)() ?? []).map(({ id }) => id);
|
|
2621
2662
|
const inherited = (0, import_editor_props7.responsiveFallbackChain)(breakpoint).filter((key) => key !== breakpoint && activeBreakpoints.includes(key)).map((key) => value?.[key]).find((entry) => entry !== null && entry !== void 0);
|
|
2622
|
-
return /* @__PURE__ */
|
|
2663
|
+
return /* @__PURE__ */ React24.createElement(
|
|
2623
2664
|
import_editor_controls3.PropProvider,
|
|
2624
2665
|
{
|
|
2625
2666
|
propType,
|
|
@@ -2628,14 +2669,14 @@ var ResponsiveBinding = ({ children }) => {
|
|
|
2628
2669
|
placeholder: { [breakpoint]: inherited },
|
|
2629
2670
|
isDisabled: () => disabled
|
|
2630
2671
|
},
|
|
2631
|
-
/* @__PURE__ */
|
|
2672
|
+
/* @__PURE__ */ React24.createElement(import_editor_controls3.PropKeyProvider, { bind: breakpoint }, children)
|
|
2632
2673
|
);
|
|
2633
2674
|
};
|
|
2634
2675
|
function useUndoableUpdateElementProp({
|
|
2635
2676
|
elementId,
|
|
2636
2677
|
propDisplayName
|
|
2637
2678
|
}) {
|
|
2638
|
-
return (0,
|
|
2679
|
+
return (0, import_react19.useMemo)(() => {
|
|
2639
2680
|
return (0, import_editor_v1_adapters4.undoable)(
|
|
2640
2681
|
{
|
|
2641
2682
|
do: (newSettings) => {
|
|
@@ -2651,7 +2692,7 @@ function useUndoableUpdateElementProp({
|
|
|
2651
2692
|
{
|
|
2652
2693
|
title: (0, import_editor_elements6.getElementLabel)(elementId),
|
|
2653
2694
|
// translators: %s is the name of the property that was edited.
|
|
2654
|
-
subtitle: (0,
|
|
2695
|
+
subtitle: (0, import_i18n11.__)("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2655
2696
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2656
2697
|
}
|
|
2657
2698
|
);
|
|
@@ -2679,7 +2720,7 @@ var registerFieldIndicator = ({
|
|
|
2679
2720
|
var getFieldIndicators = (fieldType) => Array.from(indicatorsRegistry[fieldType].values()).sort((a, b) => a.priority - b.priority).map(({ id, indicator: Adornment }) => ({ id, Adornment }));
|
|
2680
2721
|
|
|
2681
2722
|
// src/components/settings-control.tsx
|
|
2682
|
-
var Wrapper = (0,
|
|
2723
|
+
var Wrapper = (0, import_ui16.styled)("span")`
|
|
2683
2724
|
display: contents;
|
|
2684
2725
|
`;
|
|
2685
2726
|
var SettingsControl = ({ control: { value, type } }) => {
|
|
@@ -2692,9 +2733,9 @@ var SettingsControl = ({ control: { value, type } }) => {
|
|
|
2692
2733
|
controlProps.label = value.label;
|
|
2693
2734
|
}
|
|
2694
2735
|
if (type === "element-control") {
|
|
2695
|
-
return /* @__PURE__ */
|
|
2736
|
+
return /* @__PURE__ */ React25.createElement(ControlLayout, { control: value, layout, controlProps });
|
|
2696
2737
|
}
|
|
2697
|
-
return /* @__PURE__ */
|
|
2738
|
+
return /* @__PURE__ */ React25.createElement(SettingsField, { bind: value.bind, propDisplayName: value.label || value.bind }, /* @__PURE__ */ React25.createElement(ControlLayout, { control: value, layout, controlProps }));
|
|
2698
2739
|
};
|
|
2699
2740
|
var ControlLayout = ({
|
|
2700
2741
|
control,
|
|
@@ -2702,7 +2743,7 @@ var ControlLayout = ({
|
|
|
2702
2743
|
controlProps
|
|
2703
2744
|
}) => {
|
|
2704
2745
|
const controlType = control.type;
|
|
2705
|
-
return /* @__PURE__ */
|
|
2746
|
+
return /* @__PURE__ */ React25.createElement(import_editor_controls4.ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React25.createElement(import_ui16.Divider, null), /* @__PURE__ */ React25.createElement(Wrapper, { "data-type": "settings-field" }, /* @__PURE__ */ React25.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React25.createElement(ControlLabel, null, control.label) : null, /* @__PURE__ */ React25.createElement(Control, { type: controlType, props: controlProps }))));
|
|
2706
2747
|
};
|
|
2707
2748
|
function populateChildControlProps(props) {
|
|
2708
2749
|
if (props.childControlType) {
|
|
@@ -2726,9 +2767,9 @@ var SettingsTab = () => {
|
|
|
2726
2767
|
const settingsDefault = useDefaultPanelSettings();
|
|
2727
2768
|
const currentSettings = settings;
|
|
2728
2769
|
const isDefaultExpanded = (sectionId) => !!sectionId && settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2729
|
-
return /* @__PURE__ */
|
|
2770
|
+
return /* @__PURE__ */ React26.createElement(import_session6.SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React26.createElement(SectionsList, null, elementType.controls.map((control, index) => {
|
|
2730
2771
|
if (isControl(control)) {
|
|
2731
|
-
return /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ React26.createElement(SettingsControl, { key: getKey(control, element), control });
|
|
2732
2773
|
}
|
|
2733
2774
|
const { type, value } = control;
|
|
2734
2775
|
if (type === "section") {
|
|
@@ -2741,7 +2782,7 @@ var SettingsTab = () => {
|
|
|
2741
2782
|
if (!sectionItems.length) {
|
|
2742
2783
|
return null;
|
|
2743
2784
|
}
|
|
2744
|
-
return /* @__PURE__ */
|
|
2785
|
+
return /* @__PURE__ */ React26.createElement(
|
|
2745
2786
|
Section,
|
|
2746
2787
|
{
|
|
2747
2788
|
title: value.label,
|
|
@@ -2776,7 +2817,7 @@ function renderSectionItems({
|
|
|
2776
2817
|
if (item.type === "control" && isControlHiddenByDependencies(item, propsSchema, settings)) {
|
|
2777
2818
|
return [];
|
|
2778
2819
|
}
|
|
2779
|
-
return [/* @__PURE__ */
|
|
2820
|
+
return [/* @__PURE__ */ React26.createElement(SettingsControl, { key: getKey(item, element), control: item })];
|
|
2780
2821
|
}) ?? [];
|
|
2781
2822
|
}
|
|
2782
2823
|
function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
@@ -2785,17 +2826,17 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2785
2826
|
}
|
|
2786
2827
|
|
|
2787
2828
|
// src/components/style-tab.tsx
|
|
2788
|
-
var
|
|
2789
|
-
var
|
|
2829
|
+
var React91 = __toESM(require("react"));
|
|
2830
|
+
var import_react37 = require("react");
|
|
2790
2831
|
var import_editor_props17 = require("@elementor/editor-props");
|
|
2791
2832
|
var import_editor_responsive4 = require("@elementor/editor-responsive");
|
|
2792
2833
|
var import_locations4 = require("@elementor/locations");
|
|
2793
2834
|
var import_session8 = require("@elementor/session");
|
|
2794
|
-
var
|
|
2835
|
+
var import_ui44 = require("@elementor/ui");
|
|
2795
2836
|
|
|
2796
2837
|
// src/contexts/styles-inheritance-context.tsx
|
|
2797
|
-
var
|
|
2798
|
-
var
|
|
2838
|
+
var React27 = __toESM(require("react"));
|
|
2839
|
+
var import_react20 = require("react");
|
|
2799
2840
|
var import_editor_elements8 = require("@elementor/editor-elements");
|
|
2800
2841
|
var import_editor_props10 = require("@elementor/editor-props");
|
|
2801
2842
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
@@ -3042,15 +3083,15 @@ var getFilterPropType = (propType, path) => {
|
|
|
3042
3083
|
};
|
|
3043
3084
|
|
|
3044
3085
|
// src/contexts/styles-inheritance-context.tsx
|
|
3045
|
-
var Context4 = (0,
|
|
3086
|
+
var Context4 = (0, import_react20.createContext)(null);
|
|
3046
3087
|
function StyleInheritanceProvider({ children }) {
|
|
3047
3088
|
const styleDefs = useAppliedStyles();
|
|
3048
3089
|
const breakpointsTree = (0, import_editor_responsive3.getBreakpointsTree)();
|
|
3049
3090
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
3050
|
-
return /* @__PURE__ */
|
|
3091
|
+
return /* @__PURE__ */ React27.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
3051
3092
|
}
|
|
3052
3093
|
function useStylesInheritanceSnapshot() {
|
|
3053
|
-
const context = (0,
|
|
3094
|
+
const context = (0, import_react20.useContext)(Context4);
|
|
3054
3095
|
const { meta } = useStyle();
|
|
3055
3096
|
if (!context) {
|
|
3056
3097
|
throw new Error("useStylesInheritanceSnapshot must be used within a StyleInheritanceProvider");
|
|
@@ -3061,7 +3102,7 @@ function useStylesInheritanceSnapshot() {
|
|
|
3061
3102
|
return context.getSnapshot(meta) ?? null;
|
|
3062
3103
|
}
|
|
3063
3104
|
function useStylesInheritanceChain(path) {
|
|
3064
|
-
const context = (0,
|
|
3105
|
+
const context = (0, import_react20.useContext)(Context4);
|
|
3065
3106
|
if (!context) {
|
|
3066
3107
|
throw new Error("useStylesInheritanceChain must be used within a StyleInheritanceProvider");
|
|
3067
3108
|
}
|
|
@@ -3076,7 +3117,7 @@ function useStylesInheritanceChain(path) {
|
|
|
3076
3117
|
var EMPTY_INHERITED_VALUES = {};
|
|
3077
3118
|
function useInheritedValues(propKeys) {
|
|
3078
3119
|
const snapshot = useStylesInheritanceSnapshot();
|
|
3079
|
-
return (0,
|
|
3120
|
+
return (0, import_react20.useMemo)(() => {
|
|
3080
3121
|
if (!snapshot || propKeys.length === 0) {
|
|
3081
3122
|
return EMPTY_INHERITED_VALUES;
|
|
3082
3123
|
}
|
|
@@ -3142,18 +3183,18 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
3142
3183
|
}
|
|
3143
3184
|
|
|
3144
3185
|
// src/components/style-sections.tsx
|
|
3145
|
-
var
|
|
3186
|
+
var React90 = __toESM(require("react"));
|
|
3146
3187
|
|
|
3147
3188
|
// src/components/style-sections-definition.ts
|
|
3148
|
-
var
|
|
3189
|
+
var import_i18n64 = require("@wordpress/i18n");
|
|
3149
3190
|
|
|
3150
3191
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3151
|
-
var
|
|
3192
|
+
var React30 = __toESM(require("react"));
|
|
3152
3193
|
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
3153
|
-
var
|
|
3194
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
3154
3195
|
|
|
3155
3196
|
// src/controls-registry/styles-field.tsx
|
|
3156
|
-
var
|
|
3197
|
+
var React28 = __toESM(require("react"));
|
|
3157
3198
|
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
3158
3199
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
3159
3200
|
var import_editor_styles6 = require("@elementor/editor-styles");
|
|
@@ -3169,7 +3210,7 @@ function useStylesField(propName, meta) {
|
|
|
3169
3210
|
}
|
|
3170
3211
|
|
|
3171
3212
|
// src/controls-registry/conditional-field.tsx
|
|
3172
|
-
var
|
|
3213
|
+
var import_react21 = require("react");
|
|
3173
3214
|
var import_editor_controls5 = require("@elementor/editor-controls");
|
|
3174
3215
|
var import_editor_props11 = require("@elementor/editor-props");
|
|
3175
3216
|
var ConditionalField = ({ children }) => {
|
|
@@ -3198,8 +3239,8 @@ function useSyncDepsWithInherited({
|
|
|
3198
3239
|
setDepValues,
|
|
3199
3240
|
resetValue
|
|
3200
3241
|
}) {
|
|
3201
|
-
const syncRef = (0,
|
|
3202
|
-
(0,
|
|
3242
|
+
const syncRef = (0, import_react21.useRef)({ hasSynced: false, prevDepValues: depValues });
|
|
3243
|
+
(0, import_react21.useEffect)(() => {
|
|
3203
3244
|
const { hasSynced, prevDepValues } = syncRef.current;
|
|
3204
3245
|
if (hasSynced && value && wasDepsCleared(prevDepValues, depValues) || isHidden && depValues && value) {
|
|
3205
3246
|
resetValue();
|
|
@@ -3298,7 +3339,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3298
3339
|
const setValue = (newValue) => {
|
|
3299
3340
|
fields.setValue(newValue[bind]);
|
|
3300
3341
|
};
|
|
3301
|
-
return /* @__PURE__ */
|
|
3342
|
+
return /* @__PURE__ */ React28.createElement(import_editor_controls6.ControlAdornmentsProvider, { items: getFieldIndicators("styles") }, /* @__PURE__ */ React28.createElement(
|
|
3302
3343
|
import_editor_controls6.PropProvider,
|
|
3303
3344
|
{
|
|
3304
3345
|
propType,
|
|
@@ -3307,46 +3348,46 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3307
3348
|
placeholder: placeholderValues,
|
|
3308
3349
|
isDisabled: () => !canEdit
|
|
3309
3350
|
},
|
|
3310
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ React28.createElement(import_editor_controls6.PropKeyProvider, { bind }, /* @__PURE__ */ React28.createElement(ConditionalField, null, children))
|
|
3311
3352
|
));
|
|
3312
3353
|
};
|
|
3313
3354
|
|
|
3314
3355
|
// src/components/section-content.tsx
|
|
3315
|
-
var
|
|
3316
|
-
var
|
|
3356
|
+
var React29 = __toESM(require("react"));
|
|
3357
|
+
var import_ui17 = require("@elementor/ui");
|
|
3317
3358
|
var SectionContent = ({
|
|
3318
3359
|
gap = 2,
|
|
3319
3360
|
sx,
|
|
3320
3361
|
children,
|
|
3321
3362
|
"aria-label": ariaLabel,
|
|
3322
3363
|
className
|
|
3323
|
-
}) => /* @__PURE__ */
|
|
3364
|
+
}) => /* @__PURE__ */ React29.createElement(import_ui17.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3324
3365
|
|
|
3325
3366
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3326
|
-
var BACKGROUND_LABEL = (0,
|
|
3367
|
+
var BACKGROUND_LABEL = (0, import_i18n12.__)("Background", "elementor");
|
|
3327
3368
|
var BackgroundSection = () => {
|
|
3328
|
-
return /* @__PURE__ */
|
|
3369
|
+
return /* @__PURE__ */ React30.createElement(SectionContent, null, /* @__PURE__ */ React30.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React30.createElement(import_editor_controls7.BackgroundControl, null)));
|
|
3329
3370
|
};
|
|
3330
3371
|
|
|
3331
3372
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3332
|
-
var
|
|
3373
|
+
var React37 = __toESM(require("react"));
|
|
3333
3374
|
|
|
3334
3375
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3335
|
-
var
|
|
3376
|
+
var React32 = __toESM(require("react"));
|
|
3336
3377
|
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
3337
|
-
var
|
|
3378
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
3338
3379
|
|
|
3339
3380
|
// src/components/styles-field-layout.tsx
|
|
3340
|
-
var
|
|
3341
|
-
var
|
|
3342
|
-
var StylesFieldLayout =
|
|
3381
|
+
var React31 = __toESM(require("react"));
|
|
3382
|
+
var import_ui18 = require("@elementor/ui");
|
|
3383
|
+
var StylesFieldLayout = React31.forwardRef((props, ref) => {
|
|
3343
3384
|
const { direction = "row", children, label, infoTooltip } = props;
|
|
3344
3385
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3345
|
-
return /* @__PURE__ */
|
|
3386
|
+
return /* @__PURE__ */ React31.createElement(LayoutComponent, { label, infoTooltip, ref, children });
|
|
3346
3387
|
});
|
|
3347
|
-
var Row =
|
|
3348
|
-
return /* @__PURE__ */
|
|
3349
|
-
|
|
3388
|
+
var Row = React31.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3389
|
+
return /* @__PURE__ */ React31.createElement(import_ui18.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref, "aria-label": `${label} control` }, /* @__PURE__ */ React31.createElement(import_ui18.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React31.createElement(ControlLabel, { infoTooltip }, label)), /* @__PURE__ */ React31.createElement(
|
|
3390
|
+
import_ui18.Grid,
|
|
3350
3391
|
{
|
|
3351
3392
|
item: true,
|
|
3352
3393
|
xs: 6,
|
|
@@ -3357,168 +3398,168 @@ var Row = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
|
3357
3398
|
children
|
|
3358
3399
|
));
|
|
3359
3400
|
});
|
|
3360
|
-
var Column =
|
|
3361
|
-
return /* @__PURE__ */
|
|
3401
|
+
var Column = React31.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3402
|
+
return /* @__PURE__ */ React31.createElement(import_ui18.Stack, { gap: 0.75, ref }, /* @__PURE__ */ React31.createElement(ControlLabel, { infoTooltip }, label), children);
|
|
3362
3403
|
});
|
|
3363
3404
|
|
|
3364
3405
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3365
|
-
var BORDER_COLOR_LABEL = (0,
|
|
3366
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3406
|
+
var BORDER_COLOR_LABEL = (0, import_i18n13.__)("Border color", "elementor");
|
|
3407
|
+
var BorderColorField = () => /* @__PURE__ */ React32.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React32.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React32.createElement(import_editor_controls8.ColorControl, null)));
|
|
3367
3408
|
|
|
3368
3409
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3369
|
-
var
|
|
3410
|
+
var React34 = __toESM(require("react"));
|
|
3370
3411
|
var import_editor_controls9 = require("@elementor/editor-controls");
|
|
3371
3412
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3372
|
-
var
|
|
3373
|
-
var
|
|
3374
|
-
var
|
|
3413
|
+
var import_icons6 = require("@elementor/icons");
|
|
3414
|
+
var import_ui21 = require("@elementor/ui");
|
|
3415
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
3375
3416
|
|
|
3376
3417
|
// src/hooks/use-direction.ts
|
|
3377
3418
|
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
3378
|
-
var
|
|
3419
|
+
var import_ui19 = require("@elementor/ui");
|
|
3379
3420
|
function useDirection() {
|
|
3380
|
-
const theme = (0,
|
|
3421
|
+
const theme = (0, import_ui19.useTheme)();
|
|
3381
3422
|
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!(0, import_editor_v1_adapters6.getElementorFrontendConfig)()?.is_rtl;
|
|
3382
3423
|
return { isSiteRtl, isUiRtl };
|
|
3383
3424
|
}
|
|
3384
3425
|
|
|
3385
3426
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3386
|
-
var
|
|
3387
|
-
var
|
|
3427
|
+
var React33 = __toESM(require("react"));
|
|
3428
|
+
var import_ui20 = require("@elementor/ui");
|
|
3388
3429
|
var UiProviders = ({ children }) => {
|
|
3389
3430
|
const { isSiteRtl } = useDirection();
|
|
3390
|
-
return /* @__PURE__ */
|
|
3431
|
+
return /* @__PURE__ */ React33.createElement(import_ui20.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React33.createElement(import_ui20.ThemeProvider, null, children));
|
|
3391
3432
|
};
|
|
3392
3433
|
|
|
3393
3434
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3394
|
-
var BORDER_RADIUS_LABEL = (0,
|
|
3395
|
-
var StartStartIcon = (0,
|
|
3396
|
-
var StartEndIcon = (0,
|
|
3397
|
-
var EndStartIcon = (0,
|
|
3398
|
-
var EndEndIcon = (0,
|
|
3399
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3400
|
-
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3401
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3402
|
-
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3403
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3404
|
-
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3405
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3406
|
-
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3435
|
+
var BORDER_RADIUS_LABEL = (0, import_i18n14.__)("Border radius", "elementor");
|
|
3436
|
+
var StartStartIcon = (0, import_ui21.withDirection)(import_icons6.RadiusTopLeftIcon);
|
|
3437
|
+
var StartEndIcon = (0, import_ui21.withDirection)(import_icons6.RadiusTopRightIcon);
|
|
3438
|
+
var EndStartIcon = (0, import_ui21.withDirection)(import_icons6.RadiusBottomLeftIcon);
|
|
3439
|
+
var EndEndIcon = (0, import_ui21.withDirection)(import_icons6.RadiusBottomRightIcon);
|
|
3440
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Top right", "elementor") : (0, import_i18n14.__)("Top left", "elementor");
|
|
3441
|
+
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Border top right radius", "elementor") : (0, import_i18n14.__)("Border top left radius", "elementor");
|
|
3442
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Top left", "elementor") : (0, import_i18n14.__)("Top right", "elementor");
|
|
3443
|
+
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Border top left radius", "elementor") : (0, import_i18n14.__)("Border top right radius", "elementor");
|
|
3444
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Bottom right", "elementor") : (0, import_i18n14.__)("Bottom left", "elementor");
|
|
3445
|
+
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Border bottom right radius", "elementor") : (0, import_i18n14.__)("Border bottom left radius", "elementor");
|
|
3446
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Bottom left", "elementor") : (0, import_i18n14.__)("Bottom right", "elementor");
|
|
3447
|
+
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Border bottom left radius", "elementor") : (0, import_i18n14.__)("Border bottom right radius", "elementor");
|
|
3407
3448
|
var getCorners = (isSiteRtl) => [
|
|
3408
3449
|
{
|
|
3409
3450
|
label: getStartStartLabel(isSiteRtl),
|
|
3410
3451
|
ariaLabel: getStartStartAriaLabel(isSiteRtl),
|
|
3411
|
-
icon: /* @__PURE__ */
|
|
3452
|
+
icon: /* @__PURE__ */ React34.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3412
3453
|
bind: "start-start"
|
|
3413
3454
|
},
|
|
3414
3455
|
{
|
|
3415
3456
|
label: getStartEndLabel(isSiteRtl),
|
|
3416
3457
|
ariaLabel: getStartEndAriaLabel(isSiteRtl),
|
|
3417
|
-
icon: /* @__PURE__ */
|
|
3458
|
+
icon: /* @__PURE__ */ React34.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3418
3459
|
bind: "start-end"
|
|
3419
3460
|
},
|
|
3420
3461
|
{
|
|
3421
3462
|
label: getEndStartLabel(isSiteRtl),
|
|
3422
3463
|
ariaLabel: getEndStartAriaLabel(isSiteRtl),
|
|
3423
|
-
icon: /* @__PURE__ */
|
|
3464
|
+
icon: /* @__PURE__ */ React34.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3424
3465
|
bind: "end-start"
|
|
3425
3466
|
},
|
|
3426
3467
|
{
|
|
3427
3468
|
label: getEndEndLabel(isSiteRtl),
|
|
3428
3469
|
ariaLabel: getEndEndAriaLabel(isSiteRtl),
|
|
3429
|
-
icon: /* @__PURE__ */
|
|
3470
|
+
icon: /* @__PURE__ */ React34.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3430
3471
|
bind: "end-end"
|
|
3431
3472
|
}
|
|
3432
3473
|
];
|
|
3433
3474
|
var BorderRadiusField = () => {
|
|
3434
3475
|
const { isSiteRtl } = useDirection();
|
|
3435
|
-
return /* @__PURE__ */
|
|
3476
|
+
return /* @__PURE__ */ React34.createElement(UiProviders, null, /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React34.createElement(
|
|
3436
3477
|
import_editor_controls9.EqualUnequalSizesControl,
|
|
3437
3478
|
{
|
|
3438
3479
|
items: getCorners(isSiteRtl),
|
|
3439
3480
|
label: BORDER_RADIUS_LABEL,
|
|
3440
|
-
icon: /* @__PURE__ */
|
|
3441
|
-
tooltipLabel: (0,
|
|
3481
|
+
icon: /* @__PURE__ */ React34.createElement(import_icons6.BorderCornersIcon, { fontSize: "tiny" }),
|
|
3482
|
+
tooltipLabel: (0, import_i18n14.__)("Adjust corners", "elementor"),
|
|
3442
3483
|
multiSizePropTypeUtil: import_editor_props13.borderRadiusPropTypeUtil
|
|
3443
3484
|
}
|
|
3444
3485
|
)));
|
|
3445
3486
|
};
|
|
3446
3487
|
|
|
3447
3488
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3448
|
-
var
|
|
3489
|
+
var React35 = __toESM(require("react"));
|
|
3449
3490
|
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
3450
|
-
var
|
|
3451
|
-
var BORDER_TYPE_LABEL = (0,
|
|
3491
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
3492
|
+
var BORDER_TYPE_LABEL = (0, import_i18n15.__)("Border type", "elementor");
|
|
3452
3493
|
var borderStyles = [
|
|
3453
|
-
{ value: "none", label: (0,
|
|
3454
|
-
{ value: "solid", label: (0,
|
|
3455
|
-
{ value: "dashed", label: (0,
|
|
3456
|
-
{ value: "dotted", label: (0,
|
|
3457
|
-
{ value: "double", label: (0,
|
|
3458
|
-
{ value: "groove", label: (0,
|
|
3459
|
-
{ value: "ridge", label: (0,
|
|
3460
|
-
{ value: "inset", label: (0,
|
|
3461
|
-
{ value: "outset", label: (0,
|
|
3494
|
+
{ value: "none", label: (0, import_i18n15.__)("None", "elementor") },
|
|
3495
|
+
{ value: "solid", label: (0, import_i18n15.__)("Solid", "elementor") },
|
|
3496
|
+
{ value: "dashed", label: (0, import_i18n15.__)("Dashed", "elementor") },
|
|
3497
|
+
{ value: "dotted", label: (0, import_i18n15.__)("Dotted", "elementor") },
|
|
3498
|
+
{ value: "double", label: (0, import_i18n15.__)("Double", "elementor") },
|
|
3499
|
+
{ value: "groove", label: (0, import_i18n15.__)("Groove", "elementor") },
|
|
3500
|
+
{ value: "ridge", label: (0, import_i18n15.__)("Ridge", "elementor") },
|
|
3501
|
+
{ value: "inset", label: (0, import_i18n15.__)("Inset", "elementor") },
|
|
3502
|
+
{ value: "outset", label: (0, import_i18n15.__)("Outset", "elementor") }
|
|
3462
3503
|
];
|
|
3463
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3504
|
+
var BorderStyleField = () => /* @__PURE__ */ React35.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React35.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React35.createElement(import_editor_controls10.SelectControl, { options: borderStyles })));
|
|
3464
3505
|
|
|
3465
3506
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3466
|
-
var
|
|
3507
|
+
var React36 = __toESM(require("react"));
|
|
3467
3508
|
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
3468
3509
|
var import_editor_props14 = require("@elementor/editor-props");
|
|
3469
|
-
var
|
|
3470
|
-
var
|
|
3471
|
-
var
|
|
3472
|
-
var BORDER_WIDTH_LABEL = (0,
|
|
3473
|
-
var InlineStartIcon = (0,
|
|
3474
|
-
var InlineEndIcon = (0,
|
|
3510
|
+
var import_icons7 = require("@elementor/icons");
|
|
3511
|
+
var import_ui22 = require("@elementor/ui");
|
|
3512
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
3513
|
+
var BORDER_WIDTH_LABEL = (0, import_i18n16.__)("Border width", "elementor");
|
|
3514
|
+
var InlineStartIcon = (0, import_ui22.withDirection)(import_icons7.SideRightIcon);
|
|
3515
|
+
var InlineEndIcon = (0, import_ui22.withDirection)(import_icons7.SideLeftIcon);
|
|
3475
3516
|
var getEdges = (isSiteRtl) => [
|
|
3476
3517
|
{
|
|
3477
|
-
label: (0,
|
|
3478
|
-
ariaLabel: (0,
|
|
3479
|
-
icon: /* @__PURE__ */
|
|
3518
|
+
label: (0, import_i18n16.__)("Top", "elementor"),
|
|
3519
|
+
ariaLabel: (0, import_i18n16.__)("Border top width", "elementor"),
|
|
3520
|
+
icon: /* @__PURE__ */ React36.createElement(import_icons7.SideTopIcon, { fontSize: "tiny" }),
|
|
3480
3521
|
bind: "block-start"
|
|
3481
3522
|
},
|
|
3482
3523
|
{
|
|
3483
|
-
label: isSiteRtl ? (0,
|
|
3484
|
-
ariaLabel: isSiteRtl ? (0,
|
|
3485
|
-
icon: /* @__PURE__ */
|
|
3524
|
+
label: isSiteRtl ? (0, import_i18n16.__)("Left", "elementor") : (0, import_i18n16.__)("Right", "elementor"),
|
|
3525
|
+
ariaLabel: isSiteRtl ? (0, import_i18n16.__)("Border left width", "elementor") : (0, import_i18n16.__)("Border right width", "elementor"),
|
|
3526
|
+
icon: /* @__PURE__ */ React36.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3486
3527
|
bind: "inline-end"
|
|
3487
3528
|
},
|
|
3488
3529
|
{
|
|
3489
|
-
label: (0,
|
|
3490
|
-
ariaLabel: (0,
|
|
3491
|
-
icon: /* @__PURE__ */
|
|
3530
|
+
label: (0, import_i18n16.__)("Bottom", "elementor"),
|
|
3531
|
+
ariaLabel: (0, import_i18n16.__)("Border bottom width", "elementor"),
|
|
3532
|
+
icon: /* @__PURE__ */ React36.createElement(import_icons7.SideBottomIcon, { fontSize: "tiny" }),
|
|
3492
3533
|
bind: "block-end"
|
|
3493
3534
|
},
|
|
3494
3535
|
{
|
|
3495
|
-
label: isSiteRtl ? (0,
|
|
3496
|
-
ariaLabel: isSiteRtl ? (0,
|
|
3497
|
-
icon: /* @__PURE__ */
|
|
3536
|
+
label: isSiteRtl ? (0, import_i18n16.__)("Right", "elementor") : (0, import_i18n16.__)("Left", "elementor"),
|
|
3537
|
+
ariaLabel: isSiteRtl ? (0, import_i18n16.__)("Border right width", "elementor") : (0, import_i18n16.__)("Border left width", "elementor"),
|
|
3538
|
+
icon: /* @__PURE__ */ React36.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3498
3539
|
bind: "inline-start"
|
|
3499
3540
|
}
|
|
3500
3541
|
];
|
|
3501
3542
|
var BorderWidthField = () => {
|
|
3502
3543
|
const { isSiteRtl } = useDirection();
|
|
3503
|
-
return /* @__PURE__ */
|
|
3544
|
+
return /* @__PURE__ */ React36.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React36.createElement(
|
|
3504
3545
|
import_editor_controls11.EqualUnequalSizesControl,
|
|
3505
3546
|
{
|
|
3506
3547
|
items: getEdges(isSiteRtl),
|
|
3507
3548
|
label: BORDER_WIDTH_LABEL,
|
|
3508
|
-
icon: /* @__PURE__ */
|
|
3509
|
-
tooltipLabel: (0,
|
|
3549
|
+
icon: /* @__PURE__ */ React36.createElement(import_icons7.SideAllIcon, { fontSize: "tiny" }),
|
|
3550
|
+
tooltipLabel: (0, import_i18n16.__)("Adjust borders", "elementor"),
|
|
3510
3551
|
multiSizePropTypeUtil: import_editor_props14.borderWidthPropTypeUtil
|
|
3511
3552
|
}
|
|
3512
3553
|
));
|
|
3513
3554
|
};
|
|
3514
3555
|
|
|
3515
3556
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3516
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3557
|
+
var BorderSection = () => /* @__PURE__ */ React37.createElement(SectionContent, null, /* @__PURE__ */ React37.createElement(BorderWidthField, null), /* @__PURE__ */ React37.createElement(BorderColorField, null), /* @__PURE__ */ React37.createElement(BorderStyleField, null), /* @__PURE__ */ React37.createElement(BorderRadiusField, null));
|
|
3517
3558
|
|
|
3518
3559
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3519
|
-
var
|
|
3560
|
+
var React41 = __toESM(require("react"));
|
|
3520
3561
|
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
3521
|
-
var
|
|
3562
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
3522
3563
|
|
|
3523
3564
|
// src/utils/can-element-have-children.ts
|
|
3524
3565
|
var import_editor_elements10 = require("@elementor/editor-elements");
|
|
@@ -3559,73 +3600,73 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3559
3600
|
};
|
|
3560
3601
|
|
|
3561
3602
|
// src/components/panel-divider.tsx
|
|
3562
|
-
var
|
|
3563
|
-
var
|
|
3564
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3603
|
+
var React38 = __toESM(require("react"));
|
|
3604
|
+
var import_ui23 = require("@elementor/ui");
|
|
3605
|
+
var PanelDivider = () => /* @__PURE__ */ React38.createElement(import_ui23.Divider, { sx: { my: 0.5 } });
|
|
3565
3606
|
|
|
3566
3607
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3567
|
-
var
|
|
3608
|
+
var React39 = __toESM(require("react"));
|
|
3568
3609
|
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
3569
|
-
var
|
|
3570
|
-
var BLEND_MODE_LABEL = (0,
|
|
3610
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
3611
|
+
var BLEND_MODE_LABEL = (0, import_i18n17.__)("Blend mode", "elementor");
|
|
3571
3612
|
var blendModeOptions = [
|
|
3572
|
-
{ label: (0,
|
|
3573
|
-
{ label: (0,
|
|
3574
|
-
{ label: (0,
|
|
3575
|
-
{ label: (0,
|
|
3576
|
-
{ label: (0,
|
|
3577
|
-
{ label: (0,
|
|
3578
|
-
{ label: (0,
|
|
3579
|
-
{ label: (0,
|
|
3580
|
-
{ label: (0,
|
|
3581
|
-
{ label: (0,
|
|
3582
|
-
{ label: (0,
|
|
3583
|
-
{ label: (0,
|
|
3584
|
-
{ label: (0,
|
|
3585
|
-
{ label: (0,
|
|
3586
|
-
{ label: (0,
|
|
3587
|
-
{ label: (0,
|
|
3613
|
+
{ label: (0, import_i18n17.__)("Normal", "elementor"), value: "normal" },
|
|
3614
|
+
{ label: (0, import_i18n17.__)("Multiply", "elementor"), value: "multiply" },
|
|
3615
|
+
{ label: (0, import_i18n17.__)("Screen", "elementor"), value: "screen" },
|
|
3616
|
+
{ label: (0, import_i18n17.__)("Overlay", "elementor"), value: "overlay" },
|
|
3617
|
+
{ label: (0, import_i18n17.__)("Darken", "elementor"), value: "darken" },
|
|
3618
|
+
{ label: (0, import_i18n17.__)("Lighten", "elementor"), value: "lighten" },
|
|
3619
|
+
{ label: (0, import_i18n17.__)("Color dodge", "elementor"), value: "color-dodge" },
|
|
3620
|
+
{ label: (0, import_i18n17.__)("Color burn", "elementor"), value: "color-burn" },
|
|
3621
|
+
{ label: (0, import_i18n17.__)("Saturation", "elementor"), value: "saturation" },
|
|
3622
|
+
{ label: (0, import_i18n17.__)("Color", "elementor"), value: "color" },
|
|
3623
|
+
{ label: (0, import_i18n17.__)("Difference", "elementor"), value: "difference" },
|
|
3624
|
+
{ label: (0, import_i18n17.__)("Exclusion", "elementor"), value: "exclusion" },
|
|
3625
|
+
{ label: (0, import_i18n17.__)("Hue", "elementor"), value: "hue" },
|
|
3626
|
+
{ label: (0, import_i18n17.__)("Luminosity", "elementor"), value: "luminosity" },
|
|
3627
|
+
{ label: (0, import_i18n17.__)("Soft light", "elementor"), value: "soft-light" },
|
|
3628
|
+
{ label: (0, import_i18n17.__)("Hard light", "elementor"), value: "hard-light" }
|
|
3588
3629
|
];
|
|
3589
3630
|
var BlendModeField = () => {
|
|
3590
|
-
return /* @__PURE__ */
|
|
3631
|
+
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React39.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls12.SelectControl, { options: blendModeOptions })));
|
|
3591
3632
|
};
|
|
3592
3633
|
|
|
3593
3634
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3594
|
-
var
|
|
3595
|
-
var
|
|
3635
|
+
var React40 = __toESM(require("react"));
|
|
3636
|
+
var import_react22 = require("react");
|
|
3596
3637
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3597
|
-
var
|
|
3598
|
-
var OPACITY_LABEL = (0,
|
|
3638
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
3639
|
+
var OPACITY_LABEL = (0, import_i18n18.__)("Opacity", "elementor");
|
|
3599
3640
|
var OpacityControlField = () => {
|
|
3600
|
-
const rowRef = (0,
|
|
3601
|
-
return /* @__PURE__ */
|
|
3641
|
+
const rowRef = (0, import_react22.useRef)(null);
|
|
3642
|
+
return /* @__PURE__ */ React40.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React40.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React40.createElement(import_editor_controls13.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3602
3643
|
};
|
|
3603
3644
|
|
|
3604
3645
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3605
|
-
var BOX_SHADOW_LABEL = (0,
|
|
3606
|
-
var FILTER_LABEL = (0,
|
|
3607
|
-
var TRANSFORM_LABEL = (0,
|
|
3608
|
-
var BACKDROP_FILTER_LABEL = (0,
|
|
3609
|
-
var TRANSITIONS_LABEL = (0,
|
|
3646
|
+
var BOX_SHADOW_LABEL = (0, import_i18n19.__)("Box shadow", "elementor");
|
|
3647
|
+
var FILTER_LABEL = (0, import_i18n19.__)("Filters", "elementor");
|
|
3648
|
+
var TRANSFORM_LABEL = (0, import_i18n19.__)("Transform", "elementor");
|
|
3649
|
+
var BACKDROP_FILTER_LABEL = (0, import_i18n19.__)("Backdrop filters", "elementor");
|
|
3650
|
+
var TRANSITIONS_LABEL = (0, import_i18n19.__)("Transitions", "elementor");
|
|
3610
3651
|
var EffectsSection = () => {
|
|
3611
3652
|
const { element } = useElement();
|
|
3612
3653
|
const { meta } = useStyle();
|
|
3613
3654
|
const canHaveChildren = canElementHaveChildren(element?.id ?? "");
|
|
3614
|
-
return /* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ React41.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React41.createElement(BlendModeField, null), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(OpacityControlField, null), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React41.createElement(import_editor_controls14.BoxShadowRepeaterControl, null)), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React41.createElement(import_editor_controls14.TransformRepeaterControl, { showChildrenPerspective: canHaveChildren })), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React41.createElement(
|
|
3615
3656
|
import_editor_controls14.TransitionRepeaterControl,
|
|
3616
3657
|
{
|
|
3617
3658
|
currentStyleState: meta.state,
|
|
3618
3659
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3619
3660
|
}
|
|
3620
|
-
)), /* @__PURE__ */
|
|
3661
|
+
)), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React41.createElement(import_editor_controls14.FilterRepeaterControl, null)), /* @__PURE__ */ React41.createElement(PanelDivider, null), /* @__PURE__ */ React41.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React41.createElement(import_editor_controls14.FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3621
3662
|
};
|
|
3622
3663
|
|
|
3623
3664
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3624
|
-
var
|
|
3665
|
+
var React62 = __toESM(require("react"));
|
|
3625
3666
|
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
3626
3667
|
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
3627
3668
|
var import_locations3 = require("@elementor/locations");
|
|
3628
|
-
var
|
|
3669
|
+
var import_i18n39 = require("@wordpress/i18n");
|
|
3629
3670
|
|
|
3630
3671
|
// src/hooks/use-computed-style.ts
|
|
3631
3672
|
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
@@ -3652,19 +3693,19 @@ function useComputedStyle(elementId) {
|
|
|
3652
3693
|
}
|
|
3653
3694
|
|
|
3654
3695
|
// src/components/style-tab-collapsible-content.tsx
|
|
3655
|
-
var
|
|
3696
|
+
var React43 = __toESM(require("react"));
|
|
3656
3697
|
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
3657
3698
|
|
|
3658
3699
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
3659
|
-
var
|
|
3700
|
+
var React42 = __toESM(require("react"));
|
|
3660
3701
|
var import_editor_styles_repository17 = require("@elementor/editor-styles-repository");
|
|
3661
|
-
var
|
|
3662
|
-
var
|
|
3702
|
+
var import_ui24 = require("@elementor/ui");
|
|
3703
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
3663
3704
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
3664
3705
|
const { id, meta, provider } = useStyle();
|
|
3665
3706
|
const snapshot = useStylesInheritanceSnapshot();
|
|
3666
3707
|
if (fields.includes("custom_css")) {
|
|
3667
|
-
return /* @__PURE__ */
|
|
3708
|
+
return /* @__PURE__ */ React42.createElement(CustomCssIndicator, null);
|
|
3668
3709
|
}
|
|
3669
3710
|
const snapshotFields = Object.fromEntries(
|
|
3670
3711
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -3673,9 +3714,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3673
3714
|
if (!hasValues && !hasOverrides) {
|
|
3674
3715
|
return null;
|
|
3675
3716
|
}
|
|
3676
|
-
const hasValueLabel = (0,
|
|
3677
|
-
const hasOverridesLabel = (0,
|
|
3678
|
-
return /* @__PURE__ */
|
|
3717
|
+
const hasValueLabel = (0, import_i18n20.__)("Has effective styles", "elementor");
|
|
3718
|
+
const hasOverridesLabel = (0, import_i18n20.__)("Has overridden styles", "elementor");
|
|
3719
|
+
return /* @__PURE__ */ React42.createElement(import_ui24.Tooltip, { title: (0, import_i18n20.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React42.createElement(import_ui24.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React42.createElement(
|
|
3679
3720
|
StyleIndicator,
|
|
3680
3721
|
{
|
|
3681
3722
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -3683,7 +3724,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3683
3724
|
role: "listitem",
|
|
3684
3725
|
"aria-label": hasValueLabel
|
|
3685
3726
|
}
|
|
3686
|
-
), hasOverrides && /* @__PURE__ */
|
|
3727
|
+
), hasOverrides && /* @__PURE__ */ React42.createElement(
|
|
3687
3728
|
StyleIndicator,
|
|
3688
3729
|
{
|
|
3689
3730
|
isOverridden: true,
|
|
@@ -3723,28 +3764,28 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
3723
3764
|
|
|
3724
3765
|
// src/components/style-tab-collapsible-content.tsx
|
|
3725
3766
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
3726
|
-
return /* @__PURE__ */
|
|
3767
|
+
return /* @__PURE__ */ React43.createElement(import_editor_ui6.CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
3727
3768
|
};
|
|
3728
3769
|
function getStylesInheritanceIndicators(fields) {
|
|
3729
3770
|
if (fields.length === 0) {
|
|
3730
3771
|
return null;
|
|
3731
3772
|
}
|
|
3732
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
3773
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React43.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
3733
3774
|
}
|
|
3734
3775
|
|
|
3735
3776
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3736
|
-
var
|
|
3777
|
+
var React45 = __toESM(require("react"));
|
|
3737
3778
|
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
3738
|
-
var
|
|
3739
|
-
var
|
|
3740
|
-
var
|
|
3779
|
+
var import_icons8 = require("@elementor/icons");
|
|
3780
|
+
var import_ui26 = require("@elementor/ui");
|
|
3781
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
3741
3782
|
|
|
3742
3783
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3743
|
-
var
|
|
3744
|
-
var
|
|
3745
|
-
var
|
|
3746
|
-
var
|
|
3747
|
-
var FLEX_DIRECTION_LABEL = (0,
|
|
3784
|
+
var React44 = __toESM(require("react"));
|
|
3785
|
+
var import_react23 = require("react");
|
|
3786
|
+
var import_ui25 = require("@elementor/ui");
|
|
3787
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
3788
|
+
var FLEX_DIRECTION_LABEL = (0, import_i18n21.__)("Flex direction", "elementor");
|
|
3748
3789
|
var CLOCKWISE_ANGLES = {
|
|
3749
3790
|
row: 0,
|
|
3750
3791
|
column: 90,
|
|
@@ -3764,15 +3805,15 @@ var RotatedIcon = ({
|
|
|
3764
3805
|
offset = 0,
|
|
3765
3806
|
disableRotationForReversed = false
|
|
3766
3807
|
}) => {
|
|
3767
|
-
const rotate = (0,
|
|
3808
|
+
const rotate = (0, import_react23.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3768
3809
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3769
|
-
return /* @__PURE__ */
|
|
3810
|
+
return /* @__PURE__ */ React44.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3770
3811
|
};
|
|
3771
3812
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3772
3813
|
const { value: direction } = useStylesField("flex-direction", {
|
|
3773
3814
|
history: { propDisplayName: FLEX_DIRECTION_LABEL }
|
|
3774
3815
|
});
|
|
3775
|
-
const isRtl = "rtl" === (0,
|
|
3816
|
+
const isRtl = "rtl" === (0, import_ui25.useTheme)().direction;
|
|
3776
3817
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
3777
3818
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
3778
3819
|
const currentDirection = direction?.value || "row";
|
|
@@ -3787,9 +3828,9 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3787
3828
|
};
|
|
3788
3829
|
|
|
3789
3830
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3790
|
-
var ALIGN_CONTENT_LABEL = (0,
|
|
3791
|
-
var StartIcon = (0,
|
|
3792
|
-
var EndIcon = (0,
|
|
3831
|
+
var ALIGN_CONTENT_LABEL = (0, import_i18n22.__)("Align content", "elementor");
|
|
3832
|
+
var StartIcon = (0, import_ui26.withDirection)(import_icons8.JustifyTopIcon);
|
|
3833
|
+
var EndIcon = (0, import_ui26.withDirection)(import_icons8.JustifyBottomIcon);
|
|
3793
3834
|
var iconProps = {
|
|
3794
3835
|
isClockwise: false,
|
|
3795
3836
|
offset: 0,
|
|
@@ -3798,52 +3839,52 @@ var iconProps = {
|
|
|
3798
3839
|
var options = [
|
|
3799
3840
|
{
|
|
3800
3841
|
value: "start",
|
|
3801
|
-
label: (0,
|
|
3802
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3842
|
+
label: (0, import_i18n22.__)("Start", "elementor"),
|
|
3843
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3803
3844
|
showTooltip: true
|
|
3804
3845
|
},
|
|
3805
3846
|
{
|
|
3806
3847
|
value: "center",
|
|
3807
|
-
label: (0,
|
|
3808
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3848
|
+
label: (0, import_i18n22.__)("Center", "elementor"),
|
|
3849
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.JustifyCenterIcon, size, ...iconProps }),
|
|
3809
3850
|
showTooltip: true
|
|
3810
3851
|
},
|
|
3811
3852
|
{
|
|
3812
3853
|
value: "end",
|
|
3813
|
-
label: (0,
|
|
3814
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3854
|
+
label: (0, import_i18n22.__)("End", "elementor"),
|
|
3855
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3815
3856
|
showTooltip: true
|
|
3816
3857
|
},
|
|
3817
3858
|
{
|
|
3818
3859
|
value: "space-between",
|
|
3819
|
-
label: (0,
|
|
3820
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3860
|
+
label: (0, import_i18n22.__)("Space between", "elementor"),
|
|
3861
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
3821
3862
|
showTooltip: true
|
|
3822
3863
|
},
|
|
3823
3864
|
{
|
|
3824
3865
|
value: "space-around",
|
|
3825
|
-
label: (0,
|
|
3826
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3866
|
+
label: (0, import_i18n22.__)("Space around", "elementor"),
|
|
3867
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
3827
3868
|
showTooltip: true
|
|
3828
3869
|
},
|
|
3829
3870
|
{
|
|
3830
3871
|
value: "space-evenly",
|
|
3831
|
-
label: (0,
|
|
3832
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3872
|
+
label: (0, import_i18n22.__)("Space evenly", "elementor"),
|
|
3873
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
3833
3874
|
showTooltip: true
|
|
3834
3875
|
}
|
|
3835
3876
|
];
|
|
3836
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3877
|
+
var AlignContentField = () => /* @__PURE__ */ React45.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React45.createElement(UiProviders, null, /* @__PURE__ */ React45.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React45.createElement(import_editor_controls15.ToggleControl, { options, fullWidth: true }))));
|
|
3837
3878
|
|
|
3838
3879
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3839
|
-
var
|
|
3880
|
+
var React46 = __toESM(require("react"));
|
|
3840
3881
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
3841
|
-
var
|
|
3842
|
-
var
|
|
3843
|
-
var
|
|
3844
|
-
var ALIGN_ITEMS_LABEL = (0,
|
|
3845
|
-
var StartIcon2 = (0,
|
|
3846
|
-
var EndIcon2 = (0,
|
|
3882
|
+
var import_icons9 = require("@elementor/icons");
|
|
3883
|
+
var import_ui27 = require("@elementor/ui");
|
|
3884
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
3885
|
+
var ALIGN_ITEMS_LABEL = (0, import_i18n23.__)("Align items", "elementor");
|
|
3886
|
+
var StartIcon2 = (0, import_ui27.withDirection)(import_icons9.LayoutAlignLeftIcon);
|
|
3887
|
+
var EndIcon2 = (0, import_ui27.withDirection)(import_icons9.LayoutAlignRightIcon);
|
|
3847
3888
|
var iconProps2 = {
|
|
3848
3889
|
isClockwise: false,
|
|
3849
3890
|
offset: 90
|
|
@@ -3851,56 +3892,56 @@ var iconProps2 = {
|
|
|
3851
3892
|
var options2 = [
|
|
3852
3893
|
{
|
|
3853
3894
|
value: "start",
|
|
3854
|
-
label: (0,
|
|
3855
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3895
|
+
label: (0, import_i18n23.__)("Start", "elementor"),
|
|
3896
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3856
3897
|
showTooltip: true
|
|
3857
3898
|
},
|
|
3858
3899
|
{
|
|
3859
3900
|
value: "center",
|
|
3860
|
-
label: (0,
|
|
3861
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3901
|
+
label: (0, import_i18n23.__)("Center", "elementor"),
|
|
3902
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon, { icon: import_icons9.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
3862
3903
|
showTooltip: true
|
|
3863
3904
|
},
|
|
3864
3905
|
{
|
|
3865
3906
|
value: "end",
|
|
3866
|
-
label: (0,
|
|
3867
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3907
|
+
label: (0, import_i18n23.__)("End", "elementor"),
|
|
3908
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3868
3909
|
showTooltip: true
|
|
3869
3910
|
},
|
|
3870
3911
|
{
|
|
3871
3912
|
value: "stretch",
|
|
3872
|
-
label: (0,
|
|
3873
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3913
|
+
label: (0, import_i18n23.__)("Stretch", "elementor"),
|
|
3914
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon, { icon: import_icons9.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
3874
3915
|
showTooltip: true
|
|
3875
3916
|
}
|
|
3876
3917
|
];
|
|
3877
3918
|
var AlignItemsField = () => {
|
|
3878
|
-
return /* @__PURE__ */
|
|
3919
|
+
return /* @__PURE__ */ React46.createElement(UiProviders, null, /* @__PURE__ */ React46.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React46.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React46.createElement(import_editor_controls16.ToggleControl, { options: options2 }))));
|
|
3879
3920
|
};
|
|
3880
3921
|
|
|
3881
3922
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3882
|
-
var
|
|
3923
|
+
var React47 = __toESM(require("react"));
|
|
3883
3924
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3884
|
-
var
|
|
3885
|
-
var
|
|
3886
|
-
var
|
|
3887
|
-
var ALIGN_SELF_LABEL = (0,
|
|
3925
|
+
var import_icons10 = require("@elementor/icons");
|
|
3926
|
+
var import_ui28 = require("@elementor/ui");
|
|
3927
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
3928
|
+
var ALIGN_SELF_LABEL = (0, import_i18n24.__)("Align self", "elementor");
|
|
3888
3929
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3889
3930
|
row: 90,
|
|
3890
3931
|
"row-reverse": 90,
|
|
3891
3932
|
column: 0,
|
|
3892
3933
|
"column-reverse": 0
|
|
3893
3934
|
};
|
|
3894
|
-
var StartIcon3 = (0,
|
|
3895
|
-
var EndIcon3 = (0,
|
|
3935
|
+
var StartIcon3 = (0, import_ui28.withDirection)(import_icons10.LayoutAlignLeftIcon);
|
|
3936
|
+
var EndIcon3 = (0, import_ui28.withDirection)(import_icons10.LayoutAlignRightIcon);
|
|
3896
3937
|
var iconProps3 = {
|
|
3897
3938
|
isClockwise: false
|
|
3898
3939
|
};
|
|
3899
3940
|
var getOptions = (parentStyleDirection) => [
|
|
3900
3941
|
{
|
|
3901
3942
|
value: "start",
|
|
3902
|
-
label: (0,
|
|
3903
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3943
|
+
label: (0, import_i18n24.__)("Start", "elementor"),
|
|
3944
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3904
3945
|
RotatedIcon,
|
|
3905
3946
|
{
|
|
3906
3947
|
icon: StartIcon3,
|
|
@@ -3913,11 +3954,11 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3913
3954
|
},
|
|
3914
3955
|
{
|
|
3915
3956
|
value: "center",
|
|
3916
|
-
label: (0,
|
|
3917
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3957
|
+
label: (0, import_i18n24.__)("Center", "elementor"),
|
|
3958
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3918
3959
|
RotatedIcon,
|
|
3919
3960
|
{
|
|
3920
|
-
icon:
|
|
3961
|
+
icon: import_icons10.LayoutAlignCenterIcon,
|
|
3921
3962
|
size,
|
|
3922
3963
|
offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
|
|
3923
3964
|
...iconProps3
|
|
@@ -3927,8 +3968,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3927
3968
|
},
|
|
3928
3969
|
{
|
|
3929
3970
|
value: "end",
|
|
3930
|
-
label: (0,
|
|
3931
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3971
|
+
label: (0, import_i18n24.__)("End", "elementor"),
|
|
3972
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3932
3973
|
RotatedIcon,
|
|
3933
3974
|
{
|
|
3934
3975
|
icon: EndIcon3,
|
|
@@ -3941,11 +3982,11 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3941
3982
|
},
|
|
3942
3983
|
{
|
|
3943
3984
|
value: "stretch",
|
|
3944
|
-
label: (0,
|
|
3945
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3985
|
+
label: (0, import_i18n24.__)("Stretch", "elementor"),
|
|
3986
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(
|
|
3946
3987
|
RotatedIcon,
|
|
3947
3988
|
{
|
|
3948
|
-
icon:
|
|
3989
|
+
icon: import_icons10.LayoutDistributeVerticalIcon,
|
|
3949
3990
|
size,
|
|
3950
3991
|
offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
|
|
3951
3992
|
...iconProps3
|
|
@@ -3954,154 +3995,154 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3954
3995
|
showTooltip: true
|
|
3955
3996
|
}
|
|
3956
3997
|
];
|
|
3957
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3998
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React47.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React47.createElement(UiProviders, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React47.createElement(import_editor_controls17.ToggleControl, { options: getOptions(parentStyleDirection) }))));
|
|
3958
3999
|
|
|
3959
4000
|
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3960
|
-
var
|
|
4001
|
+
var React48 = __toESM(require("react"));
|
|
3961
4002
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3962
|
-
var
|
|
3963
|
-
var
|
|
3964
|
-
var ALIGN_SELF_LABEL2 = (0,
|
|
4003
|
+
var import_icons11 = require("@elementor/icons");
|
|
4004
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
4005
|
+
var ALIGN_SELF_LABEL2 = (0, import_i18n25.__)("Align self", "elementor");
|
|
3965
4006
|
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3966
4007
|
row: 0,
|
|
3967
4008
|
column: -90
|
|
3968
4009
|
};
|
|
3969
|
-
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4010
|
+
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */ React48.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React48.createElement(UiProviders, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React48.createElement(import_editor_controls18.ToggleControl, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3970
4011
|
var RotatedIcon2 = ({
|
|
3971
4012
|
icon: Icon,
|
|
3972
4013
|
size,
|
|
3973
4014
|
offset
|
|
3974
|
-
}) => /* @__PURE__ */
|
|
4015
|
+
}) => /* @__PURE__ */ React48.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3975
4016
|
var getOptions2 = (parentStyleDirection) => {
|
|
3976
4017
|
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3977
4018
|
return [
|
|
3978
4019
|
{
|
|
3979
4020
|
value: "start",
|
|
3980
|
-
label: (0,
|
|
3981
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4021
|
+
label: (0, import_i18n25.__)("Start", "elementor"),
|
|
4022
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon2, { icon: import_icons11.JustifyTopIcon, size, offset }),
|
|
3982
4023
|
showTooltip: true
|
|
3983
4024
|
},
|
|
3984
4025
|
{
|
|
3985
4026
|
value: "center",
|
|
3986
|
-
label: (0,
|
|
3987
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4027
|
+
label: (0, import_i18n25.__)("Center", "elementor"),
|
|
4028
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon2, { icon: import_icons11.JustifyCenterIcon, size, offset }),
|
|
3988
4029
|
showTooltip: true
|
|
3989
4030
|
},
|
|
3990
4031
|
{
|
|
3991
4032
|
value: "end",
|
|
3992
|
-
label: (0,
|
|
3993
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4033
|
+
label: (0, import_i18n25.__)("End", "elementor"),
|
|
4034
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon2, { icon: import_icons11.JustifyBottomIcon, size, offset }),
|
|
3994
4035
|
showTooltip: true
|
|
3995
4036
|
},
|
|
3996
4037
|
{
|
|
3997
4038
|
value: "stretch",
|
|
3998
|
-
label: (0,
|
|
3999
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4039
|
+
label: (0, import_i18n25.__)("Stretch", "elementor"),
|
|
4040
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon2, { icon: import_icons11.LayoutDistributeVerticalIcon, size, offset }),
|
|
4000
4041
|
showTooltip: true
|
|
4001
4042
|
}
|
|
4002
4043
|
];
|
|
4003
4044
|
};
|
|
4004
4045
|
|
|
4005
4046
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
4006
|
-
var
|
|
4047
|
+
var React49 = __toESM(require("react"));
|
|
4007
4048
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
4008
|
-
var
|
|
4009
|
-
var DISPLAY_LABEL = (0,
|
|
4049
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
4050
|
+
var DISPLAY_LABEL = (0, import_i18n26.__)("Display", "elementor");
|
|
4010
4051
|
var displayFieldItems = [
|
|
4011
4052
|
{
|
|
4012
4053
|
value: "block",
|
|
4013
|
-
renderContent: () => (0,
|
|
4014
|
-
label: (0,
|
|
4054
|
+
renderContent: () => (0, import_i18n26.__)("Block", "elementor"),
|
|
4055
|
+
label: (0, import_i18n26.__)("Block", "elementor"),
|
|
4015
4056
|
showTooltip: true
|
|
4016
4057
|
},
|
|
4017
4058
|
{
|
|
4018
4059
|
value: "flex",
|
|
4019
|
-
renderContent: () => (0,
|
|
4020
|
-
label: (0,
|
|
4060
|
+
renderContent: () => (0, import_i18n26.__)("Flex", "elementor"),
|
|
4061
|
+
label: (0, import_i18n26.__)("Flex", "elementor"),
|
|
4021
4062
|
showTooltip: true
|
|
4022
4063
|
},
|
|
4023
4064
|
{
|
|
4024
4065
|
value: "grid",
|
|
4025
|
-
renderContent: () => (0,
|
|
4026
|
-
label: (0,
|
|
4066
|
+
renderContent: () => (0, import_i18n26.__)("Grid", "elementor"),
|
|
4067
|
+
label: (0, import_i18n26.__)("Grid", "elementor"),
|
|
4027
4068
|
showTooltip: true
|
|
4028
4069
|
},
|
|
4029
4070
|
{
|
|
4030
4071
|
value: "none",
|
|
4031
|
-
renderContent: () => (0,
|
|
4032
|
-
label: (0,
|
|
4072
|
+
renderContent: () => (0, import_i18n26.__)("None", "elementor"),
|
|
4073
|
+
label: (0, import_i18n26.__)("None", "elementor"),
|
|
4033
4074
|
showTooltip: true
|
|
4034
4075
|
},
|
|
4035
4076
|
{
|
|
4036
4077
|
value: "inline-block",
|
|
4037
|
-
renderContent: () => (0,
|
|
4038
|
-
label: (0,
|
|
4078
|
+
renderContent: () => (0, import_i18n26.__)("In-blk", "elementor"),
|
|
4079
|
+
label: (0, import_i18n26.__)("Inline-block", "elementor"),
|
|
4039
4080
|
showTooltip: true
|
|
4040
4081
|
},
|
|
4041
4082
|
{
|
|
4042
4083
|
value: "inline-flex",
|
|
4043
|
-
renderContent: () => (0,
|
|
4044
|
-
label: (0,
|
|
4084
|
+
renderContent: () => (0, import_i18n26.__)("In-flx", "elementor"),
|
|
4085
|
+
label: (0, import_i18n26.__)("Inline-flex", "elementor"),
|
|
4045
4086
|
showTooltip: true
|
|
4046
4087
|
}
|
|
4047
4088
|
];
|
|
4048
4089
|
var DisplayField = () => {
|
|
4049
4090
|
const placeholder = useDisplayPlaceholderValue();
|
|
4050
|
-
return /* @__PURE__ */
|
|
4091
|
+
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React49.createElement(import_editor_controls19.ToggleControl, { options: displayFieldItems, maxItems: 4, fullWidth: true })));
|
|
4051
4092
|
};
|
|
4052
4093
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
4053
4094
|
|
|
4054
4095
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
4055
|
-
var
|
|
4096
|
+
var React50 = __toESM(require("react"));
|
|
4056
4097
|
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
4057
|
-
var
|
|
4058
|
-
var
|
|
4059
|
-
var
|
|
4060
|
-
var FLEX_DIRECTION_LABEL2 = (0,
|
|
4098
|
+
var import_icons12 = require("@elementor/icons");
|
|
4099
|
+
var import_ui29 = require("@elementor/ui");
|
|
4100
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
4101
|
+
var FLEX_DIRECTION_LABEL2 = (0, import_i18n27.__)("Direction", "elementor");
|
|
4061
4102
|
var options3 = [
|
|
4062
4103
|
{
|
|
4063
4104
|
value: "row",
|
|
4064
|
-
label: (0,
|
|
4105
|
+
label: (0, import_i18n27.__)("Row", "elementor"),
|
|
4065
4106
|
renderContent: ({ size }) => {
|
|
4066
|
-
const StartIcon7 = (0,
|
|
4067
|
-
return /* @__PURE__ */
|
|
4107
|
+
const StartIcon7 = (0, import_ui29.withDirection)(import_icons12.ArrowRightIcon);
|
|
4108
|
+
return /* @__PURE__ */ React50.createElement(StartIcon7, { fontSize: size });
|
|
4068
4109
|
},
|
|
4069
4110
|
showTooltip: true
|
|
4070
4111
|
},
|
|
4071
4112
|
{
|
|
4072
4113
|
value: "column",
|
|
4073
|
-
label: (0,
|
|
4074
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4114
|
+
label: (0, import_i18n27.__)("Column", "elementor"),
|
|
4115
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
4075
4116
|
showTooltip: true
|
|
4076
4117
|
},
|
|
4077
4118
|
{
|
|
4078
4119
|
value: "row-reverse",
|
|
4079
|
-
label: (0,
|
|
4120
|
+
label: (0, import_i18n27.__)("Reversed row", "elementor"),
|
|
4080
4121
|
renderContent: ({ size }) => {
|
|
4081
|
-
const EndIcon6 = (0,
|
|
4082
|
-
return /* @__PURE__ */
|
|
4122
|
+
const EndIcon6 = (0, import_ui29.withDirection)(import_icons12.ArrowLeftIcon);
|
|
4123
|
+
return /* @__PURE__ */ React50.createElement(EndIcon6, { fontSize: size });
|
|
4083
4124
|
},
|
|
4084
4125
|
showTooltip: true
|
|
4085
4126
|
},
|
|
4086
4127
|
{
|
|
4087
4128
|
value: "column-reverse",
|
|
4088
|
-
label: (0,
|
|
4089
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4129
|
+
label: (0, import_i18n27.__)("Reversed column", "elementor"),
|
|
4130
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
4090
4131
|
showTooltip: true
|
|
4091
4132
|
}
|
|
4092
4133
|
];
|
|
4093
4134
|
var FlexDirectionField = () => {
|
|
4094
|
-
return /* @__PURE__ */
|
|
4135
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React50.createElement(import_editor_controls20.ToggleControl, { options: options3 }))));
|
|
4095
4136
|
};
|
|
4096
4137
|
|
|
4097
4138
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
4098
|
-
var
|
|
4099
|
-
var
|
|
4139
|
+
var React51 = __toESM(require("react"));
|
|
4140
|
+
var import_react24 = require("react");
|
|
4100
4141
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
4101
|
-
var
|
|
4102
|
-
var
|
|
4103
|
-
var
|
|
4104
|
-
var ORDER_LABEL = (0,
|
|
4142
|
+
var import_icons13 = require("@elementor/icons");
|
|
4143
|
+
var import_ui30 = require("@elementor/ui");
|
|
4144
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
4145
|
+
var ORDER_LABEL = (0, import_i18n28.__)("Order", "elementor");
|
|
4105
4146
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
4106
4147
|
var LAST_DEFAULT_VALUE = 99999;
|
|
4107
4148
|
var FIRST = "first";
|
|
@@ -4114,25 +4155,25 @@ var orderValueMap = {
|
|
|
4114
4155
|
var items = [
|
|
4115
4156
|
{
|
|
4116
4157
|
value: FIRST,
|
|
4117
|
-
label: (0,
|
|
4118
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4158
|
+
label: (0, import_i18n28.__)("First", "elementor"),
|
|
4159
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.ArrowUpSmallIcon, { fontSize: size }),
|
|
4119
4160
|
showTooltip: true
|
|
4120
4161
|
},
|
|
4121
4162
|
{
|
|
4122
4163
|
value: LAST,
|
|
4123
|
-
label: (0,
|
|
4124
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4164
|
+
label: (0, import_i18n28.__)("Last", "elementor"),
|
|
4165
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.ArrowDownSmallIcon, { fontSize: size }),
|
|
4125
4166
|
showTooltip: true
|
|
4126
4167
|
},
|
|
4127
4168
|
{
|
|
4128
4169
|
value: CUSTOM,
|
|
4129
|
-
label: (0,
|
|
4130
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4170
|
+
label: (0, import_i18n28.__)("Custom", "elementor"),
|
|
4171
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
4131
4172
|
showTooltip: true
|
|
4132
4173
|
}
|
|
4133
4174
|
];
|
|
4134
4175
|
var FlexOrderField = () => {
|
|
4135
|
-
return /* @__PURE__ */
|
|
4176
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React51.createElement(UiProviders, null, /* @__PURE__ */ React51.createElement(SectionContent, null, /* @__PURE__ */ React51.createElement(FlexOrderFieldContent, null))));
|
|
4136
4177
|
};
|
|
4137
4178
|
function FlexOrderFieldContent() {
|
|
4138
4179
|
const {
|
|
@@ -4144,15 +4185,15 @@ function FlexOrderFieldContent() {
|
|
|
4144
4185
|
});
|
|
4145
4186
|
const { placeholder } = (0, import_editor_controls21.useBoundProp)();
|
|
4146
4187
|
const placeholderValue = placeholder;
|
|
4147
|
-
const currentGroup = (0,
|
|
4148
|
-
const [activeGroup, setActiveGroup] = (0,
|
|
4149
|
-
const [customLocked, setCustomLocked] = (0,
|
|
4150
|
-
(0,
|
|
4188
|
+
const currentGroup = (0, import_react24.useMemo)(() => getGroupControlValue(order?.value ?? null), [order]);
|
|
4189
|
+
const [activeGroup, setActiveGroup] = (0, import_react24.useState)(currentGroup);
|
|
4190
|
+
const [customLocked, setCustomLocked] = (0, import_react24.useState)(false);
|
|
4191
|
+
(0, import_react24.useEffect)(() => {
|
|
4151
4192
|
if (!customLocked) {
|
|
4152
4193
|
setActiveGroup(currentGroup);
|
|
4153
4194
|
}
|
|
4154
4195
|
}, [currentGroup, customLocked]);
|
|
4155
|
-
(0,
|
|
4196
|
+
(0, import_react24.useEffect)(() => {
|
|
4156
4197
|
if (order === null) {
|
|
4157
4198
|
setCustomLocked(false);
|
|
4158
4199
|
}
|
|
@@ -4177,7 +4218,7 @@ function FlexOrderFieldContent() {
|
|
|
4177
4218
|
};
|
|
4178
4219
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
4179
4220
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
4180
|
-
return /* @__PURE__ */
|
|
4221
|
+
return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React51.createElement(
|
|
4181
4222
|
import_editor_controls21.ControlToggleButtonGroup,
|
|
4182
4223
|
{
|
|
4183
4224
|
items,
|
|
@@ -4187,7 +4228,7 @@ function FlexOrderFieldContent() {
|
|
|
4187
4228
|
placeholder: groupPlaceholder,
|
|
4188
4229
|
disabled: !canEdit
|
|
4189
4230
|
}
|
|
4190
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4231
|
+
)), isCustomVisible && /* @__PURE__ */ React51.createElement(import_ui30.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(import_ui30.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(ControlLabel, null, (0, import_i18n28.__)("Custom order", "elementor"))), /* @__PURE__ */ React51.createElement(import_ui30.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React51.createElement(
|
|
4191
4232
|
import_editor_controls21.NumberControl,
|
|
4192
4233
|
{
|
|
4193
4234
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4211,36 +4252,36 @@ var getGroupControlValue = (order) => {
|
|
|
4211
4252
|
};
|
|
4212
4253
|
|
|
4213
4254
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
4214
|
-
var
|
|
4215
|
-
var
|
|
4255
|
+
var React52 = __toESM(require("react"));
|
|
4256
|
+
var import_react25 = require("react");
|
|
4216
4257
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
4217
4258
|
var import_editor_props15 = require("@elementor/editor-props");
|
|
4218
|
-
var
|
|
4219
|
-
var
|
|
4220
|
-
var FLEX_SIZE_LABEL = (0,
|
|
4259
|
+
var import_icons14 = require("@elementor/icons");
|
|
4260
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
4261
|
+
var FLEX_SIZE_LABEL = (0, import_i18n29.__)("Flex Size", "elementor");
|
|
4221
4262
|
var DEFAULT = 1;
|
|
4222
4263
|
var items2 = [
|
|
4223
4264
|
{
|
|
4224
4265
|
value: "flex-grow",
|
|
4225
|
-
label: (0,
|
|
4226
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4266
|
+
label: (0, import_i18n29.__)("Grow", "elementor"),
|
|
4267
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons14.ExpandIcon, { fontSize: size }),
|
|
4227
4268
|
showTooltip: true
|
|
4228
4269
|
},
|
|
4229
4270
|
{
|
|
4230
4271
|
value: "flex-shrink",
|
|
4231
|
-
label: (0,
|
|
4232
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4272
|
+
label: (0, import_i18n29.__)("Shrink", "elementor"),
|
|
4273
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons14.ShrinkIcon, { fontSize: size }),
|
|
4233
4274
|
showTooltip: true
|
|
4234
4275
|
},
|
|
4235
4276
|
{
|
|
4236
4277
|
value: "custom",
|
|
4237
|
-
label: (0,
|
|
4238
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4278
|
+
label: (0, import_i18n29.__)("Custom", "elementor"),
|
|
4279
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(import_icons14.PencilIcon, { fontSize: size }),
|
|
4239
4280
|
showTooltip: true
|
|
4240
4281
|
}
|
|
4241
4282
|
];
|
|
4242
4283
|
var FlexSizeField = () => {
|
|
4243
|
-
return /* @__PURE__ */
|
|
4284
|
+
return /* @__PURE__ */ React52.createElement(UiProviders, null, /* @__PURE__ */ React52.createElement(SectionContent, null, /* @__PURE__ */ React52.createElement(StylesField, { bind: "flex", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React52.createElement(FlexSizeFieldContent, null))));
|
|
4244
4285
|
};
|
|
4245
4286
|
var FlexSizeFieldContent = () => {
|
|
4246
4287
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -4248,15 +4289,15 @@ var FlexSizeFieldContent = () => {
|
|
|
4248
4289
|
});
|
|
4249
4290
|
const { placeholder } = (0, import_editor_controls22.useBoundProp)();
|
|
4250
4291
|
const flexValues = extractFlexValues(value);
|
|
4251
|
-
const currentGroup = (0,
|
|
4252
|
-
const [activeGroup, setActiveGroup] = (0,
|
|
4253
|
-
const [customLocked, setCustomLocked] = (0,
|
|
4254
|
-
(0,
|
|
4292
|
+
const currentGroup = (0, import_react25.useMemo)(() => getActiveGroup(flexValues), [flexValues]);
|
|
4293
|
+
const [activeGroup, setActiveGroup] = (0, import_react25.useState)(currentGroup);
|
|
4294
|
+
const [customLocked, setCustomLocked] = (0, import_react25.useState)(false);
|
|
4295
|
+
(0, import_react25.useEffect)(() => {
|
|
4255
4296
|
if (!customLocked) {
|
|
4256
4297
|
setActiveGroup(currentGroup);
|
|
4257
4298
|
}
|
|
4258
4299
|
}, [currentGroup, customLocked]);
|
|
4259
|
-
(0,
|
|
4300
|
+
(0, import_react25.useEffect)(() => {
|
|
4260
4301
|
if (value === null) {
|
|
4261
4302
|
setCustomLocked(false);
|
|
4262
4303
|
}
|
|
@@ -4269,7 +4310,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4269
4310
|
};
|
|
4270
4311
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4271
4312
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4272
|
-
return /* @__PURE__ */
|
|
4313
|
+
return /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React52.createElement(
|
|
4273
4314
|
import_editor_controls22.ControlToggleButtonGroup,
|
|
4274
4315
|
{
|
|
4275
4316
|
value: activeGroup ?? null,
|
|
@@ -4279,7 +4320,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4279
4320
|
items: items2,
|
|
4280
4321
|
exclusive: true
|
|
4281
4322
|
}
|
|
4282
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4323
|
+
)), isCustomVisible && /* @__PURE__ */ React52.createElement(FlexCustomField, null));
|
|
4283
4324
|
};
|
|
4284
4325
|
function extractFlexValues(source) {
|
|
4285
4326
|
return {
|
|
@@ -4319,9 +4360,9 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4319
4360
|
return null;
|
|
4320
4361
|
};
|
|
4321
4362
|
var FlexCustomField = () => {
|
|
4322
|
-
const flexBasisRowRef = (0,
|
|
4363
|
+
const flexBasisRowRef = (0, import_react25.useRef)(null);
|
|
4323
4364
|
const context = (0, import_editor_controls22.useBoundProp)(import_editor_props15.flexPropTypeUtil);
|
|
4324
|
-
return /* @__PURE__ */
|
|
4365
|
+
return /* @__PURE__ */ React52.createElement(import_editor_controls22.PropProvider, { ...context }, /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Grow", "elementor") }, /* @__PURE__ */ React52.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React52.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Shrink", "elementor") }, /* @__PURE__ */ React52.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React52.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React52.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React52.createElement(import_editor_controls22.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4325
4366
|
};
|
|
4326
4367
|
var getActiveGroup = ({
|
|
4327
4368
|
grow,
|
|
@@ -4345,34 +4386,34 @@ var getActiveGroup = ({
|
|
|
4345
4386
|
};
|
|
4346
4387
|
|
|
4347
4388
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4348
|
-
var
|
|
4389
|
+
var React53 = __toESM(require("react"));
|
|
4349
4390
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
4350
|
-
var
|
|
4351
|
-
var GAPS_LABEL = (0,
|
|
4391
|
+
var import_i18n30 = require("@wordpress/i18n");
|
|
4392
|
+
var GAPS_LABEL = (0, import_i18n30.__)("Gaps", "elementor");
|
|
4352
4393
|
var GapControlField = () => {
|
|
4353
|
-
return /* @__PURE__ */
|
|
4394
|
+
return /* @__PURE__ */ React53.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React53.createElement(import_editor_controls23.GapControl, { label: GAPS_LABEL }));
|
|
4354
4395
|
};
|
|
4355
4396
|
|
|
4356
4397
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
4357
|
-
var
|
|
4398
|
+
var React54 = __toESM(require("react"));
|
|
4358
4399
|
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
4359
|
-
var
|
|
4360
|
-
var
|
|
4361
|
-
var
|
|
4362
|
-
var AUTO_FLOW_LABEL = (0,
|
|
4363
|
-
var DENSE_LABEL = (0,
|
|
4364
|
-
var StartIcon4 = (0,
|
|
4400
|
+
var import_icons15 = require("@elementor/icons");
|
|
4401
|
+
var import_ui31 = require("@elementor/ui");
|
|
4402
|
+
var import_i18n31 = require("@wordpress/i18n");
|
|
4403
|
+
var AUTO_FLOW_LABEL = (0, import_i18n31.__)("Auto flow", "elementor");
|
|
4404
|
+
var DENSE_LABEL = (0, import_i18n31.__)("Dense", "elementor");
|
|
4405
|
+
var StartIcon4 = (0, import_ui31.withDirection)(import_icons15.ArrowRightIcon);
|
|
4365
4406
|
var directionOptions = [
|
|
4366
4407
|
{
|
|
4367
4408
|
value: "row",
|
|
4368
|
-
label: (0,
|
|
4369
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4409
|
+
label: (0, import_i18n31.__)("Row", "elementor"),
|
|
4410
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(StartIcon4, { fontSize: size }),
|
|
4370
4411
|
showTooltip: true
|
|
4371
4412
|
},
|
|
4372
4413
|
{
|
|
4373
4414
|
value: "column",
|
|
4374
|
-
label: (0,
|
|
4375
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4415
|
+
label: (0, import_i18n31.__)("Column", "elementor"),
|
|
4416
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons15.ArrowDownSmallIcon, { fontSize: size }),
|
|
4376
4417
|
showTooltip: true
|
|
4377
4418
|
}
|
|
4378
4419
|
];
|
|
@@ -4405,7 +4446,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4405
4446
|
const nextDirection = direction ?? "row";
|
|
4406
4447
|
setValue({ $$type: "string", value: composeAutoFlow(nextDirection, !dense) });
|
|
4407
4448
|
};
|
|
4408
|
-
return /* @__PURE__ */
|
|
4449
|
+
return /* @__PURE__ */ React54.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React54.createElement(import_ui31.Grid, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React54.createElement(import_ui31.Grid, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React54.createElement(
|
|
4409
4450
|
import_editor_controls24.ControlToggleButtonGroup,
|
|
4410
4451
|
{
|
|
4411
4452
|
items: directionOptions,
|
|
@@ -4416,8 +4457,8 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4416
4457
|
fullWidth: true,
|
|
4417
4458
|
disabled: !canEdit
|
|
4418
4459
|
}
|
|
4419
|
-
)), /* @__PURE__ */
|
|
4420
|
-
|
|
4460
|
+
)), /* @__PURE__ */ React54.createElement(import_ui31.Grid, { item: true }, /* @__PURE__ */ React54.createElement(import_ui31.Tooltip, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React54.createElement(
|
|
4461
|
+
import_ui31.ToggleButton,
|
|
4421
4462
|
{
|
|
4422
4463
|
value: "dense",
|
|
4423
4464
|
selected: dense,
|
|
@@ -4426,29 +4467,29 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4426
4467
|
"aria-label": DENSE_LABEL,
|
|
4427
4468
|
disabled: !canEdit
|
|
4428
4469
|
},
|
|
4429
|
-
/* @__PURE__ */
|
|
4470
|
+
/* @__PURE__ */ React54.createElement(import_icons15.LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4430
4471
|
)))));
|
|
4431
4472
|
};
|
|
4432
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4473
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React54.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React54.createElement(UiProviders, null, /* @__PURE__ */ React54.createElement(GridAutoFlowFieldContent, null)));
|
|
4433
4474
|
|
|
4434
4475
|
// src/components/style-sections/layout-section/grid-auto-track-fields.tsx
|
|
4435
|
-
var
|
|
4436
|
-
var
|
|
4476
|
+
var React55 = __toESM(require("react"));
|
|
4477
|
+
var import_react26 = require("react");
|
|
4437
4478
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
4438
|
-
var
|
|
4439
|
-
var
|
|
4479
|
+
var import_ui32 = require("@elementor/ui");
|
|
4480
|
+
var import_i18n32 = require("@wordpress/i18n");
|
|
4440
4481
|
var DEFAULT_UNIT = "fr";
|
|
4441
|
-
var AUTO_ROWS_LABEL = (0,
|
|
4442
|
-
var AUTO_COLUMNS_LABEL = (0,
|
|
4443
|
-
var AUTO_ROWS_TOOLTIP = (0,
|
|
4482
|
+
var AUTO_ROWS_LABEL = (0, import_i18n32.__)("Auto rows", "elementor");
|
|
4483
|
+
var AUTO_COLUMNS_LABEL = (0, import_i18n32.__)("Auto columns", "elementor");
|
|
4484
|
+
var AUTO_ROWS_TOOLTIP = (0, import_i18n32.__)(
|
|
4444
4485
|
"Set the size for new rows created automatically when content exceeds the defined grid.",
|
|
4445
4486
|
"elementor"
|
|
4446
4487
|
);
|
|
4447
|
-
var AUTO_COLUMNS_TOOLTIP = (0,
|
|
4488
|
+
var AUTO_COLUMNS_TOOLTIP = (0, import_i18n32.__)(
|
|
4448
4489
|
"Set the size for new columns created automatically when content exceeds the defined grid.",
|
|
4449
4490
|
"elementor"
|
|
4450
4491
|
);
|
|
4451
|
-
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */
|
|
4492
|
+
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */ React55.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { infoTooltip, label, ref: rowRef }, /* @__PURE__ */ React55.createElement(
|
|
4452
4493
|
import_editor_controls25.SizeControl,
|
|
4453
4494
|
{
|
|
4454
4495
|
enablePropTypeUnits: true,
|
|
@@ -4457,8 +4498,8 @@ var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__
|
|
|
4457
4498
|
}
|
|
4458
4499
|
)));
|
|
4459
4500
|
var GridAutoTrackFields = () => {
|
|
4460
|
-
const rowRef = (0,
|
|
4461
|
-
return /* @__PURE__ */
|
|
4501
|
+
const rowRef = (0, import_react26.useRef)(null);
|
|
4502
|
+
return /* @__PURE__ */ React55.createElement(import_ui32.Stack, { gap: 2, pt: 2, ref: rowRef }, /* @__PURE__ */ React55.createElement(
|
|
4462
4503
|
GridAutoTrackField,
|
|
4463
4504
|
{
|
|
4464
4505
|
bind: "grid-auto-rows",
|
|
@@ -4466,7 +4507,7 @@ var GridAutoTrackFields = () => {
|
|
|
4466
4507
|
label: AUTO_ROWS_LABEL,
|
|
4467
4508
|
rowRef
|
|
4468
4509
|
}
|
|
4469
|
-
), /* @__PURE__ */
|
|
4510
|
+
), /* @__PURE__ */ React55.createElement(
|
|
4470
4511
|
GridAutoTrackField,
|
|
4471
4512
|
{
|
|
4472
4513
|
bind: "grid-auto-columns",
|
|
@@ -4478,54 +4519,54 @@ var GridAutoTrackFields = () => {
|
|
|
4478
4519
|
};
|
|
4479
4520
|
|
|
4480
4521
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4481
|
-
var
|
|
4522
|
+
var React56 = __toESM(require("react"));
|
|
4482
4523
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
4483
|
-
var
|
|
4484
|
-
var
|
|
4485
|
-
var
|
|
4486
|
-
var JUSTIFY_ITEMS_LABEL = (0,
|
|
4487
|
-
var StartIcon5 = (0,
|
|
4488
|
-
var EndIcon4 = (0,
|
|
4524
|
+
var import_icons16 = require("@elementor/icons");
|
|
4525
|
+
var import_ui33 = require("@elementor/ui");
|
|
4526
|
+
var import_i18n33 = require("@wordpress/i18n");
|
|
4527
|
+
var JUSTIFY_ITEMS_LABEL = (0, import_i18n33.__)("Justify items", "elementor");
|
|
4528
|
+
var StartIcon5 = (0, import_ui33.withDirection)(import_icons16.LayoutAlignLeftIcon);
|
|
4529
|
+
var EndIcon4 = (0, import_ui33.withDirection)(import_icons16.LayoutAlignRightIcon);
|
|
4489
4530
|
var options4 = [
|
|
4490
4531
|
{
|
|
4491
4532
|
value: "start",
|
|
4492
|
-
label: (0,
|
|
4493
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4533
|
+
label: (0, import_i18n33.__)("Start", "elementor"),
|
|
4534
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(StartIcon5, { fontSize: size }),
|
|
4494
4535
|
showTooltip: true
|
|
4495
4536
|
},
|
|
4496
4537
|
{
|
|
4497
4538
|
value: "center",
|
|
4498
|
-
label: (0,
|
|
4499
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4539
|
+
label: (0, import_i18n33.__)("Center", "elementor"),
|
|
4540
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons16.LayoutAlignCenterIcon, { fontSize: size }),
|
|
4500
4541
|
showTooltip: true
|
|
4501
4542
|
},
|
|
4502
4543
|
{
|
|
4503
4544
|
value: "end",
|
|
4504
|
-
label: (0,
|
|
4505
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4545
|
+
label: (0, import_i18n33.__)("End", "elementor"),
|
|
4546
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(EndIcon4, { fontSize: size }),
|
|
4506
4547
|
showTooltip: true
|
|
4507
4548
|
},
|
|
4508
4549
|
{
|
|
4509
4550
|
value: "stretch",
|
|
4510
|
-
label: (0,
|
|
4511
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4551
|
+
label: (0, import_i18n33.__)("Stretch", "elementor"),
|
|
4552
|
+
renderContent: ({ size }) => /* @__PURE__ */ React56.createElement(import_icons16.LayoutDistributeVerticalIcon, { fontSize: size }),
|
|
4512
4553
|
showTooltip: true
|
|
4513
4554
|
}
|
|
4514
4555
|
];
|
|
4515
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4556
|
+
var GridJustifyItemsField = () => /* @__PURE__ */ React56.createElement(StylesField, { bind: "justify-items", propDisplayName: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React56.createElement(UiProviders, null, /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React56.createElement(import_editor_controls26.ToggleControl, { options: options4 }))));
|
|
4516
4557
|
|
|
4517
4558
|
// src/components/style-sections/layout-section/grid-outline-field.tsx
|
|
4518
|
-
var
|
|
4559
|
+
var React57 = __toESM(require("react"));
|
|
4519
4560
|
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
4520
|
-
var
|
|
4521
|
-
var
|
|
4522
|
-
var GRID_OUTLINE_LABEL = (0,
|
|
4561
|
+
var import_ui34 = require("@elementor/ui");
|
|
4562
|
+
var import_i18n34 = require("@wordpress/i18n");
|
|
4563
|
+
var GRID_OUTLINE_LABEL = (0, import_i18n34.__)("Show Grid Outline", "elementor");
|
|
4523
4564
|
var GridOutlineField = () => {
|
|
4524
4565
|
const { element } = useElement();
|
|
4525
4566
|
const settings = (0, import_editor_elements12.useElementEditorSettings)(element.id);
|
|
4526
4567
|
const value = settings?.grid_outline ?? true;
|
|
4527
|
-
return /* @__PURE__ */
|
|
4528
|
-
|
|
4568
|
+
return /* @__PURE__ */ React57.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React57.createElement(import_ui34.Box, { sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React57.createElement(
|
|
4569
|
+
import_ui34.Switch,
|
|
4529
4570
|
{
|
|
4530
4571
|
"aria-label": GRID_OUTLINE_LABEL,
|
|
4531
4572
|
checked: value,
|
|
@@ -4541,11 +4582,11 @@ var GridOutlineField = () => {
|
|
|
4541
4582
|
};
|
|
4542
4583
|
|
|
4543
4584
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4544
|
-
var
|
|
4545
|
-
var
|
|
4585
|
+
var React58 = __toESM(require("react"));
|
|
4586
|
+
var import_react27 = require("react");
|
|
4546
4587
|
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
4547
|
-
var
|
|
4548
|
-
var
|
|
4588
|
+
var import_ui35 = require("@elementor/ui");
|
|
4589
|
+
var import_i18n35 = require("@wordpress/i18n");
|
|
4549
4590
|
|
|
4550
4591
|
// src/components/style-sections/layout-section/utils/grid-track-value.ts
|
|
4551
4592
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
@@ -4639,8 +4680,8 @@ var unitOf = (v, fallback = FR) => {
|
|
|
4639
4680
|
};
|
|
4640
4681
|
|
|
4641
4682
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4642
|
-
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */
|
|
4643
|
-
var GridTrackSizeInput = (0, import_editor_controls27.createControl)((props) => /* @__PURE__ */
|
|
4683
|
+
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */ React58.createElement(import_editor_controls27.ControlActions, null, children);
|
|
4684
|
+
var GridTrackSizeInput = (0, import_editor_controls27.createControl)((props) => /* @__PURE__ */ React58.createElement(
|
|
4644
4685
|
import_editor_controls27.SizeComponent,
|
|
4645
4686
|
{
|
|
4646
4687
|
units: UNITS,
|
|
@@ -4660,7 +4701,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4660
4701
|
history: { propDisplayName: label }
|
|
4661
4702
|
});
|
|
4662
4703
|
const { placeholder: inheritedPlaceholder } = (0, import_editor_controls27.useBoundProp)();
|
|
4663
|
-
const anchorRef = (0,
|
|
4704
|
+
const anchorRef = (0, import_react27.useRef)(null);
|
|
4664
4705
|
const local = parseValue(value);
|
|
4665
4706
|
const inherited = parseValue(inheritedPlaceholder);
|
|
4666
4707
|
const displayValue = local.kind !== "empty" ? toSizeInput(local) : toSizeInput(EMPTY, unitOf(inherited));
|
|
@@ -4672,7 +4713,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4672
4713
|
}
|
|
4673
4714
|
setValue(toPropValue(next));
|
|
4674
4715
|
};
|
|
4675
|
-
return /* @__PURE__ */
|
|
4716
|
+
return /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React58.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React58.createElement(
|
|
4676
4717
|
GridTrackSizeInput,
|
|
4677
4718
|
{
|
|
4678
4719
|
value: displayValue,
|
|
@@ -4682,29 +4723,29 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4682
4723
|
}
|
|
4683
4724
|
)));
|
|
4684
4725
|
};
|
|
4685
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4686
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4726
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React58.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4727
|
+
var GridSizeFields = () => /* @__PURE__ */ React58.createElement(import_ui35.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridTrackField, { cssProp: "grid-template-columns", label: (0, import_i18n35.__)("Columns", "elementor") })), /* @__PURE__ */ React58.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridTrackField, { cssProp: "grid-template-rows", label: (0, import_i18n35.__)("Rows", "elementor") })));
|
|
4687
4728
|
|
|
4688
4729
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4689
|
-
var
|
|
4730
|
+
var React59 = __toESM(require("react"));
|
|
4690
4731
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
4691
|
-
var
|
|
4692
|
-
var
|
|
4732
|
+
var import_ui36 = require("@elementor/ui");
|
|
4733
|
+
var import_i18n36 = require("@wordpress/i18n");
|
|
4693
4734
|
var GridSpanFieldContent = ({ label }) => {
|
|
4694
|
-
return /* @__PURE__ */
|
|
4735
|
+
return /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React59.createElement(import_editor_controls28.GridSpanControl, null));
|
|
4695
4736
|
};
|
|
4696
|
-
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4697
|
-
var GridSpanFields = () => /* @__PURE__ */
|
|
4737
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React59.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React59.createElement(UiProviders, null, /* @__PURE__ */ React59.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4738
|
+
var GridSpanFields = () => /* @__PURE__ */ React59.createElement(import_ui36.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(import_ui36.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(GridSpanField, { cssProp: "grid-column", label: (0, import_i18n36.__)("Grid column", "elementor") })), /* @__PURE__ */ React59.createElement(import_ui36.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(GridSpanField, { cssProp: "grid-row", label: (0, import_i18n36.__)("Grid row", "elementor") })));
|
|
4698
4739
|
|
|
4699
4740
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4700
|
-
var
|
|
4741
|
+
var React60 = __toESM(require("react"));
|
|
4701
4742
|
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
4702
|
-
var
|
|
4703
|
-
var
|
|
4704
|
-
var
|
|
4705
|
-
var JUSTIFY_CONTENT_LABEL = (0,
|
|
4706
|
-
var StartIcon6 = (0,
|
|
4707
|
-
var EndIcon5 = (0,
|
|
4743
|
+
var import_icons17 = require("@elementor/icons");
|
|
4744
|
+
var import_ui37 = require("@elementor/ui");
|
|
4745
|
+
var import_i18n37 = require("@wordpress/i18n");
|
|
4746
|
+
var JUSTIFY_CONTENT_LABEL = (0, import_i18n37.__)("Justify content", "elementor");
|
|
4747
|
+
var StartIcon6 = (0, import_ui37.withDirection)(import_icons17.JustifyTopIcon);
|
|
4748
|
+
var EndIcon5 = (0, import_ui37.withDirection)(import_icons17.JustifyBottomIcon);
|
|
4708
4749
|
var iconProps4 = {
|
|
4709
4750
|
isClockwise: true,
|
|
4710
4751
|
offset: -90
|
|
@@ -4712,76 +4753,76 @@ var iconProps4 = {
|
|
|
4712
4753
|
var options5 = [
|
|
4713
4754
|
{
|
|
4714
4755
|
value: "flex-start",
|
|
4715
|
-
label: (0,
|
|
4716
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4756
|
+
label: (0, import_i18n37.__)("Start", "elementor"),
|
|
4757
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4717
4758
|
showTooltip: true
|
|
4718
4759
|
},
|
|
4719
4760
|
{
|
|
4720
4761
|
value: "center",
|
|
4721
|
-
label: (0,
|
|
4722
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4762
|
+
label: (0, import_i18n37.__)("Center", "elementor"),
|
|
4763
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(RotatedIcon, { icon: import_icons17.JustifyCenterIcon, size, ...iconProps4 }),
|
|
4723
4764
|
showTooltip: true
|
|
4724
4765
|
},
|
|
4725
4766
|
{
|
|
4726
4767
|
value: "flex-end",
|
|
4727
|
-
label: (0,
|
|
4728
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4768
|
+
label: (0, import_i18n37.__)("End", "elementor"),
|
|
4769
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4729
4770
|
showTooltip: true
|
|
4730
4771
|
},
|
|
4731
4772
|
{
|
|
4732
4773
|
value: "space-between",
|
|
4733
|
-
label: (0,
|
|
4734
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4774
|
+
label: (0, import_i18n37.__)("Space between", "elementor"),
|
|
4775
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(RotatedIcon, { icon: import_icons17.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
4735
4776
|
showTooltip: true
|
|
4736
4777
|
},
|
|
4737
4778
|
{
|
|
4738
4779
|
value: "space-around",
|
|
4739
|
-
label: (0,
|
|
4740
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4780
|
+
label: (0, import_i18n37.__)("Space around", "elementor"),
|
|
4781
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(RotatedIcon, { icon: import_icons17.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
4741
4782
|
showTooltip: true
|
|
4742
4783
|
},
|
|
4743
4784
|
{
|
|
4744
4785
|
value: "space-evenly",
|
|
4745
|
-
label: (0,
|
|
4746
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4786
|
+
label: (0, import_i18n37.__)("Space evenly", "elementor"),
|
|
4787
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(RotatedIcon, { icon: import_icons17.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
4747
4788
|
showTooltip: true
|
|
4748
4789
|
}
|
|
4749
4790
|
];
|
|
4750
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4791
|
+
var JustifyContentField = () => /* @__PURE__ */ React60.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React60.createElement(UiProviders, null, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React60.createElement(import_editor_controls29.ToggleControl, { options: options5, fullWidth: true }))));
|
|
4751
4792
|
|
|
4752
4793
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4753
|
-
var
|
|
4794
|
+
var React61 = __toESM(require("react"));
|
|
4754
4795
|
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
4755
|
-
var
|
|
4756
|
-
var
|
|
4757
|
-
var FLEX_WRAP_LABEL = (0,
|
|
4796
|
+
var import_icons18 = require("@elementor/icons");
|
|
4797
|
+
var import_i18n38 = require("@wordpress/i18n");
|
|
4798
|
+
var FLEX_WRAP_LABEL = (0, import_i18n38.__)("Wrap", "elementor");
|
|
4758
4799
|
var options6 = [
|
|
4759
4800
|
{
|
|
4760
4801
|
value: "nowrap",
|
|
4761
|
-
label: (0,
|
|
4762
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4802
|
+
label: (0, import_i18n38.__)("No wrap", "elementor"),
|
|
4803
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.ArrowRightIcon, { fontSize: size }),
|
|
4763
4804
|
showTooltip: true
|
|
4764
4805
|
},
|
|
4765
4806
|
{
|
|
4766
4807
|
value: "wrap",
|
|
4767
|
-
label: (0,
|
|
4768
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4808
|
+
label: (0, import_i18n38.__)("Wrap", "elementor"),
|
|
4809
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.ArrowBackIcon, { fontSize: size }),
|
|
4769
4810
|
showTooltip: true
|
|
4770
4811
|
},
|
|
4771
4812
|
{
|
|
4772
4813
|
value: "wrap-reverse",
|
|
4773
|
-
label: (0,
|
|
4774
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4814
|
+
label: (0, import_i18n38.__)("Reversed wrap", "elementor"),
|
|
4815
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.ArrowForwardIcon, { fontSize: size }),
|
|
4775
4816
|
showTooltip: true
|
|
4776
4817
|
}
|
|
4777
4818
|
];
|
|
4778
4819
|
var WrapField = () => {
|
|
4779
|
-
return /* @__PURE__ */
|
|
4820
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React61.createElement(UiProviders, null, /* @__PURE__ */ React61.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React61.createElement(import_editor_controls30.ToggleControl, { options: options6 }))));
|
|
4780
4821
|
};
|
|
4781
4822
|
|
|
4782
4823
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4783
|
-
var DISPLAY_LABEL2 = (0,
|
|
4784
|
-
var FLEX_WRAP_LABEL2 = (0,
|
|
4824
|
+
var DISPLAY_LABEL2 = (0, import_i18n39.__)("Display", "elementor");
|
|
4825
|
+
var FLEX_WRAP_LABEL2 = (0, import_i18n39.__)("Flex wrap", "elementor");
|
|
4785
4826
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4786
4827
|
var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations3.createLocation)();
|
|
4787
4828
|
var LayoutSection = () => {
|
|
@@ -4803,17 +4844,17 @@ var LayoutSection = () => {
|
|
|
4803
4844
|
}
|
|
4804
4845
|
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4805
4846
|
};
|
|
4806
|
-
return /* @__PURE__ */
|
|
4847
|
+
return /* @__PURE__ */ React62.createElement(SectionContent, null, /* @__PURE__ */ React62.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React62.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React62.createElement(FlexChildFields, { parentStyleDirection: getParentStyleDirection() }), isDisplayGrid && /* @__PURE__ */ React62.createElement(GridFields, null), "grid" === parentStyle?.display && /* @__PURE__ */ React62.createElement(GridChildFields, { parentStyleDirection: getParentStyleDirection() }));
|
|
4807
4848
|
};
|
|
4808
4849
|
var FlexFields = () => {
|
|
4809
4850
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4810
4851
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4811
4852
|
});
|
|
4812
|
-
return /* @__PURE__ */
|
|
4853
|
+
return /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(FlexDirectionField, null), /* @__PURE__ */ React62.createElement(JustifyContentField, null), /* @__PURE__ */ React62.createElement(AlignItemsField, null), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(GapControlField, null), /* @__PURE__ */ React62.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React62.createElement(AlignContentField, null));
|
|
4813
4854
|
};
|
|
4814
|
-
var GridFields = () => /* @__PURE__ */
|
|
4815
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4816
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4855
|
+
var GridFields = () => /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(GridOutlineField, null), /* @__PURE__ */ React62.createElement(GridSizeFields, null), /* @__PURE__ */ React62.createElement(GridAutoFlowField, null), /* @__PURE__ */ React62.createElement(GridFieldsSlot, null), /* @__PURE__ */ React62.createElement(StyleTabCollapsibleContent, { fields: ["grid-auto-rows", "grid-auto-columns"] }, /* @__PURE__ */ React62.createElement(GridAutoTrackFields, null)), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(GapControlField, null), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React62.createElement(AlignItemsField, null));
|
|
4856
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(import_editor_controls31.ControlFormLabel, null, (0, import_i18n39.__)("Flex child", "elementor")), /* @__PURE__ */ React62.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React62.createElement(FlexOrderField, null), /* @__PURE__ */ React62.createElement(FlexSizeField, null));
|
|
4857
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(import_editor_controls31.ControlFormLabel, null, (0, import_i18n39.__)("Grid child", "elementor")), /* @__PURE__ */ React62.createElement(GridSpanFields, null), /* @__PURE__ */ React62.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React62.createElement(FlexOrderField, null));
|
|
4817
4858
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4818
4859
|
const value = display?.value ?? local?.value;
|
|
4819
4860
|
if (!value) {
|
|
@@ -4823,40 +4864,40 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4823
4864
|
};
|
|
4824
4865
|
|
|
4825
4866
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4826
|
-
var
|
|
4827
|
-
var
|
|
4867
|
+
var React67 = __toESM(require("react"));
|
|
4868
|
+
var import_react30 = require("react");
|
|
4828
4869
|
var import_session7 = require("@elementor/session");
|
|
4829
|
-
var
|
|
4830
|
-
var
|
|
4870
|
+
var import_ui40 = require("@elementor/ui");
|
|
4871
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
4831
4872
|
|
|
4832
4873
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4833
|
-
var
|
|
4834
|
-
var
|
|
4874
|
+
var React63 = __toESM(require("react"));
|
|
4875
|
+
var import_react28 = require("react");
|
|
4835
4876
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
4836
|
-
var
|
|
4837
|
-
var
|
|
4838
|
-
var
|
|
4839
|
-
var InlineStartIcon2 = (0,
|
|
4840
|
-
var InlineEndIcon2 = (0,
|
|
4877
|
+
var import_icons19 = require("@elementor/icons");
|
|
4878
|
+
var import_ui38 = require("@elementor/ui");
|
|
4879
|
+
var import_i18n40 = require("@wordpress/i18n");
|
|
4880
|
+
var InlineStartIcon2 = (0, import_ui38.withDirection)(import_icons19.SideLeftIcon);
|
|
4881
|
+
var InlineEndIcon2 = (0, import_ui38.withDirection)(import_icons19.SideRightIcon);
|
|
4841
4882
|
var sideIcons = {
|
|
4842
|
-
"inset-block-start": /* @__PURE__ */
|
|
4843
|
-
"inset-block-end": /* @__PURE__ */
|
|
4844
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4845
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4883
|
+
"inset-block-start": /* @__PURE__ */ React63.createElement(import_icons19.SideTopIcon, { fontSize: "tiny" }),
|
|
4884
|
+
"inset-block-end": /* @__PURE__ */ React63.createElement(import_icons19.SideBottomIcon, { fontSize: "tiny" }),
|
|
4885
|
+
"inset-inline-start": /* @__PURE__ */ React63.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4886
|
+
"inset-inline-end": /* @__PURE__ */ React63.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4846
4887
|
};
|
|
4847
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4848
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4888
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n40.__)("Right", "elementor") : (0, import_i18n40.__)("Left", "elementor");
|
|
4889
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n40.__)("Left", "elementor") : (0, import_i18n40.__)("Right", "elementor");
|
|
4849
4890
|
var DimensionsField = () => {
|
|
4850
4891
|
const { isSiteRtl } = useDirection();
|
|
4851
|
-
const rowRefs = [(0,
|
|
4852
|
-
return /* @__PURE__ */
|
|
4892
|
+
const rowRefs = [(0, import_react28.useRef)(null), (0, import_react28.useRef)(null)];
|
|
4893
|
+
return /* @__PURE__ */ React63.createElement(UiProviders, null, /* @__PURE__ */ React63.createElement(import_ui38.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React63.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n40.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React63.createElement(
|
|
4853
4894
|
DimensionField,
|
|
4854
4895
|
{
|
|
4855
4896
|
side: "inset-inline-end",
|
|
4856
4897
|
label: getInlineEndLabel(isSiteRtl),
|
|
4857
4898
|
rowRef: rowRefs[0]
|
|
4858
4899
|
}
|
|
4859
|
-
)), /* @__PURE__ */
|
|
4900
|
+
)), /* @__PURE__ */ React63.createElement(import_ui38.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React63.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n40.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React63.createElement(
|
|
4860
4901
|
DimensionField,
|
|
4861
4902
|
{
|
|
4862
4903
|
side: "inset-inline-start",
|
|
@@ -4869,7 +4910,7 @@ var DimensionField = ({
|
|
|
4869
4910
|
side,
|
|
4870
4911
|
label,
|
|
4871
4912
|
rowRef
|
|
4872
|
-
}) => /* @__PURE__ */
|
|
4913
|
+
}) => /* @__PURE__ */ React63.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React63.createElement(import_ui38.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React63.createElement(import_ui38.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, label)), /* @__PURE__ */ React63.createElement(import_ui38.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React63.createElement(
|
|
4873
4914
|
import_editor_controls32.SizeControl,
|
|
4874
4915
|
{
|
|
4875
4916
|
startIcon: sideIcons[side],
|
|
@@ -4880,62 +4921,62 @@ var DimensionField = ({
|
|
|
4880
4921
|
))));
|
|
4881
4922
|
|
|
4882
4923
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4883
|
-
var
|
|
4884
|
-
var
|
|
4924
|
+
var React64 = __toESM(require("react"));
|
|
4925
|
+
var import_react29 = require("react");
|
|
4885
4926
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4886
|
-
var
|
|
4887
|
-
var OFFSET_LABEL = (0,
|
|
4927
|
+
var import_i18n41 = require("@wordpress/i18n");
|
|
4928
|
+
var OFFSET_LABEL = (0, import_i18n41.__)("Anchor offset", "elementor");
|
|
4888
4929
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4889
4930
|
var OffsetField = () => {
|
|
4890
|
-
const rowRef = (0,
|
|
4891
|
-
return /* @__PURE__ */
|
|
4931
|
+
const rowRef = (0, import_react29.useRef)(null);
|
|
4932
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React64.createElement(import_editor_controls33.SizeControl, { units: UNITS2, anchorRef: rowRef })));
|
|
4892
4933
|
};
|
|
4893
4934
|
|
|
4894
4935
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4895
|
-
var
|
|
4936
|
+
var React65 = __toESM(require("react"));
|
|
4896
4937
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4897
|
-
var
|
|
4898
|
-
var POSITION_LABEL = (0,
|
|
4938
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
4939
|
+
var POSITION_LABEL = (0, import_i18n42.__)("Position", "elementor");
|
|
4899
4940
|
var positionOptions = [
|
|
4900
|
-
{ label: (0,
|
|
4901
|
-
{ label: (0,
|
|
4902
|
-
{ label: (0,
|
|
4903
|
-
{ label: (0,
|
|
4904
|
-
{ label: (0,
|
|
4941
|
+
{ label: (0, import_i18n42.__)("Static", "elementor"), value: "static" },
|
|
4942
|
+
{ label: (0, import_i18n42.__)("Relative", "elementor"), value: "relative" },
|
|
4943
|
+
{ label: (0, import_i18n42.__)("Absolute", "elementor"), value: "absolute" },
|
|
4944
|
+
{ label: (0, import_i18n42.__)("Fixed", "elementor"), value: "fixed" },
|
|
4945
|
+
{ label: (0, import_i18n42.__)("Sticky", "elementor"), value: "sticky" }
|
|
4905
4946
|
];
|
|
4906
4947
|
var PositionField = () => {
|
|
4907
|
-
return /* @__PURE__ */
|
|
4948
|
+
return /* @__PURE__ */ React65.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React65.createElement(import_editor_controls34.SelectControl, { options: positionOptions })));
|
|
4908
4949
|
};
|
|
4909
4950
|
|
|
4910
4951
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4911
|
-
var
|
|
4952
|
+
var React66 = __toESM(require("react"));
|
|
4912
4953
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
4913
|
-
var
|
|
4914
|
-
var
|
|
4915
|
-
var
|
|
4916
|
-
var Z_INDEX_LABEL = (0,
|
|
4954
|
+
var import_icons20 = require("@elementor/icons");
|
|
4955
|
+
var import_ui39 = require("@elementor/ui");
|
|
4956
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
4957
|
+
var Z_INDEX_LABEL = (0, import_i18n43.__)("Z-index", "elementor");
|
|
4917
4958
|
var ZIndexField = ({ disabled }) => {
|
|
4918
|
-
const StyleField = /* @__PURE__ */
|
|
4919
|
-
const content = /* @__PURE__ */
|
|
4959
|
+
const StyleField = /* @__PURE__ */ React66.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React66.createElement(import_editor_controls35.NumberControl, { disabled })));
|
|
4960
|
+
const content = /* @__PURE__ */ React66.createElement(import_ui39.Alert, { color: "secondary", icon: /* @__PURE__ */ React66.createElement(import_icons20.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React66.createElement(import_ui39.AlertTitle, null, (0, import_i18n43.__)("Z-index", "elementor")), /* @__PURE__ */ React66.createElement(import_ui39.Box, { component: "span" }, (0, import_i18n43.__)(
|
|
4920
4961
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4921
4962
|
"elementor"
|
|
4922
4963
|
)));
|
|
4923
|
-
return disabled ? /* @__PURE__ */
|
|
4924
|
-
|
|
4964
|
+
return disabled ? /* @__PURE__ */ React66.createElement(
|
|
4965
|
+
import_ui39.Infotip,
|
|
4925
4966
|
{
|
|
4926
4967
|
placement: "right",
|
|
4927
4968
|
content,
|
|
4928
4969
|
color: "secondary",
|
|
4929
4970
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
4930
4971
|
},
|
|
4931
|
-
/* @__PURE__ */
|
|
4932
|
-
) : /* @__PURE__ */
|
|
4972
|
+
/* @__PURE__ */ React66.createElement(import_ui39.Box, null, StyleField)
|
|
4973
|
+
) : /* @__PURE__ */ React66.createElement(React66.Fragment, null, StyleField);
|
|
4933
4974
|
};
|
|
4934
4975
|
|
|
4935
4976
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4936
4977
|
var POSITION_STATIC = "static";
|
|
4937
|
-
var POSITION_LABEL2 = (0,
|
|
4938
|
-
var DIMENSIONS_LABEL = (0,
|
|
4978
|
+
var POSITION_LABEL2 = (0, import_i18n44.__)("Position", "elementor");
|
|
4979
|
+
var DIMENSIONS_LABEL = (0, import_i18n44.__)("Dimensions", "elementor");
|
|
4939
4980
|
var DEPENDENT_PROP_NAMES = [
|
|
4940
4981
|
"inset-block-start",
|
|
4941
4982
|
"inset-block-end",
|
|
@@ -4948,10 +4989,10 @@ var PositionSection = () => {
|
|
|
4948
4989
|
const inheritedPosition = useInheritedValues(["position"]).position;
|
|
4949
4990
|
const resolvedPosition = position ?? inheritedPosition ?? null;
|
|
4950
4991
|
const isPositionUnsetOrStatic = !resolvedPosition || resolvedPosition.value === POSITION_STATIC;
|
|
4951
|
-
const positionPrevRef = (0,
|
|
4992
|
+
const positionPrevRef = (0, import_react30.useRef)(position);
|
|
4952
4993
|
const { values: dependentValues, setValues: setDependentValues } = useStylesFields(DEPENDENT_PROP_NAMES);
|
|
4953
4994
|
const [savedDependentValues, saveToHistory, clearHistory] = usePersistDimensions();
|
|
4954
|
-
(0,
|
|
4995
|
+
(0, import_react30.useEffect)(() => {
|
|
4955
4996
|
if (position && position?.value === POSITION_STATIC && hasDependentValues(dependentValues)) {
|
|
4956
4997
|
saveToHistory(extractDimensions(dependentValues));
|
|
4957
4998
|
}
|
|
@@ -4964,7 +5005,7 @@ var PositionSection = () => {
|
|
|
4964
5005
|
}
|
|
4965
5006
|
positionPrevRef.current = position;
|
|
4966
5007
|
}, [position?.value, isPositionUnsetOrStatic]);
|
|
4967
|
-
return /* @__PURE__ */
|
|
5008
|
+
return /* @__PURE__ */ React67.createElement(StyledSectionContent, null, /* @__PURE__ */ React67.createElement(PositionField, null), /* @__PURE__ */ React67.createElement(DimensionsField, null), /* @__PURE__ */ React67.createElement(ZIndexField, { disabled: isPositionUnsetOrStatic }), /* @__PURE__ */ React67.createElement(PanelDivider, null), /* @__PURE__ */ React67.createElement(OffsetField, null));
|
|
4968
5009
|
};
|
|
4969
5010
|
var usePersistDimensions = () => {
|
|
4970
5011
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4992,7 +5033,7 @@ var extractDimensions = (values) => {
|
|
|
4992
5033
|
};
|
|
4993
5034
|
}, {});
|
|
4994
5035
|
};
|
|
4995
|
-
var StyledSectionContent = (0,
|
|
5036
|
+
var StyledSectionContent = (0, import_ui40.styled)(SectionContent, {
|
|
4996
5037
|
shouldForwardProp: (prop) => prop !== "gap"
|
|
4997
5038
|
})(({ gap = 2, theme }) => ({
|
|
4998
5039
|
gap: 0,
|
|
@@ -5014,56 +5055,56 @@ var StyledSectionContent = (0, import_ui39.styled)(SectionContent, {
|
|
|
5014
5055
|
}));
|
|
5015
5056
|
|
|
5016
5057
|
// src/components/style-sections/size-section/size-section.tsx
|
|
5017
|
-
var
|
|
5018
|
-
var
|
|
5058
|
+
var React70 = __toESM(require("react"));
|
|
5059
|
+
var import_react31 = require("react");
|
|
5019
5060
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
5020
|
-
var
|
|
5021
|
-
var
|
|
5061
|
+
var import_ui41 = require("@elementor/ui");
|
|
5062
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
5022
5063
|
|
|
5023
5064
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
5024
|
-
var
|
|
5065
|
+
var React68 = __toESM(require("react"));
|
|
5025
5066
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
5026
|
-
var
|
|
5027
|
-
var OBJECT_FIT_LABEL = (0,
|
|
5067
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
5068
|
+
var OBJECT_FIT_LABEL = (0, import_i18n45.__)("Object fit", "elementor");
|
|
5028
5069
|
var positionOptions2 = [
|
|
5029
|
-
{ label: (0,
|
|
5030
|
-
{ label: (0,
|
|
5031
|
-
{ label: (0,
|
|
5032
|
-
{ label: (0,
|
|
5033
|
-
{ label: (0,
|
|
5070
|
+
{ label: (0, import_i18n45.__)("Fill", "elementor"), value: "fill" },
|
|
5071
|
+
{ label: (0, import_i18n45.__)("Cover", "elementor"), value: "cover" },
|
|
5072
|
+
{ label: (0, import_i18n45.__)("Contain", "elementor"), value: "contain" },
|
|
5073
|
+
{ label: (0, import_i18n45.__)("None", "elementor"), value: "none" },
|
|
5074
|
+
{ label: (0, import_i18n45.__)("Scale down", "elementor"), value: "scale-down" }
|
|
5034
5075
|
];
|
|
5035
5076
|
var ObjectFitField = () => {
|
|
5036
|
-
return /* @__PURE__ */
|
|
5077
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React68.createElement(import_editor_controls36.SelectControl, { options: positionOptions2 })));
|
|
5037
5078
|
};
|
|
5038
5079
|
|
|
5039
5080
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
5040
|
-
var
|
|
5081
|
+
var React69 = __toESM(require("react"));
|
|
5041
5082
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
5042
|
-
var
|
|
5043
|
-
var
|
|
5044
|
-
var OVERFLOW_LABEL = (0,
|
|
5083
|
+
var import_icons21 = require("@elementor/icons");
|
|
5084
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
5085
|
+
var OVERFLOW_LABEL = (0, import_i18n46.__)("Overflow", "elementor");
|
|
5045
5086
|
var options7 = [
|
|
5046
5087
|
{
|
|
5047
5088
|
value: "visible",
|
|
5048
|
-
label: (0,
|
|
5049
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5089
|
+
label: (0, import_i18n46.__)("Visible", "elementor"),
|
|
5090
|
+
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(import_icons21.EyeIcon, { fontSize: size }),
|
|
5050
5091
|
showTooltip: true
|
|
5051
5092
|
},
|
|
5052
5093
|
{
|
|
5053
5094
|
value: "hidden",
|
|
5054
|
-
label: (0,
|
|
5055
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5095
|
+
label: (0, import_i18n46.__)("Hidden", "elementor"),
|
|
5096
|
+
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(import_icons21.EyeOffIcon, { fontSize: size }),
|
|
5056
5097
|
showTooltip: true
|
|
5057
5098
|
},
|
|
5058
5099
|
{
|
|
5059
5100
|
value: "auto",
|
|
5060
|
-
label: (0,
|
|
5061
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5101
|
+
label: (0, import_i18n46.__)("Auto", "elementor"),
|
|
5102
|
+
renderContent: ({ size }) => /* @__PURE__ */ React69.createElement(import_icons21.LetterAIcon, { fontSize: size }),
|
|
5062
5103
|
showTooltip: true
|
|
5063
5104
|
}
|
|
5064
5105
|
];
|
|
5065
5106
|
var OverflowField = () => {
|
|
5066
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React69.createElement(import_editor_controls37.ToggleControl, { options: options7 })));
|
|
5067
5108
|
};
|
|
5068
5109
|
|
|
5069
5110
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -5071,97 +5112,97 @@ var CssSizeProps = [
|
|
|
5071
5112
|
[
|
|
5072
5113
|
{
|
|
5073
5114
|
bind: "width",
|
|
5074
|
-
label: (0,
|
|
5115
|
+
label: (0, import_i18n47.__)("Width", "elementor")
|
|
5075
5116
|
},
|
|
5076
5117
|
{
|
|
5077
5118
|
bind: "height",
|
|
5078
|
-
label: (0,
|
|
5119
|
+
label: (0, import_i18n47.__)("Height", "elementor")
|
|
5079
5120
|
}
|
|
5080
5121
|
],
|
|
5081
5122
|
[
|
|
5082
5123
|
{
|
|
5083
5124
|
bind: "min-width",
|
|
5084
|
-
label: (0,
|
|
5125
|
+
label: (0, import_i18n47.__)("Min width", "elementor")
|
|
5085
5126
|
},
|
|
5086
5127
|
{
|
|
5087
5128
|
bind: "min-height",
|
|
5088
|
-
label: (0,
|
|
5129
|
+
label: (0, import_i18n47.__)("Min height", "elementor")
|
|
5089
5130
|
}
|
|
5090
5131
|
],
|
|
5091
5132
|
[
|
|
5092
5133
|
{
|
|
5093
5134
|
bind: "max-width",
|
|
5094
|
-
label: (0,
|
|
5135
|
+
label: (0, import_i18n47.__)("Max width", "elementor")
|
|
5095
5136
|
},
|
|
5096
5137
|
{
|
|
5097
5138
|
bind: "max-height",
|
|
5098
|
-
label: (0,
|
|
5139
|
+
label: (0, import_i18n47.__)("Max height", "elementor")
|
|
5099
5140
|
}
|
|
5100
5141
|
]
|
|
5101
5142
|
];
|
|
5102
|
-
var ASPECT_RATIO_LABEL = (0,
|
|
5143
|
+
var ASPECT_RATIO_LABEL = (0, import_i18n47.__)("Aspect Ratio", "elementor");
|
|
5103
5144
|
var SizeSection = () => {
|
|
5104
|
-
const gridRowRefs = [(0,
|
|
5105
|
-
return /* @__PURE__ */
|
|
5145
|
+
const gridRowRefs = [(0, import_react31.useRef)(null), (0, import_react31.useRef)(null), (0, import_react31.useRef)(null)];
|
|
5146
|
+
return /* @__PURE__ */ React70.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React70.createElement(import_ui41.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React70.createElement(import_ui41.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React70.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React70.createElement(PanelDivider, null), /* @__PURE__ */ React70.createElement(import_ui41.Stack, null, /* @__PURE__ */ React70.createElement(OverflowField, null)), /* @__PURE__ */ React70.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React70.createElement(import_ui41.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React70.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React70.createElement(import_editor_controls38.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React70.createElement(PanelDivider, null), /* @__PURE__ */ React70.createElement(ObjectFitField, null), /* @__PURE__ */ React70.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n47.__)("Object position", "elementor") }, /* @__PURE__ */ React70.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(import_editor_controls38.PositionControl, null))))));
|
|
5106
5147
|
};
|
|
5107
5148
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
5108
|
-
return /* @__PURE__ */
|
|
5149
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React70.createElement(import_ui41.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React70.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React70.createElement(ControlLabel, null, label)), /* @__PURE__ */ React70.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React70.createElement(import_editor_controls38.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
5109
5150
|
};
|
|
5110
5151
|
|
|
5111
5152
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
5112
|
-
var
|
|
5153
|
+
var React71 = __toESM(require("react"));
|
|
5113
5154
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
5114
|
-
var
|
|
5115
|
-
var MARGIN_LABEL = (0,
|
|
5116
|
-
var PADDING_LABEL = (0,
|
|
5155
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
5156
|
+
var MARGIN_LABEL = (0, import_i18n48.__)("Margin", "elementor");
|
|
5157
|
+
var PADDING_LABEL = (0, import_i18n48.__)("Padding", "elementor");
|
|
5117
5158
|
var SpacingSection = () => {
|
|
5118
5159
|
const { isSiteRtl } = useDirection();
|
|
5119
|
-
return /* @__PURE__ */
|
|
5160
|
+
return /* @__PURE__ */ React71.createElement(SectionContent, null, /* @__PURE__ */ React71.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React71.createElement(
|
|
5120
5161
|
import_editor_controls39.LinkedDimensionsControl,
|
|
5121
5162
|
{
|
|
5122
5163
|
label: MARGIN_LABEL,
|
|
5123
5164
|
isSiteRtl,
|
|
5124
5165
|
min: -Number.MAX_SAFE_INTEGER
|
|
5125
5166
|
}
|
|
5126
|
-
)), /* @__PURE__ */
|
|
5167
|
+
)), /* @__PURE__ */ React71.createElement(PanelDivider, null), /* @__PURE__ */ React71.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React71.createElement(import_editor_controls39.LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
5127
5168
|
};
|
|
5128
5169
|
|
|
5129
5170
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5130
|
-
var
|
|
5171
|
+
var React88 = __toESM(require("react"));
|
|
5131
5172
|
|
|
5132
5173
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
5133
|
-
var
|
|
5174
|
+
var React72 = __toESM(require("react"));
|
|
5134
5175
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
5135
|
-
var
|
|
5136
|
-
var COLUMN_COUNT_LABEL = (0,
|
|
5176
|
+
var import_i18n49 = require("@wordpress/i18n");
|
|
5177
|
+
var COLUMN_COUNT_LABEL = (0, import_i18n49.__)("Columns", "elementor");
|
|
5137
5178
|
var ColumnCountField = () => {
|
|
5138
|
-
return /* @__PURE__ */
|
|
5179
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React72.createElement(import_editor_controls40.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
5139
5180
|
};
|
|
5140
5181
|
|
|
5141
5182
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
5142
|
-
var
|
|
5143
|
-
var
|
|
5183
|
+
var React73 = __toESM(require("react"));
|
|
5184
|
+
var import_react32 = require("react");
|
|
5144
5185
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
5145
|
-
var
|
|
5146
|
-
var COLUMN_GAP_LABEL = (0,
|
|
5186
|
+
var import_i18n50 = require("@wordpress/i18n");
|
|
5187
|
+
var COLUMN_GAP_LABEL = (0, import_i18n50.__)("Column gap", "elementor");
|
|
5147
5188
|
var ColumnGapField = () => {
|
|
5148
|
-
const rowRef = (0,
|
|
5149
|
-
return /* @__PURE__ */
|
|
5189
|
+
const rowRef = (0, import_react32.useRef)(null);
|
|
5190
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React73.createElement(import_editor_controls41.SizeControl, { anchorRef: rowRef })));
|
|
5150
5191
|
};
|
|
5151
5192
|
|
|
5152
5193
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
5153
|
-
var
|
|
5194
|
+
var React74 = __toESM(require("react"));
|
|
5154
5195
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
5155
5196
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
5156
|
-
var
|
|
5157
|
-
var FONT_FAMILY_LABEL = (0,
|
|
5197
|
+
var import_i18n51 = require("@wordpress/i18n");
|
|
5198
|
+
var FONT_FAMILY_LABEL = (0, import_i18n51.__)("Font family", "elementor");
|
|
5158
5199
|
var FontFamilyField = () => {
|
|
5159
5200
|
const fontFamilies = (0, import_editor_controls42.useFontFamilies)();
|
|
5160
5201
|
const sectionWidth = (0, import_editor_ui7.useSectionWidth)();
|
|
5161
5202
|
if (fontFamilies.length === 0) {
|
|
5162
5203
|
return null;
|
|
5163
5204
|
}
|
|
5164
|
-
return /* @__PURE__ */
|
|
5205
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React74.createElement(
|
|
5165
5206
|
import_editor_controls42.FontFamilyControl,
|
|
5166
5207
|
{
|
|
5167
5208
|
fontFamilies,
|
|
@@ -5172,198 +5213,198 @@ var FontFamilyField = () => {
|
|
|
5172
5213
|
};
|
|
5173
5214
|
|
|
5174
5215
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
5175
|
-
var
|
|
5176
|
-
var
|
|
5216
|
+
var React75 = __toESM(require("react"));
|
|
5217
|
+
var import_react33 = require("react");
|
|
5177
5218
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
5178
|
-
var
|
|
5179
|
-
var FONT_SIZE_LABEL = (0,
|
|
5219
|
+
var import_i18n52 = require("@wordpress/i18n");
|
|
5220
|
+
var FONT_SIZE_LABEL = (0, import_i18n52.__)("Font size", "elementor");
|
|
5180
5221
|
var FontSizeField = () => {
|
|
5181
|
-
const rowRef = (0,
|
|
5182
|
-
return /* @__PURE__ */
|
|
5222
|
+
const rowRef = (0, import_react33.useRef)(null);
|
|
5223
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React75.createElement(import_editor_controls43.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
5183
5224
|
};
|
|
5184
5225
|
|
|
5185
5226
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
5186
|
-
var
|
|
5227
|
+
var React76 = __toESM(require("react"));
|
|
5187
5228
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
5188
|
-
var
|
|
5189
|
-
var
|
|
5190
|
-
var FONT_STYLE_LABEL = (0,
|
|
5229
|
+
var import_icons22 = require("@elementor/icons");
|
|
5230
|
+
var import_i18n53 = require("@wordpress/i18n");
|
|
5231
|
+
var FONT_STYLE_LABEL = (0, import_i18n53.__)("Font style", "elementor");
|
|
5191
5232
|
var options8 = [
|
|
5192
5233
|
{
|
|
5193
5234
|
value: "normal",
|
|
5194
|
-
label: (0,
|
|
5195
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5235
|
+
label: (0, import_i18n53.__)("Normal", "elementor"),
|
|
5236
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(import_icons22.MinusIcon, { fontSize: size }),
|
|
5196
5237
|
showTooltip: true
|
|
5197
5238
|
},
|
|
5198
5239
|
{
|
|
5199
5240
|
value: "italic",
|
|
5200
|
-
label: (0,
|
|
5201
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5241
|
+
label: (0, import_i18n53.__)("Italic", "elementor"),
|
|
5242
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(import_icons22.ItalicIcon, { fontSize: size }),
|
|
5202
5243
|
showTooltip: true
|
|
5203
5244
|
}
|
|
5204
5245
|
];
|
|
5205
5246
|
var FontStyleField = () => {
|
|
5206
|
-
return /* @__PURE__ */
|
|
5247
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React76.createElement(import_editor_controls44.ToggleControl, { options: options8 })));
|
|
5207
5248
|
};
|
|
5208
5249
|
|
|
5209
5250
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5210
|
-
var
|
|
5251
|
+
var React77 = __toESM(require("react"));
|
|
5211
5252
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
5212
|
-
var
|
|
5213
|
-
var FONT_WEIGHT_LABEL = (0,
|
|
5253
|
+
var import_i18n54 = require("@wordpress/i18n");
|
|
5254
|
+
var FONT_WEIGHT_LABEL = (0, import_i18n54.__)("Font weight", "elementor");
|
|
5214
5255
|
var fontWeightOptions = [
|
|
5215
|
-
{ value: "100", label: (0,
|
|
5216
|
-
{ value: "200", label: (0,
|
|
5217
|
-
{ value: "300", label: (0,
|
|
5218
|
-
{ value: "400", label: (0,
|
|
5219
|
-
{ value: "500", label: (0,
|
|
5220
|
-
{ value: "600", label: (0,
|
|
5221
|
-
{ value: "700", label: (0,
|
|
5222
|
-
{ value: "800", label: (0,
|
|
5223
|
-
{ value: "900", label: (0,
|
|
5256
|
+
{ value: "100", label: (0, import_i18n54.__)("100 - Thin", "elementor") },
|
|
5257
|
+
{ value: "200", label: (0, import_i18n54.__)("200 - Extra light", "elementor") },
|
|
5258
|
+
{ value: "300", label: (0, import_i18n54.__)("300 - Light", "elementor") },
|
|
5259
|
+
{ value: "400", label: (0, import_i18n54.__)("400 - Normal", "elementor") },
|
|
5260
|
+
{ value: "500", label: (0, import_i18n54.__)("500 - Medium", "elementor") },
|
|
5261
|
+
{ value: "600", label: (0, import_i18n54.__)("600 - Semi bold", "elementor") },
|
|
5262
|
+
{ value: "700", label: (0, import_i18n54.__)("700 - Bold", "elementor") },
|
|
5263
|
+
{ value: "800", label: (0, import_i18n54.__)("800 - Extra bold", "elementor") },
|
|
5264
|
+
{ value: "900", label: (0, import_i18n54.__)("900 - Black", "elementor") }
|
|
5224
5265
|
];
|
|
5225
5266
|
var FontWeightField = () => {
|
|
5226
|
-
return /* @__PURE__ */
|
|
5267
|
+
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React77.createElement(import_editor_controls45.SelectControl, { options: fontWeightOptions })));
|
|
5227
5268
|
};
|
|
5228
5269
|
|
|
5229
5270
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
5230
|
-
var
|
|
5231
|
-
var
|
|
5271
|
+
var React78 = __toESM(require("react"));
|
|
5272
|
+
var import_react34 = require("react");
|
|
5232
5273
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
5233
|
-
var
|
|
5234
|
-
var LETTER_SPACING_LABEL = (0,
|
|
5274
|
+
var import_i18n55 = require("@wordpress/i18n");
|
|
5275
|
+
var LETTER_SPACING_LABEL = (0, import_i18n55.__)("Letter spacing", "elementor");
|
|
5235
5276
|
var LetterSpacingField = () => {
|
|
5236
|
-
const rowRef = (0,
|
|
5237
|
-
return /* @__PURE__ */
|
|
5277
|
+
const rowRef = (0, import_react34.useRef)(null);
|
|
5278
|
+
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(import_editor_controls46.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5238
5279
|
};
|
|
5239
5280
|
|
|
5240
5281
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
5241
|
-
var
|
|
5242
|
-
var
|
|
5282
|
+
var React79 = __toESM(require("react"));
|
|
5283
|
+
var import_react35 = require("react");
|
|
5243
5284
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
5244
|
-
var
|
|
5245
|
-
var LINE_HEIGHT_LABEL = (0,
|
|
5285
|
+
var import_i18n56 = require("@wordpress/i18n");
|
|
5286
|
+
var LINE_HEIGHT_LABEL = (0, import_i18n56.__)("Line height", "elementor");
|
|
5246
5287
|
var LineHeightField = () => {
|
|
5247
|
-
const rowRef = (0,
|
|
5248
|
-
return /* @__PURE__ */
|
|
5288
|
+
const rowRef = (0, import_react35.useRef)(null);
|
|
5289
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React79.createElement(import_editor_controls47.SizeControl, { anchorRef: rowRef })));
|
|
5249
5290
|
};
|
|
5250
5291
|
|
|
5251
5292
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
5252
|
-
var
|
|
5293
|
+
var React80 = __toESM(require("react"));
|
|
5253
5294
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
5254
|
-
var
|
|
5255
|
-
var
|
|
5256
|
-
var
|
|
5257
|
-
var TEXT_ALIGNMENT_LABEL = (0,
|
|
5258
|
-
var AlignStartIcon = (0,
|
|
5259
|
-
var AlignEndIcon = (0,
|
|
5295
|
+
var import_icons23 = require("@elementor/icons");
|
|
5296
|
+
var import_ui42 = require("@elementor/ui");
|
|
5297
|
+
var import_i18n57 = require("@wordpress/i18n");
|
|
5298
|
+
var TEXT_ALIGNMENT_LABEL = (0, import_i18n57.__)("Text align", "elementor");
|
|
5299
|
+
var AlignStartIcon = (0, import_ui42.withDirection)(import_icons23.AlignLeftIcon);
|
|
5300
|
+
var AlignEndIcon = (0, import_ui42.withDirection)(import_icons23.AlignRightIcon);
|
|
5260
5301
|
var options9 = [
|
|
5261
5302
|
{
|
|
5262
5303
|
value: "start",
|
|
5263
|
-
label: (0,
|
|
5264
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5304
|
+
label: (0, import_i18n57.__)("Start", "elementor"),
|
|
5305
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(AlignStartIcon, { fontSize: size }),
|
|
5265
5306
|
showTooltip: true
|
|
5266
5307
|
},
|
|
5267
5308
|
{
|
|
5268
5309
|
value: "center",
|
|
5269
|
-
label: (0,
|
|
5270
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5310
|
+
label: (0, import_i18n57.__)("Center", "elementor"),
|
|
5311
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons23.AlignCenterIcon, { fontSize: size }),
|
|
5271
5312
|
showTooltip: true
|
|
5272
5313
|
},
|
|
5273
5314
|
{
|
|
5274
5315
|
value: "end",
|
|
5275
|
-
label: (0,
|
|
5276
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5316
|
+
label: (0, import_i18n57.__)("End", "elementor"),
|
|
5317
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(AlignEndIcon, { fontSize: size }),
|
|
5277
5318
|
showTooltip: true
|
|
5278
5319
|
},
|
|
5279
5320
|
{
|
|
5280
5321
|
value: "justify",
|
|
5281
|
-
label: (0,
|
|
5282
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5322
|
+
label: (0, import_i18n57.__)("Justify", "elementor"),
|
|
5323
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(import_icons23.AlignJustifiedIcon, { fontSize: size }),
|
|
5283
5324
|
showTooltip: true
|
|
5284
5325
|
}
|
|
5285
5326
|
];
|
|
5286
5327
|
var TextAlignmentField = () => {
|
|
5287
|
-
return /* @__PURE__ */
|
|
5328
|
+
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React80.createElement(UiProviders, null, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React80.createElement(import_editor_controls48.ToggleControl, { options: options9 }))));
|
|
5288
5329
|
};
|
|
5289
5330
|
|
|
5290
5331
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5291
|
-
var
|
|
5332
|
+
var React81 = __toESM(require("react"));
|
|
5292
5333
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
5293
|
-
var
|
|
5294
|
-
var TEXT_COLOR_LABEL = (0,
|
|
5334
|
+
var import_i18n58 = require("@wordpress/i18n");
|
|
5335
|
+
var TEXT_COLOR_LABEL = (0, import_i18n58.__)("Text color", "elementor");
|
|
5295
5336
|
var TextColorField = () => {
|
|
5296
|
-
return /* @__PURE__ */
|
|
5337
|
+
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React81.createElement(import_editor_controls49.ColorControl, { id: "text-color-control" })));
|
|
5297
5338
|
};
|
|
5298
5339
|
|
|
5299
5340
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
5300
|
-
var
|
|
5341
|
+
var React82 = __toESM(require("react"));
|
|
5301
5342
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
5302
|
-
var
|
|
5303
|
-
var
|
|
5304
|
-
var TEXT_DECORATION_LABEL = (0,
|
|
5343
|
+
var import_icons24 = require("@elementor/icons");
|
|
5344
|
+
var import_i18n59 = require("@wordpress/i18n");
|
|
5345
|
+
var TEXT_DECORATION_LABEL = (0, import_i18n59.__)("Line decoration", "elementor");
|
|
5305
5346
|
var options10 = [
|
|
5306
5347
|
{
|
|
5307
5348
|
value: "none",
|
|
5308
|
-
label: (0,
|
|
5309
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5349
|
+
label: (0, import_i18n59.__)("None", "elementor"),
|
|
5350
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.MinusIcon, { fontSize: size }),
|
|
5310
5351
|
showTooltip: true,
|
|
5311
5352
|
exclusive: true
|
|
5312
5353
|
},
|
|
5313
5354
|
{
|
|
5314
5355
|
value: "underline",
|
|
5315
|
-
label: (0,
|
|
5316
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5356
|
+
label: (0, import_i18n59.__)("Underline", "elementor"),
|
|
5357
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.UnderlineIcon, { fontSize: size }),
|
|
5317
5358
|
showTooltip: true
|
|
5318
5359
|
},
|
|
5319
5360
|
{
|
|
5320
5361
|
value: "line-through",
|
|
5321
|
-
label: (0,
|
|
5322
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5362
|
+
label: (0, import_i18n59.__)("Line-through", "elementor"),
|
|
5363
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.StrikethroughIcon, { fontSize: size }),
|
|
5323
5364
|
showTooltip: true
|
|
5324
5365
|
},
|
|
5325
5366
|
{
|
|
5326
5367
|
value: "overline",
|
|
5327
|
-
label: (0,
|
|
5328
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5368
|
+
label: (0, import_i18n59.__)("Overline", "elementor"),
|
|
5369
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.OverlineIcon, { fontSize: size }),
|
|
5329
5370
|
showTooltip: true
|
|
5330
5371
|
}
|
|
5331
5372
|
];
|
|
5332
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
5373
|
+
var TextDecorationField = () => /* @__PURE__ */ React82.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React82.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React82.createElement(import_editor_controls50.ToggleControl, { options: options10, exclusive: false })));
|
|
5333
5374
|
|
|
5334
5375
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
5335
|
-
var
|
|
5376
|
+
var React83 = __toESM(require("react"));
|
|
5336
5377
|
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
5337
|
-
var
|
|
5338
|
-
var
|
|
5339
|
-
var TEXT_DIRECTION_LABEL = (0,
|
|
5378
|
+
var import_icons25 = require("@elementor/icons");
|
|
5379
|
+
var import_i18n60 = require("@wordpress/i18n");
|
|
5380
|
+
var TEXT_DIRECTION_LABEL = (0, import_i18n60.__)("Direction", "elementor");
|
|
5340
5381
|
var options11 = [
|
|
5341
5382
|
{
|
|
5342
5383
|
value: "ltr",
|
|
5343
|
-
label: (0,
|
|
5344
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5384
|
+
label: (0, import_i18n60.__)("Left to right", "elementor"),
|
|
5385
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(import_icons25.TextDirectionLtrIcon, { fontSize: size }),
|
|
5345
5386
|
showTooltip: true
|
|
5346
5387
|
},
|
|
5347
5388
|
{
|
|
5348
5389
|
value: "rtl",
|
|
5349
|
-
label: (0,
|
|
5350
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5390
|
+
label: (0, import_i18n60.__)("Right to left", "elementor"),
|
|
5391
|
+
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(import_icons25.TextDirectionRtlIcon, { fontSize: size }),
|
|
5351
5392
|
showTooltip: true
|
|
5352
5393
|
}
|
|
5353
5394
|
];
|
|
5354
5395
|
var TextDirectionField = () => {
|
|
5355
|
-
return /* @__PURE__ */
|
|
5396
|
+
return /* @__PURE__ */ React83.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React83.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React83.createElement(import_editor_controls51.ToggleControl, { options: options11 })));
|
|
5356
5397
|
};
|
|
5357
5398
|
|
|
5358
5399
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5359
|
-
var
|
|
5400
|
+
var React85 = __toESM(require("react"));
|
|
5360
5401
|
var import_editor_controls52 = require("@elementor/editor-controls");
|
|
5361
|
-
var
|
|
5402
|
+
var import_i18n61 = require("@wordpress/i18n");
|
|
5362
5403
|
|
|
5363
5404
|
// src/components/add-or-remove-content.tsx
|
|
5364
|
-
var
|
|
5365
|
-
var
|
|
5366
|
-
var
|
|
5405
|
+
var React84 = __toESM(require("react"));
|
|
5406
|
+
var import_icons26 = require("@elementor/icons");
|
|
5407
|
+
var import_ui43 = require("@elementor/ui");
|
|
5367
5408
|
var SIZE = "tiny";
|
|
5368
5409
|
var AddOrRemoveContent = ({
|
|
5369
5410
|
isAdded,
|
|
@@ -5373,8 +5414,8 @@ var AddOrRemoveContent = ({
|
|
|
5373
5414
|
disabled,
|
|
5374
5415
|
renderLabel
|
|
5375
5416
|
}) => {
|
|
5376
|
-
return /* @__PURE__ */
|
|
5377
|
-
|
|
5417
|
+
return /* @__PURE__ */ React84.createElement(SectionContent, null, /* @__PURE__ */ React84.createElement(
|
|
5418
|
+
import_ui43.Stack,
|
|
5378
5419
|
{
|
|
5379
5420
|
direction: "row",
|
|
5380
5421
|
sx: {
|
|
@@ -5384,8 +5425,8 @@ var AddOrRemoveContent = ({
|
|
|
5384
5425
|
}
|
|
5385
5426
|
},
|
|
5386
5427
|
renderLabel(),
|
|
5387
|
-
isAdded ? /* @__PURE__ */
|
|
5388
|
-
), /* @__PURE__ */
|
|
5428
|
+
isAdded ? /* @__PURE__ */ React84.createElement(import_ui43.IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React84.createElement(import_icons26.MinusIcon, { fontSize: SIZE })) : /* @__PURE__ */ React84.createElement(import_ui43.IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React84.createElement(import_icons26.PlusIcon, { fontSize: SIZE }))
|
|
5429
|
+
), /* @__PURE__ */ React84.createElement(import_ui43.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React84.createElement(SectionContent, null, children)));
|
|
5389
5430
|
};
|
|
5390
5431
|
|
|
5391
5432
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5405,7 +5446,7 @@ var initTextStroke = {
|
|
|
5405
5446
|
}
|
|
5406
5447
|
}
|
|
5407
5448
|
};
|
|
5408
|
-
var TEXT_STROKE_LABEL = (0,
|
|
5449
|
+
var TEXT_STROKE_LABEL = (0, import_i18n61.__)("Text stroke", "elementor");
|
|
5409
5450
|
var TextStrokeField = () => {
|
|
5410
5451
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
5411
5452
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -5417,67 +5458,67 @@ var TextStrokeField = () => {
|
|
|
5417
5458
|
setValue(null);
|
|
5418
5459
|
};
|
|
5419
5460
|
const hasTextStroke = Boolean(value);
|
|
5420
|
-
return /* @__PURE__ */
|
|
5461
|
+
return /* @__PURE__ */ React85.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React85.createElement(
|
|
5421
5462
|
AddOrRemoveContent,
|
|
5422
5463
|
{
|
|
5423
5464
|
isAdded: hasTextStroke,
|
|
5424
5465
|
onAdd: addTextStroke,
|
|
5425
5466
|
onRemove: removeTextStroke,
|
|
5426
5467
|
disabled: !canEdit,
|
|
5427
|
-
renderLabel: () => /* @__PURE__ */
|
|
5468
|
+
renderLabel: () => /* @__PURE__ */ React85.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
5428
5469
|
},
|
|
5429
|
-
/* @__PURE__ */
|
|
5470
|
+
/* @__PURE__ */ React85.createElement(import_editor_controls52.StrokeControl, null)
|
|
5430
5471
|
));
|
|
5431
5472
|
};
|
|
5432
5473
|
|
|
5433
5474
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
5434
|
-
var
|
|
5475
|
+
var React86 = __toESM(require("react"));
|
|
5435
5476
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5436
|
-
var
|
|
5437
|
-
var
|
|
5438
|
-
var TEXT_TRANSFORM_LABEL = (0,
|
|
5477
|
+
var import_icons27 = require("@elementor/icons");
|
|
5478
|
+
var import_i18n62 = require("@wordpress/i18n");
|
|
5479
|
+
var TEXT_TRANSFORM_LABEL = (0, import_i18n62.__)("Text transform", "elementor");
|
|
5439
5480
|
var options12 = [
|
|
5440
5481
|
{
|
|
5441
5482
|
value: "none",
|
|
5442
|
-
label: (0,
|
|
5443
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5483
|
+
label: (0, import_i18n62.__)("None", "elementor"),
|
|
5484
|
+
renderContent: ({ size }) => /* @__PURE__ */ React86.createElement(import_icons27.MinusIcon, { fontSize: size }),
|
|
5444
5485
|
showTooltip: true
|
|
5445
5486
|
},
|
|
5446
5487
|
{
|
|
5447
5488
|
value: "capitalize",
|
|
5448
|
-
label: (0,
|
|
5449
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5489
|
+
label: (0, import_i18n62.__)("Capitalize", "elementor"),
|
|
5490
|
+
renderContent: ({ size }) => /* @__PURE__ */ React86.createElement(import_icons27.LetterCaseIcon, { fontSize: size }),
|
|
5450
5491
|
showTooltip: true
|
|
5451
5492
|
},
|
|
5452
5493
|
{
|
|
5453
5494
|
value: "uppercase",
|
|
5454
|
-
label: (0,
|
|
5455
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5495
|
+
label: (0, import_i18n62.__)("Uppercase", "elementor"),
|
|
5496
|
+
renderContent: ({ size }) => /* @__PURE__ */ React86.createElement(import_icons27.LetterCaseUpperIcon, { fontSize: size }),
|
|
5456
5497
|
showTooltip: true
|
|
5457
5498
|
},
|
|
5458
5499
|
{
|
|
5459
5500
|
value: "lowercase",
|
|
5460
|
-
label: (0,
|
|
5461
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5501
|
+
label: (0, import_i18n62.__)("Lowercase", "elementor"),
|
|
5502
|
+
renderContent: ({ size }) => /* @__PURE__ */ React86.createElement(import_icons27.LetterCaseLowerIcon, { fontSize: size }),
|
|
5462
5503
|
showTooltip: true
|
|
5463
5504
|
}
|
|
5464
5505
|
];
|
|
5465
|
-
var TransformField = () => /* @__PURE__ */
|
|
5506
|
+
var TransformField = () => /* @__PURE__ */ React86.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React86.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React86.createElement(import_editor_controls53.ToggleControl, { options: options12 })));
|
|
5466
5507
|
|
|
5467
5508
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
5468
|
-
var
|
|
5469
|
-
var
|
|
5509
|
+
var React87 = __toESM(require("react"));
|
|
5510
|
+
var import_react36 = require("react");
|
|
5470
5511
|
var import_editor_controls54 = require("@elementor/editor-controls");
|
|
5471
|
-
var
|
|
5472
|
-
var WORD_SPACING_LABEL = (0,
|
|
5512
|
+
var import_i18n63 = require("@wordpress/i18n");
|
|
5513
|
+
var WORD_SPACING_LABEL = (0, import_i18n63.__)("Word spacing", "elementor");
|
|
5473
5514
|
var WordSpacingField = () => {
|
|
5474
|
-
const rowRef = (0,
|
|
5475
|
-
return /* @__PURE__ */
|
|
5515
|
+
const rowRef = (0, import_react36.useRef)(null);
|
|
5516
|
+
return /* @__PURE__ */ React87.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React87.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React87.createElement(import_editor_controls54.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5476
5517
|
};
|
|
5477
5518
|
|
|
5478
5519
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5479
5520
|
var TypographySection = () => {
|
|
5480
|
-
return /* @__PURE__ */
|
|
5521
|
+
return /* @__PURE__ */ React88.createElement(SectionContent, null, /* @__PURE__ */ React88.createElement(FontFamilyField, null), /* @__PURE__ */ React88.createElement(FontWeightField, null), /* @__PURE__ */ React88.createElement(FontSizeField, null), /* @__PURE__ */ React88.createElement(PanelDivider, null), /* @__PURE__ */ React88.createElement(TextAlignmentField, null), /* @__PURE__ */ React88.createElement(TextColorField, null), /* @__PURE__ */ React88.createElement(
|
|
5481
5522
|
StyleTabCollapsibleContent,
|
|
5482
5523
|
{
|
|
5483
5524
|
fields: [
|
|
@@ -5492,7 +5533,7 @@ var TypographySection = () => {
|
|
|
5492
5533
|
"stroke"
|
|
5493
5534
|
]
|
|
5494
5535
|
},
|
|
5495
|
-
/* @__PURE__ */
|
|
5536
|
+
/* @__PURE__ */ React88.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React88.createElement(LineHeightField, null), /* @__PURE__ */ React88.createElement(LetterSpacingField, null), /* @__PURE__ */ React88.createElement(WordSpacingField, null), /* @__PURE__ */ React88.createElement(ColumnCountField, null), /* @__PURE__ */ React88.createElement(ColumnGapField, null), /* @__PURE__ */ React88.createElement(PanelDivider, null), /* @__PURE__ */ React88.createElement(TextDecorationField, null), /* @__PURE__ */ React88.createElement(TransformField, null), /* @__PURE__ */ React88.createElement(TextDirectionField, null), /* @__PURE__ */ React88.createElement(FontStyleField, null), /* @__PURE__ */ React88.createElement(TextStrokeField, null))
|
|
5496
5537
|
));
|
|
5497
5538
|
};
|
|
5498
5539
|
|
|
@@ -5500,7 +5541,7 @@ var TypographySection = () => {
|
|
|
5500
5541
|
var STYLE_SECTIONS = [
|
|
5501
5542
|
{
|
|
5502
5543
|
name: "Layout",
|
|
5503
|
-
title: (0,
|
|
5544
|
+
title: (0, import_i18n64.__)("Layout", "elementor"),
|
|
5504
5545
|
component: LayoutSection,
|
|
5505
5546
|
fields: [
|
|
5506
5547
|
"display",
|
|
@@ -5520,13 +5561,13 @@ var STYLE_SECTIONS = [
|
|
|
5520
5561
|
},
|
|
5521
5562
|
{
|
|
5522
5563
|
name: "Spacing",
|
|
5523
|
-
title: (0,
|
|
5564
|
+
title: (0, import_i18n64.__)("Spacing", "elementor"),
|
|
5524
5565
|
component: SpacingSection,
|
|
5525
5566
|
fields: ["margin", "padding"]
|
|
5526
5567
|
},
|
|
5527
5568
|
{
|
|
5528
5569
|
name: "Size",
|
|
5529
|
-
title: (0,
|
|
5570
|
+
title: (0, import_i18n64.__)("Size", "elementor"),
|
|
5530
5571
|
component: SizeSection,
|
|
5531
5572
|
fields: [
|
|
5532
5573
|
"width",
|
|
@@ -5542,13 +5583,13 @@ var STYLE_SECTIONS = [
|
|
|
5542
5583
|
},
|
|
5543
5584
|
{
|
|
5544
5585
|
name: "Position",
|
|
5545
|
-
title: (0,
|
|
5586
|
+
title: (0, import_i18n64.__)("Position", "elementor"),
|
|
5546
5587
|
component: PositionSection,
|
|
5547
5588
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5548
5589
|
},
|
|
5549
5590
|
{
|
|
5550
5591
|
name: "Typography",
|
|
5551
|
-
title: (0,
|
|
5592
|
+
title: (0, import_i18n64.__)("Typography", "elementor"),
|
|
5552
5593
|
component: TypographySection,
|
|
5553
5594
|
fields: [
|
|
5554
5595
|
"font-family",
|
|
@@ -5569,19 +5610,19 @@ var STYLE_SECTIONS = [
|
|
|
5569
5610
|
},
|
|
5570
5611
|
{
|
|
5571
5612
|
name: "Background",
|
|
5572
|
-
title: (0,
|
|
5613
|
+
title: (0, import_i18n64.__)("Background", "elementor"),
|
|
5573
5614
|
component: BackgroundSection,
|
|
5574
5615
|
fields: ["background"]
|
|
5575
5616
|
},
|
|
5576
5617
|
{
|
|
5577
5618
|
name: "Border",
|
|
5578
|
-
title: (0,
|
|
5619
|
+
title: (0, import_i18n64.__)("Border", "elementor"),
|
|
5579
5620
|
component: BorderSection,
|
|
5580
5621
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5581
5622
|
},
|
|
5582
5623
|
{
|
|
5583
5624
|
name: "Effects",
|
|
5584
|
-
title: (0,
|
|
5625
|
+
title: (0, import_i18n64.__)("Effects", "elementor"),
|
|
5585
5626
|
component: EffectsSection,
|
|
5586
5627
|
fields: [
|
|
5587
5628
|
"mix-blend-mode",
|
|
@@ -5598,13 +5639,13 @@ var STYLE_SECTIONS = [
|
|
|
5598
5639
|
var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
|
|
5599
5640
|
|
|
5600
5641
|
// src/components/style-tab-section.tsx
|
|
5601
|
-
var
|
|
5642
|
+
var React89 = __toESM(require("react"));
|
|
5602
5643
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5603
5644
|
const { component, name, title, action } = section;
|
|
5604
5645
|
const tabDefaults = useDefaultPanelSettings();
|
|
5605
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5646
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React89.createElement(React89.Fragment, null));
|
|
5606
5647
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
5607
|
-
return /* @__PURE__ */
|
|
5648
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5608
5649
|
Section,
|
|
5609
5650
|
{
|
|
5610
5651
|
title,
|
|
@@ -5613,13 +5654,13 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5613
5654
|
unmountOnExit,
|
|
5614
5655
|
action
|
|
5615
5656
|
},
|
|
5616
|
-
/* @__PURE__ */
|
|
5657
|
+
/* @__PURE__ */ React89.createElement(SectionComponent, null)
|
|
5617
5658
|
);
|
|
5618
5659
|
};
|
|
5619
5660
|
|
|
5620
5661
|
// src/components/style-sections.tsx
|
|
5621
5662
|
var StyleSections = () => {
|
|
5622
|
-
return /* @__PURE__ */
|
|
5663
|
+
return /* @__PURE__ */ React90.createElement(React90.Fragment, null, STYLE_SECTIONS.map((section) => /* @__PURE__ */ React90.createElement(
|
|
5623
5664
|
StyleTabSection,
|
|
5624
5665
|
{
|
|
5625
5666
|
key: section.name,
|
|
@@ -5646,12 +5687,12 @@ var stickyHeaderStyles = {
|
|
|
5646
5687
|
var StyleTab = () => {
|
|
5647
5688
|
const currentClassesProp = useCurrentClassesProp();
|
|
5648
5689
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
|
|
5649
|
-
const [activeStyleState, setActiveStyleState] = (0,
|
|
5690
|
+
const [activeStyleState, setActiveStyleState] = (0, import_react37.useState)(null);
|
|
5650
5691
|
const breakpoint = (0, import_editor_responsive4.useActiveBreakpoint)();
|
|
5651
5692
|
if (!currentClassesProp) {
|
|
5652
5693
|
return null;
|
|
5653
5694
|
}
|
|
5654
|
-
return /* @__PURE__ */
|
|
5695
|
+
return /* @__PURE__ */ React91.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React91.createElement(
|
|
5655
5696
|
StyleProvider,
|
|
5656
5697
|
{
|
|
5657
5698
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5662,13 +5703,13 @@ var StyleTab = () => {
|
|
|
5662
5703
|
},
|
|
5663
5704
|
setMetaState: setActiveStyleState
|
|
5664
5705
|
},
|
|
5665
|
-
/* @__PURE__ */
|
|
5706
|
+
/* @__PURE__ */ React91.createElement(import_session8.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React91.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React91.createElement(ClassesHeader, null, /* @__PURE__ */ React91.createElement(CssClassSelector, null), /* @__PURE__ */ React91.createElement(import_ui44.Divider, null)), /* @__PURE__ */ React91.createElement(SectionsList, null, /* @__PURE__ */ React91.createElement(StyleSections, null), /* @__PURE__ */ React91.createElement(StyleTabSlot, null)), /* @__PURE__ */ React91.createElement(import_ui44.Box, { sx: { height: "150px" } })))
|
|
5666
5707
|
));
|
|
5667
5708
|
};
|
|
5668
5709
|
function ClassesHeader({ children }) {
|
|
5669
5710
|
const scrollDirection = useScrollDirection();
|
|
5670
|
-
return /* @__PURE__ */
|
|
5671
|
-
|
|
5711
|
+
return /* @__PURE__ */ React91.createElement(
|
|
5712
|
+
import_ui44.Stack,
|
|
5672
5713
|
{
|
|
5673
5714
|
sx: {
|
|
5674
5715
|
...stickyHeaderStyles,
|
|
@@ -5690,12 +5731,14 @@ function useCurrentClassesProp() {
|
|
|
5690
5731
|
}
|
|
5691
5732
|
|
|
5692
5733
|
// src/components/editing-panel-tabs.tsx
|
|
5734
|
+
var CONTENT_ONLY_TAB = "settings";
|
|
5735
|
+
var DESIGN_TABS = ["style", "interactions"];
|
|
5693
5736
|
var EditingPanelTabs = () => {
|
|
5694
5737
|
const { element } = useElement();
|
|
5695
5738
|
return (
|
|
5696
5739
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5697
5740
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5698
|
-
/* @__PURE__ */
|
|
5741
|
+
/* @__PURE__ */ React92.createElement(import_react38.Fragment, { key: element.id }, /* @__PURE__ */ React92.createElement(PanelTabContent, null))
|
|
5699
5742
|
);
|
|
5700
5743
|
};
|
|
5701
5744
|
var PanelTabContent = () => {
|
|
@@ -5703,25 +5746,61 @@ var PanelTabContent = () => {
|
|
|
5703
5746
|
const editorDefaults = useDefaultPanelSettings();
|
|
5704
5747
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
5705
5748
|
const isPromotedElement = !!(0, import_editor_elements14.getWidgetsCache)()?.[element.type]?.meta?.is_pro_promotion;
|
|
5749
|
+
const hasContentOnlyAccess = (0, import_editor_current_user.useHasContentOnlyAccess)();
|
|
5750
|
+
const areDesignTabsRestricted = hasContentOnlyAccess && !isPromotedElement;
|
|
5706
5751
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5707
|
-
const currentTab =
|
|
5708
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
5709
|
-
|
|
5710
|
-
|
|
5752
|
+
const currentTab = resolveCurrentTab({ storedTab, isPromotedElement, areDesignTabsRestricted });
|
|
5753
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui45.useTabs)(currentTab);
|
|
5754
|
+
const getDesignTabProps = (tab) => ({
|
|
5755
|
+
...getTabProps(tab),
|
|
5756
|
+
disabled: areDesignTabsRestricted,
|
|
5757
|
+
sx: areDesignTabsRestricted ? { pointerEvents: "auto" } : void 0
|
|
5758
|
+
});
|
|
5759
|
+
const withRestrictionInfotip = (label) => areDesignTabsRestricted ? /* @__PURE__ */ React92.createElement(ContentOnlyInfotip, null, label) : label;
|
|
5760
|
+
return /* @__PURE__ */ React92.createElement(ScrollProvider, null, /* @__PURE__ */ React92.createElement(import_ui45.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React92.createElement(import_ui45.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React92.createElement(
|
|
5761
|
+
import_ui45.Tabs,
|
|
5711
5762
|
{
|
|
5712
5763
|
variant: "fullWidth",
|
|
5713
5764
|
size: "small",
|
|
5714
5765
|
sx: { mt: 0.5 },
|
|
5715
5766
|
...getTabsProps(),
|
|
5716
5767
|
onChange: (_, newValue) => {
|
|
5768
|
+
if (areDesignTabsRestricted && DESIGN_TABS.includes(newValue)) {
|
|
5769
|
+
return;
|
|
5770
|
+
}
|
|
5717
5771
|
getTabsProps().onChange(_, newValue);
|
|
5718
5772
|
setCurrentTab(newValue);
|
|
5719
5773
|
}
|
|
5720
5774
|
},
|
|
5721
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5722
|
-
/* @__PURE__ */
|
|
5723
|
-
|
|
5724
|
-
|
|
5775
|
+
!isPromotedElement && /* @__PURE__ */ React92.createElement(import_ui45.Tab, { label: (0, import_i18n65.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
5776
|
+
/* @__PURE__ */ React92.createElement(
|
|
5777
|
+
import_ui45.Tab,
|
|
5778
|
+
{
|
|
5779
|
+
label: withRestrictionInfotip((0, import_i18n65.__)("Style", "elementor")),
|
|
5780
|
+
...getDesignTabProps("style")
|
|
5781
|
+
}
|
|
5782
|
+
),
|
|
5783
|
+
/* @__PURE__ */ React92.createElement(
|
|
5784
|
+
import_ui45.Tab,
|
|
5785
|
+
{
|
|
5786
|
+
label: withRestrictionInfotip((0, import_i18n65.__)("Interactions", "elementor")),
|
|
5787
|
+
...getDesignTabProps("interactions")
|
|
5788
|
+
}
|
|
5789
|
+
)
|
|
5790
|
+
), /* @__PURE__ */ React92.createElement(import_ui45.Divider, null)), !isPromotedElement && /* @__PURE__ */ React92.createElement(import_ui45.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React92.createElement(SettingsTab, null)), !areDesignTabsRestricted && /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(import_ui45.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React92.createElement(StyleTab, null)), /* @__PURE__ */ React92.createElement(import_ui45.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React92.createElement(InteractionsTab, null)))));
|
|
5791
|
+
};
|
|
5792
|
+
var resolveCurrentTab = ({
|
|
5793
|
+
storedTab,
|
|
5794
|
+
isPromotedElement,
|
|
5795
|
+
areDesignTabsRestricted
|
|
5796
|
+
}) => {
|
|
5797
|
+
if (areDesignTabsRestricted && DESIGN_TABS.includes(storedTab)) {
|
|
5798
|
+
return CONTENT_ONLY_TAB;
|
|
5799
|
+
}
|
|
5800
|
+
if (isPromotedElement && storedTab === "settings") {
|
|
5801
|
+
return "style";
|
|
5802
|
+
}
|
|
5803
|
+
return storedTab;
|
|
5725
5804
|
};
|
|
5726
5805
|
|
|
5727
5806
|
// src/components/editing-panel.tsx
|
|
@@ -5734,23 +5813,23 @@ var EditingPanel = () => {
|
|
|
5734
5813
|
if (!element || !elementType) {
|
|
5735
5814
|
return null;
|
|
5736
5815
|
}
|
|
5737
|
-
const panelTitle = (0,
|
|
5816
|
+
const panelTitle = (0, import_i18n66.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5738
5817
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5739
|
-
let panelContent = /* @__PURE__ */
|
|
5818
|
+
let panelContent = /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React93.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React93.createElement(import_icons28.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React93.createElement(import_editor_panels.PanelBody, { sx: { height: "auto", flex: 1, minHeight: 0 } }, /* @__PURE__ */ React93.createElement(EditingPanelTabs, null)), /* @__PURE__ */ React93.createElement(EditingPanelStickyPromotion, null));
|
|
5740
5819
|
if (ReplacementComponent) {
|
|
5741
|
-
panelContent = /* @__PURE__ */
|
|
5820
|
+
panelContent = /* @__PURE__ */ React93.createElement(ReplacementComponent, null);
|
|
5742
5821
|
}
|
|
5743
|
-
return /* @__PURE__ */
|
|
5822
|
+
return /* @__PURE__ */ React93.createElement(import_ui46.ErrorBoundary, { fallback: /* @__PURE__ */ React93.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React93.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React93.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React93.createElement(import_editor_controls55.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React93.createElement(import_editor_controls55.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React93.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React93.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React93.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5744
5823
|
};
|
|
5745
5824
|
|
|
5746
5825
|
// src/components/style-states/pseudo-state-menu-items.tsx
|
|
5747
|
-
var
|
|
5826
|
+
var React94 = __toESM(require("react"));
|
|
5748
5827
|
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
5749
|
-
var
|
|
5750
|
-
var
|
|
5828
|
+
var import_ui47 = require("@elementor/ui");
|
|
5829
|
+
var import_i18n67 = require("@wordpress/i18n");
|
|
5751
5830
|
function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
|
|
5752
|
-
return /* @__PURE__ */
|
|
5753
|
-
|
|
5831
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
|
|
5832
|
+
import_ui47.MenuSubheader,
|
|
5754
5833
|
{
|
|
5755
5834
|
sx: {
|
|
5756
5835
|
typography: "caption",
|
|
@@ -5759,8 +5838,8 @@ function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
|
|
|
5759
5838
|
pt: 1
|
|
5760
5839
|
}
|
|
5761
5840
|
},
|
|
5762
|
-
(0,
|
|
5763
|
-
), states.map((state) => /* @__PURE__ */
|
|
5841
|
+
(0, import_i18n67.__)("States", "elementor")
|
|
5842
|
+
), states.map((state) => /* @__PURE__ */ React94.createElement(
|
|
5764
5843
|
import_editor_ui9.MenuListItem,
|
|
5765
5844
|
{
|
|
5766
5845
|
key: state.key,
|
|
@@ -5781,7 +5860,7 @@ var import_editor_panels3 = require("@elementor/editor-panels");
|
|
|
5781
5860
|
var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
|
|
5782
5861
|
|
|
5783
5862
|
// src/hooks/use-open-editor-panel.ts
|
|
5784
|
-
var
|
|
5863
|
+
var import_react39 = require("react");
|
|
5785
5864
|
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
5786
5865
|
|
|
5787
5866
|
// src/panel.ts
|
|
@@ -5805,7 +5884,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
5805
5884
|
// src/hooks/use-open-editor-panel.ts
|
|
5806
5885
|
var useOpenEditorPanel = () => {
|
|
5807
5886
|
const { open } = usePanelActions();
|
|
5808
|
-
(0,
|
|
5887
|
+
(0, import_react39.useEffect)(() => {
|
|
5809
5888
|
return (0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.commandStartEvent)("panel/editor/open"), () => {
|
|
5810
5889
|
if (isAtomicWidgetSelected()) {
|
|
5811
5890
|
open();
|
|
@@ -5824,21 +5903,21 @@ var EditingPanelHooks = () => {
|
|
|
5824
5903
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5825
5904
|
|
|
5826
5905
|
// src/components/promotions/custom-css.tsx
|
|
5827
|
-
var
|
|
5828
|
-
var
|
|
5906
|
+
var React95 = __toESM(require("react"));
|
|
5907
|
+
var import_react40 = require("react");
|
|
5829
5908
|
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
5830
|
-
var
|
|
5909
|
+
var import_i18n68 = require("@wordpress/i18n");
|
|
5831
5910
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5832
5911
|
var CustomCssSection = () => {
|
|
5833
|
-
const triggerRef = (0,
|
|
5834
|
-
return /* @__PURE__ */
|
|
5912
|
+
const triggerRef = (0, import_react40.useRef)(null);
|
|
5913
|
+
return /* @__PURE__ */ React95.createElement(
|
|
5835
5914
|
StyleTabSection,
|
|
5836
5915
|
{
|
|
5837
5916
|
section: {
|
|
5838
5917
|
name: "Custom CSS",
|
|
5839
|
-
title: (0,
|
|
5918
|
+
title: (0, import_i18n68.__)("Custom CSS", "elementor"),
|
|
5840
5919
|
action: {
|
|
5841
|
-
component: /* @__PURE__ */
|
|
5920
|
+
component: /* @__PURE__ */ React95.createElement(import_editor_controls56.PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5842
5921
|
onClick: () => triggerRef.current?.toggle()
|
|
5843
5922
|
}
|
|
5844
5923
|
}
|
|
@@ -5860,17 +5939,17 @@ var init = () => {
|
|
|
5860
5939
|
};
|
|
5861
5940
|
|
|
5862
5941
|
// src/controls-registry/element-controls/accordion-items-control/accordion-items-control.tsx
|
|
5863
|
-
var
|
|
5942
|
+
var React96 = __toESM(require("react"));
|
|
5864
5943
|
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5865
5944
|
var import_editor_elements19 = require("@elementor/editor-elements");
|
|
5866
5945
|
var import_editor_props20 = require("@elementor/editor-props");
|
|
5867
|
-
var
|
|
5868
|
-
var
|
|
5946
|
+
var import_ui48 = require("@elementor/ui");
|
|
5947
|
+
var import_i18n71 = require("@wordpress/i18n");
|
|
5869
5948
|
|
|
5870
5949
|
// src/controls-registry/element-controls/accordion-items-control/use-actions.ts
|
|
5871
5950
|
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
5872
5951
|
var import_editor_props18 = require("@elementor/editor-props");
|
|
5873
|
-
var
|
|
5952
|
+
var import_i18n69 = require("@wordpress/i18n");
|
|
5874
5953
|
var ACCORDION_ELEMENT_TYPE = "e-accordion";
|
|
5875
5954
|
var ACCORDION_ITEM_ELEMENT_TYPE = "e-accordion-item";
|
|
5876
5955
|
var ACCORDION_ITEM_HEADER_ELEMENT_TYPE = "e-accordion-item-header";
|
|
@@ -5880,7 +5959,7 @@ var ACCORDION_ITEM_CONTENT_ELEMENT_TYPE = "e-accordion-item-content";
|
|
|
5880
5959
|
var PARAGRAPH_WIDGET_TYPE = "e-paragraph";
|
|
5881
5960
|
var getItemTitle = (position) => (
|
|
5882
5961
|
/* translators: %d: Accordion item position. */
|
|
5883
|
-
(0,
|
|
5962
|
+
(0, import_i18n69.sprintf)((0, import_i18n69.__)("Accordion Item %d", "elementor"), position)
|
|
5884
5963
|
);
|
|
5885
5964
|
var TRAILING_NUMBER = /(\d+)\s*$/;
|
|
5886
5965
|
var getNextItemNumber = (existingTitles) => {
|
|
@@ -5906,7 +5985,7 @@ var buildItemModel = (position, showIcon) => {
|
|
|
5906
5985
|
{
|
|
5907
5986
|
elType: ACCORDION_ITEM_HEADER_ELEMENT_TYPE,
|
|
5908
5987
|
id: (0, import_editor_elements17.generateElementId)(),
|
|
5909
|
-
editor_settings: { title: (0,
|
|
5988
|
+
editor_settings: { title: (0, import_i18n69.__)("Header", "elementor") },
|
|
5910
5989
|
// Seeded from the root's *current* `show_icon` value, not the schema default: if a user
|
|
5911
5990
|
// has already turned Show Icon off, a newly added item must start with its icon hidden
|
|
5912
5991
|
// too, not re-show one just because the item itself is brand new. See the comment on
|
|
@@ -5916,7 +5995,7 @@ var buildItemModel = (position, showIcon) => {
|
|
|
5916
5995
|
{
|
|
5917
5996
|
elType: ACCORDION_ITEM_TITLE_ELEMENT_TYPE,
|
|
5918
5997
|
id: (0, import_editor_elements17.generateElementId)(),
|
|
5919
|
-
editor_settings: { title: (0,
|
|
5998
|
+
editor_settings: { title: (0, import_i18n69.__)("Title", "elementor") },
|
|
5920
5999
|
elements: [
|
|
5921
6000
|
{
|
|
5922
6001
|
elType: "widget",
|
|
@@ -5936,7 +6015,7 @@ var buildItemModel = (position, showIcon) => {
|
|
|
5936
6015
|
{
|
|
5937
6016
|
elType: ACCORDION_ITEM_ICON_ELEMENT_TYPE,
|
|
5938
6017
|
id: (0, import_editor_elements17.generateElementId)(),
|
|
5939
|
-
editor_settings: { title: (0,
|
|
6018
|
+
editor_settings: { title: (0, import_i18n69.__)("Icon", "elementor") },
|
|
5940
6019
|
elements: [],
|
|
5941
6020
|
hydrateDefaultChildren: true
|
|
5942
6021
|
}
|
|
@@ -5945,7 +6024,7 @@ var buildItemModel = (position, showIcon) => {
|
|
|
5945
6024
|
{
|
|
5946
6025
|
elType: ACCORDION_ITEM_CONTENT_ELEMENT_TYPE,
|
|
5947
6026
|
id: (0, import_editor_elements17.generateElementId)(),
|
|
5948
|
-
editor_settings: { title: (0,
|
|
6027
|
+
editor_settings: { title: (0, import_i18n69.__)("Content", "elementor") },
|
|
5949
6028
|
elements: [],
|
|
5950
6029
|
hydrateDefaultChildren: true
|
|
5951
6030
|
}
|
|
@@ -5967,7 +6046,7 @@ var useActions = () => {
|
|
|
5967
6046
|
items3.forEach(() => {
|
|
5968
6047
|
const position = getNextItemNumber(titles);
|
|
5969
6048
|
(0, import_editor_elements17.createElements)({
|
|
5970
|
-
title: (0,
|
|
6049
|
+
title: (0, import_i18n69.__)("Accordion", "elementor"),
|
|
5971
6050
|
elements: [
|
|
5972
6051
|
{
|
|
5973
6052
|
container: accordion,
|
|
@@ -5988,13 +6067,13 @@ var useActions = () => {
|
|
|
5988
6067
|
};
|
|
5989
6068
|
const removeItem2 = ({ items: items3 }) => {
|
|
5990
6069
|
(0, import_editor_elements17.removeElements)({
|
|
5991
|
-
title: (0,
|
|
6070
|
+
title: (0, import_i18n69.__)("Accordion", "elementor"),
|
|
5992
6071
|
elementIds: items3.map(({ item }) => item.id)
|
|
5993
6072
|
});
|
|
5994
6073
|
};
|
|
5995
6074
|
const duplicateItem2 = ({ items: items3 }) => {
|
|
5996
6075
|
(0, import_editor_elements17.duplicateElements)({
|
|
5997
|
-
title: (0,
|
|
6076
|
+
title: (0, import_i18n69.__)("Duplicate Accordion Item", "elementor"),
|
|
5998
6077
|
elementIds: items3.map(({ item }) => item.id)
|
|
5999
6078
|
});
|
|
6000
6079
|
};
|
|
@@ -6009,7 +6088,7 @@ var useActions = () => {
|
|
|
6009
6088
|
throw new Error("Accordion item or container not found");
|
|
6010
6089
|
}
|
|
6011
6090
|
(0, import_editor_elements17.moveElements)({
|
|
6012
|
-
title: (0,
|
|
6091
|
+
title: (0, import_i18n69.__)("Reorder Accordion Items", "elementor"),
|
|
6013
6092
|
moves: [
|
|
6014
6093
|
{
|
|
6015
6094
|
element: movedElement,
|
|
@@ -6028,11 +6107,11 @@ var useActions = () => {
|
|
|
6028
6107
|
};
|
|
6029
6108
|
|
|
6030
6109
|
// src/controls-registry/element-controls/accordion-items-control/use-show-icon-write-through.ts
|
|
6031
|
-
var
|
|
6110
|
+
var import_react41 = require("react");
|
|
6032
6111
|
var import_editor_elements18 = require("@elementor/editor-elements");
|
|
6033
6112
|
var import_editor_props19 = require("@elementor/editor-props");
|
|
6034
6113
|
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
6035
|
-
var
|
|
6114
|
+
var import_i18n70 = require("@wordpress/i18n");
|
|
6036
6115
|
var ACCORDION_ITEM_HEADER_ELEMENT_TYPE2 = "e-accordion-item-header";
|
|
6037
6116
|
var cascadeShowIconToHeaders = (0, import_editor_v1_adapters9.undoable)(
|
|
6038
6117
|
{
|
|
@@ -6068,8 +6147,8 @@ var cascadeShowIconToHeaders = (0, import_editor_v1_adapters9.undoable)(
|
|
|
6068
6147
|
}
|
|
6069
6148
|
},
|
|
6070
6149
|
{
|
|
6071
|
-
title: (0,
|
|
6072
|
-
subtitle: (0,
|
|
6150
|
+
title: (0, import_i18n70.__)("Accordion", "elementor"),
|
|
6151
|
+
subtitle: (0, import_i18n70.__)("Show Icon", "elementor"),
|
|
6073
6152
|
// `undoable()`'s debounce only delays when the *history entry* is pushed onto the undo stack -
|
|
6074
6153
|
// the settings write itself (`do()`) still runs synchronously on every call. The root's own
|
|
6075
6154
|
// `show_icon` change goes through `SettingsField` -> `useUndoableUpdateElementProp`
|
|
@@ -6095,8 +6174,8 @@ function getAccordionHeaderIds(accordionId) {
|
|
|
6095
6174
|
return headerContainers.map((header) => header.id);
|
|
6096
6175
|
}
|
|
6097
6176
|
function useShowIconWriteThrough(accordionId, showIcon) {
|
|
6098
|
-
const previousRef = (0,
|
|
6099
|
-
(0,
|
|
6177
|
+
const previousRef = (0, import_react41.useRef)(null);
|
|
6178
|
+
(0, import_react41.useEffect)(() => {
|
|
6100
6179
|
const previous = previousRef.current;
|
|
6101
6180
|
previousRef.current = { accordionId, showIcon };
|
|
6102
6181
|
if (!previous || previous.accordionId !== accordionId || previous.showIcon === showIcon) {
|
|
@@ -6150,7 +6229,7 @@ var AccordionItemsControl = ({ label }) => {
|
|
|
6150
6229
|
});
|
|
6151
6230
|
}
|
|
6152
6231
|
};
|
|
6153
|
-
return /* @__PURE__ */
|
|
6232
|
+
return /* @__PURE__ */ React96.createElement(
|
|
6154
6233
|
import_editor_controls58.Repeater,
|
|
6155
6234
|
{
|
|
6156
6235
|
showToggle: false,
|
|
@@ -6161,7 +6240,7 @@ var AccordionItemsControl = ({ label }) => {
|
|
|
6161
6240
|
adornment: () => null,
|
|
6162
6241
|
itemSettings: {
|
|
6163
6242
|
getId: ({ item }) => item.id,
|
|
6164
|
-
initialValues: { id: "", title: (0,
|
|
6243
|
+
initialValues: { id: "", title: (0, import_i18n71.__)("Accordion Item", "elementor") },
|
|
6165
6244
|
Label: ItemLabel,
|
|
6166
6245
|
Content: ItemContent,
|
|
6167
6246
|
Icon: () => null
|
|
@@ -6170,19 +6249,19 @@ var AccordionItemsControl = ({ label }) => {
|
|
|
6170
6249
|
);
|
|
6171
6250
|
};
|
|
6172
6251
|
var ItemLabel = ({ value }) => {
|
|
6173
|
-
return /* @__PURE__ */
|
|
6252
|
+
return /* @__PURE__ */ React96.createElement(import_ui48.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React96.createElement("span", null, value?.title));
|
|
6174
6253
|
};
|
|
6175
6254
|
var ItemContent = ({ value }) => {
|
|
6176
6255
|
if (!value.id) {
|
|
6177
6256
|
return null;
|
|
6178
6257
|
}
|
|
6179
|
-
return /* @__PURE__ */
|
|
6258
|
+
return /* @__PURE__ */ React96.createElement(import_ui48.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React96.createElement(ItemNameControl, { elementId: value.id }));
|
|
6180
6259
|
};
|
|
6181
6260
|
var ItemNameControl = ({ elementId }) => {
|
|
6182
6261
|
const editorSettings = (0, import_editor_elements19.useElementEditorSettings)(elementId);
|
|
6183
6262
|
const label = editorSettings?.title ?? "";
|
|
6184
|
-
return /* @__PURE__ */
|
|
6185
|
-
|
|
6263
|
+
return /* @__PURE__ */ React96.createElement(import_ui48.Stack, { gap: 1 }, /* @__PURE__ */ React96.createElement(import_editor_controls58.ControlFormLabel, null, (0, import_i18n71.__)("Name", "elementor")), /* @__PURE__ */ React96.createElement(
|
|
6264
|
+
import_ui48.TextField,
|
|
6186
6265
|
{
|
|
6187
6266
|
size: "tiny",
|
|
6188
6267
|
value: label,
|
|
@@ -6197,17 +6276,17 @@ var ItemNameControl = ({ elementId }) => {
|
|
|
6197
6276
|
};
|
|
6198
6277
|
|
|
6199
6278
|
// src/controls-registry/element-controls/list-items-control/list-items-control.tsx
|
|
6200
|
-
var
|
|
6279
|
+
var React97 = __toESM(require("react"));
|
|
6201
6280
|
var import_editor_controls59 = require("@elementor/editor-controls");
|
|
6202
6281
|
var import_editor_elements22 = require("@elementor/editor-elements");
|
|
6203
6282
|
var import_editor_props23 = require("@elementor/editor-props");
|
|
6204
|
-
var
|
|
6205
|
-
var
|
|
6283
|
+
var import_ui49 = require("@elementor/ui");
|
|
6284
|
+
var import_i18n74 = require("@wordpress/i18n");
|
|
6206
6285
|
|
|
6207
6286
|
// src/controls-registry/element-controls/list-items-control/list-actions.ts
|
|
6208
6287
|
var import_editor_elements20 = require("@elementor/editor-elements");
|
|
6209
6288
|
var import_editor_props21 = require("@elementor/editor-props");
|
|
6210
|
-
var
|
|
6289
|
+
var import_i18n72 = require("@wordpress/i18n");
|
|
6211
6290
|
var LIST_ITEM_ELEMENT_TYPE = "e-list-item";
|
|
6212
6291
|
var LIST_ITEM_MARKER_ELEMENT_TYPE = "e-list-item-marker";
|
|
6213
6292
|
var LIST_ITEM_CONTENT_ELEMENT_TYPE = "e-list-item-content";
|
|
@@ -6244,7 +6323,7 @@ var buildItemModel2 = (position, showMarkers) => {
|
|
|
6244
6323
|
elType: LIST_ITEM_MARKER_ELEMENT_TYPE,
|
|
6245
6324
|
id: (0, import_editor_elements20.generateElementId)(),
|
|
6246
6325
|
editor_settings: {
|
|
6247
|
-
title: (0,
|
|
6326
|
+
title: (0, import_i18n72.__)("Marker", "elementor")
|
|
6248
6327
|
},
|
|
6249
6328
|
elements: [
|
|
6250
6329
|
{
|
|
@@ -6263,7 +6342,7 @@ var buildItemModel2 = (position, showMarkers) => {
|
|
|
6263
6342
|
elType: LIST_ITEM_CONTENT_ELEMENT_TYPE,
|
|
6264
6343
|
id: (0, import_editor_elements20.generateElementId)(),
|
|
6265
6344
|
editor_settings: {
|
|
6266
|
-
title: (0,
|
|
6345
|
+
title: (0, import_i18n72.__)("Content", "elementor")
|
|
6267
6346
|
},
|
|
6268
6347
|
elements: [
|
|
6269
6348
|
{
|
|
@@ -6283,7 +6362,7 @@ var buildItemModel2 = (position, showMarkers) => {
|
|
|
6283
6362
|
var duplicateItem = ({ items: items3 }) => {
|
|
6284
6363
|
(0, import_editor_elements20.duplicateElements)({
|
|
6285
6364
|
elementIds: items3.map(({ item }) => item.id),
|
|
6286
|
-
title: (0,
|
|
6365
|
+
title: (0, import_i18n72.__)("Duplicate List Item", "elementor")
|
|
6287
6366
|
});
|
|
6288
6367
|
};
|
|
6289
6368
|
var moveItem = ({
|
|
@@ -6297,7 +6376,7 @@ var moveItem = ({
|
|
|
6297
6376
|
throw new Error("List item or list container not found");
|
|
6298
6377
|
}
|
|
6299
6378
|
(0, import_editor_elements20.moveElements)({
|
|
6300
|
-
title: (0,
|
|
6379
|
+
title: (0, import_i18n72.__)("Reorder List Items", "elementor"),
|
|
6301
6380
|
moves: [
|
|
6302
6381
|
{
|
|
6303
6382
|
element: movedElement,
|
|
@@ -6309,7 +6388,7 @@ var moveItem = ({
|
|
|
6309
6388
|
};
|
|
6310
6389
|
var removeItem = ({ items: items3 }) => {
|
|
6311
6390
|
(0, import_editor_elements20.removeElements)({
|
|
6312
|
-
title: (0,
|
|
6391
|
+
title: (0, import_i18n72.__)("List Items", "elementor"),
|
|
6313
6392
|
elementIds: items3.map(({ item }) => item.id)
|
|
6314
6393
|
});
|
|
6315
6394
|
};
|
|
@@ -6327,7 +6406,7 @@ var addItem = ({
|
|
|
6327
6406
|
items3.forEach(({ index }) => {
|
|
6328
6407
|
const position = getNextItemNumber2(titles);
|
|
6329
6408
|
(0, import_editor_elements20.createElements)({
|
|
6330
|
-
title: (0,
|
|
6409
|
+
title: (0, import_i18n72.__)("List Items", "elementor"),
|
|
6331
6410
|
elements: [
|
|
6332
6411
|
{
|
|
6333
6412
|
container: listContainer,
|
|
@@ -6341,11 +6420,11 @@ var addItem = ({
|
|
|
6341
6420
|
};
|
|
6342
6421
|
|
|
6343
6422
|
// src/controls-registry/element-controls/list-items-control/use-show-markers-write-through.ts
|
|
6344
|
-
var
|
|
6423
|
+
var import_react42 = require("react");
|
|
6345
6424
|
var import_editor_elements21 = require("@elementor/editor-elements");
|
|
6346
6425
|
var import_editor_props22 = require("@elementor/editor-props");
|
|
6347
6426
|
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
6348
|
-
var
|
|
6427
|
+
var import_i18n73 = require("@wordpress/i18n");
|
|
6349
6428
|
var cascadeShowMarkersToItems = (0, import_editor_v1_adapters10.undoable)(
|
|
6350
6429
|
{
|
|
6351
6430
|
do: ({ listId, showMarkers }) => {
|
|
@@ -6380,8 +6459,8 @@ var cascadeShowMarkersToItems = (0, import_editor_v1_adapters10.undoable)(
|
|
|
6380
6459
|
}
|
|
6381
6460
|
},
|
|
6382
6461
|
{
|
|
6383
|
-
title: (0,
|
|
6384
|
-
subtitle: (0,
|
|
6462
|
+
title: (0, import_i18n73.__)("List", "elementor"),
|
|
6463
|
+
subtitle: (0, import_i18n73.__)("Show Markers", "elementor"),
|
|
6385
6464
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT }
|
|
6386
6465
|
}
|
|
6387
6466
|
);
|
|
@@ -6393,8 +6472,8 @@ function getListItemIds(listId) {
|
|
|
6393
6472
|
return itemContainers.map((item) => item.id);
|
|
6394
6473
|
}
|
|
6395
6474
|
function useShowMarkersWriteThrough(listId, showMarkers) {
|
|
6396
|
-
const previousRef = (0,
|
|
6397
|
-
(0,
|
|
6475
|
+
const previousRef = (0, import_react42.useRef)(null);
|
|
6476
|
+
(0, import_react42.useEffect)(() => {
|
|
6398
6477
|
const previous = previousRef.current;
|
|
6399
6478
|
previousRef.current = { listId, showMarkers };
|
|
6400
6479
|
if (!previous || previous.listId !== listId || previous.showMarkers === showMarkers) {
|
|
@@ -6413,7 +6492,7 @@ var getDefaultListItemLabel = (index) => {
|
|
|
6413
6492
|
return `List item ${index + 1}`;
|
|
6414
6493
|
};
|
|
6415
6494
|
var ListItemsControl = ({ label }) => {
|
|
6416
|
-
return /* @__PURE__ */
|
|
6495
|
+
return /* @__PURE__ */ React97.createElement(ListItemsControlContent, { label });
|
|
6417
6496
|
};
|
|
6418
6497
|
var ListItemsControlContent = ({ label }) => {
|
|
6419
6498
|
const { element, settings } = useElement();
|
|
@@ -6453,7 +6532,7 @@ var ListItemsControlContent = ({ label }) => {
|
|
|
6453
6532
|
});
|
|
6454
6533
|
}
|
|
6455
6534
|
};
|
|
6456
|
-
return /* @__PURE__ */
|
|
6535
|
+
return /* @__PURE__ */ React97.createElement(
|
|
6457
6536
|
import_editor_controls59.Repeater,
|
|
6458
6537
|
{
|
|
6459
6538
|
showToggle: false,
|
|
@@ -6474,24 +6553,24 @@ var ListItemsControlContent = ({ label }) => {
|
|
|
6474
6553
|
};
|
|
6475
6554
|
var ItemLabel2 = ({ value, index }) => {
|
|
6476
6555
|
const fallbackLabel = value.title ?? getDefaultListItemLabel(index);
|
|
6477
|
-
return /* @__PURE__ */
|
|
6556
|
+
return /* @__PURE__ */ React97.createElement(import_ui49.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React97.createElement(ListItemRepeaterLabel, { elementId: value.id, fallbackLabel }) : /* @__PURE__ */ React97.createElement("span", null, fallbackLabel));
|
|
6478
6557
|
};
|
|
6479
6558
|
var ItemContent2 = ({ value }) => {
|
|
6480
6559
|
if (!value.id) {
|
|
6481
6560
|
return null;
|
|
6482
6561
|
}
|
|
6483
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ React97.createElement(import_ui49.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React97.createElement(ListItemLabelControl, { elementId: value.id, fallbackLabel: value.title ?? "" }));
|
|
6484
6563
|
};
|
|
6485
6564
|
var ListItemRepeaterLabel = ({ elementId, fallbackLabel }) => {
|
|
6486
6565
|
const editorSettings = (0, import_editor_elements22.useElementEditorSettings)(elementId);
|
|
6487
6566
|
const label = getEffectiveListItemLabel(editorSettings?.title, fallbackLabel);
|
|
6488
|
-
return /* @__PURE__ */
|
|
6567
|
+
return /* @__PURE__ */ React97.createElement("span", null, label);
|
|
6489
6568
|
};
|
|
6490
6569
|
var ListItemLabelControl = ({ elementId, fallbackLabel }) => {
|
|
6491
6570
|
const editorSettings = (0, import_editor_elements22.useElementEditorSettings)(elementId);
|
|
6492
6571
|
const label = getEffectiveListItemLabel(editorSettings?.title, fallbackLabel);
|
|
6493
|
-
return /* @__PURE__ */
|
|
6494
|
-
|
|
6572
|
+
return /* @__PURE__ */ React97.createElement(import_ui49.Stack, { gap: 1 }, /* @__PURE__ */ React97.createElement(import_editor_controls59.ControlFormLabel, null, (0, import_i18n74.__)("Item name", "elementor")), /* @__PURE__ */ React97.createElement(
|
|
6573
|
+
import_ui49.TextField,
|
|
6495
6574
|
{
|
|
6496
6575
|
size: "tiny",
|
|
6497
6576
|
value: label,
|
|
@@ -6506,13 +6585,13 @@ var ListItemLabelControl = ({ elementId, fallbackLabel }) => {
|
|
|
6506
6585
|
};
|
|
6507
6586
|
|
|
6508
6587
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
6509
|
-
var
|
|
6588
|
+
var React98 = __toESM(require("react"));
|
|
6510
6589
|
var import_editor_controls61 = require("@elementor/editor-controls");
|
|
6511
6590
|
var import_editor_elements25 = require("@elementor/editor-elements");
|
|
6512
6591
|
var import_editor_props25 = require("@elementor/editor-props");
|
|
6513
|
-
var
|
|
6514
|
-
var
|
|
6515
|
-
var
|
|
6592
|
+
var import_icons29 = require("@elementor/icons");
|
|
6593
|
+
var import_ui50 = require("@elementor/ui");
|
|
6594
|
+
var import_i18n76 = require("@wordpress/i18n");
|
|
6516
6595
|
|
|
6517
6596
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
6518
6597
|
var import_editor_elements23 = require("@elementor/editor-elements");
|
|
@@ -6531,7 +6610,7 @@ var getElementByType = (elementId, type) => {
|
|
|
6531
6610
|
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
6532
6611
|
var import_editor_elements24 = require("@elementor/editor-elements");
|
|
6533
6612
|
var import_editor_props24 = require("@elementor/editor-props");
|
|
6534
|
-
var
|
|
6613
|
+
var import_i18n75 = require("@wordpress/i18n");
|
|
6535
6614
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
6536
6615
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
6537
6616
|
var useActions2 = () => {
|
|
@@ -6554,7 +6633,7 @@ var useActions2 = () => {
|
|
|
6554
6633
|
}
|
|
6555
6634
|
(0, import_editor_elements24.duplicateElements)({
|
|
6556
6635
|
elementIds: [tabId, tabContentId],
|
|
6557
|
-
title: (0,
|
|
6636
|
+
title: (0, import_i18n75.__)("Duplicate Tab", "elementor"),
|
|
6558
6637
|
onDuplicateElements: () => {
|
|
6559
6638
|
if (newDefault !== defaultActiveTab) {
|
|
6560
6639
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -6591,7 +6670,7 @@ var useActions2 = () => {
|
|
|
6591
6670
|
defaultActiveTab
|
|
6592
6671
|
});
|
|
6593
6672
|
(0, import_editor_elements24.moveElements)({
|
|
6594
|
-
title: (0,
|
|
6673
|
+
title: (0, import_i18n75.__)("Reorder Tabs", "elementor"),
|
|
6595
6674
|
moves: [
|
|
6596
6675
|
{
|
|
6597
6676
|
element: movedElement,
|
|
@@ -6625,7 +6704,7 @@ var useActions2 = () => {
|
|
|
6625
6704
|
defaultActiveTab
|
|
6626
6705
|
});
|
|
6627
6706
|
(0, import_editor_elements24.removeElements)({
|
|
6628
|
-
title: (0,
|
|
6707
|
+
title: (0, import_i18n75.__)("Tabs", "elementor"),
|
|
6629
6708
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
6630
6709
|
const tabId = item.id;
|
|
6631
6710
|
const tabContentContainer = (0, import_editor_elements24.getContainer)(tabContentAreaId);
|
|
@@ -6660,7 +6739,7 @@ var useActions2 = () => {
|
|
|
6660
6739
|
items3.forEach(({ index }) => {
|
|
6661
6740
|
const position = index + 1;
|
|
6662
6741
|
(0, import_editor_elements24.createElements)({
|
|
6663
|
-
title: (0,
|
|
6742
|
+
title: (0, import_i18n75.__)("Tabs", "elementor"),
|
|
6664
6743
|
elements: [
|
|
6665
6744
|
{
|
|
6666
6745
|
container: tabContentArea,
|
|
@@ -6729,7 +6808,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
6729
6808
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
6730
6809
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
6731
6810
|
var TabsControl = ({ label }) => {
|
|
6732
|
-
return /* @__PURE__ */
|
|
6811
|
+
return /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n76.__)("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(TabsControlContent, { label }));
|
|
6733
6812
|
};
|
|
6734
6813
|
var TabsControlContent = ({ label }) => {
|
|
6735
6814
|
const { element } = useElement();
|
|
@@ -6773,7 +6852,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6773
6852
|
});
|
|
6774
6853
|
}
|
|
6775
6854
|
};
|
|
6776
|
-
return /* @__PURE__ */
|
|
6855
|
+
return /* @__PURE__ */ React98.createElement(
|
|
6777
6856
|
import_editor_controls61.Repeater,
|
|
6778
6857
|
{
|
|
6779
6858
|
showToggle: false,
|
|
@@ -6793,7 +6872,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6793
6872
|
};
|
|
6794
6873
|
var ItemLabel3 = ({ value, index }) => {
|
|
6795
6874
|
const elementTitle = value?.title;
|
|
6796
|
-
return /* @__PURE__ */
|
|
6875
|
+
return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React98.createElement("span", null, elementTitle), /* @__PURE__ */ React98.createElement(ItemDefaultTab, { index }));
|
|
6797
6876
|
};
|
|
6798
6877
|
var ItemDefaultTab = ({ index }) => {
|
|
6799
6878
|
const { value: defaultItem } = (0, import_editor_controls61.useBoundProp)(import_editor_props25.numberPropTypeUtil);
|
|
@@ -6801,19 +6880,19 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
6801
6880
|
if (!isDefault) {
|
|
6802
6881
|
return null;
|
|
6803
6882
|
}
|
|
6804
|
-
return /* @__PURE__ */
|
|
6883
|
+
return /* @__PURE__ */ React98.createElement(import_ui50.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n76.__)("Default", "elementor") });
|
|
6805
6884
|
};
|
|
6806
6885
|
var ItemContent3 = ({ value, index }) => {
|
|
6807
6886
|
if (!value.id) {
|
|
6808
6887
|
return null;
|
|
6809
6888
|
}
|
|
6810
|
-
return /* @__PURE__ */
|
|
6889
|
+
return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n76.__)("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(DefaultTabControl, { tabIndex: index })));
|
|
6811
6890
|
};
|
|
6812
6891
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
6813
6892
|
const { value, setValue } = (0, import_editor_controls61.useBoundProp)(import_editor_props25.numberPropTypeUtil);
|
|
6814
6893
|
const isDefault = value === tabIndex;
|
|
6815
|
-
return /* @__PURE__ */
|
|
6816
|
-
|
|
6894
|
+
return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React98.createElement(import_editor_controls61.ControlFormLabel, null, (0, import_i18n76.__)("Set as default tab", "elementor")), /* @__PURE__ */ React98.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React98.createElement(
|
|
6895
|
+
import_ui50.Switch,
|
|
6817
6896
|
{
|
|
6818
6897
|
size: "small",
|
|
6819
6898
|
checked: isDefault,
|
|
@@ -6830,8 +6909,8 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6830
6909
|
var TabLabelControl = ({ elementId }) => {
|
|
6831
6910
|
const editorSettings = (0, import_editor_elements25.useElementEditorSettings)(elementId);
|
|
6832
6911
|
const label = editorSettings?.title ?? "";
|
|
6833
|
-
return /* @__PURE__ */
|
|
6834
|
-
|
|
6912
|
+
return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { gap: 1 }, /* @__PURE__ */ React98.createElement(import_editor_controls61.ControlFormLabel, null, (0, import_i18n76.__)("Tab name", "elementor")), /* @__PURE__ */ React98.createElement(
|
|
6913
|
+
import_ui50.TextField,
|
|
6835
6914
|
{
|
|
6836
6915
|
size: "tiny",
|
|
6837
6916
|
value: label,
|
|
@@ -6851,22 +6930,22 @@ var ConditionalTooltip = ({
|
|
|
6851
6930
|
if (!showTooltip) {
|
|
6852
6931
|
return children;
|
|
6853
6932
|
}
|
|
6854
|
-
return /* @__PURE__ */
|
|
6855
|
-
|
|
6933
|
+
return /* @__PURE__ */ React98.createElement(
|
|
6934
|
+
import_ui50.Infotip,
|
|
6856
6935
|
{
|
|
6857
6936
|
arrow: false,
|
|
6858
|
-
content: /* @__PURE__ */
|
|
6859
|
-
|
|
6937
|
+
content: /* @__PURE__ */ React98.createElement(
|
|
6938
|
+
import_ui50.Alert,
|
|
6860
6939
|
{
|
|
6861
6940
|
color: "secondary",
|
|
6862
|
-
icon: /* @__PURE__ */
|
|
6941
|
+
icon: /* @__PURE__ */ React98.createElement(import_icons29.InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
6863
6942
|
size: "small",
|
|
6864
6943
|
sx: { width: 288 }
|
|
6865
6944
|
},
|
|
6866
|
-
/* @__PURE__ */
|
|
6945
|
+
/* @__PURE__ */ React98.createElement(import_ui50.Typography, { variant: "body2" }, (0, import_i18n76.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6867
6946
|
)
|
|
6868
6947
|
},
|
|
6869
|
-
/* @__PURE__ */
|
|
6948
|
+
/* @__PURE__ */ React98.createElement("span", null, children)
|
|
6870
6949
|
);
|
|
6871
6950
|
};
|
|
6872
6951
|
|
|
@@ -6890,23 +6969,23 @@ var import_editor_controls68 = require("@elementor/editor-controls");
|
|
|
6890
6969
|
var import_menus2 = require("@elementor/menus");
|
|
6891
6970
|
|
|
6892
6971
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6893
|
-
var
|
|
6972
|
+
var React99 = __toESM(require("react"));
|
|
6894
6973
|
var import_editor_controls63 = require("@elementor/editor-controls");
|
|
6895
6974
|
var import_editor_props27 = require("@elementor/editor-props");
|
|
6896
|
-
var
|
|
6975
|
+
var import_icons30 = require("@elementor/icons");
|
|
6897
6976
|
|
|
6898
6977
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
6899
|
-
var
|
|
6978
|
+
var import_react45 = require("react");
|
|
6900
6979
|
|
|
6901
6980
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
6902
|
-
var
|
|
6981
|
+
var import_react44 = require("react");
|
|
6903
6982
|
var import_editor_controls62 = require("@elementor/editor-controls");
|
|
6904
6983
|
|
|
6905
6984
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
6906
6985
|
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
6907
6986
|
|
|
6908
6987
|
// src/hooks/use-license-config.ts
|
|
6909
|
-
var
|
|
6988
|
+
var import_react43 = require("react");
|
|
6910
6989
|
var config = { expired: false };
|
|
6911
6990
|
var listeners = /* @__PURE__ */ new Set();
|
|
6912
6991
|
function setLicenseConfig(newConfig) {
|
|
@@ -6921,7 +7000,7 @@ function subscribe(listener) {
|
|
|
6921
7000
|
return () => listeners.delete(listener);
|
|
6922
7001
|
}
|
|
6923
7002
|
function useLicenseConfig() {
|
|
6924
|
-
return (0,
|
|
7003
|
+
return (0, import_react43.useSyncExternalStore)(subscribe, getLicenseConfig, getLicenseConfig);
|
|
6925
7004
|
}
|
|
6926
7005
|
|
|
6927
7006
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
@@ -6990,7 +7069,7 @@ var usePropDynamicTagsInternal = (filterByLicense2) => {
|
|
|
6990
7069
|
categories = propDynamicType?.settings.categories || [];
|
|
6991
7070
|
}
|
|
6992
7071
|
const categoriesKey = categories.join();
|
|
6993
|
-
return (0,
|
|
7072
|
+
return (0, import_react44.useMemo)(
|
|
6994
7073
|
() => getDynamicTagsByCategories(categories, filterByLicense2),
|
|
6995
7074
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6996
7075
|
[categoriesKey, filterByLicense2]
|
|
@@ -7024,33 +7103,33 @@ var getDynamicTagsByCategories = (categories, filterByLicense2) => {
|
|
|
7024
7103
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
7025
7104
|
var useDynamicTag = (tagName) => {
|
|
7026
7105
|
const dynamicTags = useAllPropDynamicTags();
|
|
7027
|
-
return (0,
|
|
7106
|
+
return (0, import_react45.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
|
|
7028
7107
|
};
|
|
7029
7108
|
|
|
7030
7109
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
7031
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
7110
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React99.createElement(import_icons30.DatabaseIcon, { fontSize: "tiny" });
|
|
7032
7111
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
7033
7112
|
const context = (0, import_editor_controls63.useBoundProp)(import_editor_props27.backgroundImageOverlayPropTypeUtil);
|
|
7034
|
-
return /* @__PURE__ */
|
|
7113
|
+
return /* @__PURE__ */ React99.createElement(import_editor_controls63.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React99.createElement(import_editor_controls63.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React99.createElement(Wrapper2, { rawValue: value.value })));
|
|
7035
7114
|
};
|
|
7036
7115
|
var Wrapper2 = ({ rawValue }) => {
|
|
7037
7116
|
const { propType } = (0, import_editor_controls63.useBoundProp)();
|
|
7038
7117
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
7039
|
-
return /* @__PURE__ */
|
|
7118
|
+
return /* @__PURE__ */ React99.createElement(import_editor_controls63.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React99.createElement(import_editor_controls63.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React99.createElement(Content, { rawValue: rawValue.image })));
|
|
7040
7119
|
};
|
|
7041
7120
|
var Content = ({ rawValue }) => {
|
|
7042
7121
|
const src = rawValue.value.src;
|
|
7043
7122
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
7044
|
-
return /* @__PURE__ */
|
|
7123
|
+
return /* @__PURE__ */ React99.createElement(React99.Fragment, null, dynamicTag?.label);
|
|
7045
7124
|
};
|
|
7046
7125
|
|
|
7047
7126
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
7048
|
-
var
|
|
7127
|
+
var React103 = __toESM(require("react"));
|
|
7049
7128
|
var import_editor_controls66 = require("@elementor/editor-controls");
|
|
7050
7129
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
7051
|
-
var
|
|
7052
|
-
var
|
|
7053
|
-
var
|
|
7130
|
+
var import_icons32 = require("@elementor/icons");
|
|
7131
|
+
var import_ui52 = require("@elementor/ui");
|
|
7132
|
+
var import_i18n78 = require("@wordpress/i18n");
|
|
7054
7133
|
|
|
7055
7134
|
// src/hooks/use-persist-dynamic-value.ts
|
|
7056
7135
|
var import_session10 = require("@elementor/session");
|
|
@@ -7061,12 +7140,12 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
7061
7140
|
};
|
|
7062
7141
|
|
|
7063
7142
|
// src/dynamics/dynamic-control.tsx
|
|
7064
|
-
var
|
|
7143
|
+
var React101 = __toESM(require("react"));
|
|
7065
7144
|
var import_editor_controls64 = require("@elementor/editor-controls");
|
|
7066
7145
|
|
|
7067
7146
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
7068
|
-
var
|
|
7069
|
-
var
|
|
7147
|
+
var React100 = __toESM(require("react"));
|
|
7148
|
+
var import_react46 = require("react");
|
|
7070
7149
|
var import_editor_props28 = require("@elementor/editor-props");
|
|
7071
7150
|
var DynamicConditionalControl = ({
|
|
7072
7151
|
children,
|
|
@@ -7074,7 +7153,7 @@ var DynamicConditionalControl = ({
|
|
|
7074
7153
|
propsSchema,
|
|
7075
7154
|
dynamicSettings
|
|
7076
7155
|
}) => {
|
|
7077
|
-
const defaults = (0,
|
|
7156
|
+
const defaults = (0, import_react46.useMemo)(() => {
|
|
7078
7157
|
if (!propsSchema) {
|
|
7079
7158
|
return {};
|
|
7080
7159
|
}
|
|
@@ -7084,7 +7163,7 @@ var DynamicConditionalControl = ({
|
|
|
7084
7163
|
return result;
|
|
7085
7164
|
}, {});
|
|
7086
7165
|
}, [propsSchema]);
|
|
7087
|
-
const convertedSettings = (0,
|
|
7166
|
+
const convertedSettings = (0, import_react46.useMemo)(() => {
|
|
7088
7167
|
if (!dynamicSettings) {
|
|
7089
7168
|
return {};
|
|
7090
7169
|
}
|
|
@@ -7103,14 +7182,14 @@ var DynamicConditionalControl = ({
|
|
|
7103
7182
|
{}
|
|
7104
7183
|
);
|
|
7105
7184
|
}, [dynamicSettings]);
|
|
7106
|
-
const effectiveSettings = (0,
|
|
7185
|
+
const effectiveSettings = (0, import_react46.useMemo)(() => {
|
|
7107
7186
|
return { ...defaults, ...convertedSettings };
|
|
7108
7187
|
}, [defaults, convertedSettings]);
|
|
7109
7188
|
if (!propType?.dependencies?.terms.length) {
|
|
7110
|
-
return /* @__PURE__ */
|
|
7189
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
|
|
7111
7190
|
}
|
|
7112
7191
|
const isHidden = !(0, import_editor_props28.isDependencyMet)(propType?.dependencies, effectiveSettings).isMet;
|
|
7113
|
-
return isHidden ? null : /* @__PURE__ */
|
|
7192
|
+
return isHidden ? null : /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
|
|
7114
7193
|
};
|
|
7115
7194
|
|
|
7116
7195
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -7135,7 +7214,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
7135
7214
|
});
|
|
7136
7215
|
};
|
|
7137
7216
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
7138
|
-
return /* @__PURE__ */
|
|
7217
|
+
return /* @__PURE__ */ React101.createElement(import_editor_controls64.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React101.createElement(import_editor_controls64.PropKeyProvider, { bind }, /* @__PURE__ */ React101.createElement(
|
|
7139
7218
|
DynamicConditionalControl,
|
|
7140
7219
|
{
|
|
7141
7220
|
propType: dynamicPropType,
|
|
@@ -7147,28 +7226,28 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
7147
7226
|
};
|
|
7148
7227
|
|
|
7149
7228
|
// src/dynamics/components/dynamic-selection.tsx
|
|
7150
|
-
var
|
|
7151
|
-
var
|
|
7229
|
+
var React102 = __toESM(require("react"));
|
|
7230
|
+
var import_react47 = require("react");
|
|
7152
7231
|
var import_editor_controls65 = require("@elementor/editor-controls");
|
|
7153
7232
|
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
7154
|
-
var
|
|
7155
|
-
var
|
|
7156
|
-
var
|
|
7233
|
+
var import_icons31 = require("@elementor/icons");
|
|
7234
|
+
var import_ui51 = require("@elementor/ui");
|
|
7235
|
+
var import_i18n77 = require("@wordpress/i18n");
|
|
7157
7236
|
var SIZE2 = "tiny";
|
|
7158
7237
|
var PROMO_TEXT_WIDTH = 170;
|
|
7159
7238
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
7160
7239
|
var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew-modal/";
|
|
7161
7240
|
var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
7162
|
-
const [searchValue, setSearchValue] = (0,
|
|
7241
|
+
const [searchValue, setSearchValue] = (0, import_react47.useState)("");
|
|
7163
7242
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
7164
|
-
const theme = (0,
|
|
7243
|
+
const theme = (0, import_ui51.useTheme)();
|
|
7165
7244
|
const { value: anyValue } = (0, import_editor_controls65.useBoundProp)();
|
|
7166
7245
|
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls65.useBoundProp)(dynamicPropTypeUtil);
|
|
7167
7246
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
7168
7247
|
const isCurrentValueDynamic = !!dynamicValue;
|
|
7169
7248
|
const options13 = useFilteredOptions(searchValue);
|
|
7170
7249
|
const hasNoDynamicTags = !options13.length && !searchValue.trim();
|
|
7171
|
-
(0,
|
|
7250
|
+
(0, import_react47.useEffect)(() => {
|
|
7172
7251
|
if (hasNoDynamicTags) {
|
|
7173
7252
|
(0, import_editor_controls65.trackViewPromotion)({ target_name: "dynamic_tags" });
|
|
7174
7253
|
} else if (expired) {
|
|
@@ -7200,19 +7279,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
7200
7279
|
]);
|
|
7201
7280
|
const getPopOverContent = () => {
|
|
7202
7281
|
if (hasNoDynamicTags) {
|
|
7203
|
-
return /* @__PURE__ */
|
|
7282
|
+
return /* @__PURE__ */ React102.createElement(NoDynamicTags, null);
|
|
7204
7283
|
}
|
|
7205
7284
|
if (expired) {
|
|
7206
|
-
return /* @__PURE__ */
|
|
7285
|
+
return /* @__PURE__ */ React102.createElement(ExpiredDynamicTags, null);
|
|
7207
7286
|
}
|
|
7208
|
-
return /* @__PURE__ */
|
|
7287
|
+
return /* @__PURE__ */ React102.createElement(import_react47.Fragment, null, /* @__PURE__ */ React102.createElement(
|
|
7209
7288
|
import_editor_ui10.SearchField,
|
|
7210
7289
|
{
|
|
7211
7290
|
value: searchValue,
|
|
7212
7291
|
onSearch: handleSearch,
|
|
7213
|
-
placeholder: (0,
|
|
7292
|
+
placeholder: (0, import_i18n77.__)("Search dynamic tags\u2026", "elementor")
|
|
7214
7293
|
}
|
|
7215
|
-
), /* @__PURE__ */
|
|
7294
|
+
), /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
|
|
7216
7295
|
import_editor_ui10.PopoverMenuList,
|
|
7217
7296
|
{
|
|
7218
7297
|
items: virtualizedItems,
|
|
@@ -7220,21 +7299,21 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
7220
7299
|
onClose: closePopover,
|
|
7221
7300
|
selectedValue: dynamicValue?.name,
|
|
7222
7301
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
7223
|
-
noResultsComponent: /* @__PURE__ */
|
|
7302
|
+
noResultsComponent: /* @__PURE__ */ React102.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
7224
7303
|
}
|
|
7225
7304
|
));
|
|
7226
7305
|
};
|
|
7227
|
-
return /* @__PURE__ */
|
|
7306
|
+
return /* @__PURE__ */ React102.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n77.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React102.createElement(
|
|
7228
7307
|
import_editor_ui10.PopoverHeader,
|
|
7229
7308
|
{
|
|
7230
|
-
title: (0,
|
|
7309
|
+
title: (0, import_i18n77.__)("Dynamic tags", "elementor"),
|
|
7231
7310
|
onClose: closePopover,
|
|
7232
|
-
icon: /* @__PURE__ */
|
|
7311
|
+
icon: /* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE2 })
|
|
7233
7312
|
}
|
|
7234
7313
|
), getPopOverContent());
|
|
7235
7314
|
};
|
|
7236
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
7237
|
-
|
|
7315
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React102.createElement(
|
|
7316
|
+
import_ui51.Stack,
|
|
7238
7317
|
{
|
|
7239
7318
|
gap: 1,
|
|
7240
7319
|
alignItems: "center",
|
|
@@ -7244,12 +7323,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React101.createEle
|
|
|
7244
7323
|
color: "text.secondary",
|
|
7245
7324
|
sx: { pb: 3.5 }
|
|
7246
7325
|
},
|
|
7247
|
-
/* @__PURE__ */
|
|
7248
|
-
/* @__PURE__ */
|
|
7249
|
-
/* @__PURE__ */
|
|
7326
|
+
/* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
|
|
7327
|
+
/* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React102.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
7328
|
+
/* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n77.__)("Try something else.", "elementor"), /* @__PURE__ */ React102.createElement(import_ui51.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n77.__)("Clear & try again", "elementor")))
|
|
7250
7329
|
);
|
|
7251
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
7252
|
-
|
|
7330
|
+
var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
|
|
7331
|
+
import_ui51.Stack,
|
|
7253
7332
|
{
|
|
7254
7333
|
gap: 1,
|
|
7255
7334
|
alignItems: "center",
|
|
@@ -7259,10 +7338,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React101.createElement(React101.Fragme
|
|
|
7259
7338
|
color: "text.secondary",
|
|
7260
7339
|
sx: { pb: 3.5 }
|
|
7261
7340
|
},
|
|
7262
|
-
/* @__PURE__ */
|
|
7263
|
-
/* @__PURE__ */
|
|
7264
|
-
/* @__PURE__ */
|
|
7265
|
-
/* @__PURE__ */
|
|
7341
|
+
/* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
|
|
7342
|
+
/* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
7343
|
+
/* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n77.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
7344
|
+
/* @__PURE__ */ React102.createElement(
|
|
7266
7345
|
import_editor_ui10.CtaButton,
|
|
7267
7346
|
{
|
|
7268
7347
|
size: "small",
|
|
@@ -7271,8 +7350,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React101.createElement(React101.Fragme
|
|
|
7271
7350
|
}
|
|
7272
7351
|
)
|
|
7273
7352
|
));
|
|
7274
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
7275
|
-
|
|
7353
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
|
|
7354
|
+
import_ui51.Stack,
|
|
7276
7355
|
{
|
|
7277
7356
|
gap: 1,
|
|
7278
7357
|
alignItems: "center",
|
|
@@ -7282,16 +7361,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React101.createElement(React101.F
|
|
|
7282
7361
|
color: "text.secondary",
|
|
7283
7362
|
sx: { pb: 3.5 }
|
|
7284
7363
|
},
|
|
7285
|
-
/* @__PURE__ */
|
|
7286
|
-
/* @__PURE__ */
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7364
|
+
/* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
|
|
7365
|
+
/* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Unlock your Dynamic tags again", "elementor")),
|
|
7366
|
+
/* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n77.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
7367
|
+
/* @__PURE__ */ React102.createElement(
|
|
7289
7368
|
import_editor_ui10.CtaButton,
|
|
7290
7369
|
{
|
|
7291
7370
|
size: "small",
|
|
7292
7371
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
7293
7372
|
onClick: () => (0, import_editor_controls65.trackUpgradePromotionClick)({ target_name: "dynamic_tags" }),
|
|
7294
|
-
children: (0,
|
|
7373
|
+
children: (0, import_i18n77.__)("Renew Now", "elementor")
|
|
7295
7374
|
}
|
|
7296
7375
|
)
|
|
7297
7376
|
));
|
|
@@ -7324,11 +7403,11 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
7324
7403
|
}
|
|
7325
7404
|
});
|
|
7326
7405
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
7327
|
-
const selectionPopoverState = (0,
|
|
7406
|
+
const selectionPopoverState = (0, import_ui52.usePopupState)({ variant: "popover" });
|
|
7328
7407
|
const { name: tagName = "" } = value;
|
|
7329
7408
|
const dynamicTag = useDynamicTag(tagName);
|
|
7330
7409
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
7331
|
-
return /* @__PURE__ */
|
|
7410
|
+
return /* @__PURE__ */ React103.createElement(import_editor_controls66.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React103.createElement(import_editor_controls66.PropKeyProvider, { bind }, /* @__PURE__ */ React103.createElement(OriginalControl, { ...props })));
|
|
7332
7411
|
}
|
|
7333
7412
|
const removeDynamicTag = () => {
|
|
7334
7413
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -7336,26 +7415,26 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
7336
7415
|
if (!dynamicTag) {
|
|
7337
7416
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
7338
7417
|
}
|
|
7339
|
-
return /* @__PURE__ */
|
|
7340
|
-
|
|
7418
|
+
return /* @__PURE__ */ React103.createElement(import_ui52.Box, null, /* @__PURE__ */ React103.createElement(
|
|
7419
|
+
import_ui52.UnstableTag,
|
|
7341
7420
|
{
|
|
7342
7421
|
fullWidth: true,
|
|
7343
7422
|
showActionsOnHover: true,
|
|
7344
7423
|
label: dynamicTag.label,
|
|
7345
|
-
startIcon: /* @__PURE__ */
|
|
7346
|
-
...(0,
|
|
7347
|
-
actions: /* @__PURE__ */
|
|
7348
|
-
|
|
7424
|
+
startIcon: /* @__PURE__ */ React103.createElement(import_icons32.DatabaseIcon, { fontSize: SIZE3 }),
|
|
7425
|
+
...(0, import_ui52.bindTrigger)(selectionPopoverState),
|
|
7426
|
+
actions: /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React103.createElement(
|
|
7427
|
+
import_ui52.IconButton,
|
|
7349
7428
|
{
|
|
7350
7429
|
size: SIZE3,
|
|
7351
7430
|
onClick: removeDynamicTag,
|
|
7352
|
-
"aria-label": (0,
|
|
7431
|
+
"aria-label": (0, import_i18n78.__)("Remove dynamic value", "elementor")
|
|
7353
7432
|
},
|
|
7354
|
-
/* @__PURE__ */
|
|
7433
|
+
/* @__PURE__ */ React103.createElement(import_icons32.XIcon, { fontSize: SIZE3 })
|
|
7355
7434
|
))
|
|
7356
7435
|
}
|
|
7357
|
-
), /* @__PURE__ */
|
|
7358
|
-
|
|
7436
|
+
), /* @__PURE__ */ React103.createElement(
|
|
7437
|
+
import_ui52.Popover,
|
|
7359
7438
|
{
|
|
7360
7439
|
disablePortal: true,
|
|
7361
7440
|
disableScrollLock: true,
|
|
@@ -7364,31 +7443,31 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
7364
7443
|
PaperProps: {
|
|
7365
7444
|
sx: { my: 1 }
|
|
7366
7445
|
},
|
|
7367
|
-
...(0,
|
|
7446
|
+
...(0, import_ui52.bindPopover)(selectionPopoverState)
|
|
7368
7447
|
},
|
|
7369
|
-
/* @__PURE__ */
|
|
7448
|
+
/* @__PURE__ */ React103.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
7370
7449
|
));
|
|
7371
7450
|
};
|
|
7372
7451
|
var DynamicSettingsPopover = ({
|
|
7373
7452
|
dynamicTag,
|
|
7374
7453
|
disabled = false
|
|
7375
7454
|
}) => {
|
|
7376
|
-
const popupState = (0,
|
|
7455
|
+
const popupState = (0, import_ui52.usePopupState)({ variant: "popover" });
|
|
7377
7456
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
7378
7457
|
if (!hasDynamicSettings) {
|
|
7379
7458
|
return null;
|
|
7380
7459
|
}
|
|
7381
|
-
return /* @__PURE__ */
|
|
7382
|
-
|
|
7460
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
|
|
7461
|
+
import_ui52.IconButton,
|
|
7383
7462
|
{
|
|
7384
7463
|
size: SIZE3,
|
|
7385
7464
|
disabled,
|
|
7386
|
-
...!disabled && (0,
|
|
7387
|
-
"aria-label": (0,
|
|
7465
|
+
...!disabled && (0, import_ui52.bindTrigger)(popupState),
|
|
7466
|
+
"aria-label": (0, import_i18n78.__)("Dynamic settings", "elementor")
|
|
7388
7467
|
},
|
|
7389
|
-
/* @__PURE__ */
|
|
7390
|
-
), /* @__PURE__ */
|
|
7391
|
-
|
|
7468
|
+
/* @__PURE__ */ React103.createElement(import_icons32.SettingsIcon, { fontSize: SIZE3 })
|
|
7469
|
+
), /* @__PURE__ */ React103.createElement(
|
|
7470
|
+
import_ui52.Popover,
|
|
7392
7471
|
{
|
|
7393
7472
|
disablePortal: true,
|
|
7394
7473
|
disableScrollLock: true,
|
|
@@ -7397,45 +7476,45 @@ var DynamicSettingsPopover = ({
|
|
|
7397
7476
|
PaperProps: {
|
|
7398
7477
|
sx: { my: 1 }
|
|
7399
7478
|
},
|
|
7400
|
-
...(0,
|
|
7479
|
+
...(0, import_ui52.bindPopover)(popupState)
|
|
7401
7480
|
},
|
|
7402
|
-
/* @__PURE__ */
|
|
7481
|
+
/* @__PURE__ */ React103.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React103.createElement(
|
|
7403
7482
|
import_editor_ui11.PopoverHeader,
|
|
7404
7483
|
{
|
|
7405
7484
|
title: dynamicTag.label,
|
|
7406
7485
|
onClose: popupState.close,
|
|
7407
|
-
icon: /* @__PURE__ */
|
|
7486
|
+
icon: /* @__PURE__ */ React103.createElement(import_icons32.DatabaseIcon, { fontSize: SIZE3 })
|
|
7408
7487
|
}
|
|
7409
|
-
), /* @__PURE__ */
|
|
7488
|
+
), /* @__PURE__ */ React103.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
7410
7489
|
));
|
|
7411
7490
|
};
|
|
7412
7491
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
7413
7492
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
7414
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
7493
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui52.useTabs)(0);
|
|
7415
7494
|
if (!tabs.length) {
|
|
7416
7495
|
return null;
|
|
7417
7496
|
}
|
|
7418
7497
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
7419
7498
|
const singleTab = tabs[0];
|
|
7420
|
-
return /* @__PURE__ */
|
|
7499
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), /* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
7421
7500
|
}
|
|
7422
|
-
return /* @__PURE__ */
|
|
7423
|
-
|
|
7501
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React103.createElement(import_ui52.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React103.createElement(
|
|
7502
|
+
import_ui52.Tab,
|
|
7424
7503
|
{
|
|
7425
7504
|
key: index,
|
|
7426
7505
|
label: value.label,
|
|
7427
7506
|
sx: { px: 1, py: 0.5 },
|
|
7428
7507
|
...getTabProps(index)
|
|
7429
7508
|
}
|
|
7430
|
-
))), /* @__PURE__ */
|
|
7431
|
-
return /* @__PURE__ */
|
|
7432
|
-
|
|
7509
|
+
))), /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), tabs.map(({ value }, index) => {
|
|
7510
|
+
return /* @__PURE__ */ React103.createElement(
|
|
7511
|
+
import_ui52.TabPanel,
|
|
7433
7512
|
{
|
|
7434
7513
|
key: index,
|
|
7435
7514
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
7436
7515
|
...getTabPanelProps(index)
|
|
7437
7516
|
},
|
|
7438
|
-
/* @__PURE__ */
|
|
7517
|
+
/* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: value.items })
|
|
7439
7518
|
);
|
|
7440
7519
|
}));
|
|
7441
7520
|
};
|
|
@@ -7477,11 +7556,11 @@ var Control2 = ({ control }) => {
|
|
|
7477
7556
|
display: "grid",
|
|
7478
7557
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
7479
7558
|
} : {};
|
|
7480
|
-
return /* @__PURE__ */
|
|
7559
|
+
return /* @__PURE__ */ React103.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React103.createElement(import_ui52.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React103.createElement(import_ui52.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(import_editor_controls66.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React103.createElement(import_ui52.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(Control, { type: control.type, props: controlProps }))));
|
|
7481
7560
|
};
|
|
7482
7561
|
function ControlsItemsStack({ items: items3 }) {
|
|
7483
|
-
return /* @__PURE__ */
|
|
7484
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
7562
|
+
return /* @__PURE__ */ React103.createElement(import_ui52.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
7563
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React103.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
7485
7564
|
));
|
|
7486
7565
|
}
|
|
7487
7566
|
|
|
@@ -7538,18 +7617,18 @@ function getDynamicValue(name, settings, renderPostId) {
|
|
|
7538
7617
|
}
|
|
7539
7618
|
|
|
7540
7619
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
7541
|
-
var
|
|
7620
|
+
var React104 = __toESM(require("react"));
|
|
7542
7621
|
var import_editor_controls67 = require("@elementor/editor-controls");
|
|
7543
|
-
var
|
|
7544
|
-
var
|
|
7622
|
+
var import_icons33 = require("@elementor/icons");
|
|
7623
|
+
var import_i18n79 = require("@wordpress/i18n");
|
|
7545
7624
|
var usePropDynamicAction = () => {
|
|
7546
7625
|
const { propType } = (0, import_editor_controls67.useBoundProp)();
|
|
7547
7626
|
const visible = !!propType && supportsDynamic(propType);
|
|
7548
7627
|
return {
|
|
7549
7628
|
visible,
|
|
7550
|
-
icon:
|
|
7551
|
-
title: (0,
|
|
7552
|
-
content: ({ close }) => /* @__PURE__ */
|
|
7629
|
+
icon: import_icons33.DatabaseIcon,
|
|
7630
|
+
title: (0, import_i18n79.__)("Dynamic tags", "elementor"),
|
|
7631
|
+
content: ({ close }) => /* @__PURE__ */ React104.createElement(DynamicSelection, { close })
|
|
7553
7632
|
};
|
|
7554
7633
|
};
|
|
7555
7634
|
|
|
@@ -7582,9 +7661,9 @@ var init2 = () => {
|
|
|
7582
7661
|
// src/reset-style-props.tsx
|
|
7583
7662
|
var import_editor_controls69 = require("@elementor/editor-controls");
|
|
7584
7663
|
var import_editor_variables2 = require("@elementor/editor-variables");
|
|
7585
|
-
var
|
|
7664
|
+
var import_icons34 = require("@elementor/icons");
|
|
7586
7665
|
var import_menus3 = require("@elementor/menus");
|
|
7587
|
-
var
|
|
7666
|
+
var import_i18n80 = require("@wordpress/i18n");
|
|
7588
7667
|
|
|
7589
7668
|
// src/utils/is-equal.ts
|
|
7590
7669
|
function isEqual(a, b) {
|
|
@@ -7660,44 +7739,44 @@ function useResetStyleValueProps() {
|
|
|
7660
7739
|
const visible = calculateVisibility();
|
|
7661
7740
|
return {
|
|
7662
7741
|
visible,
|
|
7663
|
-
title: (0,
|
|
7664
|
-
icon:
|
|
7742
|
+
title: (0, import_i18n80.__)("Clear", "elementor"),
|
|
7743
|
+
icon: import_icons34.BrushBigIcon,
|
|
7665
7744
|
onClick: () => resetValue()
|
|
7666
7745
|
};
|
|
7667
7746
|
}
|
|
7668
7747
|
|
|
7669
7748
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
7670
|
-
var
|
|
7749
|
+
var React110 = __toESM(require("react"));
|
|
7671
7750
|
var import_editor_controls70 = require("@elementor/editor-controls");
|
|
7672
7751
|
var import_editor_props30 = require("@elementor/editor-props");
|
|
7673
7752
|
var import_editor_styles_repository20 = require("@elementor/editor-styles-repository");
|
|
7674
|
-
var
|
|
7753
|
+
var import_i18n84 = require("@wordpress/i18n");
|
|
7675
7754
|
|
|
7676
7755
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7677
|
-
var
|
|
7678
|
-
var
|
|
7756
|
+
var React109 = __toESM(require("react"));
|
|
7757
|
+
var import_react49 = require("react");
|
|
7679
7758
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
7680
7759
|
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
7681
|
-
var
|
|
7682
|
-
var
|
|
7760
|
+
var import_ui57 = require("@elementor/ui");
|
|
7761
|
+
var import_i18n83 = require("@wordpress/i18n");
|
|
7683
7762
|
|
|
7684
7763
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
7685
|
-
var
|
|
7764
|
+
var import_react48 = require("react");
|
|
7686
7765
|
var import_editor_canvas4 = require("@elementor/editor-canvas");
|
|
7687
7766
|
var import_editor_styles8 = require("@elementor/editor-styles");
|
|
7688
7767
|
var import_editor_styles_repository18 = require("@elementor/editor-styles-repository");
|
|
7689
|
-
var
|
|
7768
|
+
var import_i18n81 = require("@wordpress/i18n");
|
|
7690
7769
|
var MAXIMUM_ITEMS = 2;
|
|
7691
7770
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
7692
|
-
const [items3, setItems] = (0,
|
|
7693
|
-
(0,
|
|
7771
|
+
const [items3, setItems] = (0, import_react48.useState)([]);
|
|
7772
|
+
(0, import_react48.useEffect)(() => {
|
|
7694
7773
|
(async () => {
|
|
7695
7774
|
const normalizedItems = await Promise.all(
|
|
7696
7775
|
inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
|
|
7697
7776
|
);
|
|
7698
7777
|
const validItems = normalizedItems.map((item) => ({
|
|
7699
7778
|
...item,
|
|
7700
|
-
displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0,
|
|
7779
|
+
displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n81.__)("Base", "elementor")
|
|
7701
7780
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
7702
7781
|
setItems(validItems);
|
|
7703
7782
|
})();
|
|
@@ -7741,7 +7820,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
7741
7820
|
}
|
|
7742
7821
|
});
|
|
7743
7822
|
const value = result?.[bind] ?? result;
|
|
7744
|
-
if ((0,
|
|
7823
|
+
if ((0, import_react48.isValidElement)(value)) {
|
|
7745
7824
|
return value;
|
|
7746
7825
|
}
|
|
7747
7826
|
if (typeof value === "object") {
|
|
@@ -7754,20 +7833,20 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
7754
7833
|
};
|
|
7755
7834
|
|
|
7756
7835
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
7757
|
-
var
|
|
7836
|
+
var React105 = __toESM(require("react"));
|
|
7758
7837
|
var import_editor_responsive5 = require("@elementor/editor-responsive");
|
|
7759
|
-
var
|
|
7760
|
-
var
|
|
7838
|
+
var import_icons35 = require("@elementor/icons");
|
|
7839
|
+
var import_ui53 = require("@elementor/ui");
|
|
7761
7840
|
var SIZE4 = "tiny";
|
|
7762
7841
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
7763
7842
|
var breakpointIconMap = {
|
|
7764
|
-
widescreen:
|
|
7765
|
-
desktop:
|
|
7766
|
-
laptop:
|
|
7767
|
-
tablet_extra:
|
|
7768
|
-
tablet:
|
|
7769
|
-
mobile_extra:
|
|
7770
|
-
mobile:
|
|
7843
|
+
widescreen: import_icons35.WidescreenIcon,
|
|
7844
|
+
desktop: import_icons35.DesktopIcon,
|
|
7845
|
+
laptop: import_icons35.LaptopIcon,
|
|
7846
|
+
tablet_extra: import_icons35.TabletLandscapeIcon,
|
|
7847
|
+
tablet: import_icons35.TabletPortraitIcon,
|
|
7848
|
+
mobile_extra: import_icons35.MobileLandscapeIcon,
|
|
7849
|
+
mobile: import_icons35.MobilePortraitIcon
|
|
7771
7850
|
};
|
|
7772
7851
|
var BreakpointIcon = ({ breakpoint }) => {
|
|
7773
7852
|
const breakpoints = (0, import_editor_responsive5.useBreakpoints)();
|
|
@@ -7777,21 +7856,21 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
7777
7856
|
return null;
|
|
7778
7857
|
}
|
|
7779
7858
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
7780
|
-
return /* @__PURE__ */
|
|
7859
|
+
return /* @__PURE__ */ React105.createElement(import_ui53.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React105.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
7781
7860
|
};
|
|
7782
7861
|
|
|
7783
7862
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
7784
|
-
var
|
|
7863
|
+
var React106 = __toESM(require("react"));
|
|
7785
7864
|
var import_editor_styles_repository19 = require("@elementor/editor-styles-repository");
|
|
7786
|
-
var
|
|
7787
|
-
var
|
|
7788
|
-
var
|
|
7865
|
+
var import_icons36 = require("@elementor/icons");
|
|
7866
|
+
var import_ui54 = require("@elementor/ui");
|
|
7867
|
+
var import_i18n82 = require("@wordpress/i18n");
|
|
7789
7868
|
var SIZE5 = "tiny";
|
|
7790
7869
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
7791
7870
|
const isBaseStyle = provider === import_editor_styles_repository19.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
7792
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
7793
|
-
return /* @__PURE__ */
|
|
7794
|
-
|
|
7871
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React106.createElement(import_ui54.Tooltip, { title: (0, import_i18n82.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React106.createElement(import_icons36.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
7872
|
+
return /* @__PURE__ */ React106.createElement(
|
|
7873
|
+
import_ui54.Chip,
|
|
7795
7874
|
{
|
|
7796
7875
|
label: displayLabel,
|
|
7797
7876
|
size: SIZE5,
|
|
@@ -7816,11 +7895,11 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
7816
7895
|
};
|
|
7817
7896
|
|
|
7818
7897
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
7819
|
-
var
|
|
7820
|
-
var
|
|
7898
|
+
var React107 = __toESM(require("react"));
|
|
7899
|
+
var import_ui55 = require("@elementor/ui");
|
|
7821
7900
|
var ValueComponent = ({ index, value }) => {
|
|
7822
|
-
return /* @__PURE__ */
|
|
7823
|
-
|
|
7901
|
+
return /* @__PURE__ */ React107.createElement(import_ui55.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React107.createElement(
|
|
7902
|
+
import_ui55.Typography,
|
|
7824
7903
|
{
|
|
7825
7904
|
variant: "caption",
|
|
7826
7905
|
color: "text.tertiary",
|
|
@@ -7841,9 +7920,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7841
7920
|
};
|
|
7842
7921
|
|
|
7843
7922
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7844
|
-
var
|
|
7845
|
-
var
|
|
7846
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7923
|
+
var React108 = __toESM(require("react"));
|
|
7924
|
+
var import_ui56 = require("@elementor/ui");
|
|
7925
|
+
var ActionIcons = () => /* @__PURE__ */ React108.createElement(import_ui56.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7847
7926
|
|
|
7848
7927
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7849
7928
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7856,8 +7935,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7856
7935
|
children,
|
|
7857
7936
|
isDisabled
|
|
7858
7937
|
}) => {
|
|
7859
|
-
const [showInfotip, setShowInfotip] = (0,
|
|
7860
|
-
const triggerRef = (0,
|
|
7938
|
+
const [showInfotip, setShowInfotip] = (0, import_react49.useState)(false);
|
|
7939
|
+
const triggerRef = (0, import_react49.useRef)(null);
|
|
7861
7940
|
const toggleInfotip = () => {
|
|
7862
7941
|
if (isDisabled) {
|
|
7863
7942
|
return;
|
|
@@ -7872,15 +7951,15 @@ var StylesInheritanceInfotip = ({
|
|
|
7872
7951
|
};
|
|
7873
7952
|
const key = path.join(".");
|
|
7874
7953
|
const sectionWidth = (0, import_editor_ui12.useSectionWidth)();
|
|
7875
|
-
const resolve = (0,
|
|
7954
|
+
const resolve = (0, import_react49.useMemo)(() => {
|
|
7876
7955
|
return (0, import_editor_canvas5.createPropsResolver)({
|
|
7877
7956
|
transformers: import_editor_canvas5.stylesInheritanceTransformersRegistry,
|
|
7878
7957
|
schema: { [key]: propType }
|
|
7879
7958
|
});
|
|
7880
7959
|
}, [key, propType]);
|
|
7881
7960
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7882
|
-
const infotipContent = /* @__PURE__ */
|
|
7883
|
-
|
|
7961
|
+
const infotipContent = /* @__PURE__ */ React109.createElement(import_ui57.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React109.createElement(
|
|
7962
|
+
import_ui57.Card,
|
|
7884
7963
|
{
|
|
7885
7964
|
elevation: 0,
|
|
7886
7965
|
sx: {
|
|
@@ -7892,8 +7971,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7892
7971
|
flexDirection: "column"
|
|
7893
7972
|
}
|
|
7894
7973
|
},
|
|
7895
|
-
/* @__PURE__ */
|
|
7896
|
-
|
|
7974
|
+
/* @__PURE__ */ React109.createElement(
|
|
7975
|
+
import_ui57.Box,
|
|
7897
7976
|
{
|
|
7898
7977
|
sx: {
|
|
7899
7978
|
position: "sticky",
|
|
@@ -7902,10 +7981,10 @@ var StylesInheritanceInfotip = ({
|
|
|
7902
7981
|
backgroundColor: "background.paper"
|
|
7903
7982
|
}
|
|
7904
7983
|
},
|
|
7905
|
-
/* @__PURE__ */
|
|
7984
|
+
/* @__PURE__ */ React109.createElement(import_editor_ui12.PopoverHeader, { title: (0, import_i18n83.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
7906
7985
|
),
|
|
7907
|
-
/* @__PURE__ */
|
|
7908
|
-
|
|
7986
|
+
/* @__PURE__ */ React109.createElement(
|
|
7987
|
+
import_ui57.CardContent,
|
|
7909
7988
|
{
|
|
7910
7989
|
sx: {
|
|
7911
7990
|
display: "flex",
|
|
@@ -7918,39 +7997,39 @@ var StylesInheritanceInfotip = ({
|
|
|
7918
7997
|
}
|
|
7919
7998
|
}
|
|
7920
7999
|
},
|
|
7921
|
-
/* @__PURE__ */
|
|
7922
|
-
return /* @__PURE__ */
|
|
7923
|
-
|
|
8000
|
+
/* @__PURE__ */ React109.createElement(import_ui57.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
8001
|
+
return /* @__PURE__ */ React109.createElement(
|
|
8002
|
+
import_ui57.Box,
|
|
7924
8003
|
{
|
|
7925
8004
|
key: item.id,
|
|
7926
8005
|
display: "flex",
|
|
7927
8006
|
gap: 0.5,
|
|
7928
8007
|
role: "listitem",
|
|
7929
|
-
"aria-label": (0,
|
|
8008
|
+
"aria-label": (0, import_i18n83.__)("Inheritance item: %s", "elementor").replace(
|
|
7930
8009
|
"%s",
|
|
7931
8010
|
item.displayLabel
|
|
7932
8011
|
)
|
|
7933
8012
|
},
|
|
7934
|
-
/* @__PURE__ */
|
|
7935
|
-
|
|
8013
|
+
/* @__PURE__ */ React109.createElement(
|
|
8014
|
+
import_ui57.Box,
|
|
7936
8015
|
{
|
|
7937
8016
|
display: "flex",
|
|
7938
8017
|
gap: 0.5,
|
|
7939
8018
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7940
8019
|
},
|
|
7941
|
-
/* @__PURE__ */
|
|
7942
|
-
/* @__PURE__ */
|
|
7943
|
-
/* @__PURE__ */
|
|
8020
|
+
/* @__PURE__ */ React109.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
8021
|
+
/* @__PURE__ */ React109.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
8022
|
+
/* @__PURE__ */ React109.createElement(ValueComponent, { index, value: item.value })
|
|
7944
8023
|
),
|
|
7945
|
-
/* @__PURE__ */
|
|
8024
|
+
/* @__PURE__ */ React109.createElement(ActionIcons, null)
|
|
7946
8025
|
);
|
|
7947
8026
|
}))
|
|
7948
8027
|
)
|
|
7949
8028
|
));
|
|
7950
8029
|
if (isDisabled) {
|
|
7951
|
-
return /* @__PURE__ */
|
|
8030
|
+
return /* @__PURE__ */ React109.createElement(import_ui57.Box, { sx: { display: "inline-flex" } }, children);
|
|
7952
8031
|
}
|
|
7953
|
-
return /* @__PURE__ */
|
|
8032
|
+
return /* @__PURE__ */ React109.createElement(import_ui57.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React109.createElement(
|
|
7954
8033
|
TooltipOrInfotip,
|
|
7955
8034
|
{
|
|
7956
8035
|
showInfotip,
|
|
@@ -7958,8 +8037,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7958
8037
|
infotipContent,
|
|
7959
8038
|
isDisabled
|
|
7960
8039
|
},
|
|
7961
|
-
/* @__PURE__ */
|
|
7962
|
-
|
|
8040
|
+
/* @__PURE__ */ React109.createElement(
|
|
8041
|
+
import_ui57.IconButton,
|
|
7963
8042
|
{
|
|
7964
8043
|
onClick: toggleInfotip,
|
|
7965
8044
|
"aria-label": label,
|
|
@@ -7978,11 +8057,11 @@ function TooltipOrInfotip({
|
|
|
7978
8057
|
isDisabled
|
|
7979
8058
|
}) {
|
|
7980
8059
|
if (isDisabled) {
|
|
7981
|
-
return /* @__PURE__ */
|
|
8060
|
+
return /* @__PURE__ */ React109.createElement(import_ui57.Box, { sx: { display: "inline-flex" } }, children);
|
|
7982
8061
|
}
|
|
7983
8062
|
if (showInfotip) {
|
|
7984
|
-
return /* @__PURE__ */
|
|
7985
|
-
|
|
8063
|
+
return /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(
|
|
8064
|
+
import_ui57.Backdrop,
|
|
7986
8065
|
{
|
|
7987
8066
|
open: showInfotip,
|
|
7988
8067
|
onClick: onClose,
|
|
@@ -7991,8 +8070,8 @@ function TooltipOrInfotip({
|
|
|
7991
8070
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7992
8071
|
}
|
|
7993
8072
|
}
|
|
7994
|
-
), /* @__PURE__ */
|
|
7995
|
-
|
|
8073
|
+
), /* @__PURE__ */ React109.createElement(
|
|
8074
|
+
import_ui57.Infotip,
|
|
7996
8075
|
{
|
|
7997
8076
|
placement: "top-end",
|
|
7998
8077
|
content: infotipContent,
|
|
@@ -8003,7 +8082,7 @@ function TooltipOrInfotip({
|
|
|
8003
8082
|
children
|
|
8004
8083
|
));
|
|
8005
8084
|
}
|
|
8006
|
-
return /* @__PURE__ */
|
|
8085
|
+
return /* @__PURE__ */ React109.createElement(import_ui57.Tooltip, { title: (0, import_i18n83.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
8007
8086
|
}
|
|
8008
8087
|
|
|
8009
8088
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -8016,7 +8095,7 @@ var StylesInheritanceIndicator = ({
|
|
|
8016
8095
|
if (!path || !inheritanceChain.length) {
|
|
8017
8096
|
return null;
|
|
8018
8097
|
}
|
|
8019
|
-
return /* @__PURE__ */
|
|
8098
|
+
return /* @__PURE__ */ React110.createElement(Indicator, { inheritanceChain, path, propType });
|
|
8020
8099
|
};
|
|
8021
8100
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
8022
8101
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -8032,7 +8111,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
8032
8111
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
8033
8112
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
8034
8113
|
};
|
|
8035
|
-
return /* @__PURE__ */
|
|
8114
|
+
return /* @__PURE__ */ React110.createElement(
|
|
8036
8115
|
StylesInheritanceInfotip,
|
|
8037
8116
|
{
|
|
8038
8117
|
inheritanceChain,
|
|
@@ -8041,17 +8120,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
8041
8120
|
label,
|
|
8042
8121
|
isDisabled
|
|
8043
8122
|
},
|
|
8044
|
-
/* @__PURE__ */
|
|
8123
|
+
/* @__PURE__ */ React110.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
8045
8124
|
);
|
|
8046
8125
|
};
|
|
8047
8126
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
8048
8127
|
if (isFinalValue) {
|
|
8049
|
-
return (0,
|
|
8128
|
+
return (0, import_i18n84.__)("This is the final value", "elementor");
|
|
8050
8129
|
}
|
|
8051
8130
|
if (hasValue) {
|
|
8052
|
-
return (0,
|
|
8131
|
+
return (0, import_i18n84.__)("This value is overridden by another style", "elementor");
|
|
8053
8132
|
}
|
|
8054
|
-
return (0,
|
|
8133
|
+
return (0, import_i18n84.__)("This has value from another style", "elementor");
|
|
8055
8134
|
};
|
|
8056
8135
|
|
|
8057
8136
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -8072,7 +8151,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
8072
8151
|
]);
|
|
8073
8152
|
|
|
8074
8153
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
8075
|
-
var
|
|
8154
|
+
var React111 = __toESM(require("react"));
|
|
8076
8155
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
8077
8156
|
var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) => {
|
|
8078
8157
|
if (!values || values.length === 0) {
|
|
@@ -8082,18 +8161,18 @@ var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) =>
|
|
|
8082
8161
|
if (allStrings) {
|
|
8083
8162
|
return values.join(" ");
|
|
8084
8163
|
}
|
|
8085
|
-
return /* @__PURE__ */
|
|
8164
|
+
return /* @__PURE__ */ React111.createElement(React111.Fragment, null, values.map((item, index) => /* @__PURE__ */ React111.createElement(React111.Fragment, { key: index }, index > 0 && " ", item)));
|
|
8086
8165
|
});
|
|
8087
8166
|
|
|
8088
8167
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
8089
|
-
var
|
|
8168
|
+
var React112 = __toESM(require("react"));
|
|
8090
8169
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
8091
|
-
var
|
|
8092
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */
|
|
8170
|
+
var import_ui58 = require("@elementor/ui");
|
|
8171
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React112.createElement(import_ui58.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React112.createElement(ItemLabelColor, { value })));
|
|
8093
8172
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
8094
|
-
return /* @__PURE__ */
|
|
8173
|
+
return /* @__PURE__ */ React112.createElement("span", null, color);
|
|
8095
8174
|
};
|
|
8096
|
-
var StyledUnstableColorIndicator = (0,
|
|
8175
|
+
var StyledUnstableColorIndicator = (0, import_ui58.styled)(import_ui58.UnstableColorIndicator)(({ theme }) => ({
|
|
8097
8176
|
width: "1em",
|
|
8098
8177
|
height: "1em",
|
|
8099
8178
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -8102,20 +8181,20 @@ var StyledUnstableColorIndicator = (0, import_ui57.styled)(import_ui57.UnstableC
|
|
|
8102
8181
|
}));
|
|
8103
8182
|
|
|
8104
8183
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
8105
|
-
var
|
|
8184
|
+
var React113 = __toESM(require("react"));
|
|
8106
8185
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
8107
|
-
var
|
|
8108
|
-
var
|
|
8109
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */
|
|
8186
|
+
var import_ui59 = require("@elementor/ui");
|
|
8187
|
+
var import_i18n85 = require("@wordpress/i18n");
|
|
8188
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React113.createElement(import_ui59.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React113.createElement(ItemLabelGradient, { value })));
|
|
8110
8189
|
var ItemIconGradient = ({ value }) => {
|
|
8111
8190
|
const gradient = getGradientValue(value);
|
|
8112
|
-
return /* @__PURE__ */
|
|
8191
|
+
return /* @__PURE__ */ React113.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
8113
8192
|
};
|
|
8114
8193
|
var ItemLabelGradient = ({ value }) => {
|
|
8115
8194
|
if (value.type === "linear") {
|
|
8116
|
-
return /* @__PURE__ */
|
|
8195
|
+
return /* @__PURE__ */ React113.createElement("span", null, (0, import_i18n85.__)("Linear gradient", "elementor"));
|
|
8117
8196
|
}
|
|
8118
|
-
return /* @__PURE__ */
|
|
8197
|
+
return /* @__PURE__ */ React113.createElement("span", null, (0, import_i18n85.__)("Radial gradient", "elementor"));
|
|
8119
8198
|
};
|
|
8120
8199
|
var getGradientValue = (gradient) => {
|
|
8121
8200
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -8126,16 +8205,16 @@ var getGradientValue = (gradient) => {
|
|
|
8126
8205
|
};
|
|
8127
8206
|
|
|
8128
8207
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
8129
|
-
var
|
|
8208
|
+
var React114 = __toESM(require("react"));
|
|
8130
8209
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
8131
8210
|
var import_editor_ui13 = require("@elementor/editor-ui");
|
|
8132
|
-
var
|
|
8211
|
+
var import_ui60 = require("@elementor/ui");
|
|
8133
8212
|
var import_wp_media = require("@elementor/wp-media");
|
|
8134
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */
|
|
8213
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React114.createElement(import_ui60.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconImage, { value }), /* @__PURE__ */ React114.createElement(ItemLabelImage, { value })));
|
|
8135
8214
|
var ItemIconImage = ({ value }) => {
|
|
8136
8215
|
const { imageUrl } = useImage(value);
|
|
8137
|
-
return /* @__PURE__ */
|
|
8138
|
-
|
|
8216
|
+
return /* @__PURE__ */ React114.createElement(
|
|
8217
|
+
import_ui60.CardMedia,
|
|
8139
8218
|
{
|
|
8140
8219
|
image: imageUrl,
|
|
8141
8220
|
sx: (theme) => ({
|
|
@@ -8150,7 +8229,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
8150
8229
|
};
|
|
8151
8230
|
var ItemLabelImage = ({ value }) => {
|
|
8152
8231
|
const { imageTitle } = useImage(value);
|
|
8153
|
-
return /* @__PURE__ */
|
|
8232
|
+
return /* @__PURE__ */ React114.createElement(import_editor_ui13.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React114.createElement("span", null, imageTitle));
|
|
8154
8233
|
};
|
|
8155
8234
|
var useImage = (image) => {
|
|
8156
8235
|
let imageTitle, imageUrl = null;
|
|
@@ -8175,7 +8254,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
8175
8254
|
};
|
|
8176
8255
|
|
|
8177
8256
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
8178
|
-
var
|
|
8257
|
+
var React115 = __toESM(require("react"));
|
|
8179
8258
|
var import_editor_canvas10 = require("@elementor/editor-canvas");
|
|
8180
8259
|
var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value) => {
|
|
8181
8260
|
if (!value) {
|
|
@@ -8185,20 +8264,20 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
|
|
|
8185
8264
|
const colorValue = color || "#000000";
|
|
8186
8265
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
8187
8266
|
const positionValue = position || "outset";
|
|
8188
|
-
return /* @__PURE__ */
|
|
8267
|
+
return /* @__PURE__ */ React115.createElement(React115.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
8189
8268
|
});
|
|
8190
8269
|
|
|
8191
8270
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
8192
|
-
var
|
|
8271
|
+
var React116 = __toESM(require("react"));
|
|
8193
8272
|
var import_editor_canvas11 = require("@elementor/editor-canvas");
|
|
8194
|
-
var
|
|
8273
|
+
var import_ui61 = require("@elementor/ui");
|
|
8195
8274
|
function isValidCSSColor(value) {
|
|
8196
8275
|
if (!value.trim()) {
|
|
8197
8276
|
return false;
|
|
8198
8277
|
}
|
|
8199
8278
|
return CSS.supports("color", value.trim());
|
|
8200
8279
|
}
|
|
8201
|
-
var StyledColorIndicator = (0,
|
|
8280
|
+
var StyledColorIndicator = (0, import_ui61.styled)(import_ui61.UnstableColorIndicator)(({ theme }) => ({
|
|
8202
8281
|
width: "1em",
|
|
8203
8282
|
height: "1em",
|
|
8204
8283
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -8209,7 +8288,7 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
|
|
|
8209
8288
|
if (!isValidCSSColor(value)) {
|
|
8210
8289
|
return value;
|
|
8211
8290
|
}
|
|
8212
|
-
return /* @__PURE__ */
|
|
8291
|
+
return /* @__PURE__ */ React116.createElement(import_ui61.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React116.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React116.createElement("span", null, value));
|
|
8213
8292
|
});
|
|
8214
8293
|
|
|
8215
8294
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|