@elementor/editor-editing-panel 4.2.0-904 → 4.2.0-905
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 +978 -945
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +770 -737
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/control-label.tsx +12 -2
- package/src/components/style-sections/layout-section/grid-auto-track-fields.tsx +63 -0
- package/src/components/style-sections/layout-section/layout-section.tsx +5 -0
- package/src/components/style-tab.tsx +2 -0
- package/src/components/styles-field-layout.tsx +33 -37
package/dist/index.mjs
CHANGED
|
@@ -1885,7 +1885,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
|
|
1887
1887
|
// src/components/editing-panel.tsx
|
|
1888
|
-
import * as
|
|
1888
|
+
import * as React90 from "react";
|
|
1889
1889
|
import {
|
|
1890
1890
|
ControlActionsProvider,
|
|
1891
1891
|
ControlReplacementsProvider,
|
|
@@ -1899,7 +1899,7 @@ import { createLocation as createLocation4 } from "@elementor/locations";
|
|
|
1899
1899
|
import { controlActionsMenu } from "@elementor/menus";
|
|
1900
1900
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1901
1901
|
import { ErrorBoundary } from "@elementor/ui";
|
|
1902
|
-
import { __ as
|
|
1902
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
1903
1903
|
|
|
1904
1904
|
// src/editing-panel-replacement-registry.tsx
|
|
1905
1905
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -1922,11 +1922,11 @@ function EditorPanelErrorFallback() {
|
|
|
1922
1922
|
|
|
1923
1923
|
// src/components/editing-panel-tabs.tsx
|
|
1924
1924
|
import { Fragment as Fragment9 } from "react";
|
|
1925
|
-
import * as
|
|
1925
|
+
import * as React89 from "react";
|
|
1926
1926
|
import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
|
|
1927
1927
|
import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
|
|
1928
|
-
import { Divider as Divider6, Stack as
|
|
1929
|
-
import { __ as
|
|
1928
|
+
import { Divider as Divider6, Stack as Stack14, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1929
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
1930
1930
|
|
|
1931
1931
|
// src/contexts/scroll-context.tsx
|
|
1932
1932
|
import * as React15 from "react";
|
|
@@ -2586,9 +2586,10 @@ var getFieldIndicators = (fieldType) => Array.from(indicatorsRegistry[fieldType]
|
|
|
2586
2586
|
// src/components/control-label.tsx
|
|
2587
2587
|
import * as React22 from "react";
|
|
2588
2588
|
import { ControlAdornments, ControlFormLabel } from "@elementor/editor-controls";
|
|
2589
|
-
import {
|
|
2590
|
-
|
|
2591
|
-
|
|
2589
|
+
import { InfoCircleIcon } from "@elementor/icons";
|
|
2590
|
+
import { Stack as Stack5, Tooltip } from "@elementor/ui";
|
|
2591
|
+
var ControlLabel = ({ children, infoTooltip }) => {
|
|
2592
|
+
return /* @__PURE__ */ React22.createElement(Stack5, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React22.createElement(ControlFormLabel, null, children), infoTooltip && /* @__PURE__ */ React22.createElement(Tooltip, { title: infoTooltip, placement: "top" }, /* @__PURE__ */ React22.createElement(InfoCircleIcon, { fontSize: "tiny" })), /* @__PURE__ */ React22.createElement(ControlAdornments, null));
|
|
2592
2593
|
};
|
|
2593
2594
|
|
|
2594
2595
|
// src/components/settings-control.tsx
|
|
@@ -2698,14 +2699,14 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2698
2699
|
}
|
|
2699
2700
|
|
|
2700
2701
|
// src/components/style-tab.tsx
|
|
2701
|
-
import * as
|
|
2702
|
+
import * as React88 from "react";
|
|
2702
2703
|
import { useState as useState9 } from "react";
|
|
2703
2704
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2704
2705
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
2705
2706
|
import { createLocation as createLocation3 } from "@elementor/locations";
|
|
2706
2707
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
2707
|
-
import { Box as Box6, Divider as Divider5, Stack as
|
|
2708
|
-
import { __ as
|
|
2708
|
+
import { Box as Box6, Divider as Divider5, Stack as Stack13 } from "@elementor/ui";
|
|
2709
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
2709
2710
|
|
|
2710
2711
|
// src/contexts/styles-inheritance-context.tsx
|
|
2711
2712
|
import * as React25 from "react";
|
|
@@ -3224,42 +3225,26 @@ import { __ as __11 } from "@wordpress/i18n";
|
|
|
3224
3225
|
import * as React29 from "react";
|
|
3225
3226
|
import { Grid, Stack as Stack7 } from "@elementor/ui";
|
|
3226
3227
|
var StylesFieldLayout = React29.forwardRef((props, ref) => {
|
|
3227
|
-
const { direction = "row", children, label } = props;
|
|
3228
|
+
const { direction = "row", children, label, infoTooltip } = props;
|
|
3228
3229
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3229
|
-
return /* @__PURE__ */ React29.createElement(LayoutComponent, { label, ref, children });
|
|
3230
|
+
return /* @__PURE__ */ React29.createElement(LayoutComponent, { label, infoTooltip, ref, children });
|
|
3231
|
+
});
|
|
3232
|
+
var Row = React29.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3233
|
+
return /* @__PURE__ */ React29.createElement(Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref, "aria-label": `${label} control` }, /* @__PURE__ */ React29.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React29.createElement(ControlLabel, { infoTooltip }, label)), /* @__PURE__ */ React29.createElement(
|
|
3234
|
+
Grid,
|
|
3235
|
+
{
|
|
3236
|
+
item: true,
|
|
3237
|
+
xs: 6,
|
|
3238
|
+
sx: (theme) => ({
|
|
3239
|
+
width: `calc(50% - ${theme.spacing(2)})`
|
|
3240
|
+
})
|
|
3241
|
+
},
|
|
3242
|
+
children
|
|
3243
|
+
));
|
|
3244
|
+
});
|
|
3245
|
+
var Column = React29.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
3246
|
+
return /* @__PURE__ */ React29.createElement(Stack7, { gap: 0.75, ref }, /* @__PURE__ */ React29.createElement(ControlLabel, { infoTooltip }, label), children);
|
|
3230
3247
|
});
|
|
3231
|
-
var Row = React29.forwardRef(
|
|
3232
|
-
({ label, children }, ref) => {
|
|
3233
|
-
return /* @__PURE__ */ React29.createElement(
|
|
3234
|
-
Grid,
|
|
3235
|
-
{
|
|
3236
|
-
container: true,
|
|
3237
|
-
gap: 2,
|
|
3238
|
-
alignItems: "center",
|
|
3239
|
-
flexWrap: "nowrap",
|
|
3240
|
-
ref,
|
|
3241
|
-
"aria-label": `${label} control`
|
|
3242
|
-
},
|
|
3243
|
-
/* @__PURE__ */ React29.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React29.createElement(ControlLabel, null, label)),
|
|
3244
|
-
/* @__PURE__ */ React29.createElement(
|
|
3245
|
-
Grid,
|
|
3246
|
-
{
|
|
3247
|
-
item: true,
|
|
3248
|
-
xs: 6,
|
|
3249
|
-
sx: (theme) => ({
|
|
3250
|
-
width: `calc(50% - ${theme.spacing(2)})`
|
|
3251
|
-
})
|
|
3252
|
-
},
|
|
3253
|
-
children
|
|
3254
|
-
)
|
|
3255
|
-
);
|
|
3256
|
-
}
|
|
3257
|
-
);
|
|
3258
|
-
var Column = React29.forwardRef(
|
|
3259
|
-
({ label, children }, ref) => {
|
|
3260
|
-
return /* @__PURE__ */ React29.createElement(Stack7, { gap: 0.75, ref }, /* @__PURE__ */ React29.createElement(ControlLabel, null, label), children);
|
|
3261
|
-
}
|
|
3262
|
-
);
|
|
3263
3248
|
|
|
3264
3249
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3265
3250
|
var BORDER_COLOR_LABEL = __11("Border color", "elementor");
|
|
@@ -3532,11 +3517,11 @@ var EffectsSection = () => {
|
|
|
3532
3517
|
};
|
|
3533
3518
|
|
|
3534
3519
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3535
|
-
import * as
|
|
3520
|
+
import * as React60 from "react";
|
|
3536
3521
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3537
3522
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3538
3523
|
import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
|
|
3539
|
-
import { __ as
|
|
3524
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
3540
3525
|
|
|
3541
3526
|
// src/hooks/use-computed-style.ts
|
|
3542
3527
|
import { __privateUseListenTo as useListenTo, commandEndEvent, windowEvent } from "@elementor/editor-v1-adapters";
|
|
@@ -3562,8 +3547,89 @@ function useComputedStyle(elementId) {
|
|
|
3562
3547
|
);
|
|
3563
3548
|
}
|
|
3564
3549
|
|
|
3565
|
-
// src/components/style-
|
|
3550
|
+
// src/components/style-tab-collapsible-content.tsx
|
|
3566
3551
|
import * as React41 from "react";
|
|
3552
|
+
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
3553
|
+
|
|
3554
|
+
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
3555
|
+
import * as React40 from "react";
|
|
3556
|
+
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
3557
|
+
import { Stack as Stack8, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
3558
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
3559
|
+
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
3560
|
+
const { id, meta, provider } = useStyle();
|
|
3561
|
+
const snapshot = useStylesInheritanceSnapshot();
|
|
3562
|
+
if (fields.includes("custom_css")) {
|
|
3563
|
+
return /* @__PURE__ */ React40.createElement(CustomCssIndicator, null);
|
|
3564
|
+
}
|
|
3565
|
+
const snapshotFields = Object.fromEntries(
|
|
3566
|
+
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
3567
|
+
);
|
|
3568
|
+
const { hasValues, hasOverrides } = getIndicators(snapshotFields, id ?? "", meta);
|
|
3569
|
+
if (!hasValues && !hasOverrides) {
|
|
3570
|
+
return null;
|
|
3571
|
+
}
|
|
3572
|
+
const hasValueLabel = __18("Has effective styles", "elementor");
|
|
3573
|
+
const hasOverridesLabel = __18("Has overridden styles", "elementor");
|
|
3574
|
+
return /* @__PURE__ */ React40.createElement(Tooltip2, { title: __18("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React40.createElement(Stack8, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React40.createElement(
|
|
3575
|
+
StyleIndicator,
|
|
3576
|
+
{
|
|
3577
|
+
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
3578
|
+
"data-variant": isElementsStylesProvider6(provider.getKey()) ? "local" : "global",
|
|
3579
|
+
role: "listitem",
|
|
3580
|
+
"aria-label": hasValueLabel
|
|
3581
|
+
}
|
|
3582
|
+
), hasOverrides && /* @__PURE__ */ React40.createElement(
|
|
3583
|
+
StyleIndicator,
|
|
3584
|
+
{
|
|
3585
|
+
isOverridden: true,
|
|
3586
|
+
"data-variant": "overridden",
|
|
3587
|
+
role: "listitem",
|
|
3588
|
+
"aria-label": hasOverridesLabel
|
|
3589
|
+
}
|
|
3590
|
+
)));
|
|
3591
|
+
};
|
|
3592
|
+
function getIndicators(snapshotFields, styleId, meta) {
|
|
3593
|
+
let hasValues = false;
|
|
3594
|
+
let hasOverrides = false;
|
|
3595
|
+
Object.values(snapshotFields).forEach((inheritanceChain) => {
|
|
3596
|
+
const currentStyle = getCurrentStyleFromChain(inheritanceChain, styleId, meta);
|
|
3597
|
+
if (!currentStyle) {
|
|
3598
|
+
return;
|
|
3599
|
+
}
|
|
3600
|
+
const [actualStyle] = inheritanceChain;
|
|
3601
|
+
if (currentStyle === actualStyle) {
|
|
3602
|
+
hasValues = true;
|
|
3603
|
+
} else {
|
|
3604
|
+
hasOverrides = true;
|
|
3605
|
+
}
|
|
3606
|
+
});
|
|
3607
|
+
return { hasValues, hasOverrides };
|
|
3608
|
+
}
|
|
3609
|
+
function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
3610
|
+
return chain.find(
|
|
3611
|
+
({
|
|
3612
|
+
style: { id },
|
|
3613
|
+
variant: {
|
|
3614
|
+
meta: { breakpoint, state }
|
|
3615
|
+
}
|
|
3616
|
+
}) => id === styleId && breakpoint === meta.breakpoint && state === meta.state
|
|
3617
|
+
);
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
// src/components/style-tab-collapsible-content.tsx
|
|
3621
|
+
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
3622
|
+
return /* @__PURE__ */ React41.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
3623
|
+
};
|
|
3624
|
+
function getStylesInheritanceIndicators(fields) {
|
|
3625
|
+
if (fields.length === 0) {
|
|
3626
|
+
return null;
|
|
3627
|
+
}
|
|
3628
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React41.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3632
|
+
import * as React43 from "react";
|
|
3567
3633
|
import { ToggleControl as ToggleControl2 } from "@elementor/editor-controls";
|
|
3568
3634
|
import {
|
|
3569
3635
|
JustifyBottomIcon,
|
|
@@ -3574,14 +3640,14 @@ import {
|
|
|
3574
3640
|
JustifyTopIcon
|
|
3575
3641
|
} from "@elementor/icons";
|
|
3576
3642
|
import { withDirection as withDirection3 } from "@elementor/ui";
|
|
3577
|
-
import { __ as
|
|
3643
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
3578
3644
|
|
|
3579
3645
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3580
|
-
import * as
|
|
3646
|
+
import * as React42 from "react";
|
|
3581
3647
|
import { useRef as useRef6 } from "react";
|
|
3582
3648
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
3583
|
-
import { __ as
|
|
3584
|
-
var FLEX_DIRECTION_LABEL =
|
|
3649
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
3650
|
+
var FLEX_DIRECTION_LABEL = __19("Flex direction", "elementor");
|
|
3585
3651
|
var CLOCKWISE_ANGLES = {
|
|
3586
3652
|
row: 0,
|
|
3587
3653
|
column: 90,
|
|
@@ -3603,7 +3669,7 @@ var RotatedIcon = ({
|
|
|
3603
3669
|
}) => {
|
|
3604
3670
|
const rotate = useRef6(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3605
3671
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3606
|
-
return /* @__PURE__ */
|
|
3672
|
+
return /* @__PURE__ */ React42.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3607
3673
|
};
|
|
3608
3674
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3609
3675
|
const { value: direction } = useStylesField("flex-direction", {
|
|
@@ -3624,7 +3690,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3624
3690
|
};
|
|
3625
3691
|
|
|
3626
3692
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3627
|
-
var ALIGN_CONTENT_LABEL =
|
|
3693
|
+
var ALIGN_CONTENT_LABEL = __20("Align content", "elementor");
|
|
3628
3694
|
var StartIcon = withDirection3(JustifyTopIcon);
|
|
3629
3695
|
var EndIcon = withDirection3(JustifyBottomIcon);
|
|
3630
3696
|
var iconProps = {
|
|
@@ -3635,45 +3701,45 @@ var iconProps = {
|
|
|
3635
3701
|
var options = [
|
|
3636
3702
|
{
|
|
3637
3703
|
value: "start",
|
|
3638
|
-
label:
|
|
3639
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3704
|
+
label: __20("Start", "elementor"),
|
|
3705
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3640
3706
|
showTooltip: true
|
|
3641
3707
|
},
|
|
3642
3708
|
{
|
|
3643
3709
|
value: "center",
|
|
3644
|
-
label:
|
|
3645
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3710
|
+
label: __20("Center", "elementor"),
|
|
3711
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
3646
3712
|
showTooltip: true
|
|
3647
3713
|
},
|
|
3648
3714
|
{
|
|
3649
3715
|
value: "end",
|
|
3650
|
-
label:
|
|
3651
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3716
|
+
label: __20("End", "elementor"),
|
|
3717
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3652
3718
|
showTooltip: true
|
|
3653
3719
|
},
|
|
3654
3720
|
{
|
|
3655
3721
|
value: "space-between",
|
|
3656
|
-
label:
|
|
3657
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3722
|
+
label: __20("Space between", "elementor"),
|
|
3723
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
3658
3724
|
showTooltip: true
|
|
3659
3725
|
},
|
|
3660
3726
|
{
|
|
3661
3727
|
value: "space-around",
|
|
3662
|
-
label:
|
|
3663
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3728
|
+
label: __20("Space around", "elementor"),
|
|
3729
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
3664
3730
|
showTooltip: true
|
|
3665
3731
|
},
|
|
3666
3732
|
{
|
|
3667
3733
|
value: "space-evenly",
|
|
3668
|
-
label:
|
|
3669
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3734
|
+
label: __20("Space evenly", "elementor"),
|
|
3735
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
3670
3736
|
showTooltip: true
|
|
3671
3737
|
}
|
|
3672
3738
|
];
|
|
3673
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3739
|
+
var AlignContentField = () => /* @__PURE__ */ React43.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React43.createElement(UiProviders, null, /* @__PURE__ */ React43.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React43.createElement(ToggleControl2, { options, fullWidth: true }))));
|
|
3674
3740
|
|
|
3675
3741
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3676
|
-
import * as
|
|
3742
|
+
import * as React44 from "react";
|
|
3677
3743
|
import { ToggleControl as ToggleControl3 } from "@elementor/editor-controls";
|
|
3678
3744
|
import {
|
|
3679
3745
|
LayoutAlignCenterIcon as CenterIcon2,
|
|
@@ -3682,8 +3748,8 @@ import {
|
|
|
3682
3748
|
LayoutDistributeVerticalIcon as JustifyIcon
|
|
3683
3749
|
} from "@elementor/icons";
|
|
3684
3750
|
import { withDirection as withDirection4 } from "@elementor/ui";
|
|
3685
|
-
import { __ as
|
|
3686
|
-
var ALIGN_ITEMS_LABEL =
|
|
3751
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
3752
|
+
var ALIGN_ITEMS_LABEL = __21("Align items", "elementor");
|
|
3687
3753
|
var StartIcon2 = withDirection4(LayoutAlignLeftIcon);
|
|
3688
3754
|
var EndIcon2 = withDirection4(LayoutAlignRightIcon);
|
|
3689
3755
|
var iconProps2 = {
|
|
@@ -3693,35 +3759,35 @@ var iconProps2 = {
|
|
|
3693
3759
|
var options2 = [
|
|
3694
3760
|
{
|
|
3695
3761
|
value: "start",
|
|
3696
|
-
label:
|
|
3697
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3762
|
+
label: __21("Start", "elementor"),
|
|
3763
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3698
3764
|
showTooltip: true
|
|
3699
3765
|
},
|
|
3700
3766
|
{
|
|
3701
3767
|
value: "center",
|
|
3702
|
-
label:
|
|
3703
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3768
|
+
label: __21("Center", "elementor"),
|
|
3769
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
3704
3770
|
showTooltip: true
|
|
3705
3771
|
},
|
|
3706
3772
|
{
|
|
3707
3773
|
value: "end",
|
|
3708
|
-
label:
|
|
3709
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3774
|
+
label: __21("End", "elementor"),
|
|
3775
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3710
3776
|
showTooltip: true
|
|
3711
3777
|
},
|
|
3712
3778
|
{
|
|
3713
3779
|
value: "stretch",
|
|
3714
|
-
label:
|
|
3715
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3780
|
+
label: __21("Stretch", "elementor"),
|
|
3781
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
3716
3782
|
showTooltip: true
|
|
3717
3783
|
}
|
|
3718
3784
|
];
|
|
3719
3785
|
var AlignItemsField = () => {
|
|
3720
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ React44.createElement(UiProviders, null, /* @__PURE__ */ React44.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React44.createElement(ToggleControl3, { options: options2 }))));
|
|
3721
3787
|
};
|
|
3722
3788
|
|
|
3723
3789
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3724
|
-
import * as
|
|
3790
|
+
import * as React45 from "react";
|
|
3725
3791
|
import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
|
|
3726
3792
|
import {
|
|
3727
3793
|
LayoutAlignCenterIcon as CenterIcon3,
|
|
@@ -3730,8 +3796,8 @@ import {
|
|
|
3730
3796
|
LayoutDistributeVerticalIcon as JustifyIcon2
|
|
3731
3797
|
} from "@elementor/icons";
|
|
3732
3798
|
import { withDirection as withDirection5 } from "@elementor/ui";
|
|
3733
|
-
import { __ as
|
|
3734
|
-
var ALIGN_SELF_LABEL =
|
|
3799
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3800
|
+
var ALIGN_SELF_LABEL = __22("Align self", "elementor");
|
|
3735
3801
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3736
3802
|
row: 90,
|
|
3737
3803
|
"row-reverse": 90,
|
|
@@ -3746,8 +3812,8 @@ var iconProps3 = {
|
|
|
3746
3812
|
var getOptions = (parentStyleDirection) => [
|
|
3747
3813
|
{
|
|
3748
3814
|
value: "start",
|
|
3749
|
-
label:
|
|
3750
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3815
|
+
label: __22("Start", "elementor"),
|
|
3816
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(
|
|
3751
3817
|
RotatedIcon,
|
|
3752
3818
|
{
|
|
3753
3819
|
icon: StartIcon3,
|
|
@@ -3760,8 +3826,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3760
3826
|
},
|
|
3761
3827
|
{
|
|
3762
3828
|
value: "center",
|
|
3763
|
-
label:
|
|
3764
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3829
|
+
label: __22("Center", "elementor"),
|
|
3830
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(
|
|
3765
3831
|
RotatedIcon,
|
|
3766
3832
|
{
|
|
3767
3833
|
icon: CenterIcon3,
|
|
@@ -3774,8 +3840,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3774
3840
|
},
|
|
3775
3841
|
{
|
|
3776
3842
|
value: "end",
|
|
3777
|
-
label:
|
|
3778
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3843
|
+
label: __22("End", "elementor"),
|
|
3844
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(
|
|
3779
3845
|
RotatedIcon,
|
|
3780
3846
|
{
|
|
3781
3847
|
icon: EndIcon3,
|
|
@@ -3788,8 +3854,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3788
3854
|
},
|
|
3789
3855
|
{
|
|
3790
3856
|
value: "stretch",
|
|
3791
|
-
label:
|
|
3792
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3857
|
+
label: __22("Stretch", "elementor"),
|
|
3858
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(
|
|
3793
3859
|
RotatedIcon,
|
|
3794
3860
|
{
|
|
3795
3861
|
icon: JustifyIcon2,
|
|
@@ -3801,10 +3867,10 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3801
3867
|
showTooltip: true
|
|
3802
3868
|
}
|
|
3803
3869
|
];
|
|
3804
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3870
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React45.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React45.createElement(UiProviders, null, /* @__PURE__ */ React45.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React45.createElement(ToggleControl4, { options: getOptions(parentStyleDirection) }))));
|
|
3805
3871
|
|
|
3806
3872
|
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3807
|
-
import * as
|
|
3873
|
+
import * as React46 from "react";
|
|
3808
3874
|
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
3809
3875
|
import {
|
|
3810
3876
|
JustifyBottomIcon as JustifyBottomIcon2,
|
|
@@ -3812,90 +3878,90 @@ import {
|
|
|
3812
3878
|
JustifyTopIcon as JustifyTopIcon2,
|
|
3813
3879
|
LayoutDistributeVerticalIcon as JustifyIcon3
|
|
3814
3880
|
} from "@elementor/icons";
|
|
3815
|
-
import { __ as
|
|
3816
|
-
var ALIGN_SELF_LABEL2 =
|
|
3881
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3882
|
+
var ALIGN_SELF_LABEL2 = __23("Align self", "elementor");
|
|
3817
3883
|
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3818
3884
|
row: 0,
|
|
3819
3885
|
column: -90
|
|
3820
3886
|
};
|
|
3821
|
-
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3887
|
+
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */ React46.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React46.createElement(UiProviders, null, /* @__PURE__ */ React46.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React46.createElement(ToggleControl5, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3822
3888
|
var RotatedIcon2 = ({
|
|
3823
3889
|
icon: Icon,
|
|
3824
3890
|
size,
|
|
3825
3891
|
offset
|
|
3826
|
-
}) => /* @__PURE__ */
|
|
3892
|
+
}) => /* @__PURE__ */ React46.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3827
3893
|
var getOptions2 = (parentStyleDirection) => {
|
|
3828
3894
|
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3829
3895
|
return [
|
|
3830
3896
|
{
|
|
3831
3897
|
value: "start",
|
|
3832
|
-
label:
|
|
3833
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3898
|
+
label: __23("Start", "elementor"),
|
|
3899
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon2, { icon: JustifyTopIcon2, size, offset }),
|
|
3834
3900
|
showTooltip: true
|
|
3835
3901
|
},
|
|
3836
3902
|
{
|
|
3837
3903
|
value: "center",
|
|
3838
|
-
label:
|
|
3839
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3904
|
+
label: __23("Center", "elementor"),
|
|
3905
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon2, { icon: JustifyCenterIcon, size, offset }),
|
|
3840
3906
|
showTooltip: true
|
|
3841
3907
|
},
|
|
3842
3908
|
{
|
|
3843
3909
|
value: "end",
|
|
3844
|
-
label:
|
|
3845
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3910
|
+
label: __23("End", "elementor"),
|
|
3911
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon2, { icon: JustifyBottomIcon2, size, offset }),
|
|
3846
3912
|
showTooltip: true
|
|
3847
3913
|
},
|
|
3848
3914
|
{
|
|
3849
3915
|
value: "stretch",
|
|
3850
|
-
label:
|
|
3851
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3916
|
+
label: __23("Stretch", "elementor"),
|
|
3917
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(RotatedIcon2, { icon: JustifyIcon3, size, offset }),
|
|
3852
3918
|
showTooltip: true
|
|
3853
3919
|
}
|
|
3854
3920
|
];
|
|
3855
3921
|
};
|
|
3856
3922
|
|
|
3857
3923
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3858
|
-
import * as
|
|
3924
|
+
import * as React47 from "react";
|
|
3859
3925
|
import { useMemo as useMemo9 } from "react";
|
|
3860
3926
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
3861
3927
|
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
3862
|
-
import { __ as
|
|
3863
|
-
var DISPLAY_LABEL =
|
|
3928
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3929
|
+
var DISPLAY_LABEL = __24("Display", "elementor");
|
|
3864
3930
|
var displayFieldItems = [
|
|
3865
3931
|
{
|
|
3866
3932
|
value: "block",
|
|
3867
|
-
renderContent: () =>
|
|
3868
|
-
label:
|
|
3933
|
+
renderContent: () => __24("Block", "elementor"),
|
|
3934
|
+
label: __24("Block", "elementor"),
|
|
3869
3935
|
showTooltip: true
|
|
3870
3936
|
},
|
|
3871
3937
|
{
|
|
3872
3938
|
value: "flex",
|
|
3873
|
-
renderContent: () =>
|
|
3874
|
-
label:
|
|
3939
|
+
renderContent: () => __24("Flex", "elementor"),
|
|
3940
|
+
label: __24("Flex", "elementor"),
|
|
3875
3941
|
showTooltip: true
|
|
3876
3942
|
},
|
|
3877
3943
|
{
|
|
3878
3944
|
value: "grid",
|
|
3879
|
-
renderContent: () =>
|
|
3880
|
-
label:
|
|
3945
|
+
renderContent: () => __24("Grid", "elementor"),
|
|
3946
|
+
label: __24("Grid", "elementor"),
|
|
3881
3947
|
showTooltip: true
|
|
3882
3948
|
},
|
|
3883
3949
|
{
|
|
3884
3950
|
value: "none",
|
|
3885
|
-
renderContent: () =>
|
|
3886
|
-
label:
|
|
3951
|
+
renderContent: () => __24("None", "elementor"),
|
|
3952
|
+
label: __24("None", "elementor"),
|
|
3887
3953
|
showTooltip: true
|
|
3888
3954
|
},
|
|
3889
3955
|
{
|
|
3890
3956
|
value: "inline-block",
|
|
3891
|
-
renderContent: () =>
|
|
3892
|
-
label:
|
|
3957
|
+
renderContent: () => __24("In-blk", "elementor"),
|
|
3958
|
+
label: __24("Inline-block", "elementor"),
|
|
3893
3959
|
showTooltip: true
|
|
3894
3960
|
},
|
|
3895
3961
|
{
|
|
3896
3962
|
value: "inline-flex",
|
|
3897
|
-
renderContent: () =>
|
|
3898
|
-
label:
|
|
3963
|
+
renderContent: () => __24("In-flx", "elementor"),
|
|
3964
|
+
label: __24("Inline-flex", "elementor"),
|
|
3899
3965
|
showTooltip: true
|
|
3900
3966
|
}
|
|
3901
3967
|
];
|
|
@@ -3906,55 +3972,55 @@ var DisplayField = () => {
|
|
|
3906
3972
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3907
3973
|
[isGridActive]
|
|
3908
3974
|
);
|
|
3909
|
-
return /* @__PURE__ */
|
|
3975
|
+
return /* @__PURE__ */ React47.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React47.createElement(ToggleControl6, { options: items3, maxItems: 4, fullWidth: true })));
|
|
3910
3976
|
};
|
|
3911
3977
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3912
3978
|
|
|
3913
3979
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3914
|
-
import * as
|
|
3980
|
+
import * as React48 from "react";
|
|
3915
3981
|
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
3916
3982
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
3917
3983
|
import { withDirection as withDirection6 } from "@elementor/ui";
|
|
3918
|
-
import { __ as
|
|
3919
|
-
var FLEX_DIRECTION_LABEL2 =
|
|
3984
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
3985
|
+
var FLEX_DIRECTION_LABEL2 = __25("Direction", "elementor");
|
|
3920
3986
|
var options3 = [
|
|
3921
3987
|
{
|
|
3922
3988
|
value: "row",
|
|
3923
|
-
label:
|
|
3989
|
+
label: __25("Row", "elementor"),
|
|
3924
3990
|
renderContent: ({ size }) => {
|
|
3925
3991
|
const StartIcon7 = withDirection6(ArrowRightIcon);
|
|
3926
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ React48.createElement(StartIcon7, { fontSize: size });
|
|
3927
3993
|
},
|
|
3928
3994
|
showTooltip: true
|
|
3929
3995
|
},
|
|
3930
3996
|
{
|
|
3931
3997
|
value: "column",
|
|
3932
|
-
label:
|
|
3933
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3998
|
+
label: __25("Column", "elementor"),
|
|
3999
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
3934
4000
|
showTooltip: true
|
|
3935
4001
|
},
|
|
3936
4002
|
{
|
|
3937
4003
|
value: "row-reverse",
|
|
3938
|
-
label:
|
|
4004
|
+
label: __25("Reversed row", "elementor"),
|
|
3939
4005
|
renderContent: ({ size }) => {
|
|
3940
4006
|
const EndIcon6 = withDirection6(ArrowLeftIcon);
|
|
3941
|
-
return /* @__PURE__ */
|
|
4007
|
+
return /* @__PURE__ */ React48.createElement(EndIcon6, { fontSize: size });
|
|
3942
4008
|
},
|
|
3943
4009
|
showTooltip: true
|
|
3944
4010
|
},
|
|
3945
4011
|
{
|
|
3946
4012
|
value: "column-reverse",
|
|
3947
|
-
label:
|
|
3948
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4013
|
+
label: __25("Reversed column", "elementor"),
|
|
4014
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
3949
4015
|
showTooltip: true
|
|
3950
4016
|
}
|
|
3951
4017
|
];
|
|
3952
4018
|
var FlexDirectionField = () => {
|
|
3953
|
-
return /* @__PURE__ */
|
|
4019
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React48.createElement(UiProviders, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React48.createElement(ToggleControl7, { options: options3 }))));
|
|
3954
4020
|
};
|
|
3955
4021
|
|
|
3956
4022
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3957
|
-
import * as
|
|
4023
|
+
import * as React49 from "react";
|
|
3958
4024
|
import { useEffect as useEffect5, useMemo as useMemo10, useState as useState7 } from "react";
|
|
3959
4025
|
import {
|
|
3960
4026
|
ControlToggleButtonGroup,
|
|
@@ -3963,8 +4029,8 @@ import {
|
|
|
3963
4029
|
} from "@elementor/editor-controls";
|
|
3964
4030
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
3965
4031
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
3966
|
-
import { __ as
|
|
3967
|
-
var ORDER_LABEL =
|
|
4032
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
4033
|
+
var ORDER_LABEL = __26("Order", "elementor");
|
|
3968
4034
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3969
4035
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3970
4036
|
var FIRST = "first";
|
|
@@ -3977,25 +4043,25 @@ var orderValueMap = {
|
|
|
3977
4043
|
var items = [
|
|
3978
4044
|
{
|
|
3979
4045
|
value: FIRST,
|
|
3980
|
-
label:
|
|
3981
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4046
|
+
label: __26("First", "elementor"),
|
|
4047
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
3982
4048
|
showTooltip: true
|
|
3983
4049
|
},
|
|
3984
4050
|
{
|
|
3985
4051
|
value: LAST,
|
|
3986
|
-
label:
|
|
3987
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4052
|
+
label: __26("Last", "elementor"),
|
|
4053
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
3988
4054
|
showTooltip: true
|
|
3989
4055
|
},
|
|
3990
4056
|
{
|
|
3991
4057
|
value: CUSTOM,
|
|
3992
|
-
label:
|
|
3993
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4058
|
+
label: __26("Custom", "elementor"),
|
|
4059
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(PencilIcon, { fontSize: size }),
|
|
3994
4060
|
showTooltip: true
|
|
3995
4061
|
}
|
|
3996
4062
|
];
|
|
3997
4063
|
var FlexOrderField = () => {
|
|
3998
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(SectionContent, null, /* @__PURE__ */ React49.createElement(FlexOrderFieldContent, null))));
|
|
3999
4065
|
};
|
|
4000
4066
|
function FlexOrderFieldContent() {
|
|
4001
4067
|
const {
|
|
@@ -4040,7 +4106,7 @@ function FlexOrderFieldContent() {
|
|
|
4040
4106
|
};
|
|
4041
4107
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
4042
4108
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
4043
|
-
return /* @__PURE__ */
|
|
4109
|
+
return /* @__PURE__ */ React49.createElement(React49.Fragment, null, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React49.createElement(
|
|
4044
4110
|
ControlToggleButtonGroup,
|
|
4045
4111
|
{
|
|
4046
4112
|
items,
|
|
@@ -4050,7 +4116,7 @@ function FlexOrderFieldContent() {
|
|
|
4050
4116
|
placeholder: groupPlaceholder,
|
|
4051
4117
|
disabled: !canEdit
|
|
4052
4118
|
}
|
|
4053
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4119
|
+
)), isCustomVisible && /* @__PURE__ */ React49.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React49.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(ControlLabel, null, __26("Custom order", "elementor"))), /* @__PURE__ */ React49.createElement(Grid2, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React49.createElement(
|
|
4054
4120
|
NumberControl2,
|
|
4055
4121
|
{
|
|
4056
4122
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4074,7 +4140,7 @@ var getGroupControlValue = (order) => {
|
|
|
4074
4140
|
};
|
|
4075
4141
|
|
|
4076
4142
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
4077
|
-
import * as
|
|
4143
|
+
import * as React50 from "react";
|
|
4078
4144
|
import { useEffect as useEffect6, useMemo as useMemo11, useRef as useRef7, useState as useState8 } from "react";
|
|
4079
4145
|
import {
|
|
4080
4146
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
@@ -4086,31 +4152,31 @@ import {
|
|
|
4086
4152
|
} from "@elementor/editor-controls";
|
|
4087
4153
|
import { flexPropTypeUtil, numberPropTypeUtil as numberPropTypeUtil2, sizePropTypeUtil as sizePropTypeUtil3 } from "@elementor/editor-props";
|
|
4088
4154
|
import { ExpandIcon, PencilIcon as PencilIcon2, ShrinkIcon } from "@elementor/icons";
|
|
4089
|
-
import { __ as
|
|
4090
|
-
var FLEX_SIZE_LABEL =
|
|
4155
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
4156
|
+
var FLEX_SIZE_LABEL = __27("Flex Size", "elementor");
|
|
4091
4157
|
var DEFAULT = 1;
|
|
4092
4158
|
var items2 = [
|
|
4093
4159
|
{
|
|
4094
4160
|
value: "flex-grow",
|
|
4095
|
-
label:
|
|
4096
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4161
|
+
label: __27("Grow", "elementor"),
|
|
4162
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ExpandIcon, { fontSize: size }),
|
|
4097
4163
|
showTooltip: true
|
|
4098
4164
|
},
|
|
4099
4165
|
{
|
|
4100
4166
|
value: "flex-shrink",
|
|
4101
|
-
label:
|
|
4102
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4167
|
+
label: __27("Shrink", "elementor"),
|
|
4168
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ShrinkIcon, { fontSize: size }),
|
|
4103
4169
|
showTooltip: true
|
|
4104
4170
|
},
|
|
4105
4171
|
{
|
|
4106
4172
|
value: "custom",
|
|
4107
|
-
label:
|
|
4108
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4173
|
+
label: __27("Custom", "elementor"),
|
|
4174
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(PencilIcon2, { fontSize: size }),
|
|
4109
4175
|
showTooltip: true
|
|
4110
4176
|
}
|
|
4111
4177
|
];
|
|
4112
4178
|
var FlexSizeField = () => {
|
|
4113
|
-
return /* @__PURE__ */
|
|
4179
|
+
return /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(SectionContent, null, /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(FlexSizeFieldContent, null))));
|
|
4114
4180
|
};
|
|
4115
4181
|
var FlexSizeFieldContent = () => {
|
|
4116
4182
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -4139,7 +4205,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4139
4205
|
};
|
|
4140
4206
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4141
4207
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4142
|
-
return /* @__PURE__ */
|
|
4208
|
+
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React50.createElement(
|
|
4143
4209
|
ControlToggleButtonGroup2,
|
|
4144
4210
|
{
|
|
4145
4211
|
value: activeGroup ?? null,
|
|
@@ -4149,7 +4215,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4149
4215
|
items: items2,
|
|
4150
4216
|
exclusive: true
|
|
4151
4217
|
}
|
|
4152
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4218
|
+
)), isCustomVisible && /* @__PURE__ */ React50.createElement(FlexCustomField, null));
|
|
4153
4219
|
};
|
|
4154
4220
|
function extractFlexValues(source) {
|
|
4155
4221
|
return {
|
|
@@ -4191,7 +4257,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4191
4257
|
var FlexCustomField = () => {
|
|
4192
4258
|
const flexBasisRowRef = useRef7(null);
|
|
4193
4259
|
const context = useBoundProp3(flexPropTypeUtil);
|
|
4194
|
-
return /* @__PURE__ */
|
|
4260
|
+
return /* @__PURE__ */ React50.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: __27("Grow", "elementor") }, /* @__PURE__ */ React50.createElement(PropKeyProvider3, { bind: "flexGrow" }, /* @__PURE__ */ React50.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: __27("Shrink", "elementor") }, /* @__PURE__ */ React50.createElement(PropKeyProvider3, { bind: "flexShrink" }, /* @__PURE__ */ React50.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: __27("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React50.createElement(PropKeyProvider3, { bind: "flexBasis" }, /* @__PURE__ */ React50.createElement(SizeControl3, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4195
4261
|
};
|
|
4196
4262
|
var getActiveGroup = ({
|
|
4197
4263
|
grow,
|
|
@@ -4215,34 +4281,34 @@ var getActiveGroup = ({
|
|
|
4215
4281
|
};
|
|
4216
4282
|
|
|
4217
4283
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4218
|
-
import * as
|
|
4284
|
+
import * as React51 from "react";
|
|
4219
4285
|
import { GapControl } from "@elementor/editor-controls";
|
|
4220
|
-
import { __ as
|
|
4221
|
-
var GAPS_LABEL =
|
|
4286
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
4287
|
+
var GAPS_LABEL = __28("Gaps", "elementor");
|
|
4222
4288
|
var GapControlField = () => {
|
|
4223
|
-
return /* @__PURE__ */
|
|
4289
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React51.createElement(GapControl, { label: GAPS_LABEL }));
|
|
4224
4290
|
};
|
|
4225
4291
|
|
|
4226
4292
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
4227
|
-
import * as
|
|
4293
|
+
import * as React52 from "react";
|
|
4228
4294
|
import { ControlToggleButtonGroup as ControlToggleButtonGroup3 } from "@elementor/editor-controls";
|
|
4229
4295
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon3, ArrowRightIcon as ArrowRightIcon2, LayoutDashboardIcon } from "@elementor/icons";
|
|
4230
|
-
import { Grid as Grid3, ToggleButton, Tooltip, withDirection as withDirection7 } from "@elementor/ui";
|
|
4231
|
-
import { __ as
|
|
4232
|
-
var AUTO_FLOW_LABEL =
|
|
4233
|
-
var DENSE_LABEL =
|
|
4296
|
+
import { Grid as Grid3, ToggleButton, Tooltip as Tooltip3, withDirection as withDirection7 } from "@elementor/ui";
|
|
4297
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
4298
|
+
var AUTO_FLOW_LABEL = __29("Auto flow", "elementor");
|
|
4299
|
+
var DENSE_LABEL = __29("Dense", "elementor");
|
|
4234
4300
|
var StartIcon4 = withDirection7(ArrowRightIcon2);
|
|
4235
4301
|
var directionOptions = [
|
|
4236
4302
|
{
|
|
4237
4303
|
value: "row",
|
|
4238
|
-
label:
|
|
4239
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4304
|
+
label: __29("Row", "elementor"),
|
|
4305
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(StartIcon4, { fontSize: size }),
|
|
4240
4306
|
showTooltip: true
|
|
4241
4307
|
},
|
|
4242
4308
|
{
|
|
4243
4309
|
value: "column",
|
|
4244
|
-
label:
|
|
4245
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4310
|
+
label: __29("Column", "elementor"),
|
|
4311
|
+
renderContent: ({ size }) => /* @__PURE__ */ React52.createElement(ArrowDownSmallIcon3, { fontSize: size }),
|
|
4246
4312
|
showTooltip: true
|
|
4247
4313
|
}
|
|
4248
4314
|
];
|
|
@@ -4271,7 +4337,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4271
4337
|
const handleDenseToggle = () => {
|
|
4272
4338
|
setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
|
|
4273
4339
|
};
|
|
4274
|
-
return /* @__PURE__ */
|
|
4340
|
+
return /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React52.createElement(Grid3, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React52.createElement(Grid3, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React52.createElement(
|
|
4275
4341
|
ControlToggleButtonGroup3,
|
|
4276
4342
|
{
|
|
4277
4343
|
items: directionOptions,
|
|
@@ -4280,7 +4346,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4280
4346
|
exclusive: true,
|
|
4281
4347
|
fullWidth: true
|
|
4282
4348
|
}
|
|
4283
|
-
)), /* @__PURE__ */
|
|
4349
|
+
)), /* @__PURE__ */ React52.createElement(Grid3, { item: true }, /* @__PURE__ */ React52.createElement(Tooltip3, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React52.createElement(
|
|
4284
4350
|
ToggleButton,
|
|
4285
4351
|
{
|
|
4286
4352
|
value: "dense",
|
|
@@ -4289,13 +4355,59 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4289
4355
|
size: "tiny",
|
|
4290
4356
|
"aria-label": DENSE_LABEL
|
|
4291
4357
|
},
|
|
4292
|
-
/* @__PURE__ */
|
|
4358
|
+
/* @__PURE__ */ React52.createElement(LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4293
4359
|
)))));
|
|
4294
4360
|
};
|
|
4295
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4361
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React52.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React52.createElement(UiProviders, null, /* @__PURE__ */ React52.createElement(GridAutoFlowFieldContent, null)));
|
|
4362
|
+
|
|
4363
|
+
// src/components/style-sections/layout-section/grid-auto-track-fields.tsx
|
|
4364
|
+
import * as React53 from "react";
|
|
4365
|
+
import { useRef as useRef8 } from "react";
|
|
4366
|
+
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
4367
|
+
import { Stack as Stack9 } from "@elementor/ui";
|
|
4368
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4369
|
+
var DEFAULT_UNIT = "fr";
|
|
4370
|
+
var AUTO_ROWS_LABEL = __30("Auto rows", "elementor");
|
|
4371
|
+
var AUTO_COLUMNS_LABEL = __30("Auto columns", "elementor");
|
|
4372
|
+
var AUTO_ROWS_TOOLTIP = __30(
|
|
4373
|
+
"Set the size for new rows created automatically when content exceeds the defined grid.",
|
|
4374
|
+
"elementor"
|
|
4375
|
+
);
|
|
4376
|
+
var AUTO_COLUMNS_TOOLTIP = __30(
|
|
4377
|
+
"Set the size for new columns created automatically when content exceeds the defined grid.",
|
|
4378
|
+
"elementor"
|
|
4379
|
+
);
|
|
4380
|
+
var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__ */ React53.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { infoTooltip, label, ref: rowRef }, /* @__PURE__ */ React53.createElement(
|
|
4381
|
+
SizeControl4,
|
|
4382
|
+
{
|
|
4383
|
+
enablePropTypeUnits: true,
|
|
4384
|
+
defaultUnit: DEFAULT_UNIT,
|
|
4385
|
+
anchorRef: rowRef
|
|
4386
|
+
}
|
|
4387
|
+
)));
|
|
4388
|
+
var GridAutoTrackFields = () => {
|
|
4389
|
+
const rowRef = useRef8(null);
|
|
4390
|
+
return /* @__PURE__ */ React53.createElement(Stack9, { gap: 2, pt: 2, ref: rowRef }, /* @__PURE__ */ React53.createElement(
|
|
4391
|
+
GridAutoTrackField,
|
|
4392
|
+
{
|
|
4393
|
+
bind: "grid-auto-rows",
|
|
4394
|
+
infoTooltip: AUTO_ROWS_TOOLTIP,
|
|
4395
|
+
label: AUTO_ROWS_LABEL,
|
|
4396
|
+
rowRef
|
|
4397
|
+
}
|
|
4398
|
+
), /* @__PURE__ */ React53.createElement(
|
|
4399
|
+
GridAutoTrackField,
|
|
4400
|
+
{
|
|
4401
|
+
bind: "grid-auto-columns",
|
|
4402
|
+
infoTooltip: AUTO_COLUMNS_TOOLTIP,
|
|
4403
|
+
label: AUTO_COLUMNS_LABEL,
|
|
4404
|
+
rowRef
|
|
4405
|
+
}
|
|
4406
|
+
));
|
|
4407
|
+
};
|
|
4296
4408
|
|
|
4297
4409
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4298
|
-
import * as
|
|
4410
|
+
import * as React54 from "react";
|
|
4299
4411
|
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
4300
4412
|
import {
|
|
4301
4413
|
LayoutAlignCenterIcon as CenterIcon4,
|
|
@@ -4304,53 +4416,53 @@ import {
|
|
|
4304
4416
|
LayoutDistributeVerticalIcon as StretchIcon
|
|
4305
4417
|
} from "@elementor/icons";
|
|
4306
4418
|
import { withDirection as withDirection8 } from "@elementor/ui";
|
|
4307
|
-
import { __ as
|
|
4308
|
-
var JUSTIFY_ITEMS_LABEL =
|
|
4419
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
4420
|
+
var JUSTIFY_ITEMS_LABEL = __31("Justify items", "elementor");
|
|
4309
4421
|
var StartIcon5 = withDirection8(LayoutAlignLeftIcon3);
|
|
4310
4422
|
var EndIcon4 = withDirection8(LayoutAlignRightIcon3);
|
|
4311
4423
|
var options4 = [
|
|
4312
4424
|
{
|
|
4313
4425
|
value: "start",
|
|
4314
|
-
label:
|
|
4315
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4426
|
+
label: __31("Start", "elementor"),
|
|
4427
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(StartIcon5, { fontSize: size }),
|
|
4316
4428
|
showTooltip: true
|
|
4317
4429
|
},
|
|
4318
4430
|
{
|
|
4319
4431
|
value: "center",
|
|
4320
|
-
label:
|
|
4321
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4432
|
+
label: __31("Center", "elementor"),
|
|
4433
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(CenterIcon4, { fontSize: size }),
|
|
4322
4434
|
showTooltip: true
|
|
4323
4435
|
},
|
|
4324
4436
|
{
|
|
4325
4437
|
value: "end",
|
|
4326
|
-
label:
|
|
4327
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4438
|
+
label: __31("End", "elementor"),
|
|
4439
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(EndIcon4, { fontSize: size }),
|
|
4328
4440
|
showTooltip: true
|
|
4329
4441
|
},
|
|
4330
4442
|
{
|
|
4331
4443
|
value: "stretch",
|
|
4332
|
-
label:
|
|
4333
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4444
|
+
label: __31("Stretch", "elementor"),
|
|
4445
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(StretchIcon, { fontSize: size }),
|
|
4334
4446
|
showTooltip: true
|
|
4335
4447
|
}
|
|
4336
4448
|
];
|
|
4337
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4449
|
+
var GridJustifyItemsField = () => /* @__PURE__ */ React54.createElement(StylesField, { bind: "justify-items", propDisplayName: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React54.createElement(UiProviders, null, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { label: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React54.createElement(ToggleControl8, { options: options4 }))));
|
|
4338
4450
|
|
|
4339
4451
|
// src/components/style-sections/layout-section/grid-outline-field.tsx
|
|
4340
|
-
import * as
|
|
4452
|
+
import * as React55 from "react";
|
|
4341
4453
|
import { SwitchControl as SwitchControl2 } from "@elementor/editor-controls";
|
|
4342
|
-
import { __ as
|
|
4343
|
-
var GRID_OUTLINE_LABEL =
|
|
4454
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
4455
|
+
var GRID_OUTLINE_LABEL = __32("Show Grid Outline", "elementor");
|
|
4344
4456
|
var GridOutlineField = () => {
|
|
4345
|
-
return /* @__PURE__ */
|
|
4457
|
+
return /* @__PURE__ */ React55.createElement(SettingsField, { bind: "grid_outline", propDisplayName: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React55.createElement(SwitchControl2, null)));
|
|
4346
4458
|
};
|
|
4347
4459
|
|
|
4348
4460
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4349
|
-
import * as
|
|
4350
|
-
import { useRef as
|
|
4461
|
+
import * as React56 from "react";
|
|
4462
|
+
import { useRef as useRef9 } from "react";
|
|
4351
4463
|
import { ControlActions, createControl, SizeComponent, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
|
|
4352
4464
|
import { Grid as Grid4 } from "@elementor/ui";
|
|
4353
|
-
import { __ as
|
|
4465
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
4354
4466
|
|
|
4355
4467
|
// src/components/style-sections/layout-section/utils/grid-track-value.ts
|
|
4356
4468
|
import {
|
|
@@ -4447,8 +4559,8 @@ var unitOf = (v, fallback = FR) => {
|
|
|
4447
4559
|
};
|
|
4448
4560
|
|
|
4449
4561
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4450
|
-
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */
|
|
4451
|
-
var GridTrackSizeInput = createControl((props) => /* @__PURE__ */
|
|
4562
|
+
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */ React56.createElement(ControlActions, null, children);
|
|
4563
|
+
var GridTrackSizeInput = createControl((props) => /* @__PURE__ */ React56.createElement(
|
|
4452
4564
|
SizeComponent,
|
|
4453
4565
|
{
|
|
4454
4566
|
units: UNITS,
|
|
@@ -4468,7 +4580,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4468
4580
|
history: { propDisplayName: label }
|
|
4469
4581
|
});
|
|
4470
4582
|
const { placeholder: inheritedPlaceholder } = useBoundProp4();
|
|
4471
|
-
const anchorRef =
|
|
4583
|
+
const anchorRef = useRef9(null);
|
|
4472
4584
|
const local = parseValue(value);
|
|
4473
4585
|
const inherited = parseValue(inheritedPlaceholder);
|
|
4474
4586
|
const displayValue = local.kind !== "empty" ? toSizeInput(local) : toSizeInput(EMPTY, unitOf(inherited));
|
|
@@ -4480,7 +4592,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4480
4592
|
}
|
|
4481
4593
|
setValue(toPropValue(next));
|
|
4482
4594
|
};
|
|
4483
|
-
return /* @__PURE__ */
|
|
4595
|
+
return /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React56.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React56.createElement(
|
|
4484
4596
|
GridTrackSizeInput,
|
|
4485
4597
|
{
|
|
4486
4598
|
value: displayValue,
|
|
@@ -4490,22 +4602,22 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4490
4602
|
}
|
|
4491
4603
|
)));
|
|
4492
4604
|
};
|
|
4493
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4494
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4605
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React56.createElement(UiProviders, null, /* @__PURE__ */ React56.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React56.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4606
|
+
var GridSizeFields = () => /* @__PURE__ */ React56.createElement(Grid4, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React56.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(GridTrackField, { cssProp: "grid-template-columns", label: __33("Columns", "elementor") })), /* @__PURE__ */ React56.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(GridTrackField, { cssProp: "grid-template-rows", label: __33("Rows", "elementor") })));
|
|
4495
4607
|
|
|
4496
4608
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4497
|
-
import * as
|
|
4609
|
+
import * as React57 from "react";
|
|
4498
4610
|
import { GridSpanControl } from "@elementor/editor-controls";
|
|
4499
4611
|
import { Grid as Grid5 } from "@elementor/ui";
|
|
4500
|
-
import { __ as
|
|
4612
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
4501
4613
|
var GridSpanFieldContent = ({ label }) => {
|
|
4502
|
-
return /* @__PURE__ */
|
|
4614
|
+
return /* @__PURE__ */ React57.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React57.createElement(GridSpanControl, null));
|
|
4503
4615
|
};
|
|
4504
|
-
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4505
|
-
var GridSpanFields = () => /* @__PURE__ */
|
|
4616
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React57.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4617
|
+
var GridSpanFields = () => /* @__PURE__ */ React57.createElement(Grid5, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridSpanField, { cssProp: "grid-column", label: __34("Grid column", "elementor") })), /* @__PURE__ */ React57.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridSpanField, { cssProp: "grid-row", label: __34("Grid row", "elementor") })));
|
|
4506
4618
|
|
|
4507
4619
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4508
|
-
import * as
|
|
4620
|
+
import * as React58 from "react";
|
|
4509
4621
|
import { ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
4510
4622
|
import {
|
|
4511
4623
|
JustifyBottomIcon as JustifyBottomIcon3,
|
|
@@ -4516,8 +4628,8 @@ import {
|
|
|
4516
4628
|
JustifyTopIcon as JustifyTopIcon3
|
|
4517
4629
|
} from "@elementor/icons";
|
|
4518
4630
|
import { withDirection as withDirection9 } from "@elementor/ui";
|
|
4519
|
-
import { __ as
|
|
4520
|
-
var JUSTIFY_CONTENT_LABEL =
|
|
4631
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
4632
|
+
var JUSTIFY_CONTENT_LABEL = __35("Justify content", "elementor");
|
|
4521
4633
|
var StartIcon6 = withDirection9(JustifyTopIcon3);
|
|
4522
4634
|
var EndIcon5 = withDirection9(JustifyBottomIcon3);
|
|
4523
4635
|
var iconProps4 = {
|
|
@@ -4527,76 +4639,76 @@ var iconProps4 = {
|
|
|
4527
4639
|
var options5 = [
|
|
4528
4640
|
{
|
|
4529
4641
|
value: "flex-start",
|
|
4530
|
-
label:
|
|
4531
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4642
|
+
label: __35("Start", "elementor"),
|
|
4643
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4532
4644
|
showTooltip: true
|
|
4533
4645
|
},
|
|
4534
4646
|
{
|
|
4535
4647
|
value: "center",
|
|
4536
|
-
label:
|
|
4537
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4648
|
+
label: __35("Center", "elementor"),
|
|
4649
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: CenterIcon5, size, ...iconProps4 }),
|
|
4538
4650
|
showTooltip: true
|
|
4539
4651
|
},
|
|
4540
4652
|
{
|
|
4541
4653
|
value: "flex-end",
|
|
4542
|
-
label:
|
|
4543
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4654
|
+
label: __35("End", "elementor"),
|
|
4655
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4544
4656
|
showTooltip: true
|
|
4545
4657
|
},
|
|
4546
4658
|
{
|
|
4547
4659
|
value: "space-between",
|
|
4548
|
-
label:
|
|
4549
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4660
|
+
label: __35("Space between", "elementor"),
|
|
4661
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
4550
4662
|
showTooltip: true
|
|
4551
4663
|
},
|
|
4552
4664
|
{
|
|
4553
4665
|
value: "space-around",
|
|
4554
|
-
label:
|
|
4555
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4666
|
+
label: __35("Space around", "elementor"),
|
|
4667
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
4556
4668
|
showTooltip: true
|
|
4557
4669
|
},
|
|
4558
4670
|
{
|
|
4559
4671
|
value: "space-evenly",
|
|
4560
|
-
label:
|
|
4561
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4672
|
+
label: __35("Space evenly", "elementor"),
|
|
4673
|
+
renderContent: ({ size }) => /* @__PURE__ */ React58.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
4562
4674
|
showTooltip: true
|
|
4563
4675
|
}
|
|
4564
4676
|
];
|
|
4565
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4677
|
+
var JustifyContentField = () => /* @__PURE__ */ React58.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React58.createElement(ToggleControl9, { options: options5, fullWidth: true }))));
|
|
4566
4678
|
|
|
4567
4679
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4568
|
-
import * as
|
|
4680
|
+
import * as React59 from "react";
|
|
4569
4681
|
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
4570
4682
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4571
|
-
import { __ as
|
|
4572
|
-
var FLEX_WRAP_LABEL =
|
|
4683
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
4684
|
+
var FLEX_WRAP_LABEL = __36("Wrap", "elementor");
|
|
4573
4685
|
var options6 = [
|
|
4574
4686
|
{
|
|
4575
4687
|
value: "nowrap",
|
|
4576
|
-
label:
|
|
4577
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4688
|
+
label: __36("No wrap", "elementor"),
|
|
4689
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(ArrowRightIcon3, { fontSize: size }),
|
|
4578
4690
|
showTooltip: true
|
|
4579
4691
|
},
|
|
4580
4692
|
{
|
|
4581
4693
|
value: "wrap",
|
|
4582
|
-
label:
|
|
4583
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4694
|
+
label: __36("Wrap", "elementor"),
|
|
4695
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(ArrowBackIcon, { fontSize: size }),
|
|
4584
4696
|
showTooltip: true
|
|
4585
4697
|
},
|
|
4586
4698
|
{
|
|
4587
4699
|
value: "wrap-reverse",
|
|
4588
|
-
label:
|
|
4589
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4700
|
+
label: __36("Reversed wrap", "elementor"),
|
|
4701
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
4590
4702
|
showTooltip: true
|
|
4591
4703
|
}
|
|
4592
4704
|
];
|
|
4593
4705
|
var WrapField = () => {
|
|
4594
|
-
return /* @__PURE__ */
|
|
4706
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React59.createElement(UiProviders, null, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React59.createElement(ToggleControl10, { options: options6 }))));
|
|
4595
4707
|
};
|
|
4596
4708
|
|
|
4597
4709
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4598
|
-
var DISPLAY_LABEL2 =
|
|
4599
|
-
var FLEX_WRAP_LABEL2 =
|
|
4710
|
+
var DISPLAY_LABEL2 = __37("Display", "elementor");
|
|
4711
|
+
var FLEX_WRAP_LABEL2 = __37("Flex wrap", "elementor");
|
|
4600
4712
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4601
4713
|
var LayoutSection = () => {
|
|
4602
4714
|
const { value: display } = useStylesField("display", {
|
|
@@ -4618,17 +4730,17 @@ var LayoutSection = () => {
|
|
|
4618
4730
|
}
|
|
4619
4731
|
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4620
4732
|
};
|
|
4621
|
-
return /* @__PURE__ */
|
|
4733
|
+
return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React60.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React60.createElement(FlexChildFields, { parentStyleDirection: getParentStyleDirection() }), isGridExperimentActive && isDisplayGrid && /* @__PURE__ */ React60.createElement(GridFields, null), isGridExperimentActive && "grid" === parentStyle?.display && /* @__PURE__ */ React60.createElement(GridChildFields, { parentStyleDirection: getParentStyleDirection() }));
|
|
4622
4734
|
};
|
|
4623
4735
|
var FlexFields = () => {
|
|
4624
4736
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4625
4737
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4626
4738
|
});
|
|
4627
|
-
return /* @__PURE__ */
|
|
4739
|
+
return /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(FlexDirectionField, null), /* @__PURE__ */ React60.createElement(JustifyContentField, null), /* @__PURE__ */ React60.createElement(AlignItemsField, null), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(GapControlField, null), /* @__PURE__ */ React60.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React60.createElement(AlignContentField, null));
|
|
4628
4740
|
};
|
|
4629
|
-
var GridFields = () => /* @__PURE__ */
|
|
4630
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4631
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4741
|
+
var GridFields = () => /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(GridOutlineField, null), /* @__PURE__ */ React60.createElement(GridSizeFields, null), /* @__PURE__ */ React60.createElement(GridAutoFlowField, null), /* @__PURE__ */ React60.createElement(StyleTabCollapsibleContent, { fields: ["grid-auto-rows", "grid-auto-columns"] }, /* @__PURE__ */ React60.createElement(GridAutoTrackFields, null)), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(GapControlField, null), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React60.createElement(AlignItemsField, null));
|
|
4742
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(ControlFormLabel2, null, __37("Flex child", "elementor")), /* @__PURE__ */ React60.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React60.createElement(FlexOrderField, null), /* @__PURE__ */ React60.createElement(FlexSizeField, null));
|
|
4743
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(ControlFormLabel2, null, __37("Grid child", "elementor")), /* @__PURE__ */ React60.createElement(GridSpanFields, null), /* @__PURE__ */ React60.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React60.createElement(FlexOrderField, null));
|
|
4632
4744
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4633
4745
|
const value = display?.value ?? local?.value;
|
|
4634
4746
|
if (!value) {
|
|
@@ -4638,40 +4750,40 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4638
4750
|
};
|
|
4639
4751
|
|
|
4640
4752
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4641
|
-
import * as
|
|
4642
|
-
import { useEffect as useEffect7, useRef as
|
|
4753
|
+
import * as React65 from "react";
|
|
4754
|
+
import { useEffect as useEffect7, useRef as useRef12 } from "react";
|
|
4643
4755
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
4644
4756
|
import { styled as styled6 } from "@elementor/ui";
|
|
4645
|
-
import { __ as
|
|
4757
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4646
4758
|
|
|
4647
4759
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4648
|
-
import * as
|
|
4649
|
-
import { useRef as
|
|
4650
|
-
import { SizeControl as
|
|
4760
|
+
import * as React61 from "react";
|
|
4761
|
+
import { useRef as useRef10 } from "react";
|
|
4762
|
+
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
4651
4763
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
4652
|
-
import { Grid as Grid6, Stack as
|
|
4653
|
-
import { __ as
|
|
4764
|
+
import { Grid as Grid6, Stack as Stack10, withDirection as withDirection10 } from "@elementor/ui";
|
|
4765
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
4654
4766
|
var InlineStartIcon2 = withDirection10(SideLeftIcon2);
|
|
4655
4767
|
var InlineEndIcon2 = withDirection10(SideRightIcon2);
|
|
4656
4768
|
var sideIcons = {
|
|
4657
|
-
"inset-block-start": /* @__PURE__ */
|
|
4658
|
-
"inset-block-end": /* @__PURE__ */
|
|
4659
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4660
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4769
|
+
"inset-block-start": /* @__PURE__ */ React61.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
4770
|
+
"inset-block-end": /* @__PURE__ */ React61.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
4771
|
+
"inset-inline-start": /* @__PURE__ */ React61.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4772
|
+
"inset-inline-end": /* @__PURE__ */ React61.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4661
4773
|
};
|
|
4662
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
4663
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
4774
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __38("Right", "elementor") : __38("Left", "elementor");
|
|
4775
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __38("Left", "elementor") : __38("Right", "elementor");
|
|
4664
4776
|
var DimensionsField = () => {
|
|
4665
4777
|
const { isSiteRtl } = useDirection();
|
|
4666
|
-
const rowRefs = [
|
|
4667
|
-
return /* @__PURE__ */
|
|
4778
|
+
const rowRefs = [useRef10(null), useRef10(null)];
|
|
4779
|
+
return /* @__PURE__ */ React61.createElement(UiProviders, null, /* @__PURE__ */ React61.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React61.createElement(DimensionField, { side: "inset-block-start", label: __38("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React61.createElement(
|
|
4668
4780
|
DimensionField,
|
|
4669
4781
|
{
|
|
4670
4782
|
side: "inset-inline-end",
|
|
4671
4783
|
label: getInlineEndLabel(isSiteRtl),
|
|
4672
4784
|
rowRef: rowRefs[0]
|
|
4673
4785
|
}
|
|
4674
|
-
)), /* @__PURE__ */
|
|
4786
|
+
)), /* @__PURE__ */ React61.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React61.createElement(DimensionField, { side: "inset-block-end", label: __38("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React61.createElement(
|
|
4675
4787
|
DimensionField,
|
|
4676
4788
|
{
|
|
4677
4789
|
side: "inset-inline-start",
|
|
@@ -4684,8 +4796,8 @@ var DimensionField = ({
|
|
|
4684
4796
|
side,
|
|
4685
4797
|
label,
|
|
4686
4798
|
rowRef
|
|
4687
|
-
}) => /* @__PURE__ */
|
|
4688
|
-
|
|
4799
|
+
}) => /* @__PURE__ */ React61.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React61.createElement(Grid6, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React61.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(ControlLabel, null, label)), /* @__PURE__ */ React61.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(
|
|
4800
|
+
SizeControl5,
|
|
4689
4801
|
{
|
|
4690
4802
|
startIcon: sideIcons[side],
|
|
4691
4803
|
extendedOptions: ["auto"],
|
|
@@ -4695,47 +4807,47 @@ var DimensionField = ({
|
|
|
4695
4807
|
))));
|
|
4696
4808
|
|
|
4697
4809
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4698
|
-
import * as
|
|
4699
|
-
import { useRef as
|
|
4700
|
-
import { SizeControl as
|
|
4701
|
-
import { __ as
|
|
4702
|
-
var OFFSET_LABEL =
|
|
4810
|
+
import * as React62 from "react";
|
|
4811
|
+
import { useRef as useRef11 } from "react";
|
|
4812
|
+
import { SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4813
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4814
|
+
var OFFSET_LABEL = __39("Anchor offset", "elementor");
|
|
4703
4815
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4704
4816
|
var OffsetField = () => {
|
|
4705
|
-
const rowRef =
|
|
4706
|
-
return /* @__PURE__ */
|
|
4817
|
+
const rowRef = useRef11(null);
|
|
4818
|
+
return /* @__PURE__ */ React62.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React62.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React62.createElement(SizeControl6, { units: UNITS2, anchorRef: rowRef })));
|
|
4707
4819
|
};
|
|
4708
4820
|
|
|
4709
4821
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4710
|
-
import * as
|
|
4822
|
+
import * as React63 from "react";
|
|
4711
4823
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
4712
|
-
import { __ as
|
|
4713
|
-
var POSITION_LABEL =
|
|
4824
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4825
|
+
var POSITION_LABEL = __40("Position", "elementor");
|
|
4714
4826
|
var positionOptions = [
|
|
4715
|
-
{ label:
|
|
4716
|
-
{ label:
|
|
4717
|
-
{ label:
|
|
4718
|
-
{ label:
|
|
4719
|
-
{ label:
|
|
4827
|
+
{ label: __40("Static", "elementor"), value: "static" },
|
|
4828
|
+
{ label: __40("Relative", "elementor"), value: "relative" },
|
|
4829
|
+
{ label: __40("Absolute", "elementor"), value: "absolute" },
|
|
4830
|
+
{ label: __40("Fixed", "elementor"), value: "fixed" },
|
|
4831
|
+
{ label: __40("Sticky", "elementor"), value: "sticky" }
|
|
4720
4832
|
];
|
|
4721
4833
|
var PositionField = () => {
|
|
4722
|
-
return /* @__PURE__ */
|
|
4834
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React63.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React63.createElement(SelectControl3, { options: positionOptions })));
|
|
4723
4835
|
};
|
|
4724
4836
|
|
|
4725
4837
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4726
|
-
import * as
|
|
4838
|
+
import * as React64 from "react";
|
|
4727
4839
|
import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
|
|
4728
4840
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
4729
4841
|
import { Alert as Alert3, AlertTitle as AlertTitle2, Box as Box5, Infotip } from "@elementor/ui";
|
|
4730
|
-
import { __ as
|
|
4731
|
-
var Z_INDEX_LABEL =
|
|
4842
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4843
|
+
var Z_INDEX_LABEL = __41("Z-index", "elementor");
|
|
4732
4844
|
var ZIndexField = ({ disabled }) => {
|
|
4733
|
-
const StyleField = /* @__PURE__ */
|
|
4734
|
-
const content = /* @__PURE__ */
|
|
4845
|
+
const StyleField = /* @__PURE__ */ React64.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React64.createElement(NumberControl4, { disabled })));
|
|
4846
|
+
const content = /* @__PURE__ */ React64.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React64.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React64.createElement(AlertTitle2, null, __41("Z-index", "elementor")), /* @__PURE__ */ React64.createElement(Box5, { component: "span" }, __41(
|
|
4735
4847
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4736
4848
|
"elementor"
|
|
4737
4849
|
)));
|
|
4738
|
-
return disabled ? /* @__PURE__ */
|
|
4850
|
+
return disabled ? /* @__PURE__ */ React64.createElement(
|
|
4739
4851
|
Infotip,
|
|
4740
4852
|
{
|
|
4741
4853
|
placement: "right",
|
|
@@ -4743,14 +4855,14 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4743
4855
|
color: "secondary",
|
|
4744
4856
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
4745
4857
|
},
|
|
4746
|
-
/* @__PURE__ */
|
|
4747
|
-
) : /* @__PURE__ */
|
|
4858
|
+
/* @__PURE__ */ React64.createElement(Box5, null, StyleField)
|
|
4859
|
+
) : /* @__PURE__ */ React64.createElement(React64.Fragment, null, StyleField);
|
|
4748
4860
|
};
|
|
4749
4861
|
|
|
4750
4862
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4751
4863
|
var POSITION_STATIC = "static";
|
|
4752
|
-
var POSITION_LABEL2 =
|
|
4753
|
-
var DIMENSIONS_LABEL =
|
|
4864
|
+
var POSITION_LABEL2 = __42("Position", "elementor");
|
|
4865
|
+
var DIMENSIONS_LABEL = __42("Dimensions", "elementor");
|
|
4754
4866
|
var DEPENDENT_PROP_NAMES = [
|
|
4755
4867
|
"inset-block-start",
|
|
4756
4868
|
"inset-block-end",
|
|
@@ -4760,7 +4872,7 @@ var DEPENDENT_PROP_NAMES = [
|
|
|
4760
4872
|
];
|
|
4761
4873
|
var PositionSection = () => {
|
|
4762
4874
|
const { value: position } = useStylesField("position", withHistoryLabel(POSITION_LABEL2));
|
|
4763
|
-
const positionPrevRef =
|
|
4875
|
+
const positionPrevRef = useRef12(position);
|
|
4764
4876
|
const { values: dependentValues, setValues: setDependentValues } = useStylesFields(DEPENDENT_PROP_NAMES);
|
|
4765
4877
|
const [savedDependentValues, saveToHistory, clearHistory] = usePersistDimensions();
|
|
4766
4878
|
useEffect7(() => {
|
|
@@ -4776,7 +4888,7 @@ var PositionSection = () => {
|
|
|
4776
4888
|
}
|
|
4777
4889
|
positionPrevRef.current = position;
|
|
4778
4890
|
}, [position?.value]);
|
|
4779
|
-
return /* @__PURE__ */
|
|
4891
|
+
return /* @__PURE__ */ React65.createElement(StyledSectionContent, null, /* @__PURE__ */ React65.createElement(PositionField, null), /* @__PURE__ */ React65.createElement(DimensionsField, null), /* @__PURE__ */ React65.createElement(ZIndexField, { disabled: !position || position?.value === POSITION_STATIC }), /* @__PURE__ */ React65.createElement(PanelDivider, null), /* @__PURE__ */ React65.createElement(OffsetField, null));
|
|
4780
4892
|
};
|
|
4781
4893
|
var usePersistDimensions = () => {
|
|
4782
4894
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4826,137 +4938,56 @@ var StyledSectionContent = styled6(SectionContent, {
|
|
|
4826
4938
|
}));
|
|
4827
4939
|
|
|
4828
4940
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4829
|
-
import * as
|
|
4830
|
-
import { useRef as
|
|
4831
|
-
import { AspectRatioControl, PositionControl, SizeControl as
|
|
4832
|
-
import { Grid as Grid7, Stack as
|
|
4833
|
-
import { __ as
|
|
4834
|
-
|
|
4835
|
-
// src/components/style-tab-collapsible-content.tsx
|
|
4836
|
-
import * as React64 from "react";
|
|
4837
|
-
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
4838
|
-
|
|
4839
|
-
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4840
|
-
import * as React63 from "react";
|
|
4841
|
-
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
4842
|
-
import { Stack as Stack9, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
4843
|
-
import { __ as __41 } from "@wordpress/i18n";
|
|
4844
|
-
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4845
|
-
const { id, meta, provider } = useStyle();
|
|
4846
|
-
const snapshot = useStylesInheritanceSnapshot();
|
|
4847
|
-
if (fields.includes("custom_css")) {
|
|
4848
|
-
return /* @__PURE__ */ React63.createElement(CustomCssIndicator, null);
|
|
4849
|
-
}
|
|
4850
|
-
const snapshotFields = Object.fromEntries(
|
|
4851
|
-
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
4852
|
-
);
|
|
4853
|
-
const { hasValues, hasOverrides } = getIndicators(snapshotFields, id ?? "", meta);
|
|
4854
|
-
if (!hasValues && !hasOverrides) {
|
|
4855
|
-
return null;
|
|
4856
|
-
}
|
|
4857
|
-
const hasValueLabel = __41("Has effective styles", "elementor");
|
|
4858
|
-
const hasOverridesLabel = __41("Has overridden styles", "elementor");
|
|
4859
|
-
return /* @__PURE__ */ React63.createElement(Tooltip2, { title: __41("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React63.createElement(Stack9, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React63.createElement(
|
|
4860
|
-
StyleIndicator,
|
|
4861
|
-
{
|
|
4862
|
-
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
4863
|
-
"data-variant": isElementsStylesProvider6(provider.getKey()) ? "local" : "global",
|
|
4864
|
-
role: "listitem",
|
|
4865
|
-
"aria-label": hasValueLabel
|
|
4866
|
-
}
|
|
4867
|
-
), hasOverrides && /* @__PURE__ */ React63.createElement(
|
|
4868
|
-
StyleIndicator,
|
|
4869
|
-
{
|
|
4870
|
-
isOverridden: true,
|
|
4871
|
-
"data-variant": "overridden",
|
|
4872
|
-
role: "listitem",
|
|
4873
|
-
"aria-label": hasOverridesLabel
|
|
4874
|
-
}
|
|
4875
|
-
)));
|
|
4876
|
-
};
|
|
4877
|
-
function getIndicators(snapshotFields, styleId, meta) {
|
|
4878
|
-
let hasValues = false;
|
|
4879
|
-
let hasOverrides = false;
|
|
4880
|
-
Object.values(snapshotFields).forEach((inheritanceChain) => {
|
|
4881
|
-
const currentStyle = getCurrentStyleFromChain(inheritanceChain, styleId, meta);
|
|
4882
|
-
if (!currentStyle) {
|
|
4883
|
-
return;
|
|
4884
|
-
}
|
|
4885
|
-
const [actualStyle] = inheritanceChain;
|
|
4886
|
-
if (currentStyle === actualStyle) {
|
|
4887
|
-
hasValues = true;
|
|
4888
|
-
} else {
|
|
4889
|
-
hasOverrides = true;
|
|
4890
|
-
}
|
|
4891
|
-
});
|
|
4892
|
-
return { hasValues, hasOverrides };
|
|
4893
|
-
}
|
|
4894
|
-
function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
4895
|
-
return chain.find(
|
|
4896
|
-
({
|
|
4897
|
-
style: { id },
|
|
4898
|
-
variant: {
|
|
4899
|
-
meta: { breakpoint, state }
|
|
4900
|
-
}
|
|
4901
|
-
}) => id === styleId && breakpoint === meta.breakpoint && state === meta.state
|
|
4902
|
-
);
|
|
4903
|
-
}
|
|
4904
|
-
|
|
4905
|
-
// src/components/style-tab-collapsible-content.tsx
|
|
4906
|
-
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4907
|
-
return /* @__PURE__ */ React64.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4908
|
-
};
|
|
4909
|
-
function getStylesInheritanceIndicators(fields) {
|
|
4910
|
-
if (fields.length === 0) {
|
|
4911
|
-
return null;
|
|
4912
|
-
}
|
|
4913
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */ React64.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4914
|
-
}
|
|
4941
|
+
import * as React68 from "react";
|
|
4942
|
+
import { useRef as useRef13 } from "react";
|
|
4943
|
+
import { AspectRatioControl, PositionControl, SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4944
|
+
import { Grid as Grid7, Stack as Stack11 } from "@elementor/ui";
|
|
4945
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
4915
4946
|
|
|
4916
4947
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4917
|
-
import * as
|
|
4948
|
+
import * as React66 from "react";
|
|
4918
4949
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4919
|
-
import { __ as
|
|
4920
|
-
var OBJECT_FIT_LABEL =
|
|
4950
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4951
|
+
var OBJECT_FIT_LABEL = __43("Object fit", "elementor");
|
|
4921
4952
|
var positionOptions2 = [
|
|
4922
|
-
{ label:
|
|
4923
|
-
{ label:
|
|
4924
|
-
{ label:
|
|
4925
|
-
{ label:
|
|
4926
|
-
{ label:
|
|
4953
|
+
{ label: __43("Fill", "elementor"), value: "fill" },
|
|
4954
|
+
{ label: __43("Cover", "elementor"), value: "cover" },
|
|
4955
|
+
{ label: __43("Contain", "elementor"), value: "contain" },
|
|
4956
|
+
{ label: __43("None", "elementor"), value: "none" },
|
|
4957
|
+
{ label: __43("Scale down", "elementor"), value: "scale-down" }
|
|
4927
4958
|
];
|
|
4928
4959
|
var ObjectFitField = () => {
|
|
4929
|
-
return /* @__PURE__ */
|
|
4960
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React66.createElement(SelectControl4, { options: positionOptions2 })));
|
|
4930
4961
|
};
|
|
4931
4962
|
|
|
4932
4963
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4933
|
-
import * as
|
|
4964
|
+
import * as React67 from "react";
|
|
4934
4965
|
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
4935
4966
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
4936
|
-
import { __ as
|
|
4937
|
-
var OVERFLOW_LABEL =
|
|
4967
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
4968
|
+
var OVERFLOW_LABEL = __44("Overflow", "elementor");
|
|
4938
4969
|
var options7 = [
|
|
4939
4970
|
{
|
|
4940
4971
|
value: "visible",
|
|
4941
|
-
label:
|
|
4942
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4972
|
+
label: __44("Visible", "elementor"),
|
|
4973
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(EyeIcon, { fontSize: size }),
|
|
4943
4974
|
showTooltip: true
|
|
4944
4975
|
},
|
|
4945
4976
|
{
|
|
4946
4977
|
value: "hidden",
|
|
4947
|
-
label:
|
|
4948
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4978
|
+
label: __44("Hidden", "elementor"),
|
|
4979
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(EyeOffIcon, { fontSize: size }),
|
|
4949
4980
|
showTooltip: true
|
|
4950
4981
|
},
|
|
4951
4982
|
{
|
|
4952
4983
|
value: "auto",
|
|
4953
|
-
label:
|
|
4954
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4984
|
+
label: __44("Auto", "elementor"),
|
|
4985
|
+
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(LetterAIcon, { fontSize: size }),
|
|
4955
4986
|
showTooltip: true
|
|
4956
4987
|
}
|
|
4957
4988
|
];
|
|
4958
4989
|
var OverflowField = () => {
|
|
4959
|
-
return /* @__PURE__ */
|
|
4990
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React67.createElement(ToggleControl11, { options: options7 })));
|
|
4960
4991
|
};
|
|
4961
4992
|
|
|
4962
4993
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4964,97 +4995,97 @@ var CssSizeProps = [
|
|
|
4964
4995
|
[
|
|
4965
4996
|
{
|
|
4966
4997
|
bind: "width",
|
|
4967
|
-
label:
|
|
4998
|
+
label: __45("Width", "elementor")
|
|
4968
4999
|
},
|
|
4969
5000
|
{
|
|
4970
5001
|
bind: "height",
|
|
4971
|
-
label:
|
|
5002
|
+
label: __45("Height", "elementor")
|
|
4972
5003
|
}
|
|
4973
5004
|
],
|
|
4974
5005
|
[
|
|
4975
5006
|
{
|
|
4976
5007
|
bind: "min-width",
|
|
4977
|
-
label:
|
|
5008
|
+
label: __45("Min width", "elementor")
|
|
4978
5009
|
},
|
|
4979
5010
|
{
|
|
4980
5011
|
bind: "min-height",
|
|
4981
|
-
label:
|
|
5012
|
+
label: __45("Min height", "elementor")
|
|
4982
5013
|
}
|
|
4983
5014
|
],
|
|
4984
5015
|
[
|
|
4985
5016
|
{
|
|
4986
5017
|
bind: "max-width",
|
|
4987
|
-
label:
|
|
5018
|
+
label: __45("Max width", "elementor")
|
|
4988
5019
|
},
|
|
4989
5020
|
{
|
|
4990
5021
|
bind: "max-height",
|
|
4991
|
-
label:
|
|
5022
|
+
label: __45("Max height", "elementor")
|
|
4992
5023
|
}
|
|
4993
5024
|
]
|
|
4994
5025
|
];
|
|
4995
|
-
var ASPECT_RATIO_LABEL =
|
|
5026
|
+
var ASPECT_RATIO_LABEL = __45("Aspect Ratio", "elementor");
|
|
4996
5027
|
var SizeSection = () => {
|
|
4997
|
-
const gridRowRefs = [
|
|
4998
|
-
return /* @__PURE__ */
|
|
5028
|
+
const gridRowRefs = [useRef13(null), useRef13(null), useRef13(null)];
|
|
5029
|
+
return /* @__PURE__ */ React68.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React68.createElement(Grid7, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React68.createElement(Grid7, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React68.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React68.createElement(PanelDivider, null), /* @__PURE__ */ React68.createElement(Stack11, null, /* @__PURE__ */ React68.createElement(OverflowField, null)), /* @__PURE__ */ React68.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React68.createElement(Stack11, { gap: 2, pt: 2 }, /* @__PURE__ */ React68.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React68.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React68.createElement(PanelDivider, null), /* @__PURE__ */ React68.createElement(ObjectFitField, null), /* @__PURE__ */ React68.createElement(StylesField, { bind: "object-position", propDisplayName: __45("Object position", "elementor") }, /* @__PURE__ */ React68.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(PositionControl, null))))));
|
|
4999
5030
|
};
|
|
5000
5031
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
5001
|
-
return /* @__PURE__ */
|
|
5032
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React68.createElement(Grid7, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React68.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(ControlLabel, null, label)), /* @__PURE__ */ React68.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(SizeControl7, { extendedOptions, anchorRef: rowRef }))));
|
|
5002
5033
|
};
|
|
5003
5034
|
|
|
5004
5035
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
5005
|
-
import * as
|
|
5036
|
+
import * as React69 from "react";
|
|
5006
5037
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
5007
|
-
import { __ as
|
|
5008
|
-
var MARGIN_LABEL =
|
|
5009
|
-
var PADDING_LABEL =
|
|
5038
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
5039
|
+
var MARGIN_LABEL = __46("Margin", "elementor");
|
|
5040
|
+
var PADDING_LABEL = __46("Padding", "elementor");
|
|
5010
5041
|
var SpacingSection = () => {
|
|
5011
5042
|
const { isSiteRtl } = useDirection();
|
|
5012
|
-
return /* @__PURE__ */
|
|
5043
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, /* @__PURE__ */ React69.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React69.createElement(
|
|
5013
5044
|
LinkedDimensionsControl,
|
|
5014
5045
|
{
|
|
5015
5046
|
label: MARGIN_LABEL,
|
|
5016
5047
|
isSiteRtl,
|
|
5017
5048
|
min: -Number.MAX_SAFE_INTEGER
|
|
5018
5049
|
}
|
|
5019
|
-
)), /* @__PURE__ */
|
|
5050
|
+
)), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React69.createElement(LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
5020
5051
|
};
|
|
5021
5052
|
|
|
5022
5053
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5023
|
-
import * as
|
|
5054
|
+
import * as React86 from "react";
|
|
5024
5055
|
|
|
5025
5056
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
5026
|
-
import * as
|
|
5057
|
+
import * as React70 from "react";
|
|
5027
5058
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
5028
|
-
import { __ as
|
|
5029
|
-
var COLUMN_COUNT_LABEL =
|
|
5059
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
5060
|
+
var COLUMN_COUNT_LABEL = __47("Columns", "elementor");
|
|
5030
5061
|
var ColumnCountField = () => {
|
|
5031
|
-
return /* @__PURE__ */
|
|
5062
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React70.createElement(NumberControl5, { shouldForceInt: true, min: 0, step: 1 })));
|
|
5032
5063
|
};
|
|
5033
5064
|
|
|
5034
5065
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
5035
|
-
import * as
|
|
5036
|
-
import { useRef as
|
|
5037
|
-
import { SizeControl as
|
|
5038
|
-
import { __ as
|
|
5039
|
-
var COLUMN_GAP_LABEL =
|
|
5066
|
+
import * as React71 from "react";
|
|
5067
|
+
import { useRef as useRef14 } from "react";
|
|
5068
|
+
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
5069
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
5070
|
+
var COLUMN_GAP_LABEL = __48("Column gap", "elementor");
|
|
5040
5071
|
var ColumnGapField = () => {
|
|
5041
|
-
const rowRef =
|
|
5042
|
-
return /* @__PURE__ */
|
|
5072
|
+
const rowRef = useRef14(null);
|
|
5073
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React71.createElement(SizeControl8, { anchorRef: rowRef })));
|
|
5043
5074
|
};
|
|
5044
5075
|
|
|
5045
5076
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
5046
|
-
import * as
|
|
5077
|
+
import * as React72 from "react";
|
|
5047
5078
|
import { FontFamilyControl, useFontFamilies } from "@elementor/editor-controls";
|
|
5048
5079
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
5049
|
-
import { __ as
|
|
5050
|
-
var FONT_FAMILY_LABEL =
|
|
5080
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
5081
|
+
var FONT_FAMILY_LABEL = __49("Font family", "elementor");
|
|
5051
5082
|
var FontFamilyField = () => {
|
|
5052
5083
|
const fontFamilies = useFontFamilies();
|
|
5053
5084
|
const sectionWidth = useSectionWidth();
|
|
5054
5085
|
if (fontFamilies.length === 0) {
|
|
5055
5086
|
return null;
|
|
5056
5087
|
}
|
|
5057
|
-
return /* @__PURE__ */
|
|
5088
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React72.createElement(
|
|
5058
5089
|
FontFamilyControl,
|
|
5059
5090
|
{
|
|
5060
5091
|
fontFamilies,
|
|
@@ -5065,198 +5096,198 @@ var FontFamilyField = () => {
|
|
|
5065
5096
|
};
|
|
5066
5097
|
|
|
5067
5098
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
5068
|
-
import * as
|
|
5069
|
-
import { useRef as
|
|
5070
|
-
import { SizeControl as
|
|
5071
|
-
import { __ as
|
|
5072
|
-
var FONT_SIZE_LABEL =
|
|
5099
|
+
import * as React73 from "react";
|
|
5100
|
+
import { useRef as useRef15 } from "react";
|
|
5101
|
+
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
5102
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
5103
|
+
var FONT_SIZE_LABEL = __50("Font size", "elementor");
|
|
5073
5104
|
var FontSizeField = () => {
|
|
5074
|
-
const rowRef =
|
|
5075
|
-
return /* @__PURE__ */
|
|
5105
|
+
const rowRef = useRef15(null);
|
|
5106
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React73.createElement(SizeControl9, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
5076
5107
|
};
|
|
5077
5108
|
|
|
5078
5109
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
5079
|
-
import * as
|
|
5110
|
+
import * as React74 from "react";
|
|
5080
5111
|
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
5081
5112
|
import { ItalicIcon, MinusIcon } from "@elementor/icons";
|
|
5082
|
-
import { __ as
|
|
5083
|
-
var FONT_STYLE_LABEL =
|
|
5113
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
5114
|
+
var FONT_STYLE_LABEL = __51("Font style", "elementor");
|
|
5084
5115
|
var options8 = [
|
|
5085
5116
|
{
|
|
5086
5117
|
value: "normal",
|
|
5087
|
-
label:
|
|
5088
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5118
|
+
label: __51("Normal", "elementor"),
|
|
5119
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(MinusIcon, { fontSize: size }),
|
|
5089
5120
|
showTooltip: true
|
|
5090
5121
|
},
|
|
5091
5122
|
{
|
|
5092
5123
|
value: "italic",
|
|
5093
|
-
label:
|
|
5094
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5124
|
+
label: __51("Italic", "elementor"),
|
|
5125
|
+
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(ItalicIcon, { fontSize: size }),
|
|
5095
5126
|
showTooltip: true
|
|
5096
5127
|
}
|
|
5097
5128
|
];
|
|
5098
5129
|
var FontStyleField = () => {
|
|
5099
|
-
return /* @__PURE__ */
|
|
5130
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React74.createElement(ToggleControl12, { options: options8 })));
|
|
5100
5131
|
};
|
|
5101
5132
|
|
|
5102
5133
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5103
|
-
import * as
|
|
5134
|
+
import * as React75 from "react";
|
|
5104
5135
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
5105
|
-
import { __ as
|
|
5106
|
-
var FONT_WEIGHT_LABEL =
|
|
5136
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
5137
|
+
var FONT_WEIGHT_LABEL = __52("Font weight", "elementor");
|
|
5107
5138
|
var fontWeightOptions = [
|
|
5108
|
-
{ value: "100", label:
|
|
5109
|
-
{ value: "200", label:
|
|
5110
|
-
{ value: "300", label:
|
|
5111
|
-
{ value: "400", label:
|
|
5112
|
-
{ value: "500", label:
|
|
5113
|
-
{ value: "600", label:
|
|
5114
|
-
{ value: "700", label:
|
|
5115
|
-
{ value: "800", label:
|
|
5116
|
-
{ value: "900", label:
|
|
5139
|
+
{ value: "100", label: __52("100 - Thin", "elementor") },
|
|
5140
|
+
{ value: "200", label: __52("200 - Extra light", "elementor") },
|
|
5141
|
+
{ value: "300", label: __52("300 - Light", "elementor") },
|
|
5142
|
+
{ value: "400", label: __52("400 - Normal", "elementor") },
|
|
5143
|
+
{ value: "500", label: __52("500 - Medium", "elementor") },
|
|
5144
|
+
{ value: "600", label: __52("600 - Semi bold", "elementor") },
|
|
5145
|
+
{ value: "700", label: __52("700 - Bold", "elementor") },
|
|
5146
|
+
{ value: "800", label: __52("800 - Extra bold", "elementor") },
|
|
5147
|
+
{ value: "900", label: __52("900 - Black", "elementor") }
|
|
5117
5148
|
];
|
|
5118
5149
|
var FontWeightField = () => {
|
|
5119
|
-
return /* @__PURE__ */
|
|
5150
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(SelectControl5, { options: fontWeightOptions })));
|
|
5120
5151
|
};
|
|
5121
5152
|
|
|
5122
5153
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
5123
|
-
import * as React75 from "react";
|
|
5124
|
-
import { useRef as useRef15 } from "react";
|
|
5125
|
-
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
5126
|
-
import { __ as __52 } from "@wordpress/i18n";
|
|
5127
|
-
var LETTER_SPACING_LABEL = __52("Letter spacing", "elementor");
|
|
5128
|
-
var LetterSpacingField = () => {
|
|
5129
|
-
const rowRef = useRef15(null);
|
|
5130
|
-
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React75.createElement(SizeControl9, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5131
|
-
};
|
|
5132
|
-
|
|
5133
|
-
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
5134
5154
|
import * as React76 from "react";
|
|
5135
5155
|
import { useRef as useRef16 } from "react";
|
|
5136
5156
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
5137
5157
|
import { __ as __53 } from "@wordpress/i18n";
|
|
5138
|
-
var
|
|
5139
|
-
var
|
|
5158
|
+
var LETTER_SPACING_LABEL = __53("Letter spacing", "elementor");
|
|
5159
|
+
var LetterSpacingField = () => {
|
|
5140
5160
|
const rowRef = useRef16(null);
|
|
5141
|
-
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "
|
|
5161
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React76.createElement(SizeControl10, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5142
5162
|
};
|
|
5143
5163
|
|
|
5144
|
-
// src/components/style-sections/typography-section/
|
|
5164
|
+
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
5145
5165
|
import * as React77 from "react";
|
|
5166
|
+
import { useRef as useRef17 } from "react";
|
|
5167
|
+
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
5168
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
5169
|
+
var LINE_HEIGHT_LABEL = __54("Line height", "elementor");
|
|
5170
|
+
var LineHeightField = () => {
|
|
5171
|
+
const rowRef = useRef17(null);
|
|
5172
|
+
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React77.createElement(SizeControl11, { anchorRef: rowRef })));
|
|
5173
|
+
};
|
|
5174
|
+
|
|
5175
|
+
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
5176
|
+
import * as React78 from "react";
|
|
5146
5177
|
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
5147
5178
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
5148
5179
|
import { withDirection as withDirection11 } from "@elementor/ui";
|
|
5149
|
-
import { __ as
|
|
5150
|
-
var TEXT_ALIGNMENT_LABEL =
|
|
5180
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
5181
|
+
var TEXT_ALIGNMENT_LABEL = __55("Text align", "elementor");
|
|
5151
5182
|
var AlignStartIcon = withDirection11(AlignLeftIcon);
|
|
5152
5183
|
var AlignEndIcon = withDirection11(AlignRightIcon);
|
|
5153
5184
|
var options9 = [
|
|
5154
5185
|
{
|
|
5155
5186
|
value: "start",
|
|
5156
|
-
label:
|
|
5157
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5187
|
+
label: __55("Start", "elementor"),
|
|
5188
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignStartIcon, { fontSize: size }),
|
|
5158
5189
|
showTooltip: true
|
|
5159
5190
|
},
|
|
5160
5191
|
{
|
|
5161
5192
|
value: "center",
|
|
5162
|
-
label:
|
|
5163
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5193
|
+
label: __55("Center", "elementor"),
|
|
5194
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignCenterIcon, { fontSize: size }),
|
|
5164
5195
|
showTooltip: true
|
|
5165
5196
|
},
|
|
5166
5197
|
{
|
|
5167
5198
|
value: "end",
|
|
5168
|
-
label:
|
|
5169
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5199
|
+
label: __55("End", "elementor"),
|
|
5200
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignEndIcon, { fontSize: size }),
|
|
5170
5201
|
showTooltip: true
|
|
5171
5202
|
},
|
|
5172
5203
|
{
|
|
5173
5204
|
value: "justify",
|
|
5174
|
-
label:
|
|
5175
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5205
|
+
label: __55("Justify", "elementor"),
|
|
5206
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
5176
5207
|
showTooltip: true
|
|
5177
5208
|
}
|
|
5178
5209
|
];
|
|
5179
5210
|
var TextAlignmentField = () => {
|
|
5180
|
-
return /* @__PURE__ */
|
|
5211
|
+
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React78.createElement(UiProviders, null, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React78.createElement(ToggleControl13, { options: options9 }))));
|
|
5181
5212
|
};
|
|
5182
5213
|
|
|
5183
5214
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5184
|
-
import * as
|
|
5215
|
+
import * as React79 from "react";
|
|
5185
5216
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
5186
|
-
import { __ as
|
|
5187
|
-
var TEXT_COLOR_LABEL =
|
|
5217
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
5218
|
+
var TEXT_COLOR_LABEL = __56("Text color", "elementor");
|
|
5188
5219
|
var TextColorField = () => {
|
|
5189
|
-
return /* @__PURE__ */
|
|
5220
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React79.createElement(ColorControl2, { id: "text-color-control" })));
|
|
5190
5221
|
};
|
|
5191
5222
|
|
|
5192
5223
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
5193
|
-
import * as
|
|
5224
|
+
import * as React80 from "react";
|
|
5194
5225
|
import { ToggleControl as ToggleControl14 } from "@elementor/editor-controls";
|
|
5195
5226
|
import { MinusIcon as MinusIcon2, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
5196
|
-
import { __ as
|
|
5197
|
-
var TEXT_DECORATION_LABEL =
|
|
5227
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
5228
|
+
var TEXT_DECORATION_LABEL = __57("Line decoration", "elementor");
|
|
5198
5229
|
var options10 = [
|
|
5199
5230
|
{
|
|
5200
5231
|
value: "none",
|
|
5201
|
-
label:
|
|
5202
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5232
|
+
label: __57("None", "elementor"),
|
|
5233
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(MinusIcon2, { fontSize: size }),
|
|
5203
5234
|
showTooltip: true,
|
|
5204
5235
|
exclusive: true
|
|
5205
5236
|
},
|
|
5206
5237
|
{
|
|
5207
5238
|
value: "underline",
|
|
5208
|
-
label:
|
|
5209
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5239
|
+
label: __57("Underline", "elementor"),
|
|
5240
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(UnderlineIcon, { fontSize: size }),
|
|
5210
5241
|
showTooltip: true
|
|
5211
5242
|
},
|
|
5212
5243
|
{
|
|
5213
5244
|
value: "line-through",
|
|
5214
|
-
label:
|
|
5215
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5245
|
+
label: __57("Line-through", "elementor"),
|
|
5246
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(StrikethroughIcon, { fontSize: size }),
|
|
5216
5247
|
showTooltip: true
|
|
5217
5248
|
},
|
|
5218
5249
|
{
|
|
5219
5250
|
value: "overline",
|
|
5220
|
-
label:
|
|
5221
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5251
|
+
label: __57("Overline", "elementor"),
|
|
5252
|
+
renderContent: ({ size }) => /* @__PURE__ */ React80.createElement(OverlineIcon, { fontSize: size }),
|
|
5222
5253
|
showTooltip: true
|
|
5223
5254
|
}
|
|
5224
5255
|
];
|
|
5225
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
5256
|
+
var TextDecorationField = () => /* @__PURE__ */ React80.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React80.createElement(ToggleControl14, { options: options10, exclusive: false })));
|
|
5226
5257
|
|
|
5227
5258
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
5228
|
-
import * as
|
|
5259
|
+
import * as React81 from "react";
|
|
5229
5260
|
import { ToggleControl as ToggleControl15 } from "@elementor/editor-controls";
|
|
5230
5261
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
5231
|
-
import { __ as
|
|
5232
|
-
var TEXT_DIRECTION_LABEL =
|
|
5262
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
5263
|
+
var TEXT_DIRECTION_LABEL = __58("Direction", "elementor");
|
|
5233
5264
|
var options11 = [
|
|
5234
5265
|
{
|
|
5235
5266
|
value: "ltr",
|
|
5236
|
-
label:
|
|
5237
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5267
|
+
label: __58("Left to right", "elementor"),
|
|
5268
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
5238
5269
|
showTooltip: true
|
|
5239
5270
|
},
|
|
5240
5271
|
{
|
|
5241
5272
|
value: "rtl",
|
|
5242
|
-
label:
|
|
5243
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5273
|
+
label: __58("Right to left", "elementor"),
|
|
5274
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
5244
5275
|
showTooltip: true
|
|
5245
5276
|
}
|
|
5246
5277
|
];
|
|
5247
5278
|
var TextDirectionField = () => {
|
|
5248
|
-
return /* @__PURE__ */
|
|
5279
|
+
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React81.createElement(ToggleControl15, { options: options11 })));
|
|
5249
5280
|
};
|
|
5250
5281
|
|
|
5251
5282
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5252
|
-
import * as
|
|
5283
|
+
import * as React83 from "react";
|
|
5253
5284
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
5254
|
-
import { __ as
|
|
5285
|
+
import { __ as __59 } from "@wordpress/i18n";
|
|
5255
5286
|
|
|
5256
5287
|
// src/components/add-or-remove-content.tsx
|
|
5257
|
-
import * as
|
|
5288
|
+
import * as React82 from "react";
|
|
5258
5289
|
import { MinusIcon as MinusIcon3, PlusIcon } from "@elementor/icons";
|
|
5259
|
-
import { Collapse as Collapse2, IconButton, Stack as
|
|
5290
|
+
import { Collapse as Collapse2, IconButton, Stack as Stack12 } from "@elementor/ui";
|
|
5260
5291
|
var SIZE = "tiny";
|
|
5261
5292
|
var AddOrRemoveContent = ({
|
|
5262
5293
|
isAdded,
|
|
@@ -5266,8 +5297,8 @@ var AddOrRemoveContent = ({
|
|
|
5266
5297
|
disabled,
|
|
5267
5298
|
renderLabel
|
|
5268
5299
|
}) => {
|
|
5269
|
-
return /* @__PURE__ */
|
|
5270
|
-
|
|
5300
|
+
return /* @__PURE__ */ React82.createElement(SectionContent, null, /* @__PURE__ */ React82.createElement(
|
|
5301
|
+
Stack12,
|
|
5271
5302
|
{
|
|
5272
5303
|
direction: "row",
|
|
5273
5304
|
sx: {
|
|
@@ -5277,8 +5308,8 @@ var AddOrRemoveContent = ({
|
|
|
5277
5308
|
}
|
|
5278
5309
|
},
|
|
5279
5310
|
renderLabel(),
|
|
5280
|
-
isAdded ? /* @__PURE__ */
|
|
5281
|
-
), /* @__PURE__ */
|
|
5311
|
+
isAdded ? /* @__PURE__ */ React82.createElement(IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React82.createElement(MinusIcon3, { fontSize: SIZE })) : /* @__PURE__ */ React82.createElement(IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React82.createElement(PlusIcon, { fontSize: SIZE }))
|
|
5312
|
+
), /* @__PURE__ */ React82.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React82.createElement(SectionContent, null, children)));
|
|
5282
5313
|
};
|
|
5283
5314
|
|
|
5284
5315
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5298,7 +5329,7 @@ var initTextStroke = {
|
|
|
5298
5329
|
}
|
|
5299
5330
|
}
|
|
5300
5331
|
};
|
|
5301
|
-
var TEXT_STROKE_LABEL =
|
|
5332
|
+
var TEXT_STROKE_LABEL = __59("Text stroke", "elementor");
|
|
5302
5333
|
var TextStrokeField = () => {
|
|
5303
5334
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
5304
5335
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -5310,67 +5341,67 @@ var TextStrokeField = () => {
|
|
|
5310
5341
|
setValue(null);
|
|
5311
5342
|
};
|
|
5312
5343
|
const hasTextStroke = Boolean(value);
|
|
5313
|
-
return /* @__PURE__ */
|
|
5344
|
+
return /* @__PURE__ */ React83.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React83.createElement(
|
|
5314
5345
|
AddOrRemoveContent,
|
|
5315
5346
|
{
|
|
5316
5347
|
isAdded: hasTextStroke,
|
|
5317
5348
|
onAdd: addTextStroke,
|
|
5318
5349
|
onRemove: removeTextStroke,
|
|
5319
5350
|
disabled: !canEdit,
|
|
5320
|
-
renderLabel: () => /* @__PURE__ */
|
|
5351
|
+
renderLabel: () => /* @__PURE__ */ React83.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
5321
5352
|
},
|
|
5322
|
-
/* @__PURE__ */
|
|
5353
|
+
/* @__PURE__ */ React83.createElement(StrokeControl, null)
|
|
5323
5354
|
));
|
|
5324
5355
|
};
|
|
5325
5356
|
|
|
5326
5357
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
5327
|
-
import * as
|
|
5358
|
+
import * as React84 from "react";
|
|
5328
5359
|
import { ToggleControl as ToggleControl16 } from "@elementor/editor-controls";
|
|
5329
5360
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
5330
|
-
import { __ as
|
|
5331
|
-
var TEXT_TRANSFORM_LABEL =
|
|
5361
|
+
import { __ as __60 } from "@wordpress/i18n";
|
|
5362
|
+
var TEXT_TRANSFORM_LABEL = __60("Text transform", "elementor");
|
|
5332
5363
|
var options12 = [
|
|
5333
5364
|
{
|
|
5334
5365
|
value: "none",
|
|
5335
|
-
label:
|
|
5336
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5366
|
+
label: __60("None", "elementor"),
|
|
5367
|
+
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(MinusIcon4, { fontSize: size }),
|
|
5337
5368
|
showTooltip: true
|
|
5338
5369
|
},
|
|
5339
5370
|
{
|
|
5340
5371
|
value: "capitalize",
|
|
5341
|
-
label:
|
|
5342
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5372
|
+
label: __60("Capitalize", "elementor"),
|
|
5373
|
+
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(LetterCaseIcon, { fontSize: size }),
|
|
5343
5374
|
showTooltip: true
|
|
5344
5375
|
},
|
|
5345
5376
|
{
|
|
5346
5377
|
value: "uppercase",
|
|
5347
|
-
label:
|
|
5348
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5378
|
+
label: __60("Uppercase", "elementor"),
|
|
5379
|
+
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
5349
5380
|
showTooltip: true
|
|
5350
5381
|
},
|
|
5351
5382
|
{
|
|
5352
5383
|
value: "lowercase",
|
|
5353
|
-
label:
|
|
5354
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5384
|
+
label: __60("Lowercase", "elementor"),
|
|
5385
|
+
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
5355
5386
|
showTooltip: true
|
|
5356
5387
|
}
|
|
5357
5388
|
];
|
|
5358
|
-
var TransformField = () => /* @__PURE__ */
|
|
5389
|
+
var TransformField = () => /* @__PURE__ */ React84.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React84.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React84.createElement(ToggleControl16, { options: options12 })));
|
|
5359
5390
|
|
|
5360
5391
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
5361
|
-
import * as
|
|
5362
|
-
import { useRef as
|
|
5363
|
-
import { SizeControl as
|
|
5364
|
-
import { __ as
|
|
5365
|
-
var WORD_SPACING_LABEL =
|
|
5392
|
+
import * as React85 from "react";
|
|
5393
|
+
import { useRef as useRef18 } from "react";
|
|
5394
|
+
import { SizeControl as SizeControl12 } from "@elementor/editor-controls";
|
|
5395
|
+
import { __ as __61 } from "@wordpress/i18n";
|
|
5396
|
+
var WORD_SPACING_LABEL = __61("Word spacing", "elementor");
|
|
5366
5397
|
var WordSpacingField = () => {
|
|
5367
|
-
const rowRef =
|
|
5368
|
-
return /* @__PURE__ */
|
|
5398
|
+
const rowRef = useRef18(null);
|
|
5399
|
+
return /* @__PURE__ */ React85.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React85.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React85.createElement(SizeControl12, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5369
5400
|
};
|
|
5370
5401
|
|
|
5371
5402
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5372
5403
|
var TypographySection = () => {
|
|
5373
|
-
return /* @__PURE__ */
|
|
5404
|
+
return /* @__PURE__ */ React86.createElement(SectionContent, null, /* @__PURE__ */ React86.createElement(FontFamilyField, null), /* @__PURE__ */ React86.createElement(FontWeightField, null), /* @__PURE__ */ React86.createElement(FontSizeField, null), /* @__PURE__ */ React86.createElement(PanelDivider, null), /* @__PURE__ */ React86.createElement(TextAlignmentField, null), /* @__PURE__ */ React86.createElement(TextColorField, null), /* @__PURE__ */ React86.createElement(
|
|
5374
5405
|
StyleTabCollapsibleContent,
|
|
5375
5406
|
{
|
|
5376
5407
|
fields: [
|
|
@@ -5385,18 +5416,18 @@ var TypographySection = () => {
|
|
|
5385
5416
|
"stroke"
|
|
5386
5417
|
]
|
|
5387
5418
|
},
|
|
5388
|
-
/* @__PURE__ */
|
|
5419
|
+
/* @__PURE__ */ React86.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React86.createElement(LineHeightField, null), /* @__PURE__ */ React86.createElement(LetterSpacingField, null), /* @__PURE__ */ React86.createElement(WordSpacingField, null), /* @__PURE__ */ React86.createElement(ColumnCountField, null), /* @__PURE__ */ React86.createElement(ColumnGapField, null), /* @__PURE__ */ React86.createElement(PanelDivider, null), /* @__PURE__ */ React86.createElement(TextDecorationField, null), /* @__PURE__ */ React86.createElement(TransformField, null), /* @__PURE__ */ React86.createElement(TextDirectionField, null), /* @__PURE__ */ React86.createElement(FontStyleField, null), /* @__PURE__ */ React86.createElement(TextStrokeField, null))
|
|
5389
5420
|
));
|
|
5390
5421
|
};
|
|
5391
5422
|
|
|
5392
5423
|
// src/components/style-tab-section.tsx
|
|
5393
|
-
import * as
|
|
5424
|
+
import * as React87 from "react";
|
|
5394
5425
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5395
5426
|
const { component, name, title, action } = section;
|
|
5396
5427
|
const tabDefaults = useDefaultPanelSettings();
|
|
5397
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5428
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React87.createElement(React87.Fragment, null));
|
|
5398
5429
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
5399
|
-
return /* @__PURE__ */
|
|
5430
|
+
return /* @__PURE__ */ React87.createElement(
|
|
5400
5431
|
Section,
|
|
5401
5432
|
{
|
|
5402
5433
|
title,
|
|
@@ -5405,7 +5436,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5405
5436
|
unmountOnExit,
|
|
5406
5437
|
action
|
|
5407
5438
|
},
|
|
5408
|
-
/* @__PURE__ */
|
|
5439
|
+
/* @__PURE__ */ React87.createElement(SectionComponent, null)
|
|
5409
5440
|
);
|
|
5410
5441
|
};
|
|
5411
5442
|
|
|
@@ -5427,7 +5458,7 @@ var StyleTab = () => {
|
|
|
5427
5458
|
if (!currentClassesProp) {
|
|
5428
5459
|
return null;
|
|
5429
5460
|
}
|
|
5430
|
-
return /* @__PURE__ */
|
|
5461
|
+
return /* @__PURE__ */ React88.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React88.createElement(
|
|
5431
5462
|
StyleProvider,
|
|
5432
5463
|
{
|
|
5433
5464
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5438,13 +5469,13 @@ var StyleTab = () => {
|
|
|
5438
5469
|
},
|
|
5439
5470
|
setMetaState: setActiveStyleState
|
|
5440
5471
|
},
|
|
5441
|
-
/* @__PURE__ */
|
|
5472
|
+
/* @__PURE__ */ React88.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React88.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React88.createElement(ClassesHeader, null, /* @__PURE__ */ React88.createElement(CssClassSelector, null), /* @__PURE__ */ React88.createElement(Divider5, null)), /* @__PURE__ */ React88.createElement(SectionsList, null, /* @__PURE__ */ React88.createElement(
|
|
5442
5473
|
StyleTabSection,
|
|
5443
5474
|
{
|
|
5444
5475
|
section: {
|
|
5445
5476
|
component: LayoutSection,
|
|
5446
5477
|
name: "Layout",
|
|
5447
|
-
title:
|
|
5478
|
+
title: __62("Layout", "elementor")
|
|
5448
5479
|
},
|
|
5449
5480
|
fields: [
|
|
5450
5481
|
"display",
|
|
@@ -5457,26 +5488,28 @@ var StyleTab = () => {
|
|
|
5457
5488
|
"gap",
|
|
5458
5489
|
"order",
|
|
5459
5490
|
"grid-column",
|
|
5460
|
-
"grid-row"
|
|
5491
|
+
"grid-row",
|
|
5492
|
+
"grid-auto-rows",
|
|
5493
|
+
"grid-auto-columns"
|
|
5461
5494
|
]
|
|
5462
5495
|
}
|
|
5463
|
-
), /* @__PURE__ */
|
|
5496
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5464
5497
|
StyleTabSection,
|
|
5465
5498
|
{
|
|
5466
5499
|
section: {
|
|
5467
5500
|
component: SpacingSection,
|
|
5468
5501
|
name: "Spacing",
|
|
5469
|
-
title:
|
|
5502
|
+
title: __62("Spacing", "elementor")
|
|
5470
5503
|
},
|
|
5471
5504
|
fields: ["margin", "padding"]
|
|
5472
5505
|
}
|
|
5473
|
-
), /* @__PURE__ */
|
|
5506
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5474
5507
|
StyleTabSection,
|
|
5475
5508
|
{
|
|
5476
5509
|
section: {
|
|
5477
5510
|
component: SizeSection,
|
|
5478
5511
|
name: "Size",
|
|
5479
|
-
title:
|
|
5512
|
+
title: __62("Size", "elementor")
|
|
5480
5513
|
},
|
|
5481
5514
|
fields: [
|
|
5482
5515
|
"width",
|
|
@@ -5490,23 +5523,23 @@ var StyleTab = () => {
|
|
|
5490
5523
|
"object-fit"
|
|
5491
5524
|
]
|
|
5492
5525
|
}
|
|
5493
|
-
), /* @__PURE__ */
|
|
5526
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5494
5527
|
StyleTabSection,
|
|
5495
5528
|
{
|
|
5496
5529
|
section: {
|
|
5497
5530
|
component: PositionSection,
|
|
5498
5531
|
name: "Position",
|
|
5499
|
-
title:
|
|
5532
|
+
title: __62("Position", "elementor")
|
|
5500
5533
|
},
|
|
5501
5534
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5502
5535
|
}
|
|
5503
|
-
), /* @__PURE__ */
|
|
5536
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5504
5537
|
StyleTabSection,
|
|
5505
5538
|
{
|
|
5506
5539
|
section: {
|
|
5507
5540
|
component: TypographySection,
|
|
5508
5541
|
name: "Typography",
|
|
5509
|
-
title:
|
|
5542
|
+
title: __62("Typography", "elementor")
|
|
5510
5543
|
},
|
|
5511
5544
|
fields: [
|
|
5512
5545
|
"font-family",
|
|
@@ -5525,33 +5558,33 @@ var StyleTab = () => {
|
|
|
5525
5558
|
"stroke"
|
|
5526
5559
|
]
|
|
5527
5560
|
}
|
|
5528
|
-
), /* @__PURE__ */
|
|
5561
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5529
5562
|
StyleTabSection,
|
|
5530
5563
|
{
|
|
5531
5564
|
section: {
|
|
5532
5565
|
component: BackgroundSection,
|
|
5533
5566
|
name: "Background",
|
|
5534
|
-
title:
|
|
5567
|
+
title: __62("Background", "elementor")
|
|
5535
5568
|
},
|
|
5536
5569
|
fields: ["background"]
|
|
5537
5570
|
}
|
|
5538
|
-
), /* @__PURE__ */
|
|
5571
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5539
5572
|
StyleTabSection,
|
|
5540
5573
|
{
|
|
5541
5574
|
section: {
|
|
5542
5575
|
component: BorderSection,
|
|
5543
5576
|
name: "Border",
|
|
5544
|
-
title:
|
|
5577
|
+
title: __62("Border", "elementor")
|
|
5545
5578
|
},
|
|
5546
5579
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5547
5580
|
}
|
|
5548
|
-
), /* @__PURE__ */
|
|
5581
|
+
), /* @__PURE__ */ React88.createElement(
|
|
5549
5582
|
StyleTabSection,
|
|
5550
5583
|
{
|
|
5551
5584
|
section: {
|
|
5552
5585
|
component: EffectsSection,
|
|
5553
5586
|
name: "Effects",
|
|
5554
|
-
title:
|
|
5587
|
+
title: __62("Effects", "elementor")
|
|
5555
5588
|
},
|
|
5556
5589
|
fields: [
|
|
5557
5590
|
"mix-blend-mode",
|
|
@@ -5564,12 +5597,12 @@ var StyleTab = () => {
|
|
|
5564
5597
|
"transition"
|
|
5565
5598
|
]
|
|
5566
5599
|
}
|
|
5567
|
-
), /* @__PURE__ */
|
|
5600
|
+
), /* @__PURE__ */ React88.createElement(StyleTabSlot, null)), /* @__PURE__ */ React88.createElement(Box6, { sx: { height: "150px" } })))
|
|
5568
5601
|
));
|
|
5569
5602
|
};
|
|
5570
5603
|
function ClassesHeader({ children }) {
|
|
5571
5604
|
const scrollDirection = useScrollDirection();
|
|
5572
|
-
return /* @__PURE__ */
|
|
5605
|
+
return /* @__PURE__ */ React88.createElement(Stack13, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5573
5606
|
}
|
|
5574
5607
|
function useCurrentClassesProp() {
|
|
5575
5608
|
const { elementType } = useElement();
|
|
@@ -5588,7 +5621,7 @@ var EditingPanelTabs = () => {
|
|
|
5588
5621
|
return (
|
|
5589
5622
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5590
5623
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5591
|
-
/* @__PURE__ */
|
|
5624
|
+
/* @__PURE__ */ React89.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React89.createElement(PanelTabContent, null))
|
|
5592
5625
|
);
|
|
5593
5626
|
};
|
|
5594
5627
|
var PanelTabContent = () => {
|
|
@@ -5600,7 +5633,7 @@ var PanelTabContent = () => {
|
|
|
5600
5633
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5601
5634
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5602
5635
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5603
|
-
return /* @__PURE__ */
|
|
5636
|
+
return /* @__PURE__ */ React89.createElement(ScrollProvider, null, /* @__PURE__ */ React89.createElement(Stack14, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React89.createElement(Stack14, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React89.createElement(
|
|
5604
5637
|
Tabs,
|
|
5605
5638
|
{
|
|
5606
5639
|
variant: "fullWidth",
|
|
@@ -5612,10 +5645,10 @@ var PanelTabContent = () => {
|
|
|
5612
5645
|
setCurrentTab(newValue);
|
|
5613
5646
|
}
|
|
5614
5647
|
},
|
|
5615
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5616
|
-
/* @__PURE__ */
|
|
5617
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5618
|
-
), /* @__PURE__ */
|
|
5648
|
+
!isPromotedElement && /* @__PURE__ */ React89.createElement(Tab, { label: __63("General", "elementor"), ...getTabProps("settings") }),
|
|
5649
|
+
/* @__PURE__ */ React89.createElement(Tab, { label: __63("Style", "elementor"), ...getTabProps("style") }),
|
|
5650
|
+
isInteractionsActive && /* @__PURE__ */ React89.createElement(Tab, { label: __63("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5651
|
+
), /* @__PURE__ */ React89.createElement(Divider6, null)), !isPromotedElement && /* @__PURE__ */ React89.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React89.createElement(SettingsTab, null)), /* @__PURE__ */ React89.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React89.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React89.createElement(TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React89.createElement(InteractionsTab, null))));
|
|
5619
5652
|
};
|
|
5620
5653
|
|
|
5621
5654
|
// src/components/editing-panel.tsx
|
|
@@ -5628,13 +5661,13 @@ var EditingPanel = () => {
|
|
|
5628
5661
|
if (!element || !elementType) {
|
|
5629
5662
|
return null;
|
|
5630
5663
|
}
|
|
5631
|
-
const panelTitle =
|
|
5664
|
+
const panelTitle = __64("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5632
5665
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5633
|
-
let panelContent = /* @__PURE__ */
|
|
5666
|
+
let panelContent = /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(PanelHeader, null, /* @__PURE__ */ React90.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React90.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React90.createElement(PanelBody, null, /* @__PURE__ */ React90.createElement(EditingPanelTabs, null)));
|
|
5634
5667
|
if (ReplacementComponent) {
|
|
5635
|
-
panelContent = /* @__PURE__ */
|
|
5668
|
+
panelContent = /* @__PURE__ */ React90.createElement(ReplacementComponent, null);
|
|
5636
5669
|
}
|
|
5637
|
-
return /* @__PURE__ */
|
|
5670
|
+
return /* @__PURE__ */ React90.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React90.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React90.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React90.createElement(ThemeProvider3, null, /* @__PURE__ */ React90.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React90.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React90.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React90.createElement(Panel, null, /* @__PURE__ */ React90.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5638
5671
|
};
|
|
5639
5672
|
|
|
5640
5673
|
// src/init.ts
|
|
@@ -5686,21 +5719,21 @@ var EditingPanelHooks = () => {
|
|
|
5686
5719
|
import { AttributesControl, DisplayConditionsControl } from "@elementor/editor-controls";
|
|
5687
5720
|
|
|
5688
5721
|
// src/components/promotions/custom-css.tsx
|
|
5689
|
-
import * as
|
|
5690
|
-
import { useRef as
|
|
5722
|
+
import * as React91 from "react";
|
|
5723
|
+
import { useRef as useRef19 } from "react";
|
|
5691
5724
|
import { PromotionTrigger } from "@elementor/editor-controls";
|
|
5692
|
-
import { __ as
|
|
5725
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
5693
5726
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5694
5727
|
var CustomCssSection = () => {
|
|
5695
|
-
const triggerRef =
|
|
5696
|
-
return /* @__PURE__ */
|
|
5728
|
+
const triggerRef = useRef19(null);
|
|
5729
|
+
return /* @__PURE__ */ React91.createElement(
|
|
5697
5730
|
StyleTabSection,
|
|
5698
5731
|
{
|
|
5699
5732
|
section: {
|
|
5700
5733
|
name: "Custom CSS",
|
|
5701
|
-
title:
|
|
5734
|
+
title: __65("Custom CSS", "elementor"),
|
|
5702
5735
|
action: {
|
|
5703
|
-
component: /* @__PURE__ */
|
|
5736
|
+
component: /* @__PURE__ */ React91.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5704
5737
|
onClick: () => triggerRef.current?.toggle()
|
|
5705
5738
|
}
|
|
5706
5739
|
}
|
|
@@ -5722,7 +5755,7 @@ var init = () => {
|
|
|
5722
5755
|
};
|
|
5723
5756
|
|
|
5724
5757
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5725
|
-
import * as
|
|
5758
|
+
import * as React92 from "react";
|
|
5726
5759
|
import {
|
|
5727
5760
|
ControlFormLabel as ControlFormLabel3,
|
|
5728
5761
|
Repeater,
|
|
@@ -5735,8 +5768,8 @@ import {
|
|
|
5735
5768
|
} from "@elementor/editor-elements";
|
|
5736
5769
|
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
5737
5770
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
5738
|
-
import { Alert as Alert4, Chip as Chip4, Infotip as Infotip2, Stack as
|
|
5739
|
-
import { __ as
|
|
5771
|
+
import { Alert as Alert4, Chip as Chip4, Infotip as Infotip2, Stack as Stack15, Switch, TextField as TextField2, Typography as Typography5 } from "@elementor/ui";
|
|
5772
|
+
import { __ as __67 } from "@wordpress/i18n";
|
|
5740
5773
|
|
|
5741
5774
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5742
5775
|
import { getContainer as getContainer2 } from "@elementor/editor-elements";
|
|
@@ -5761,7 +5794,7 @@ import {
|
|
|
5761
5794
|
removeElements
|
|
5762
5795
|
} from "@elementor/editor-elements";
|
|
5763
5796
|
import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
|
|
5764
|
-
import { __ as
|
|
5797
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
5765
5798
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5766
5799
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5767
5800
|
var useActions = () => {
|
|
@@ -5784,7 +5817,7 @@ var useActions = () => {
|
|
|
5784
5817
|
}
|
|
5785
5818
|
duplicateElements({
|
|
5786
5819
|
elementIds: [tabId, tabContentId],
|
|
5787
|
-
title:
|
|
5820
|
+
title: __66("Duplicate Tab", "elementor"),
|
|
5788
5821
|
onDuplicateElements: () => {
|
|
5789
5822
|
if (newDefault !== defaultActiveTab) {
|
|
5790
5823
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5821,7 +5854,7 @@ var useActions = () => {
|
|
|
5821
5854
|
defaultActiveTab
|
|
5822
5855
|
});
|
|
5823
5856
|
moveElements({
|
|
5824
|
-
title:
|
|
5857
|
+
title: __66("Reorder Tabs", "elementor"),
|
|
5825
5858
|
moves: [
|
|
5826
5859
|
{
|
|
5827
5860
|
element: movedElement,
|
|
@@ -5855,7 +5888,7 @@ var useActions = () => {
|
|
|
5855
5888
|
defaultActiveTab
|
|
5856
5889
|
});
|
|
5857
5890
|
removeElements({
|
|
5858
|
-
title:
|
|
5891
|
+
title: __66("Tabs", "elementor"),
|
|
5859
5892
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5860
5893
|
const tabId = item.id;
|
|
5861
5894
|
const tabContentContainer = getContainer3(tabContentAreaId);
|
|
@@ -5890,7 +5923,7 @@ var useActions = () => {
|
|
|
5890
5923
|
items3.forEach(({ index }) => {
|
|
5891
5924
|
const position = index + 1;
|
|
5892
5925
|
createElements({
|
|
5893
|
-
title:
|
|
5926
|
+
title: __66("Tabs", "elementor"),
|
|
5894
5927
|
elements: [
|
|
5895
5928
|
{
|
|
5896
5929
|
container: tabContentArea,
|
|
@@ -5959,7 +5992,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5959
5992
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5960
5993
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5961
5994
|
var TabsControl = ({ label }) => {
|
|
5962
|
-
return /* @__PURE__ */
|
|
5995
|
+
return /* @__PURE__ */ React92.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __67("Tabs", "elementor") }, /* @__PURE__ */ React92.createElement(TabsControlContent, { label }));
|
|
5963
5996
|
};
|
|
5964
5997
|
var TabsControlContent = ({ label }) => {
|
|
5965
5998
|
const { element } = useElement();
|
|
@@ -6003,7 +6036,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6003
6036
|
});
|
|
6004
6037
|
}
|
|
6005
6038
|
};
|
|
6006
|
-
return /* @__PURE__ */
|
|
6039
|
+
return /* @__PURE__ */ React92.createElement(
|
|
6007
6040
|
Repeater,
|
|
6008
6041
|
{
|
|
6009
6042
|
showToggle: false,
|
|
@@ -6023,7 +6056,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6023
6056
|
};
|
|
6024
6057
|
var ItemLabel = ({ value, index }) => {
|
|
6025
6058
|
const elementTitle = value?.title;
|
|
6026
|
-
return /* @__PURE__ */
|
|
6059
|
+
return /* @__PURE__ */ React92.createElement(Stack15, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React92.createElement("span", null, elementTitle), /* @__PURE__ */ React92.createElement(ItemDefaultTab, { index }));
|
|
6027
6060
|
};
|
|
6028
6061
|
var ItemDefaultTab = ({ index }) => {
|
|
6029
6062
|
const { value: defaultItem } = useBoundProp6(numberPropTypeUtil4);
|
|
@@ -6031,18 +6064,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
6031
6064
|
if (!isDefault) {
|
|
6032
6065
|
return null;
|
|
6033
6066
|
}
|
|
6034
|
-
return /* @__PURE__ */
|
|
6067
|
+
return /* @__PURE__ */ React92.createElement(Chip4, { size: "tiny", shape: "rounded", label: __67("Default", "elementor") });
|
|
6035
6068
|
};
|
|
6036
6069
|
var ItemContent = ({ value, index }) => {
|
|
6037
6070
|
if (!value.id) {
|
|
6038
6071
|
return null;
|
|
6039
6072
|
}
|
|
6040
|
-
return /* @__PURE__ */
|
|
6073
|
+
return /* @__PURE__ */ React92.createElement(Stack15, { p: 2, gap: 1.5 }, /* @__PURE__ */ React92.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React92.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __67("Tabs", "elementor") }, /* @__PURE__ */ React92.createElement(DefaultTabControl, { tabIndex: index })));
|
|
6041
6074
|
};
|
|
6042
6075
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
6043
6076
|
const { value, setValue } = useBoundProp6(numberPropTypeUtil4);
|
|
6044
6077
|
const isDefault = value === tabIndex;
|
|
6045
|
-
return /* @__PURE__ */
|
|
6078
|
+
return /* @__PURE__ */ React92.createElement(Stack15, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React92.createElement(ControlFormLabel3, null, __67("Set as default tab", "elementor")), /* @__PURE__ */ React92.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React92.createElement(
|
|
6046
6079
|
Switch,
|
|
6047
6080
|
{
|
|
6048
6081
|
size: "small",
|
|
@@ -6060,7 +6093,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6060
6093
|
var TabLabelControl = ({ elementId }) => {
|
|
6061
6094
|
const editorSettings = useElementEditorSettings(elementId);
|
|
6062
6095
|
const label = editorSettings?.title ?? "";
|
|
6063
|
-
return /* @__PURE__ */
|
|
6096
|
+
return /* @__PURE__ */ React92.createElement(Stack15, { gap: 1 }, /* @__PURE__ */ React92.createElement(ControlFormLabel3, null, __67("Tab name", "elementor")), /* @__PURE__ */ React92.createElement(
|
|
6064
6097
|
TextField2,
|
|
6065
6098
|
{
|
|
6066
6099
|
size: "tiny",
|
|
@@ -6081,22 +6114,22 @@ var ConditionalTooltip = ({
|
|
|
6081
6114
|
if (!showTooltip) {
|
|
6082
6115
|
return children;
|
|
6083
6116
|
}
|
|
6084
|
-
return /* @__PURE__ */
|
|
6117
|
+
return /* @__PURE__ */ React92.createElement(
|
|
6085
6118
|
Infotip2,
|
|
6086
6119
|
{
|
|
6087
6120
|
arrow: false,
|
|
6088
|
-
content: /* @__PURE__ */
|
|
6121
|
+
content: /* @__PURE__ */ React92.createElement(
|
|
6089
6122
|
Alert4,
|
|
6090
6123
|
{
|
|
6091
6124
|
color: "secondary",
|
|
6092
|
-
icon: /* @__PURE__ */
|
|
6125
|
+
icon: /* @__PURE__ */ React92.createElement(InfoCircleFilledIcon2, { fontSize: "tiny" }),
|
|
6093
6126
|
size: "small",
|
|
6094
6127
|
sx: { width: 288 }
|
|
6095
6128
|
},
|
|
6096
|
-
/* @__PURE__ */
|
|
6129
|
+
/* @__PURE__ */ React92.createElement(Typography5, { variant: "body2" }, __67("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6097
6130
|
)
|
|
6098
6131
|
},
|
|
6099
|
-
/* @__PURE__ */
|
|
6132
|
+
/* @__PURE__ */ React92.createElement("span", null, children)
|
|
6100
6133
|
);
|
|
6101
6134
|
};
|
|
6102
6135
|
|
|
@@ -6122,7 +6155,7 @@ import {
|
|
|
6122
6155
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
6123
6156
|
|
|
6124
6157
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6125
|
-
import * as
|
|
6158
|
+
import * as React93 from "react";
|
|
6126
6159
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
|
|
6127
6160
|
import {
|
|
6128
6161
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -6265,24 +6298,24 @@ var useDynamicTag = (tagName) => {
|
|
|
6265
6298
|
};
|
|
6266
6299
|
|
|
6267
6300
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6268
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6301
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React93.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
6269
6302
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6270
6303
|
const context = useBoundProp8(backgroundImageOverlayPropTypeUtil);
|
|
6271
|
-
return /* @__PURE__ */
|
|
6304
|
+
return /* @__PURE__ */ React93.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React93.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React93.createElement(Wrapper2, { rawValue: value.value })));
|
|
6272
6305
|
};
|
|
6273
6306
|
var Wrapper2 = ({ rawValue }) => {
|
|
6274
6307
|
const { propType } = useBoundProp8();
|
|
6275
6308
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6276
|
-
return /* @__PURE__ */
|
|
6309
|
+
return /* @__PURE__ */ React93.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React93.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React93.createElement(Content, { rawValue: rawValue.image })));
|
|
6277
6310
|
};
|
|
6278
6311
|
var Content = ({ rawValue }) => {
|
|
6279
6312
|
const src = rawValue.value.src;
|
|
6280
6313
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6281
|
-
return /* @__PURE__ */
|
|
6314
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, dynamicTag?.label);
|
|
6282
6315
|
};
|
|
6283
6316
|
|
|
6284
6317
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6285
|
-
import * as
|
|
6318
|
+
import * as React97 from "react";
|
|
6286
6319
|
import {
|
|
6287
6320
|
ControlFormLabel as ControlFormLabel4,
|
|
6288
6321
|
PropKeyProvider as PropKeyProvider6,
|
|
@@ -6299,7 +6332,7 @@ import {
|
|
|
6299
6332
|
Grid as Grid8,
|
|
6300
6333
|
IconButton as IconButton2,
|
|
6301
6334
|
Popover,
|
|
6302
|
-
Stack as
|
|
6335
|
+
Stack as Stack17,
|
|
6303
6336
|
Tab as Tab2,
|
|
6304
6337
|
TabPanel as TabPanel2,
|
|
6305
6338
|
Tabs as Tabs2,
|
|
@@ -6307,7 +6340,7 @@ import {
|
|
|
6307
6340
|
usePopupState as usePopupState2,
|
|
6308
6341
|
useTabs as useTabs2
|
|
6309
6342
|
} from "@elementor/ui";
|
|
6310
|
-
import { __ as
|
|
6343
|
+
import { __ as __69 } from "@wordpress/i18n";
|
|
6311
6344
|
|
|
6312
6345
|
// src/hooks/use-persist-dynamic-value.ts
|
|
6313
6346
|
import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
|
|
@@ -6318,11 +6351,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6318
6351
|
};
|
|
6319
6352
|
|
|
6320
6353
|
// src/dynamics/dynamic-control.tsx
|
|
6321
|
-
import * as
|
|
6354
|
+
import * as React95 from "react";
|
|
6322
6355
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
6323
6356
|
|
|
6324
6357
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6325
|
-
import * as
|
|
6358
|
+
import * as React94 from "react";
|
|
6326
6359
|
import { useMemo as useMemo14 } from "react";
|
|
6327
6360
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
6328
6361
|
var DynamicConditionalControl = ({
|
|
@@ -6364,10 +6397,10 @@ var DynamicConditionalControl = ({
|
|
|
6364
6397
|
return { ...defaults, ...convertedSettings };
|
|
6365
6398
|
}, [defaults, convertedSettings]);
|
|
6366
6399
|
if (!propType?.dependencies?.terms.length) {
|
|
6367
|
-
return /* @__PURE__ */
|
|
6400
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, children);
|
|
6368
6401
|
}
|
|
6369
6402
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
6370
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6403
|
+
return isHidden ? null : /* @__PURE__ */ React94.createElement(React94.Fragment, null, children);
|
|
6371
6404
|
};
|
|
6372
6405
|
|
|
6373
6406
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6392,7 +6425,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6392
6425
|
});
|
|
6393
6426
|
};
|
|
6394
6427
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6395
|
-
return /* @__PURE__ */
|
|
6428
|
+
return /* @__PURE__ */ React95.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React95.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React95.createElement(
|
|
6396
6429
|
DynamicConditionalControl,
|
|
6397
6430
|
{
|
|
6398
6431
|
propType: dynamicPropType,
|
|
@@ -6404,13 +6437,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6404
6437
|
};
|
|
6405
6438
|
|
|
6406
6439
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6407
|
-
import * as
|
|
6440
|
+
import * as React96 from "react";
|
|
6408
6441
|
import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
|
|
6409
6442
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
|
|
6410
6443
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
6411
6444
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
6412
|
-
import { Divider as Divider7, Link as Link2, Stack as
|
|
6413
|
-
import { __ as
|
|
6445
|
+
import { Divider as Divider7, Link as Link2, Stack as Stack16, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
|
|
6446
|
+
import { __ as __68 } from "@wordpress/i18n";
|
|
6414
6447
|
var SIZE2 = "tiny";
|
|
6415
6448
|
var PROMO_TEXT_WIDTH = 170;
|
|
6416
6449
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6457,19 +6490,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6457
6490
|
]);
|
|
6458
6491
|
const getPopOverContent = () => {
|
|
6459
6492
|
if (hasNoDynamicTags) {
|
|
6460
|
-
return /* @__PURE__ */
|
|
6493
|
+
return /* @__PURE__ */ React96.createElement(NoDynamicTags, null);
|
|
6461
6494
|
}
|
|
6462
6495
|
if (expired) {
|
|
6463
|
-
return /* @__PURE__ */
|
|
6496
|
+
return /* @__PURE__ */ React96.createElement(ExpiredDynamicTags, null);
|
|
6464
6497
|
}
|
|
6465
|
-
return /* @__PURE__ */
|
|
6498
|
+
return /* @__PURE__ */ React96.createElement(Fragment14, null, /* @__PURE__ */ React96.createElement(
|
|
6466
6499
|
SearchField,
|
|
6467
6500
|
{
|
|
6468
6501
|
value: searchValue,
|
|
6469
6502
|
onSearch: handleSearch,
|
|
6470
|
-
placeholder:
|
|
6503
|
+
placeholder: __68("Search dynamic tags\u2026", "elementor")
|
|
6471
6504
|
}
|
|
6472
|
-
), /* @__PURE__ */
|
|
6505
|
+
), /* @__PURE__ */ React96.createElement(Divider7, null), /* @__PURE__ */ React96.createElement(
|
|
6473
6506
|
PopoverMenuList,
|
|
6474
6507
|
{
|
|
6475
6508
|
items: virtualizedItems,
|
|
@@ -6477,21 +6510,21 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6477
6510
|
onClose: closePopover,
|
|
6478
6511
|
selectedValue: dynamicValue?.name,
|
|
6479
6512
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6480
|
-
noResultsComponent: /* @__PURE__ */
|
|
6513
|
+
noResultsComponent: /* @__PURE__ */ React96.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6481
6514
|
}
|
|
6482
6515
|
));
|
|
6483
6516
|
};
|
|
6484
|
-
return /* @__PURE__ */
|
|
6517
|
+
return /* @__PURE__ */ React96.createElement(SectionPopoverBody, { "aria-label": __68("Dynamic tags", "elementor") }, /* @__PURE__ */ React96.createElement(
|
|
6485
6518
|
PopoverHeader,
|
|
6486
6519
|
{
|
|
6487
|
-
title:
|
|
6520
|
+
title: __68("Dynamic tags", "elementor"),
|
|
6488
6521
|
onClose: closePopover,
|
|
6489
|
-
icon: /* @__PURE__ */
|
|
6522
|
+
icon: /* @__PURE__ */ React96.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
6490
6523
|
}
|
|
6491
6524
|
), getPopOverContent());
|
|
6492
6525
|
};
|
|
6493
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6494
|
-
|
|
6526
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React96.createElement(
|
|
6527
|
+
Stack16,
|
|
6495
6528
|
{
|
|
6496
6529
|
gap: 1,
|
|
6497
6530
|
alignItems: "center",
|
|
@@ -6501,12 +6534,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React95.createElem
|
|
|
6501
6534
|
color: "text.secondary",
|
|
6502
6535
|
sx: { pb: 3.5 }
|
|
6503
6536
|
},
|
|
6504
|
-
/* @__PURE__ */
|
|
6505
|
-
/* @__PURE__ */
|
|
6506
|
-
/* @__PURE__ */
|
|
6537
|
+
/* @__PURE__ */ React96.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6538
|
+
/* @__PURE__ */ React96.createElement(Typography6, { align: "center", variant: "subtitle2" }, __68("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React96.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6539
|
+
/* @__PURE__ */ React96.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __68("Try something else.", "elementor"), /* @__PURE__ */ React96.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __68("Clear & try again", "elementor")))
|
|
6507
6540
|
);
|
|
6508
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6509
|
-
|
|
6541
|
+
var NoDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement(Divider7, null), /* @__PURE__ */ React96.createElement(
|
|
6542
|
+
Stack16,
|
|
6510
6543
|
{
|
|
6511
6544
|
gap: 1,
|
|
6512
6545
|
alignItems: "center",
|
|
@@ -6516,10 +6549,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React95.createElement(React95.Fragment
|
|
|
6516
6549
|
color: "text.secondary",
|
|
6517
6550
|
sx: { pb: 3.5 }
|
|
6518
6551
|
},
|
|
6519
|
-
/* @__PURE__ */
|
|
6520
|
-
/* @__PURE__ */
|
|
6521
|
-
/* @__PURE__ */
|
|
6522
|
-
/* @__PURE__ */
|
|
6552
|
+
/* @__PURE__ */ React96.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6553
|
+
/* @__PURE__ */ React96.createElement(Typography6, { align: "center", variant: "subtitle2" }, __68("Streamline your workflow with dynamic tags", "elementor")),
|
|
6554
|
+
/* @__PURE__ */ React96.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __68("Upgrade now to display your content dynamically.", "elementor")),
|
|
6555
|
+
/* @__PURE__ */ React96.createElement(
|
|
6523
6556
|
CtaButton,
|
|
6524
6557
|
{
|
|
6525
6558
|
size: "small",
|
|
@@ -6528,8 +6561,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React95.createElement(React95.Fragment
|
|
|
6528
6561
|
}
|
|
6529
6562
|
)
|
|
6530
6563
|
));
|
|
6531
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6532
|
-
|
|
6564
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement(Divider7, null), /* @__PURE__ */ React96.createElement(
|
|
6565
|
+
Stack16,
|
|
6533
6566
|
{
|
|
6534
6567
|
gap: 1,
|
|
6535
6568
|
alignItems: "center",
|
|
@@ -6539,16 +6572,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React95.createElement(React95.Fra
|
|
|
6539
6572
|
color: "text.secondary",
|
|
6540
6573
|
sx: { pb: 3.5 }
|
|
6541
6574
|
},
|
|
6542
|
-
/* @__PURE__ */
|
|
6543
|
-
/* @__PURE__ */
|
|
6544
|
-
/* @__PURE__ */
|
|
6545
|
-
/* @__PURE__ */
|
|
6575
|
+
/* @__PURE__ */ React96.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6576
|
+
/* @__PURE__ */ React96.createElement(Typography6, { align: "center", variant: "subtitle2" }, __68("Unlock your Dynamic tags again", "elementor")),
|
|
6577
|
+
/* @__PURE__ */ React96.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __68("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6578
|
+
/* @__PURE__ */ React96.createElement(
|
|
6546
6579
|
CtaButton,
|
|
6547
6580
|
{
|
|
6548
6581
|
size: "small",
|
|
6549
6582
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6550
6583
|
onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
|
|
6551
|
-
children:
|
|
6584
|
+
children: __68("Renew Now", "elementor")
|
|
6552
6585
|
}
|
|
6553
6586
|
)
|
|
6554
6587
|
));
|
|
@@ -6585,7 +6618,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6585
6618
|
const { name: tagName = "" } = value;
|
|
6586
6619
|
const dynamicTag = useDynamicTag(tagName);
|
|
6587
6620
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6588
|
-
return /* @__PURE__ */
|
|
6621
|
+
return /* @__PURE__ */ React97.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React97.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React97.createElement(OriginalControl, { ...props })));
|
|
6589
6622
|
}
|
|
6590
6623
|
const removeDynamicTag = () => {
|
|
6591
6624
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6593,25 +6626,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6593
6626
|
if (!dynamicTag) {
|
|
6594
6627
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6595
6628
|
}
|
|
6596
|
-
return /* @__PURE__ */
|
|
6629
|
+
return /* @__PURE__ */ React97.createElement(Box7, null, /* @__PURE__ */ React97.createElement(
|
|
6597
6630
|
Tag,
|
|
6598
6631
|
{
|
|
6599
6632
|
fullWidth: true,
|
|
6600
6633
|
showActionsOnHover: true,
|
|
6601
6634
|
label: dynamicTag.label,
|
|
6602
|
-
startIcon: /* @__PURE__ */
|
|
6635
|
+
startIcon: /* @__PURE__ */ React97.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
6603
6636
|
...bindTrigger2(selectionPopoverState),
|
|
6604
|
-
actions: /* @__PURE__ */
|
|
6637
|
+
actions: /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React97.createElement(
|
|
6605
6638
|
IconButton2,
|
|
6606
6639
|
{
|
|
6607
6640
|
size: SIZE3,
|
|
6608
6641
|
onClick: removeDynamicTag,
|
|
6609
|
-
"aria-label":
|
|
6642
|
+
"aria-label": __69("Remove dynamic value", "elementor")
|
|
6610
6643
|
},
|
|
6611
|
-
/* @__PURE__ */
|
|
6644
|
+
/* @__PURE__ */ React97.createElement(XIcon, { fontSize: SIZE3 })
|
|
6612
6645
|
))
|
|
6613
6646
|
}
|
|
6614
|
-
), /* @__PURE__ */
|
|
6647
|
+
), /* @__PURE__ */ React97.createElement(
|
|
6615
6648
|
Popover,
|
|
6616
6649
|
{
|
|
6617
6650
|
disablePortal: true,
|
|
@@ -6623,7 +6656,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6623
6656
|
},
|
|
6624
6657
|
...bindPopover(selectionPopoverState)
|
|
6625
6658
|
},
|
|
6626
|
-
/* @__PURE__ */
|
|
6659
|
+
/* @__PURE__ */ React97.createElement(SectionPopoverBody2, { "aria-label": __69("Dynamic tags", "elementor") }, /* @__PURE__ */ React97.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6627
6660
|
));
|
|
6628
6661
|
};
|
|
6629
6662
|
var DynamicSettingsPopover = ({
|
|
@@ -6635,16 +6668,16 @@ var DynamicSettingsPopover = ({
|
|
|
6635
6668
|
if (!hasDynamicSettings) {
|
|
6636
6669
|
return null;
|
|
6637
6670
|
}
|
|
6638
|
-
return /* @__PURE__ */
|
|
6671
|
+
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(
|
|
6639
6672
|
IconButton2,
|
|
6640
6673
|
{
|
|
6641
6674
|
size: SIZE3,
|
|
6642
6675
|
disabled,
|
|
6643
6676
|
...!disabled && bindTrigger2(popupState),
|
|
6644
|
-
"aria-label":
|
|
6677
|
+
"aria-label": __69("Dynamic settings", "elementor")
|
|
6645
6678
|
},
|
|
6646
|
-
/* @__PURE__ */
|
|
6647
|
-
), /* @__PURE__ */
|
|
6679
|
+
/* @__PURE__ */ React97.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
6680
|
+
), /* @__PURE__ */ React97.createElement(
|
|
6648
6681
|
Popover,
|
|
6649
6682
|
{
|
|
6650
6683
|
disablePortal: true,
|
|
@@ -6656,14 +6689,14 @@ var DynamicSettingsPopover = ({
|
|
|
6656
6689
|
},
|
|
6657
6690
|
...bindPopover(popupState)
|
|
6658
6691
|
},
|
|
6659
|
-
/* @__PURE__ */
|
|
6692
|
+
/* @__PURE__ */ React97.createElement(SectionPopoverBody2, { "aria-label": __69("Dynamic settings", "elementor") }, /* @__PURE__ */ React97.createElement(
|
|
6660
6693
|
PopoverHeader2,
|
|
6661
6694
|
{
|
|
6662
6695
|
title: dynamicTag.label,
|
|
6663
6696
|
onClose: popupState.close,
|
|
6664
|
-
icon: /* @__PURE__ */
|
|
6697
|
+
icon: /* @__PURE__ */ React97.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
6665
6698
|
}
|
|
6666
|
-
), /* @__PURE__ */
|
|
6699
|
+
), /* @__PURE__ */ React97.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6667
6700
|
));
|
|
6668
6701
|
};
|
|
6669
6702
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6674,9 +6707,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6674
6707
|
}
|
|
6675
6708
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6676
6709
|
const singleTab = tabs[0];
|
|
6677
|
-
return /* @__PURE__ */
|
|
6710
|
+
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, /* @__PURE__ */ React97.createElement(Divider8, null), /* @__PURE__ */ React97.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6678
6711
|
}
|
|
6679
|
-
return /* @__PURE__ */
|
|
6712
|
+
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React97.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React97.createElement(
|
|
6680
6713
|
Tab2,
|
|
6681
6714
|
{
|
|
6682
6715
|
key: index,
|
|
@@ -6684,15 +6717,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6684
6717
|
sx: { px: 1, py: 0.5 },
|
|
6685
6718
|
...getTabProps(index)
|
|
6686
6719
|
}
|
|
6687
|
-
))), /* @__PURE__ */
|
|
6688
|
-
return /* @__PURE__ */
|
|
6720
|
+
))), /* @__PURE__ */ React97.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
6721
|
+
return /* @__PURE__ */ React97.createElement(
|
|
6689
6722
|
TabPanel2,
|
|
6690
6723
|
{
|
|
6691
6724
|
key: index,
|
|
6692
6725
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6693
6726
|
...getTabPanelProps(index)
|
|
6694
6727
|
},
|
|
6695
|
-
/* @__PURE__ */
|
|
6728
|
+
/* @__PURE__ */ React97.createElement(ControlsItemsStack, { items: value.items })
|
|
6696
6729
|
);
|
|
6697
6730
|
}));
|
|
6698
6731
|
};
|
|
@@ -6734,11 +6767,11 @@ var Control2 = ({ control }) => {
|
|
|
6734
6767
|
display: "grid",
|
|
6735
6768
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6736
6769
|
} : {};
|
|
6737
|
-
return /* @__PURE__ */
|
|
6770
|
+
return /* @__PURE__ */ React97.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React97.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React97.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(ControlFormLabel4, null, control.label)) : null, /* @__PURE__ */ React97.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6738
6771
|
};
|
|
6739
6772
|
function ControlsItemsStack({ items: items3 }) {
|
|
6740
|
-
return /* @__PURE__ */
|
|
6741
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6773
|
+
return /* @__PURE__ */ React97.createElement(Stack17, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6774
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React97.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6742
6775
|
));
|
|
6743
6776
|
}
|
|
6744
6777
|
|
|
@@ -6794,18 +6827,18 @@ function getDynamicValue(name, settings) {
|
|
|
6794
6827
|
}
|
|
6795
6828
|
|
|
6796
6829
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6797
|
-
import * as
|
|
6830
|
+
import * as React98 from "react";
|
|
6798
6831
|
import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
|
|
6799
6832
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
6800
|
-
import { __ as
|
|
6833
|
+
import { __ as __70 } from "@wordpress/i18n";
|
|
6801
6834
|
var usePropDynamicAction = () => {
|
|
6802
6835
|
const { propType } = useBoundProp12();
|
|
6803
6836
|
const visible = !!propType && supportsDynamic(propType);
|
|
6804
6837
|
return {
|
|
6805
6838
|
visible,
|
|
6806
6839
|
icon: DatabaseIcon4,
|
|
6807
|
-
title:
|
|
6808
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6840
|
+
title: __70("Dynamic tags", "elementor"),
|
|
6841
|
+
content: ({ close }) => /* @__PURE__ */ React98.createElement(DynamicSelection, { close })
|
|
6809
6842
|
};
|
|
6810
6843
|
};
|
|
6811
6844
|
|
|
@@ -6840,7 +6873,7 @@ import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
|
|
|
6840
6873
|
import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
|
|
6841
6874
|
import { BrushBigIcon } from "@elementor/icons";
|
|
6842
6875
|
import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
|
|
6843
|
-
import { __ as
|
|
6876
|
+
import { __ as __71 } from "@wordpress/i18n";
|
|
6844
6877
|
|
|
6845
6878
|
// src/utils/is-equal.ts
|
|
6846
6879
|
function isEqual(a, b) {
|
|
@@ -6916,22 +6949,22 @@ function useResetStyleValueProps() {
|
|
|
6916
6949
|
const visible = calculateVisibility();
|
|
6917
6950
|
return {
|
|
6918
6951
|
visible,
|
|
6919
|
-
title:
|
|
6952
|
+
title: __71("Clear", "elementor"),
|
|
6920
6953
|
icon: BrushBigIcon,
|
|
6921
6954
|
onClick: () => resetValue()
|
|
6922
6955
|
};
|
|
6923
6956
|
}
|
|
6924
6957
|
|
|
6925
6958
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6926
|
-
import * as
|
|
6959
|
+
import * as React104 from "react";
|
|
6927
6960
|
import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
|
|
6928
6961
|
import { isEmpty as isEmpty2 } from "@elementor/editor-props";
|
|
6929
6962
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
6930
|
-
import { __ as
|
|
6963
|
+
import { __ as __75 } from "@wordpress/i18n";
|
|
6931
6964
|
|
|
6932
6965
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6933
|
-
import * as
|
|
6934
|
-
import { useMemo as useMemo15, useRef as
|
|
6966
|
+
import * as React103 from "react";
|
|
6967
|
+
import { useMemo as useMemo15, useRef as useRef20, useState as useState12 } from "react";
|
|
6935
6968
|
import {
|
|
6936
6969
|
createPropsResolver as createPropsResolver2,
|
|
6937
6970
|
stylesInheritanceTransformersRegistry
|
|
@@ -6945,10 +6978,10 @@ import {
|
|
|
6945
6978
|
ClickAwayListener,
|
|
6946
6979
|
IconButton as IconButton3,
|
|
6947
6980
|
Infotip as Infotip3,
|
|
6948
|
-
Stack as
|
|
6949
|
-
Tooltip as
|
|
6981
|
+
Stack as Stack18,
|
|
6982
|
+
Tooltip as Tooltip7
|
|
6950
6983
|
} from "@elementor/ui";
|
|
6951
|
-
import { __ as
|
|
6984
|
+
import { __ as __74 } from "@wordpress/i18n";
|
|
6952
6985
|
|
|
6953
6986
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6954
6987
|
import { isValidElement, useEffect as useEffect10, useState as useState11 } from "react";
|
|
@@ -6958,7 +6991,7 @@ import {
|
|
|
6958
6991
|
isPseudoState
|
|
6959
6992
|
} from "@elementor/editor-styles";
|
|
6960
6993
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
6961
|
-
import { __ as
|
|
6994
|
+
import { __ as __72 } from "@wordpress/i18n";
|
|
6962
6995
|
var MAXIMUM_ITEMS = 2;
|
|
6963
6996
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6964
6997
|
const [items3, setItems] = useState11([]);
|
|
@@ -6969,7 +7002,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
6969
7002
|
);
|
|
6970
7003
|
const validItems = normalizedItems.map((item) => ({
|
|
6971
7004
|
...item,
|
|
6972
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
7005
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __72("Base", "elementor")
|
|
6973
7006
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6974
7007
|
setItems(validItems);
|
|
6975
7008
|
})();
|
|
@@ -7026,7 +7059,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
7026
7059
|
};
|
|
7027
7060
|
|
|
7028
7061
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
7029
|
-
import * as
|
|
7062
|
+
import * as React99 from "react";
|
|
7030
7063
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
7031
7064
|
import {
|
|
7032
7065
|
DesktopIcon,
|
|
@@ -7037,7 +7070,7 @@ import {
|
|
|
7037
7070
|
TabletPortraitIcon,
|
|
7038
7071
|
WidescreenIcon
|
|
7039
7072
|
} from "@elementor/icons";
|
|
7040
|
-
import { Tooltip as
|
|
7073
|
+
import { Tooltip as Tooltip4 } from "@elementor/ui";
|
|
7041
7074
|
var SIZE4 = "tiny";
|
|
7042
7075
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
7043
7076
|
var breakpointIconMap = {
|
|
@@ -7057,20 +7090,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
7057
7090
|
return null;
|
|
7058
7091
|
}
|
|
7059
7092
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
7060
|
-
return /* @__PURE__ */
|
|
7093
|
+
return /* @__PURE__ */ React99.createElement(Tooltip4, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React99.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
7061
7094
|
};
|
|
7062
7095
|
|
|
7063
7096
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
7064
|
-
import * as
|
|
7097
|
+
import * as React100 from "react";
|
|
7065
7098
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
7066
|
-
import { InfoCircleIcon } from "@elementor/icons";
|
|
7067
|
-
import { Chip as Chip5, Tooltip as
|
|
7068
|
-
import { __ as
|
|
7099
|
+
import { InfoCircleIcon as InfoCircleIcon2 } from "@elementor/icons";
|
|
7100
|
+
import { Chip as Chip5, Tooltip as Tooltip5 } from "@elementor/ui";
|
|
7101
|
+
import { __ as __73 } from "@wordpress/i18n";
|
|
7069
7102
|
var SIZE5 = "tiny";
|
|
7070
7103
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
7071
7104
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
7072
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
7073
|
-
return /* @__PURE__ */
|
|
7105
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React100.createElement(Tooltip5, { title: __73("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React100.createElement(InfoCircleIcon2, { fontSize: SIZE5 })) : void 0;
|
|
7106
|
+
return /* @__PURE__ */ React100.createElement(
|
|
7074
7107
|
Chip5,
|
|
7075
7108
|
{
|
|
7076
7109
|
label: displayLabel,
|
|
@@ -7096,10 +7129,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
7096
7129
|
};
|
|
7097
7130
|
|
|
7098
7131
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
7099
|
-
import * as
|
|
7100
|
-
import { Tooltip as
|
|
7132
|
+
import * as React101 from "react";
|
|
7133
|
+
import { Tooltip as Tooltip6, Typography as Typography7 } from "@elementor/ui";
|
|
7101
7134
|
var ValueComponent = ({ index, value }) => {
|
|
7102
|
-
return /* @__PURE__ */
|
|
7135
|
+
return /* @__PURE__ */ React101.createElement(Tooltip6, { title: value, placement: "top" }, /* @__PURE__ */ React101.createElement(
|
|
7103
7136
|
Typography7,
|
|
7104
7137
|
{
|
|
7105
7138
|
variant: "caption",
|
|
@@ -7121,9 +7154,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7121
7154
|
};
|
|
7122
7155
|
|
|
7123
7156
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7124
|
-
import * as
|
|
7157
|
+
import * as React102 from "react";
|
|
7125
7158
|
import { Box as Box8 } from "@elementor/ui";
|
|
7126
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7159
|
+
var ActionIcons = () => /* @__PURE__ */ React102.createElement(Box8, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7127
7160
|
|
|
7128
7161
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7129
7162
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7137,7 +7170,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7137
7170
|
isDisabled
|
|
7138
7171
|
}) => {
|
|
7139
7172
|
const [showInfotip, setShowInfotip] = useState12(false);
|
|
7140
|
-
const triggerRef =
|
|
7173
|
+
const triggerRef = useRef20(null);
|
|
7141
7174
|
const toggleInfotip = () => {
|
|
7142
7175
|
if (isDisabled) {
|
|
7143
7176
|
return;
|
|
@@ -7159,7 +7192,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7159
7192
|
});
|
|
7160
7193
|
}, [key, propType]);
|
|
7161
7194
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7162
|
-
const infotipContent = /* @__PURE__ */
|
|
7195
|
+
const infotipContent = /* @__PURE__ */ React103.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React103.createElement(
|
|
7163
7196
|
Card,
|
|
7164
7197
|
{
|
|
7165
7198
|
elevation: 0,
|
|
@@ -7172,7 +7205,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7172
7205
|
flexDirection: "column"
|
|
7173
7206
|
}
|
|
7174
7207
|
},
|
|
7175
|
-
/* @__PURE__ */
|
|
7208
|
+
/* @__PURE__ */ React103.createElement(
|
|
7176
7209
|
Box9,
|
|
7177
7210
|
{
|
|
7178
7211
|
sx: {
|
|
@@ -7182,9 +7215,9 @@ var StylesInheritanceInfotip = ({
|
|
|
7182
7215
|
backgroundColor: "background.paper"
|
|
7183
7216
|
}
|
|
7184
7217
|
},
|
|
7185
|
-
/* @__PURE__ */
|
|
7218
|
+
/* @__PURE__ */ React103.createElement(PopoverHeader3, { title: __74("Style origin", "elementor"), onClose: closeInfotip })
|
|
7186
7219
|
),
|
|
7187
|
-
/* @__PURE__ */
|
|
7220
|
+
/* @__PURE__ */ React103.createElement(
|
|
7188
7221
|
CardContent,
|
|
7189
7222
|
{
|
|
7190
7223
|
sx: {
|
|
@@ -7198,39 +7231,39 @@ var StylesInheritanceInfotip = ({
|
|
|
7198
7231
|
}
|
|
7199
7232
|
}
|
|
7200
7233
|
},
|
|
7201
|
-
/* @__PURE__ */
|
|
7202
|
-
return /* @__PURE__ */
|
|
7234
|
+
/* @__PURE__ */ React103.createElement(Stack18, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7235
|
+
return /* @__PURE__ */ React103.createElement(
|
|
7203
7236
|
Box9,
|
|
7204
7237
|
{
|
|
7205
7238
|
key: item.id,
|
|
7206
7239
|
display: "flex",
|
|
7207
7240
|
gap: 0.5,
|
|
7208
7241
|
role: "listitem",
|
|
7209
|
-
"aria-label":
|
|
7242
|
+
"aria-label": __74("Inheritance item: %s", "elementor").replace(
|
|
7210
7243
|
"%s",
|
|
7211
7244
|
item.displayLabel
|
|
7212
7245
|
)
|
|
7213
7246
|
},
|
|
7214
|
-
/* @__PURE__ */
|
|
7247
|
+
/* @__PURE__ */ React103.createElement(
|
|
7215
7248
|
Box9,
|
|
7216
7249
|
{
|
|
7217
7250
|
display: "flex",
|
|
7218
7251
|
gap: 0.5,
|
|
7219
7252
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7220
7253
|
},
|
|
7221
|
-
/* @__PURE__ */
|
|
7222
|
-
/* @__PURE__ */
|
|
7223
|
-
/* @__PURE__ */
|
|
7254
|
+
/* @__PURE__ */ React103.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7255
|
+
/* @__PURE__ */ React103.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7256
|
+
/* @__PURE__ */ React103.createElement(ValueComponent, { index, value: item.value })
|
|
7224
7257
|
),
|
|
7225
|
-
/* @__PURE__ */
|
|
7258
|
+
/* @__PURE__ */ React103.createElement(ActionIcons, null)
|
|
7226
7259
|
);
|
|
7227
7260
|
}))
|
|
7228
7261
|
)
|
|
7229
7262
|
));
|
|
7230
7263
|
if (isDisabled) {
|
|
7231
|
-
return /* @__PURE__ */
|
|
7264
|
+
return /* @__PURE__ */ React103.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
7232
7265
|
}
|
|
7233
|
-
return /* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ React103.createElement(Box9, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React103.createElement(
|
|
7234
7267
|
TooltipOrInfotip,
|
|
7235
7268
|
{
|
|
7236
7269
|
showInfotip,
|
|
@@ -7238,7 +7271,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7238
7271
|
infotipContent,
|
|
7239
7272
|
isDisabled
|
|
7240
7273
|
},
|
|
7241
|
-
/* @__PURE__ */
|
|
7274
|
+
/* @__PURE__ */ React103.createElement(
|
|
7242
7275
|
IconButton3,
|
|
7243
7276
|
{
|
|
7244
7277
|
onClick: toggleInfotip,
|
|
@@ -7258,10 +7291,10 @@ function TooltipOrInfotip({
|
|
|
7258
7291
|
isDisabled
|
|
7259
7292
|
}) {
|
|
7260
7293
|
if (isDisabled) {
|
|
7261
|
-
return /* @__PURE__ */
|
|
7294
|
+
return /* @__PURE__ */ React103.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
7262
7295
|
}
|
|
7263
7296
|
if (showInfotip) {
|
|
7264
|
-
return /* @__PURE__ */
|
|
7297
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
|
|
7265
7298
|
Backdrop,
|
|
7266
7299
|
{
|
|
7267
7300
|
open: showInfotip,
|
|
@@ -7271,7 +7304,7 @@ function TooltipOrInfotip({
|
|
|
7271
7304
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7272
7305
|
}
|
|
7273
7306
|
}
|
|
7274
|
-
), /* @__PURE__ */
|
|
7307
|
+
), /* @__PURE__ */ React103.createElement(
|
|
7275
7308
|
Infotip3,
|
|
7276
7309
|
{
|
|
7277
7310
|
placement: "top-end",
|
|
@@ -7283,7 +7316,7 @@ function TooltipOrInfotip({
|
|
|
7283
7316
|
children
|
|
7284
7317
|
));
|
|
7285
7318
|
}
|
|
7286
|
-
return /* @__PURE__ */
|
|
7319
|
+
return /* @__PURE__ */ React103.createElement(Tooltip7, { title: __74("Style origin", "elementor"), placement: "top" }, children);
|
|
7287
7320
|
}
|
|
7288
7321
|
|
|
7289
7322
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7296,7 +7329,7 @@ var StylesInheritanceIndicator = ({
|
|
|
7296
7329
|
if (!path || !inheritanceChain.length) {
|
|
7297
7330
|
return null;
|
|
7298
7331
|
}
|
|
7299
|
-
return /* @__PURE__ */
|
|
7332
|
+
return /* @__PURE__ */ React104.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7300
7333
|
};
|
|
7301
7334
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7302
7335
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -7312,7 +7345,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7312
7345
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7313
7346
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7314
7347
|
};
|
|
7315
|
-
return /* @__PURE__ */
|
|
7348
|
+
return /* @__PURE__ */ React104.createElement(
|
|
7316
7349
|
StylesInheritanceInfotip,
|
|
7317
7350
|
{
|
|
7318
7351
|
inheritanceChain,
|
|
@@ -7321,17 +7354,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7321
7354
|
label,
|
|
7322
7355
|
isDisabled
|
|
7323
7356
|
},
|
|
7324
|
-
/* @__PURE__ */
|
|
7357
|
+
/* @__PURE__ */ React104.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7325
7358
|
);
|
|
7326
7359
|
};
|
|
7327
7360
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
7328
7361
|
if (isFinalValue) {
|
|
7329
|
-
return
|
|
7362
|
+
return __75("This is the final value", "elementor");
|
|
7330
7363
|
}
|
|
7331
7364
|
if (hasValue) {
|
|
7332
|
-
return
|
|
7365
|
+
return __75("This value is overridden by another style", "elementor");
|
|
7333
7366
|
}
|
|
7334
|
-
return
|
|
7367
|
+
return __75("This has value from another style", "elementor");
|
|
7335
7368
|
};
|
|
7336
7369
|
|
|
7337
7370
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -7356,7 +7389,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7356
7389
|
]);
|
|
7357
7390
|
|
|
7358
7391
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7359
|
-
import * as
|
|
7392
|
+
import * as React105 from "react";
|
|
7360
7393
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
7361
7394
|
var arrayTransformer = createTransformer2((values) => {
|
|
7362
7395
|
if (!values || values.length === 0) {
|
|
@@ -7366,16 +7399,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
7366
7399
|
if (allStrings) {
|
|
7367
7400
|
return values.join(" ");
|
|
7368
7401
|
}
|
|
7369
|
-
return /* @__PURE__ */
|
|
7402
|
+
return /* @__PURE__ */ React105.createElement(React105.Fragment, null, values.map((item, index) => /* @__PURE__ */ React105.createElement(React105.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7370
7403
|
});
|
|
7371
7404
|
|
|
7372
7405
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7373
|
-
import * as
|
|
7406
|
+
import * as React106 from "react";
|
|
7374
7407
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
7375
|
-
import { Stack as
|
|
7376
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
7408
|
+
import { Stack as Stack19, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
|
|
7409
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React106.createElement(Stack19, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React106.createElement(ItemLabelColor, { value })));
|
|
7377
7410
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7378
|
-
return /* @__PURE__ */
|
|
7411
|
+
return /* @__PURE__ */ React106.createElement("span", null, color);
|
|
7379
7412
|
};
|
|
7380
7413
|
var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
|
|
7381
7414
|
width: "1em",
|
|
@@ -7386,20 +7419,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
|
|
|
7386
7419
|
}));
|
|
7387
7420
|
|
|
7388
7421
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7389
|
-
import * as
|
|
7422
|
+
import * as React107 from "react";
|
|
7390
7423
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
7391
|
-
import { Stack as
|
|
7392
|
-
import { __ as
|
|
7393
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
7424
|
+
import { Stack as Stack20 } from "@elementor/ui";
|
|
7425
|
+
import { __ as __76 } from "@wordpress/i18n";
|
|
7426
|
+
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React107.createElement(Stack20, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React107.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React107.createElement(ItemLabelGradient, { value })));
|
|
7394
7427
|
var ItemIconGradient = ({ value }) => {
|
|
7395
7428
|
const gradient = getGradientValue(value);
|
|
7396
|
-
return /* @__PURE__ */
|
|
7429
|
+
return /* @__PURE__ */ React107.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7397
7430
|
};
|
|
7398
7431
|
var ItemLabelGradient = ({ value }) => {
|
|
7399
7432
|
if (value.type === "linear") {
|
|
7400
|
-
return /* @__PURE__ */
|
|
7433
|
+
return /* @__PURE__ */ React107.createElement("span", null, __76("Linear gradient", "elementor"));
|
|
7401
7434
|
}
|
|
7402
|
-
return /* @__PURE__ */
|
|
7435
|
+
return /* @__PURE__ */ React107.createElement("span", null, __76("Radial gradient", "elementor"));
|
|
7403
7436
|
};
|
|
7404
7437
|
var getGradientValue = (gradient) => {
|
|
7405
7438
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7410,15 +7443,15 @@ var getGradientValue = (gradient) => {
|
|
|
7410
7443
|
};
|
|
7411
7444
|
|
|
7412
7445
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7413
|
-
import * as
|
|
7446
|
+
import * as React108 from "react";
|
|
7414
7447
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
7415
7448
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
7416
|
-
import { CardMedia, Stack as
|
|
7449
|
+
import { CardMedia, Stack as Stack21 } from "@elementor/ui";
|
|
7417
7450
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
7418
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
7451
|
+
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React108.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React108.createElement(ItemIconImage, { value }), /* @__PURE__ */ React108.createElement(ItemLabelImage, { value })));
|
|
7419
7452
|
var ItemIconImage = ({ value }) => {
|
|
7420
7453
|
const { imageUrl } = useImage(value);
|
|
7421
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ React108.createElement(
|
|
7422
7455
|
CardMedia,
|
|
7423
7456
|
{
|
|
7424
7457
|
image: imageUrl,
|
|
@@ -7434,7 +7467,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7434
7467
|
};
|
|
7435
7468
|
var ItemLabelImage = ({ value }) => {
|
|
7436
7469
|
const { imageTitle } = useImage(value);
|
|
7437
|
-
return /* @__PURE__ */
|
|
7470
|
+
return /* @__PURE__ */ React108.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React108.createElement("span", null, imageTitle));
|
|
7438
7471
|
};
|
|
7439
7472
|
var useImage = (image) => {
|
|
7440
7473
|
let imageTitle, imageUrl = null;
|
|
@@ -7459,7 +7492,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7459
7492
|
};
|
|
7460
7493
|
|
|
7461
7494
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7462
|
-
import * as
|
|
7495
|
+
import * as React109 from "react";
|
|
7463
7496
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
7464
7497
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
7465
7498
|
if (!value) {
|
|
@@ -7469,13 +7502,13 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
7469
7502
|
const colorValue = color || "#000000";
|
|
7470
7503
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7471
7504
|
const positionValue = position || "outset";
|
|
7472
|
-
return /* @__PURE__ */
|
|
7505
|
+
return /* @__PURE__ */ React109.createElement(React109.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7473
7506
|
});
|
|
7474
7507
|
|
|
7475
7508
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7476
|
-
import * as
|
|
7509
|
+
import * as React110 from "react";
|
|
7477
7510
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
7478
|
-
import { Stack as
|
|
7511
|
+
import { Stack as Stack22, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
7479
7512
|
function isValidCSSColor(value) {
|
|
7480
7513
|
if (!value.trim()) {
|
|
7481
7514
|
return false;
|
|
@@ -7493,7 +7526,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
7493
7526
|
if (!isValidCSSColor(value)) {
|
|
7494
7527
|
return value;
|
|
7495
7528
|
}
|
|
7496
|
-
return /* @__PURE__ */
|
|
7529
|
+
return /* @__PURE__ */ React110.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React110.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React110.createElement("span", null, value));
|
|
7497
7530
|
});
|
|
7498
7531
|
|
|
7499
7532
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|