@elementor/editor-editing-panel 4.1.0-817 → 4.1.0-818
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 +789 -689
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +624 -519
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/components/style-sections/layout-section/align-self-grid-child-field.tsx +74 -0
- package/src/components/style-sections/layout-section/grid-span-field.tsx +78 -0
- package/src/components/style-sections/layout-section/layout-section.tsx +33 -3
- package/src/components/style-tab.tsx +3 -0
package/dist/index.mjs
CHANGED
|
@@ -1781,7 +1781,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1781
1781
|
};
|
|
1782
1782
|
|
|
1783
1783
|
// src/components/editing-panel.tsx
|
|
1784
|
-
import * as
|
|
1784
|
+
import * as React87 from "react";
|
|
1785
1785
|
import {
|
|
1786
1786
|
ControlActionsProvider,
|
|
1787
1787
|
ControlReplacementsProvider,
|
|
@@ -1795,7 +1795,7 @@ import { createLocation as createLocation4 } from "@elementor/locations";
|
|
|
1795
1795
|
import { controlActionsMenu } from "@elementor/menus";
|
|
1796
1796
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1797
1797
|
import { ErrorBoundary } from "@elementor/ui";
|
|
1798
|
-
import { __ as
|
|
1798
|
+
import { __ as __61 } from "@wordpress/i18n";
|
|
1799
1799
|
|
|
1800
1800
|
// src/editing-panel-replacement-registry.tsx
|
|
1801
1801
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -1818,11 +1818,11 @@ function EditorPanelErrorFallback() {
|
|
|
1818
1818
|
|
|
1819
1819
|
// src/components/editing-panel-tabs.tsx
|
|
1820
1820
|
import { Fragment as Fragment9 } from "react";
|
|
1821
|
-
import * as
|
|
1821
|
+
import * as React86 from "react";
|
|
1822
1822
|
import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
|
|
1823
1823
|
import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
|
|
1824
1824
|
import { Divider as Divider6, Stack as Stack13, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1825
|
-
import { __ as
|
|
1825
|
+
import { __ as __60 } from "@wordpress/i18n";
|
|
1826
1826
|
|
|
1827
1827
|
// src/contexts/scroll-context.tsx
|
|
1828
1828
|
import * as React14 from "react";
|
|
@@ -2482,14 +2482,14 @@ function isControl(control) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
2484
2484
|
// src/components/style-tab.tsx
|
|
2485
|
-
import * as
|
|
2485
|
+
import * as React85 from "react";
|
|
2486
2486
|
import { useState as useState9 } from "react";
|
|
2487
2487
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2488
2488
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
2489
2489
|
import { createLocation as createLocation3 } from "@elementor/locations";
|
|
2490
2490
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
2491
2491
|
import { Box as Box5, Divider as Divider5, Stack as Stack12 } from "@elementor/ui";
|
|
2492
|
-
import { __ as
|
|
2492
|
+
import { __ as __59 } from "@wordpress/i18n";
|
|
2493
2493
|
|
|
2494
2494
|
// src/contexts/styles-inheritance-context.tsx
|
|
2495
2495
|
import * as React24 from "react";
|
|
@@ -3301,11 +3301,11 @@ var EffectsSection = () => {
|
|
|
3301
3301
|
};
|
|
3302
3302
|
|
|
3303
3303
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3304
|
-
import * as
|
|
3304
|
+
import * as React55 from "react";
|
|
3305
3305
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3306
3306
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3307
3307
|
import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
|
|
3308
|
-
import { __ as
|
|
3308
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
3309
3309
|
|
|
3310
3310
|
// src/hooks/use-computed-style.ts
|
|
3311
3311
|
import { __privateUseListenTo as useListenTo, commandEndEvent, windowEvent } from "@elementor/editor-v1-adapters";
|
|
@@ -3572,48 +3572,99 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3572
3572
|
];
|
|
3573
3573
|
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React42.createElement(ToggleControl4, { options: getOptions(parentStyleDirection) }))));
|
|
3574
3574
|
|
|
3575
|
-
// src/components/style-sections/layout-section/
|
|
3575
|
+
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3576
3576
|
import * as React43 from "react";
|
|
3577
|
-
import { useMemo as useMemo9 } from "react";
|
|
3578
3577
|
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
3579
|
-
import {
|
|
3578
|
+
import {
|
|
3579
|
+
JustifyBottomIcon as JustifyBottomIcon2,
|
|
3580
|
+
JustifyCenterIcon,
|
|
3581
|
+
JustifyTopIcon as JustifyTopIcon2,
|
|
3582
|
+
LayoutDistributeVerticalIcon as JustifyIcon3
|
|
3583
|
+
} from "@elementor/icons";
|
|
3580
3584
|
import { __ as __21 } from "@wordpress/i18n";
|
|
3581
|
-
var
|
|
3585
|
+
var ALIGN_SELF_LABEL2 = __21("Align self", "elementor");
|
|
3586
|
+
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3587
|
+
row: 0,
|
|
3588
|
+
column: -90
|
|
3589
|
+
};
|
|
3590
|
+
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */ React43.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React43.createElement(UiProviders, null, /* @__PURE__ */ React43.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React43.createElement(ToggleControl5, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3591
|
+
var RotatedIcon2 = ({
|
|
3592
|
+
icon: Icon,
|
|
3593
|
+
size,
|
|
3594
|
+
offset
|
|
3595
|
+
}) => /* @__PURE__ */ React43.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3596
|
+
var getOptions2 = (parentStyleDirection) => {
|
|
3597
|
+
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3598
|
+
return [
|
|
3599
|
+
{
|
|
3600
|
+
value: "start",
|
|
3601
|
+
label: __21("Start", "elementor"),
|
|
3602
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon2, { icon: JustifyTopIcon2, size, offset }),
|
|
3603
|
+
showTooltip: true
|
|
3604
|
+
},
|
|
3605
|
+
{
|
|
3606
|
+
value: "center",
|
|
3607
|
+
label: __21("Center", "elementor"),
|
|
3608
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon2, { icon: JustifyCenterIcon, size, offset }),
|
|
3609
|
+
showTooltip: true
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
value: "end",
|
|
3613
|
+
label: __21("End", "elementor"),
|
|
3614
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon2, { icon: JustifyBottomIcon2, size, offset }),
|
|
3615
|
+
showTooltip: true
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
value: "stretch",
|
|
3619
|
+
label: __21("Stretch", "elementor"),
|
|
3620
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon2, { icon: JustifyIcon3, size, offset }),
|
|
3621
|
+
showTooltip: true
|
|
3622
|
+
}
|
|
3623
|
+
];
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
// src/components/style-sections/layout-section/display-field.tsx
|
|
3627
|
+
import * as React44 from "react";
|
|
3628
|
+
import { useMemo as useMemo9 } from "react";
|
|
3629
|
+
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
3630
|
+
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
3631
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3632
|
+
var DISPLAY_LABEL = __22("Display", "elementor");
|
|
3582
3633
|
var displayFieldItems = [
|
|
3583
3634
|
{
|
|
3584
3635
|
value: "block",
|
|
3585
|
-
renderContent: () =>
|
|
3586
|
-
label:
|
|
3636
|
+
renderContent: () => __22("Block", "elementor"),
|
|
3637
|
+
label: __22("Block", "elementor"),
|
|
3587
3638
|
showTooltip: true
|
|
3588
3639
|
},
|
|
3589
3640
|
{
|
|
3590
3641
|
value: "flex",
|
|
3591
|
-
renderContent: () =>
|
|
3592
|
-
label:
|
|
3642
|
+
renderContent: () => __22("Flex", "elementor"),
|
|
3643
|
+
label: __22("Flex", "elementor"),
|
|
3593
3644
|
showTooltip: true
|
|
3594
3645
|
},
|
|
3595
3646
|
{
|
|
3596
3647
|
value: "grid",
|
|
3597
|
-
renderContent: () =>
|
|
3598
|
-
label:
|
|
3648
|
+
renderContent: () => __22("Grid", "elementor"),
|
|
3649
|
+
label: __22("Grid", "elementor"),
|
|
3599
3650
|
showTooltip: true
|
|
3600
3651
|
},
|
|
3601
3652
|
{
|
|
3602
3653
|
value: "inline-block",
|
|
3603
|
-
renderContent: () =>
|
|
3604
|
-
label:
|
|
3654
|
+
renderContent: () => __22("In-blk", "elementor"),
|
|
3655
|
+
label: __22("Inline-block", "elementor"),
|
|
3605
3656
|
showTooltip: true
|
|
3606
3657
|
},
|
|
3607
3658
|
{
|
|
3608
3659
|
value: "inline-flex",
|
|
3609
|
-
renderContent: () =>
|
|
3610
|
-
label:
|
|
3660
|
+
renderContent: () => __22("In-flx", "elementor"),
|
|
3661
|
+
label: __22("Inline-flex", "elementor"),
|
|
3611
3662
|
showTooltip: true
|
|
3612
3663
|
},
|
|
3613
3664
|
{
|
|
3614
3665
|
value: "none",
|
|
3615
|
-
renderContent: () =>
|
|
3616
|
-
label:
|
|
3666
|
+
renderContent: () => __22("None", "elementor"),
|
|
3667
|
+
label: __22("None", "elementor"),
|
|
3617
3668
|
showTooltip: true
|
|
3618
3669
|
}
|
|
3619
3670
|
];
|
|
@@ -3624,55 +3675,55 @@ var DisplayField = () => {
|
|
|
3624
3675
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3625
3676
|
[isGridActive]
|
|
3626
3677
|
);
|
|
3627
|
-
return /* @__PURE__ */
|
|
3678
|
+
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React44.createElement(ToggleControl6, { options: items3, maxItems: 4, fullWidth: true })));
|
|
3628
3679
|
};
|
|
3629
3680
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3630
3681
|
|
|
3631
3682
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3632
|
-
import * as
|
|
3633
|
-
import { ToggleControl as
|
|
3683
|
+
import * as React45 from "react";
|
|
3684
|
+
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
3634
3685
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
3635
3686
|
import { withDirection as withDirection6 } from "@elementor/ui";
|
|
3636
|
-
import { __ as
|
|
3637
|
-
var FLEX_DIRECTION_LABEL2 =
|
|
3687
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3688
|
+
var FLEX_DIRECTION_LABEL2 = __23("Direction", "elementor");
|
|
3638
3689
|
var options3 = [
|
|
3639
3690
|
{
|
|
3640
3691
|
value: "row",
|
|
3641
|
-
label:
|
|
3692
|
+
label: __23("Row", "elementor"),
|
|
3642
3693
|
renderContent: ({ size }) => {
|
|
3643
3694
|
const StartIcon7 = withDirection6(ArrowRightIcon);
|
|
3644
|
-
return /* @__PURE__ */
|
|
3695
|
+
return /* @__PURE__ */ React45.createElement(StartIcon7, { fontSize: size });
|
|
3645
3696
|
},
|
|
3646
3697
|
showTooltip: true
|
|
3647
3698
|
},
|
|
3648
3699
|
{
|
|
3649
3700
|
value: "column",
|
|
3650
|
-
label:
|
|
3651
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3701
|
+
label: __23("Column", "elementor"),
|
|
3702
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
3652
3703
|
showTooltip: true
|
|
3653
3704
|
},
|
|
3654
3705
|
{
|
|
3655
3706
|
value: "row-reverse",
|
|
3656
|
-
label:
|
|
3707
|
+
label: __23("Reversed row", "elementor"),
|
|
3657
3708
|
renderContent: ({ size }) => {
|
|
3658
3709
|
const EndIcon6 = withDirection6(ArrowLeftIcon);
|
|
3659
|
-
return /* @__PURE__ */
|
|
3710
|
+
return /* @__PURE__ */ React45.createElement(EndIcon6, { fontSize: size });
|
|
3660
3711
|
},
|
|
3661
3712
|
showTooltip: true
|
|
3662
3713
|
},
|
|
3663
3714
|
{
|
|
3664
3715
|
value: "column-reverse",
|
|
3665
|
-
label:
|
|
3666
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3716
|
+
label: __23("Reversed column", "elementor"),
|
|
3717
|
+
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
3667
3718
|
showTooltip: true
|
|
3668
3719
|
}
|
|
3669
3720
|
];
|
|
3670
3721
|
var FlexDirectionField = () => {
|
|
3671
|
-
return /* @__PURE__ */
|
|
3722
|
+
return /* @__PURE__ */ React45.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React45.createElement(UiProviders, null, /* @__PURE__ */ React45.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React45.createElement(ToggleControl7, { options: options3 }))));
|
|
3672
3723
|
};
|
|
3673
3724
|
|
|
3674
3725
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3675
|
-
import * as
|
|
3726
|
+
import * as React46 from "react";
|
|
3676
3727
|
import { useEffect as useEffect5, useMemo as useMemo10, useState as useState7 } from "react";
|
|
3677
3728
|
import {
|
|
3678
3729
|
ControlToggleButtonGroup,
|
|
@@ -3681,8 +3732,8 @@ import {
|
|
|
3681
3732
|
} from "@elementor/editor-controls";
|
|
3682
3733
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
3683
3734
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
3684
|
-
import { __ as
|
|
3685
|
-
var ORDER_LABEL =
|
|
3735
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3736
|
+
var ORDER_LABEL = __24("Order", "elementor");
|
|
3686
3737
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3687
3738
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3688
3739
|
var FIRST = "first";
|
|
@@ -3695,25 +3746,25 @@ var orderValueMap = {
|
|
|
3695
3746
|
var items = [
|
|
3696
3747
|
{
|
|
3697
3748
|
value: FIRST,
|
|
3698
|
-
label:
|
|
3699
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3749
|
+
label: __24("First", "elementor"),
|
|
3750
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
3700
3751
|
showTooltip: true
|
|
3701
3752
|
},
|
|
3702
3753
|
{
|
|
3703
3754
|
value: LAST,
|
|
3704
|
-
label:
|
|
3705
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3755
|
+
label: __24("Last", "elementor"),
|
|
3756
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
3706
3757
|
showTooltip: true
|
|
3707
3758
|
},
|
|
3708
3759
|
{
|
|
3709
3760
|
value: CUSTOM,
|
|
3710
|
-
label:
|
|
3711
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3761
|
+
label: __24("Custom", "elementor"),
|
|
3762
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(PencilIcon, { fontSize: size }),
|
|
3712
3763
|
showTooltip: true
|
|
3713
3764
|
}
|
|
3714
3765
|
];
|
|
3715
3766
|
var FlexOrderField = () => {
|
|
3716
|
-
return /* @__PURE__ */
|
|
3767
|
+
return /* @__PURE__ */ React46.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React46.createElement(UiProviders, null, /* @__PURE__ */ React46.createElement(SectionContent, null, /* @__PURE__ */ React46.createElement(FlexOrderFieldContent, null))));
|
|
3717
3768
|
};
|
|
3718
3769
|
function FlexOrderFieldContent() {
|
|
3719
3770
|
const {
|
|
@@ -3758,7 +3809,7 @@ function FlexOrderFieldContent() {
|
|
|
3758
3809
|
};
|
|
3759
3810
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
3760
3811
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
3761
|
-
return /* @__PURE__ */
|
|
3812
|
+
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React46.createElement(
|
|
3762
3813
|
ControlToggleButtonGroup,
|
|
3763
3814
|
{
|
|
3764
3815
|
items,
|
|
@@ -3768,7 +3819,7 @@ function FlexOrderFieldContent() {
|
|
|
3768
3819
|
placeholder: groupPlaceholder,
|
|
3769
3820
|
disabled: !canEdit
|
|
3770
3821
|
}
|
|
3771
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3822
|
+
)), isCustomVisible && /* @__PURE__ */ React46.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, __24("Custom order", "elementor"))), /* @__PURE__ */ React46.createElement(Grid2, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(
|
|
3772
3823
|
NumberControl2,
|
|
3773
3824
|
{
|
|
3774
3825
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -3792,7 +3843,7 @@ var getGroupControlValue = (order) => {
|
|
|
3792
3843
|
};
|
|
3793
3844
|
|
|
3794
3845
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
3795
|
-
import * as
|
|
3846
|
+
import * as React47 from "react";
|
|
3796
3847
|
import { useEffect as useEffect6, useMemo as useMemo11, useRef as useRef7, useState as useState8 } from "react";
|
|
3797
3848
|
import {
|
|
3798
3849
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
@@ -3804,31 +3855,31 @@ import {
|
|
|
3804
3855
|
} from "@elementor/editor-controls";
|
|
3805
3856
|
import { flexPropTypeUtil, numberPropTypeUtil as numberPropTypeUtil2, sizePropTypeUtil as sizePropTypeUtil3 } from "@elementor/editor-props";
|
|
3806
3857
|
import { ExpandIcon, PencilIcon as PencilIcon2, ShrinkIcon } from "@elementor/icons";
|
|
3807
|
-
import { __ as
|
|
3808
|
-
var FLEX_SIZE_LABEL =
|
|
3858
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
3859
|
+
var FLEX_SIZE_LABEL = __25("Flex Size", "elementor");
|
|
3809
3860
|
var DEFAULT = 1;
|
|
3810
3861
|
var items2 = [
|
|
3811
3862
|
{
|
|
3812
3863
|
value: "flex-grow",
|
|
3813
|
-
label:
|
|
3814
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3864
|
+
label: __25("Grow", "elementor"),
|
|
3865
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(ExpandIcon, { fontSize: size }),
|
|
3815
3866
|
showTooltip: true
|
|
3816
3867
|
},
|
|
3817
3868
|
{
|
|
3818
3869
|
value: "flex-shrink",
|
|
3819
|
-
label:
|
|
3820
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3870
|
+
label: __25("Shrink", "elementor"),
|
|
3871
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(ShrinkIcon, { fontSize: size }),
|
|
3821
3872
|
showTooltip: true
|
|
3822
3873
|
},
|
|
3823
3874
|
{
|
|
3824
3875
|
value: "custom",
|
|
3825
|
-
label:
|
|
3826
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3876
|
+
label: __25("Custom", "elementor"),
|
|
3877
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(PencilIcon2, { fontSize: size }),
|
|
3827
3878
|
showTooltip: true
|
|
3828
3879
|
}
|
|
3829
3880
|
];
|
|
3830
3881
|
var FlexSizeField = () => {
|
|
3831
|
-
return /* @__PURE__ */
|
|
3882
|
+
return /* @__PURE__ */ React47.createElement(UiProviders, null, /* @__PURE__ */ React47.createElement(SectionContent, null, /* @__PURE__ */ React47.createElement(StylesField, { bind: "flex", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React47.createElement(FlexSizeFieldContent, null))));
|
|
3832
3883
|
};
|
|
3833
3884
|
var FlexSizeFieldContent = () => {
|
|
3834
3885
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -3857,7 +3908,7 @@ var FlexSizeFieldContent = () => {
|
|
|
3857
3908
|
};
|
|
3858
3909
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
3859
3910
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
3860
|
-
return /* @__PURE__ */
|
|
3911
|
+
return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React47.createElement(
|
|
3861
3912
|
ControlToggleButtonGroup2,
|
|
3862
3913
|
{
|
|
3863
3914
|
value: activeGroup ?? null,
|
|
@@ -3867,7 +3918,7 @@ var FlexSizeFieldContent = () => {
|
|
|
3867
3918
|
items: items2,
|
|
3868
3919
|
exclusive: true
|
|
3869
3920
|
}
|
|
3870
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3921
|
+
)), isCustomVisible && /* @__PURE__ */ React47.createElement(FlexCustomField, null));
|
|
3871
3922
|
};
|
|
3872
3923
|
function extractFlexValues(source) {
|
|
3873
3924
|
return {
|
|
@@ -3909,7 +3960,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
3909
3960
|
var FlexCustomField = () => {
|
|
3910
3961
|
const flexBasisRowRef = useRef7(null);
|
|
3911
3962
|
const context = useBoundProp3(flexPropTypeUtil);
|
|
3912
|
-
return /* @__PURE__ */
|
|
3963
|
+
return /* @__PURE__ */ React47.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: __25("Grow", "elementor") }, /* @__PURE__ */ React47.createElement(PropKeyProvider3, { bind: "flexGrow" }, /* @__PURE__ */ React47.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: __25("Shrink", "elementor") }, /* @__PURE__ */ React47.createElement(PropKeyProvider3, { bind: "flexShrink" }, /* @__PURE__ */ React47.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: __25("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React47.createElement(PropKeyProvider3, { bind: "flexBasis" }, /* @__PURE__ */ React47.createElement(SizeControl3, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
3913
3964
|
};
|
|
3914
3965
|
var getActiveGroup = ({
|
|
3915
3966
|
grow,
|
|
@@ -3933,34 +3984,34 @@ var getActiveGroup = ({
|
|
|
3933
3984
|
};
|
|
3934
3985
|
|
|
3935
3986
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
3936
|
-
import * as
|
|
3987
|
+
import * as React48 from "react";
|
|
3937
3988
|
import { GapControl } from "@elementor/editor-controls";
|
|
3938
|
-
import { __ as
|
|
3939
|
-
var GAPS_LABEL =
|
|
3989
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
3990
|
+
var GAPS_LABEL = __26("Gaps", "elementor");
|
|
3940
3991
|
var GapControlField = () => {
|
|
3941
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React48.createElement(GapControl, { label: GAPS_LABEL }));
|
|
3942
3993
|
};
|
|
3943
3994
|
|
|
3944
3995
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
3945
|
-
import * as
|
|
3996
|
+
import * as React49 from "react";
|
|
3946
3997
|
import { ControlToggleButtonGroup as ControlToggleButtonGroup3 } from "@elementor/editor-controls";
|
|
3947
3998
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon3, ArrowRightIcon as ArrowRightIcon2, LayoutDashboardIcon } from "@elementor/icons";
|
|
3948
3999
|
import { Grid as Grid3, ToggleButton, Tooltip, withDirection as withDirection7 } from "@elementor/ui";
|
|
3949
|
-
import { __ as
|
|
3950
|
-
var AUTO_FLOW_LABEL =
|
|
3951
|
-
var DENSE_LABEL =
|
|
4000
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
4001
|
+
var AUTO_FLOW_LABEL = __27("Auto flow", "elementor");
|
|
4002
|
+
var DENSE_LABEL = __27("Dense", "elementor");
|
|
3952
4003
|
var StartIcon4 = withDirection7(ArrowRightIcon2);
|
|
3953
4004
|
var directionOptions = [
|
|
3954
4005
|
{
|
|
3955
4006
|
value: "row",
|
|
3956
|
-
label:
|
|
3957
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4007
|
+
label: __27("Row", "elementor"),
|
|
4008
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(StartIcon4, { fontSize: size }),
|
|
3958
4009
|
showTooltip: true
|
|
3959
4010
|
},
|
|
3960
4011
|
{
|
|
3961
4012
|
value: "column",
|
|
3962
|
-
label:
|
|
3963
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4013
|
+
label: __27("Column", "elementor"),
|
|
4014
|
+
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowDownSmallIcon3, { fontSize: size }),
|
|
3964
4015
|
showTooltip: true
|
|
3965
4016
|
}
|
|
3966
4017
|
];
|
|
@@ -3989,7 +4040,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
3989
4040
|
const handleDenseToggle = () => {
|
|
3990
4041
|
setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
|
|
3991
4042
|
};
|
|
3992
|
-
return /* @__PURE__ */
|
|
4043
|
+
return /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React49.createElement(Grid3, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React49.createElement(Grid3, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React49.createElement(
|
|
3993
4044
|
ControlToggleButtonGroup3,
|
|
3994
4045
|
{
|
|
3995
4046
|
items: directionOptions,
|
|
@@ -3998,7 +4049,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
3998
4049
|
exclusive: true,
|
|
3999
4050
|
fullWidth: true
|
|
4000
4051
|
}
|
|
4001
|
-
)), /* @__PURE__ */
|
|
4052
|
+
)), /* @__PURE__ */ React49.createElement(Grid3, { item: true }, /* @__PURE__ */ React49.createElement(Tooltip, { title: DENSE_LABEL }, /* @__PURE__ */ React49.createElement(
|
|
4002
4053
|
ToggleButton,
|
|
4003
4054
|
{
|
|
4004
4055
|
value: "dense",
|
|
@@ -4007,14 +4058,14 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4007
4058
|
size: "tiny",
|
|
4008
4059
|
"aria-label": DENSE_LABEL
|
|
4009
4060
|
},
|
|
4010
|
-
/* @__PURE__ */
|
|
4061
|
+
/* @__PURE__ */ React49.createElement(LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4011
4062
|
)))));
|
|
4012
4063
|
};
|
|
4013
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4064
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React49.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(GridAutoFlowFieldContent, null)));
|
|
4014
4065
|
|
|
4015
4066
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4016
|
-
import * as
|
|
4017
|
-
import { ToggleControl as
|
|
4067
|
+
import * as React50 from "react";
|
|
4068
|
+
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
4018
4069
|
import {
|
|
4019
4070
|
LayoutAlignCenterIcon as CenterIcon4,
|
|
4020
4071
|
LayoutAlignLeftIcon as LayoutAlignLeftIcon3,
|
|
@@ -4022,44 +4073,44 @@ import {
|
|
|
4022
4073
|
LayoutDistributeVerticalIcon as StretchIcon
|
|
4023
4074
|
} from "@elementor/icons";
|
|
4024
4075
|
import { withDirection as withDirection8 } from "@elementor/ui";
|
|
4025
|
-
import { __ as
|
|
4026
|
-
var JUSTIFY_ITEMS_LABEL =
|
|
4076
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
4077
|
+
var JUSTIFY_ITEMS_LABEL = __28("Justify items", "elementor");
|
|
4027
4078
|
var StartIcon5 = withDirection8(LayoutAlignLeftIcon3);
|
|
4028
4079
|
var EndIcon4 = withDirection8(LayoutAlignRightIcon3);
|
|
4029
4080
|
var options4 = [
|
|
4030
4081
|
{
|
|
4031
4082
|
value: "start",
|
|
4032
|
-
label:
|
|
4033
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4083
|
+
label: __28("Start", "elementor"),
|
|
4084
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(StartIcon5, { fontSize: size }),
|
|
4034
4085
|
showTooltip: true
|
|
4035
4086
|
},
|
|
4036
4087
|
{
|
|
4037
4088
|
value: "center",
|
|
4038
|
-
label:
|
|
4039
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4089
|
+
label: __28("Center", "elementor"),
|
|
4090
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(CenterIcon4, { fontSize: size }),
|
|
4040
4091
|
showTooltip: true
|
|
4041
4092
|
},
|
|
4042
4093
|
{
|
|
4043
4094
|
value: "end",
|
|
4044
|
-
label:
|
|
4045
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4095
|
+
label: __28("End", "elementor"),
|
|
4096
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(EndIcon4, { fontSize: size }),
|
|
4046
4097
|
showTooltip: true
|
|
4047
4098
|
},
|
|
4048
4099
|
{
|
|
4049
4100
|
value: "stretch",
|
|
4050
|
-
label:
|
|
4051
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4101
|
+
label: __28("Stretch", "elementor"),
|
|
4102
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(StretchIcon, { fontSize: size }),
|
|
4052
4103
|
showTooltip: true
|
|
4053
4104
|
}
|
|
4054
4105
|
];
|
|
4055
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4106
|
+
var GridJustifyItemsField = () => /* @__PURE__ */ React50.createElement(StylesField, { bind: "justify-items", propDisplayName: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React50.createElement(ToggleControl8, { options: options4 }))));
|
|
4056
4107
|
|
|
4057
4108
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4058
|
-
import * as
|
|
4109
|
+
import * as React51 from "react";
|
|
4059
4110
|
import { useRef as useRef8 } from "react";
|
|
4060
4111
|
import { SizeComponent } from "@elementor/editor-controls";
|
|
4061
4112
|
import { Grid as Grid4 } from "@elementor/ui";
|
|
4062
|
-
import { __ as
|
|
4113
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
4063
4114
|
var FR = "fr";
|
|
4064
4115
|
var CUSTOM2 = "custom";
|
|
4065
4116
|
var UNITS = [FR, CUSTOM2];
|
|
@@ -4083,7 +4134,7 @@ var trackValueToCss = (trackValue) => {
|
|
|
4083
4134
|
}
|
|
4084
4135
|
return String(trackValue.size);
|
|
4085
4136
|
};
|
|
4086
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4137
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React51.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React51.createElement(GridTrackFieldContent, { cssProp, label }));
|
|
4087
4138
|
var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
4088
4139
|
const { value, setValue } = useStylesField(cssProp, {
|
|
4089
4140
|
history: { propDisplayName: label }
|
|
@@ -4094,7 +4145,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4094
4145
|
const css = trackValueToCss(newValue);
|
|
4095
4146
|
setValue(css ? { $$type: "string", value: css } : null);
|
|
4096
4147
|
};
|
|
4097
|
-
return /* @__PURE__ */
|
|
4148
|
+
return /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React51.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React51.createElement(
|
|
4098
4149
|
SizeComponent,
|
|
4099
4150
|
{
|
|
4100
4151
|
units: UNITS,
|
|
@@ -4108,24 +4159,64 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4108
4159
|
}
|
|
4109
4160
|
)));
|
|
4110
4161
|
};
|
|
4111
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4162
|
+
var GridSizeFields = () => /* @__PURE__ */ React51.createElement(Grid4, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(GridTrackField, { cssProp: "grid-template-columns", label: __29("Columns", "elementor") })), /* @__PURE__ */ React51.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(GridTrackField, { cssProp: "grid-template-rows", label: __29("Rows", "elementor") })));
|
|
4163
|
+
|
|
4164
|
+
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4165
|
+
import * as React52 from "react";
|
|
4166
|
+
import { NumberInput } from "@elementor/editor-controls";
|
|
4167
|
+
import { Grid as Grid5 } from "@elementor/ui";
|
|
4168
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4169
|
+
var MIN_SPAN = 1;
|
|
4170
|
+
var GridSpanFieldContent = ({ cssProp, label }) => {
|
|
4171
|
+
const { value, setValue, canEdit } = useStylesField(cssProp, {
|
|
4172
|
+
history: { propDisplayName: label }
|
|
4173
|
+
});
|
|
4174
|
+
const spanValue = value?.value ?? null;
|
|
4175
|
+
const handleChange = (event) => {
|
|
4176
|
+
const raw = event.target.value;
|
|
4177
|
+
if (raw === "") {
|
|
4178
|
+
setValue(null);
|
|
4179
|
+
return;
|
|
4180
|
+
}
|
|
4181
|
+
const num = parseInt(raw, 10);
|
|
4182
|
+
if (Number.isNaN(num)) {
|
|
4183
|
+
return;
|
|
4184
|
+
}
|
|
4185
|
+
const clamped = Math.max(num, MIN_SPAN);
|
|
4186
|
+
setValue({ $$type: "span", value: clamped });
|
|
4187
|
+
};
|
|
4188
|
+
return /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React52.createElement(
|
|
4189
|
+
NumberInput,
|
|
4190
|
+
{
|
|
4191
|
+
size: "tiny",
|
|
4192
|
+
type: "number",
|
|
4193
|
+
fullWidth: true,
|
|
4194
|
+
disabled: !canEdit,
|
|
4195
|
+
value: spanValue ?? "",
|
|
4196
|
+
onInput: handleChange,
|
|
4197
|
+
inputProps: { min: MIN_SPAN }
|
|
4198
|
+
}
|
|
4199
|
+
));
|
|
4200
|
+
};
|
|
4201
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React52.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React52.createElement(UiProviders, null, /* @__PURE__ */ React52.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4202
|
+
var GridSpanFields = () => /* @__PURE__ */ React52.createElement(Grid5, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(GridSpanField, { cssProp: "grid-column", label: __30("Column Span", "elementor") })), /* @__PURE__ */ React52.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(GridSpanField, { cssProp: "grid-row", label: __30("Row Span", "elementor") })));
|
|
4112
4203
|
|
|
4113
4204
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4114
|
-
import * as
|
|
4115
|
-
import { ToggleControl as
|
|
4205
|
+
import * as React53 from "react";
|
|
4206
|
+
import { ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
4116
4207
|
import {
|
|
4117
|
-
JustifyBottomIcon as
|
|
4208
|
+
JustifyBottomIcon as JustifyBottomIcon3,
|
|
4118
4209
|
JustifyCenterIcon as CenterIcon5,
|
|
4119
4210
|
JustifyDistributeVerticalIcon as EvenlyIcon2,
|
|
4120
4211
|
JustifySpaceAroundVerticalIcon as AroundIcon2,
|
|
4121
4212
|
JustifySpaceBetweenVerticalIcon as BetweenIcon2,
|
|
4122
|
-
JustifyTopIcon as
|
|
4213
|
+
JustifyTopIcon as JustifyTopIcon3
|
|
4123
4214
|
} from "@elementor/icons";
|
|
4124
4215
|
import { withDirection as withDirection9 } from "@elementor/ui";
|
|
4125
|
-
import { __ as
|
|
4126
|
-
var JUSTIFY_CONTENT_LABEL =
|
|
4127
|
-
var StartIcon6 = withDirection9(
|
|
4128
|
-
var EndIcon5 = withDirection9(
|
|
4216
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
4217
|
+
var JUSTIFY_CONTENT_LABEL = __31("Justify content", "elementor");
|
|
4218
|
+
var StartIcon6 = withDirection9(JustifyTopIcon3);
|
|
4219
|
+
var EndIcon5 = withDirection9(JustifyBottomIcon3);
|
|
4129
4220
|
var iconProps4 = {
|
|
4130
4221
|
isClockwise: true,
|
|
4131
4222
|
offset: -90
|
|
@@ -4133,97 +4224,108 @@ var iconProps4 = {
|
|
|
4133
4224
|
var options5 = [
|
|
4134
4225
|
{
|
|
4135
4226
|
value: "flex-start",
|
|
4136
|
-
label:
|
|
4137
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4227
|
+
label: __31("Start", "elementor"),
|
|
4228
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4138
4229
|
showTooltip: true
|
|
4139
4230
|
},
|
|
4140
4231
|
{
|
|
4141
4232
|
value: "center",
|
|
4142
|
-
label:
|
|
4143
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4233
|
+
label: __31("Center", "elementor"),
|
|
4234
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: CenterIcon5, size, ...iconProps4 }),
|
|
4144
4235
|
showTooltip: true
|
|
4145
4236
|
},
|
|
4146
4237
|
{
|
|
4147
4238
|
value: "flex-end",
|
|
4148
|
-
label:
|
|
4149
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4239
|
+
label: __31("End", "elementor"),
|
|
4240
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4150
4241
|
showTooltip: true
|
|
4151
4242
|
},
|
|
4152
4243
|
{
|
|
4153
4244
|
value: "space-between",
|
|
4154
|
-
label:
|
|
4155
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4245
|
+
label: __31("Space between", "elementor"),
|
|
4246
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
4156
4247
|
showTooltip: true
|
|
4157
4248
|
},
|
|
4158
4249
|
{
|
|
4159
4250
|
value: "space-around",
|
|
4160
|
-
label:
|
|
4161
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4251
|
+
label: __31("Space around", "elementor"),
|
|
4252
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
4162
4253
|
showTooltip: true
|
|
4163
4254
|
},
|
|
4164
4255
|
{
|
|
4165
4256
|
value: "space-evenly",
|
|
4166
|
-
label:
|
|
4167
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4257
|
+
label: __31("Space evenly", "elementor"),
|
|
4258
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
4168
4259
|
showTooltip: true
|
|
4169
4260
|
}
|
|
4170
4261
|
];
|
|
4171
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4262
|
+
var JustifyContentField = () => /* @__PURE__ */ React53.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React53.createElement(ToggleControl9, { options: options5, fullWidth: true }))));
|
|
4172
4263
|
|
|
4173
4264
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4174
|
-
import * as
|
|
4175
|
-
import { ToggleControl as
|
|
4265
|
+
import * as React54 from "react";
|
|
4266
|
+
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
4176
4267
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4177
|
-
import { __ as
|
|
4178
|
-
var FLEX_WRAP_LABEL =
|
|
4268
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
4269
|
+
var FLEX_WRAP_LABEL = __32("Wrap", "elementor");
|
|
4179
4270
|
var options6 = [
|
|
4180
4271
|
{
|
|
4181
4272
|
value: "nowrap",
|
|
4182
|
-
label:
|
|
4183
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4273
|
+
label: __32("No wrap", "elementor"),
|
|
4274
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(ArrowRightIcon3, { fontSize: size }),
|
|
4184
4275
|
showTooltip: true
|
|
4185
4276
|
},
|
|
4186
4277
|
{
|
|
4187
4278
|
value: "wrap",
|
|
4188
|
-
label:
|
|
4189
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4279
|
+
label: __32("Wrap", "elementor"),
|
|
4280
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(ArrowBackIcon, { fontSize: size }),
|
|
4190
4281
|
showTooltip: true
|
|
4191
4282
|
},
|
|
4192
4283
|
{
|
|
4193
4284
|
value: "wrap-reverse",
|
|
4194
|
-
label:
|
|
4195
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4285
|
+
label: __32("Reversed wrap", "elementor"),
|
|
4286
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
4196
4287
|
showTooltip: true
|
|
4197
4288
|
}
|
|
4198
4289
|
];
|
|
4199
4290
|
var WrapField = () => {
|
|
4200
|
-
return /* @__PURE__ */
|
|
4291
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React54.createElement(UiProviders, null, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React54.createElement(ToggleControl10, { options: options6 }))));
|
|
4201
4292
|
};
|
|
4202
4293
|
|
|
4203
4294
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4204
|
-
var DISPLAY_LABEL2 =
|
|
4205
|
-
var FLEX_WRAP_LABEL2 =
|
|
4295
|
+
var DISPLAY_LABEL2 = __33("Display", "elementor");
|
|
4296
|
+
var FLEX_WRAP_LABEL2 = __33("Flex wrap", "elementor");
|
|
4297
|
+
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4206
4298
|
var LayoutSection = () => {
|
|
4207
4299
|
const { value: display } = useStylesField("display", {
|
|
4208
4300
|
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
4209
4301
|
});
|
|
4210
4302
|
const displayPlaceholder = useDisplayPlaceholderValue();
|
|
4303
|
+
const isGridExperimentActive = isExperimentActive2("e_css_grid");
|
|
4211
4304
|
const isDisplayFlex = shouldDisplayFlexFields(display, displayPlaceholder);
|
|
4212
4305
|
const isDisplayGrid = "grid" === (display?.value ?? displayPlaceholder?.value);
|
|
4213
4306
|
const { element } = useElement();
|
|
4214
4307
|
const parent = useParentElement(element.id);
|
|
4215
4308
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
4216
|
-
const
|
|
4217
|
-
|
|
4309
|
+
const getParentStyleDirection = () => {
|
|
4310
|
+
if ("flex" === parentStyle?.display) {
|
|
4311
|
+
return parentStyle?.flexDirection ?? DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4312
|
+
}
|
|
4313
|
+
if ("grid" === parentStyle?.display) {
|
|
4314
|
+
return parentStyle?.gridAutoFlow ?? DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4315
|
+
}
|
|
4316
|
+
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4317
|
+
};
|
|
4318
|
+
return /* @__PURE__ */ React55.createElement(SectionContent, null, /* @__PURE__ */ React55.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React55.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React55.createElement(FlexChildFields, { parentStyleDirection: getParentStyleDirection() }), isGridExperimentActive && isDisplayGrid && /* @__PURE__ */ React55.createElement(GridFields, null), isGridExperimentActive && "grid" === parentStyle?.display && /* @__PURE__ */ React55.createElement(GridChildFields, { parentStyleDirection: getParentStyleDirection() }));
|
|
4218
4319
|
};
|
|
4219
4320
|
var FlexFields = () => {
|
|
4220
4321
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4221
4322
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4222
4323
|
});
|
|
4223
|
-
return /* @__PURE__ */
|
|
4324
|
+
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(FlexDirectionField, null), /* @__PURE__ */ React55.createElement(JustifyContentField, null), /* @__PURE__ */ React55.createElement(AlignItemsField, null), /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(GapControlField, null), /* @__PURE__ */ React55.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React55.createElement(AlignContentField, null));
|
|
4224
4325
|
};
|
|
4225
|
-
var GridFields = () => /* @__PURE__ */
|
|
4226
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4326
|
+
var GridFields = () => /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(GridSizeFields, null), /* @__PURE__ */ React55.createElement(GridAutoFlowField, null), /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(GapControlField, null), /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React55.createElement(AlignItemsField, null));
|
|
4327
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(ControlFormLabel2, null, __33("Flex child", "elementor")), /* @__PURE__ */ React55.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React55.createElement(FlexOrderField, null), /* @__PURE__ */ React55.createElement(FlexSizeField, null));
|
|
4328
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(ControlFormLabel2, null, __33("Grid Child", "elementor")), /* @__PURE__ */ React55.createElement(GridSpanFields, null), /* @__PURE__ */ React55.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React55.createElement(FlexOrderField, null));
|
|
4227
4329
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4228
4330
|
const value = display?.value ?? local?.value;
|
|
4229
4331
|
if (!value) {
|
|
@@ -4233,39 +4335,39 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4233
4335
|
};
|
|
4234
4336
|
|
|
4235
4337
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4236
|
-
import * as
|
|
4338
|
+
import * as React60 from "react";
|
|
4237
4339
|
import { useCallback as useCallback2, useEffect as useEffect7, useRef as useRef11 } from "react";
|
|
4238
4340
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
4239
|
-
import { __ as
|
|
4341
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
4240
4342
|
|
|
4241
4343
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4242
|
-
import * as
|
|
4344
|
+
import * as React56 from "react";
|
|
4243
4345
|
import { useRef as useRef9 } from "react";
|
|
4244
4346
|
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
4245
4347
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
4246
|
-
import { Grid as
|
|
4247
|
-
import { __ as
|
|
4348
|
+
import { Grid as Grid6, Stack as Stack8, withDirection as withDirection10 } from "@elementor/ui";
|
|
4349
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
4248
4350
|
var InlineStartIcon2 = withDirection10(SideLeftIcon2);
|
|
4249
4351
|
var InlineEndIcon2 = withDirection10(SideRightIcon2);
|
|
4250
4352
|
var sideIcons = {
|
|
4251
|
-
"inset-block-start": /* @__PURE__ */
|
|
4252
|
-
"inset-block-end": /* @__PURE__ */
|
|
4253
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4254
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4353
|
+
"inset-block-start": /* @__PURE__ */ React56.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
4354
|
+
"inset-block-end": /* @__PURE__ */ React56.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
4355
|
+
"inset-inline-start": /* @__PURE__ */ React56.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4356
|
+
"inset-inline-end": /* @__PURE__ */ React56.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4255
4357
|
};
|
|
4256
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
4257
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
4358
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __34("Right", "elementor") : __34("Left", "elementor");
|
|
4359
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __34("Left", "elementor") : __34("Right", "elementor");
|
|
4258
4360
|
var DimensionsField = () => {
|
|
4259
4361
|
const { isSiteRtl } = useDirection();
|
|
4260
4362
|
const rowRefs = [useRef9(null), useRef9(null)];
|
|
4261
|
-
return /* @__PURE__ */
|
|
4363
|
+
return /* @__PURE__ */ React56.createElement(UiProviders, null, /* @__PURE__ */ React56.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React56.createElement(DimensionField, { side: "inset-block-start", label: __34("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React56.createElement(
|
|
4262
4364
|
DimensionField,
|
|
4263
4365
|
{
|
|
4264
4366
|
side: "inset-inline-end",
|
|
4265
4367
|
label: getInlineEndLabel(isSiteRtl),
|
|
4266
4368
|
rowRef: rowRefs[0]
|
|
4267
4369
|
}
|
|
4268
|
-
)), /* @__PURE__ */
|
|
4370
|
+
)), /* @__PURE__ */ React56.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React56.createElement(DimensionField, { side: "inset-block-end", label: __34("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React56.createElement(
|
|
4269
4371
|
DimensionField,
|
|
4270
4372
|
{
|
|
4271
4373
|
side: "inset-inline-start",
|
|
@@ -4278,7 +4380,7 @@ var DimensionField = ({
|
|
|
4278
4380
|
side,
|
|
4279
4381
|
label,
|
|
4280
4382
|
rowRef
|
|
4281
|
-
}) => /* @__PURE__ */
|
|
4383
|
+
}) => /* @__PURE__ */ React56.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React56.createElement(Grid6, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React56.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React56.createElement(ControlLabel, null, label)), /* @__PURE__ */ React56.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React56.createElement(
|
|
4282
4384
|
SizeControl4,
|
|
4283
4385
|
{
|
|
4284
4386
|
startIcon: sideIcons[side],
|
|
@@ -4289,46 +4391,46 @@ var DimensionField = ({
|
|
|
4289
4391
|
))));
|
|
4290
4392
|
|
|
4291
4393
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4292
|
-
import * as
|
|
4394
|
+
import * as React57 from "react";
|
|
4293
4395
|
import { useRef as useRef10 } from "react";
|
|
4294
4396
|
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
4295
|
-
import { __ as
|
|
4296
|
-
var OFFSET_LABEL =
|
|
4397
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
4398
|
+
var OFFSET_LABEL = __35("Anchor offset", "elementor");
|
|
4297
4399
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4298
4400
|
var OffsetField = () => {
|
|
4299
4401
|
const rowRef = useRef10(null);
|
|
4300
|
-
return /* @__PURE__ */
|
|
4402
|
+
return /* @__PURE__ */ React57.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React57.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React57.createElement(SizeControl5, { units: UNITS2, anchorRef: rowRef })));
|
|
4301
4403
|
};
|
|
4302
4404
|
|
|
4303
4405
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4304
|
-
import * as
|
|
4406
|
+
import * as React58 from "react";
|
|
4305
4407
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
4306
|
-
import { __ as
|
|
4307
|
-
var POSITION_LABEL =
|
|
4408
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
4409
|
+
var POSITION_LABEL = __36("Position", "elementor");
|
|
4308
4410
|
var positionOptions = [
|
|
4309
|
-
{ label:
|
|
4310
|
-
{ label:
|
|
4311
|
-
{ label:
|
|
4312
|
-
{ label:
|
|
4313
|
-
{ label:
|
|
4411
|
+
{ label: __36("Static", "elementor"), value: "static" },
|
|
4412
|
+
{ label: __36("Relative", "elementor"), value: "relative" },
|
|
4413
|
+
{ label: __36("Absolute", "elementor"), value: "absolute" },
|
|
4414
|
+
{ label: __36("Fixed", "elementor"), value: "fixed" },
|
|
4415
|
+
{ label: __36("Sticky", "elementor"), value: "sticky" }
|
|
4314
4416
|
];
|
|
4315
4417
|
var PositionField = ({ onChange }) => {
|
|
4316
|
-
return /* @__PURE__ */
|
|
4418
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React58.createElement(SelectControl3, { options: positionOptions, onChange })));
|
|
4317
4419
|
};
|
|
4318
4420
|
|
|
4319
4421
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4320
|
-
import * as
|
|
4422
|
+
import * as React59 from "react";
|
|
4321
4423
|
import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
|
|
4322
|
-
import { __ as
|
|
4323
|
-
var Z_INDEX_LABEL =
|
|
4424
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
4425
|
+
var Z_INDEX_LABEL = __37("Z-index", "elementor");
|
|
4324
4426
|
var ZIndexField = () => {
|
|
4325
|
-
return /* @__PURE__ */
|
|
4427
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(NumberControl4, null)));
|
|
4326
4428
|
};
|
|
4327
4429
|
|
|
4328
4430
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4329
4431
|
var POSITION_STATIC = "static";
|
|
4330
|
-
var POSITION_LABEL2 =
|
|
4331
|
-
var DIMENSIONS_LABEL =
|
|
4432
|
+
var POSITION_LABEL2 = __38("Position", "elementor");
|
|
4433
|
+
var DIMENSIONS_LABEL = __38("Dimensions", "elementor");
|
|
4332
4434
|
var POSITION_DEPENDENT_PROP_NAMES = [
|
|
4333
4435
|
"inset-block-start",
|
|
4334
4436
|
"inset-block-end",
|
|
@@ -4385,7 +4487,7 @@ var PositionSection = () => {
|
|
|
4385
4487
|
}
|
|
4386
4488
|
};
|
|
4387
4489
|
const isNotStatic = positionValue && positionValue?.value !== POSITION_STATIC;
|
|
4388
|
-
return /* @__PURE__ */
|
|
4490
|
+
return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(DimensionsField, null), /* @__PURE__ */ React60.createElement(ZIndexField, null)) : null, /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(OffsetField, null));
|
|
4389
4491
|
};
|
|
4390
4492
|
var usePersistDimensions = () => {
|
|
4391
4493
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4395,26 +4497,26 @@ var usePersistDimensions = () => {
|
|
|
4395
4497
|
};
|
|
4396
4498
|
|
|
4397
4499
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4398
|
-
import * as
|
|
4500
|
+
import * as React65 from "react";
|
|
4399
4501
|
import { useRef as useRef12 } from "react";
|
|
4400
4502
|
import { AspectRatioControl, PositionControl, SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4401
|
-
import { Grid as
|
|
4402
|
-
import { __ as
|
|
4503
|
+
import { Grid as Grid7, Stack as Stack10 } from "@elementor/ui";
|
|
4504
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4403
4505
|
|
|
4404
4506
|
// src/components/style-tab-collapsible-content.tsx
|
|
4405
|
-
import * as
|
|
4507
|
+
import * as React62 from "react";
|
|
4406
4508
|
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
4407
4509
|
|
|
4408
4510
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4409
|
-
import * as
|
|
4511
|
+
import * as React61 from "react";
|
|
4410
4512
|
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
4411
4513
|
import { Stack as Stack9, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
4412
|
-
import { __ as
|
|
4514
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4413
4515
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4414
4516
|
const { id, meta, provider } = useStyle();
|
|
4415
4517
|
const snapshot = useStylesInheritanceSnapshot();
|
|
4416
4518
|
if (fields.includes("custom_css")) {
|
|
4417
|
-
return /* @__PURE__ */
|
|
4519
|
+
return /* @__PURE__ */ React61.createElement(CustomCssIndicator, null);
|
|
4418
4520
|
}
|
|
4419
4521
|
const snapshotFields = Object.fromEntries(
|
|
4420
4522
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -4423,9 +4525,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4423
4525
|
if (!hasValues && !hasOverrides) {
|
|
4424
4526
|
return null;
|
|
4425
4527
|
}
|
|
4426
|
-
const hasValueLabel =
|
|
4427
|
-
const hasOverridesLabel =
|
|
4428
|
-
return /* @__PURE__ */
|
|
4528
|
+
const hasValueLabel = __39("Has effective styles", "elementor");
|
|
4529
|
+
const hasOverridesLabel = __39("Has overridden styles", "elementor");
|
|
4530
|
+
return /* @__PURE__ */ React61.createElement(Tooltip2, { title: __39("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React61.createElement(Stack9, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React61.createElement(
|
|
4429
4531
|
StyleIndicator,
|
|
4430
4532
|
{
|
|
4431
4533
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4433,7 +4535,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4433
4535
|
role: "listitem",
|
|
4434
4536
|
"aria-label": hasValueLabel
|
|
4435
4537
|
}
|
|
4436
|
-
), hasOverrides && /* @__PURE__ */
|
|
4538
|
+
), hasOverrides && /* @__PURE__ */ React61.createElement(
|
|
4437
4539
|
StyleIndicator,
|
|
4438
4540
|
{
|
|
4439
4541
|
isOverridden: true,
|
|
@@ -4473,59 +4575,59 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
4473
4575
|
|
|
4474
4576
|
// src/components/style-tab-collapsible-content.tsx
|
|
4475
4577
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4476
|
-
return /* @__PURE__ */
|
|
4578
|
+
return /* @__PURE__ */ React62.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4477
4579
|
};
|
|
4478
4580
|
function getStylesInheritanceIndicators(fields) {
|
|
4479
4581
|
if (fields.length === 0) {
|
|
4480
4582
|
return null;
|
|
4481
4583
|
}
|
|
4482
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
4584
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React62.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4483
4585
|
}
|
|
4484
4586
|
|
|
4485
4587
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4486
|
-
import * as
|
|
4588
|
+
import * as React63 from "react";
|
|
4487
4589
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4488
|
-
import { __ as
|
|
4489
|
-
var OBJECT_FIT_LABEL =
|
|
4590
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4591
|
+
var OBJECT_FIT_LABEL = __40("Object fit", "elementor");
|
|
4490
4592
|
var positionOptions2 = [
|
|
4491
|
-
{ label:
|
|
4492
|
-
{ label:
|
|
4493
|
-
{ label:
|
|
4494
|
-
{ label:
|
|
4495
|
-
{ label:
|
|
4593
|
+
{ label: __40("Fill", "elementor"), value: "fill" },
|
|
4594
|
+
{ label: __40("Cover", "elementor"), value: "cover" },
|
|
4595
|
+
{ label: __40("Contain", "elementor"), value: "contain" },
|
|
4596
|
+
{ label: __40("None", "elementor"), value: "none" },
|
|
4597
|
+
{ label: __40("Scale down", "elementor"), value: "scale-down" }
|
|
4496
4598
|
];
|
|
4497
4599
|
var ObjectFitField = () => {
|
|
4498
|
-
return /* @__PURE__ */
|
|
4600
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React63.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React63.createElement(SelectControl4, { options: positionOptions2 })));
|
|
4499
4601
|
};
|
|
4500
4602
|
|
|
4501
4603
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4502
|
-
import * as
|
|
4503
|
-
import { ToggleControl as
|
|
4604
|
+
import * as React64 from "react";
|
|
4605
|
+
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
4504
4606
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
4505
|
-
import { __ as
|
|
4506
|
-
var OVERFLOW_LABEL =
|
|
4607
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4608
|
+
var OVERFLOW_LABEL = __41("Overflow", "elementor");
|
|
4507
4609
|
var options7 = [
|
|
4508
4610
|
{
|
|
4509
4611
|
value: "visible",
|
|
4510
|
-
label:
|
|
4511
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4612
|
+
label: __41("Visible", "elementor"),
|
|
4613
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(EyeIcon, { fontSize: size }),
|
|
4512
4614
|
showTooltip: true
|
|
4513
4615
|
},
|
|
4514
4616
|
{
|
|
4515
4617
|
value: "hidden",
|
|
4516
|
-
label:
|
|
4517
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4618
|
+
label: __41("Hidden", "elementor"),
|
|
4619
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(EyeOffIcon, { fontSize: size }),
|
|
4518
4620
|
showTooltip: true
|
|
4519
4621
|
},
|
|
4520
4622
|
{
|
|
4521
4623
|
value: "auto",
|
|
4522
|
-
label:
|
|
4523
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4624
|
+
label: __41("Auto", "elementor"),
|
|
4625
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(LetterAIcon, { fontSize: size }),
|
|
4524
4626
|
showTooltip: true
|
|
4525
4627
|
}
|
|
4526
4628
|
];
|
|
4527
4629
|
var OverflowField = () => {
|
|
4528
|
-
return /* @__PURE__ */
|
|
4630
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React64.createElement(ToggleControl11, { options: options7 })));
|
|
4529
4631
|
};
|
|
4530
4632
|
|
|
4531
4633
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4533,97 +4635,97 @@ var CssSizeProps = [
|
|
|
4533
4635
|
[
|
|
4534
4636
|
{
|
|
4535
4637
|
bind: "width",
|
|
4536
|
-
label:
|
|
4638
|
+
label: __42("Width", "elementor")
|
|
4537
4639
|
},
|
|
4538
4640
|
{
|
|
4539
4641
|
bind: "height",
|
|
4540
|
-
label:
|
|
4642
|
+
label: __42("Height", "elementor")
|
|
4541
4643
|
}
|
|
4542
4644
|
],
|
|
4543
4645
|
[
|
|
4544
4646
|
{
|
|
4545
4647
|
bind: "min-width",
|
|
4546
|
-
label:
|
|
4648
|
+
label: __42("Min width", "elementor")
|
|
4547
4649
|
},
|
|
4548
4650
|
{
|
|
4549
4651
|
bind: "min-height",
|
|
4550
|
-
label:
|
|
4652
|
+
label: __42("Min height", "elementor")
|
|
4551
4653
|
}
|
|
4552
4654
|
],
|
|
4553
4655
|
[
|
|
4554
4656
|
{
|
|
4555
4657
|
bind: "max-width",
|
|
4556
|
-
label:
|
|
4658
|
+
label: __42("Max width", "elementor")
|
|
4557
4659
|
},
|
|
4558
4660
|
{
|
|
4559
4661
|
bind: "max-height",
|
|
4560
|
-
label:
|
|
4662
|
+
label: __42("Max height", "elementor")
|
|
4561
4663
|
}
|
|
4562
4664
|
]
|
|
4563
4665
|
];
|
|
4564
|
-
var ASPECT_RATIO_LABEL =
|
|
4666
|
+
var ASPECT_RATIO_LABEL = __42("Aspect Ratio", "elementor");
|
|
4565
4667
|
var SizeSection = () => {
|
|
4566
4668
|
const gridRowRefs = [useRef12(null), useRef12(null), useRef12(null)];
|
|
4567
|
-
return /* @__PURE__ */
|
|
4669
|
+
return /* @__PURE__ */ React65.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React65.createElement(Grid7, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React65.createElement(Grid7, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React65.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React65.createElement(PanelDivider, null), /* @__PURE__ */ React65.createElement(Stack10, null, /* @__PURE__ */ React65.createElement(OverflowField, null)), /* @__PURE__ */ React65.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React65.createElement(Stack10, { gap: 2, pt: 2 }, /* @__PURE__ */ React65.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React65.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React65.createElement(PanelDivider, null), /* @__PURE__ */ React65.createElement(ObjectFitField, null), /* @__PURE__ */ React65.createElement(StylesField, { bind: "object-position", propDisplayName: __42("Object position", "elementor") }, /* @__PURE__ */ React65.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(PositionControl, null))))));
|
|
4568
4670
|
};
|
|
4569
4671
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4570
|
-
return /* @__PURE__ */
|
|
4672
|
+
return /* @__PURE__ */ React65.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React65.createElement(Grid7, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React65.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, label)), /* @__PURE__ */ React65.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React65.createElement(SizeControl6, { extendedOptions, anchorRef: rowRef }))));
|
|
4571
4673
|
};
|
|
4572
4674
|
|
|
4573
4675
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4574
|
-
import * as
|
|
4676
|
+
import * as React66 from "react";
|
|
4575
4677
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
4576
|
-
import { __ as
|
|
4577
|
-
var MARGIN_LABEL =
|
|
4578
|
-
var PADDING_LABEL =
|
|
4678
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4679
|
+
var MARGIN_LABEL = __43("Margin", "elementor");
|
|
4680
|
+
var PADDING_LABEL = __43("Padding", "elementor");
|
|
4579
4681
|
var SpacingSection = () => {
|
|
4580
4682
|
const { isSiteRtl } = useDirection();
|
|
4581
|
-
return /* @__PURE__ */
|
|
4683
|
+
return /* @__PURE__ */ React66.createElement(SectionContent, null, /* @__PURE__ */ React66.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React66.createElement(
|
|
4582
4684
|
LinkedDimensionsControl,
|
|
4583
4685
|
{
|
|
4584
4686
|
label: MARGIN_LABEL,
|
|
4585
4687
|
isSiteRtl,
|
|
4586
4688
|
min: -Number.MAX_SAFE_INTEGER
|
|
4587
4689
|
}
|
|
4588
|
-
)), /* @__PURE__ */
|
|
4690
|
+
)), /* @__PURE__ */ React66.createElement(PanelDivider, null), /* @__PURE__ */ React66.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React66.createElement(LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4589
4691
|
};
|
|
4590
4692
|
|
|
4591
4693
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4592
|
-
import * as
|
|
4694
|
+
import * as React83 from "react";
|
|
4593
4695
|
|
|
4594
4696
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4595
|
-
import * as
|
|
4697
|
+
import * as React67 from "react";
|
|
4596
4698
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
4597
|
-
import { __ as
|
|
4598
|
-
var COLUMN_COUNT_LABEL =
|
|
4699
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
4700
|
+
var COLUMN_COUNT_LABEL = __44("Columns", "elementor");
|
|
4599
4701
|
var ColumnCountField = () => {
|
|
4600
|
-
return /* @__PURE__ */
|
|
4702
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React67.createElement(NumberControl5, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4601
4703
|
};
|
|
4602
4704
|
|
|
4603
4705
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4604
|
-
import * as
|
|
4706
|
+
import * as React68 from "react";
|
|
4605
4707
|
import { useRef as useRef13 } from "react";
|
|
4606
4708
|
import { SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4607
|
-
import { __ as
|
|
4608
|
-
var COLUMN_GAP_LABEL =
|
|
4709
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
4710
|
+
var COLUMN_GAP_LABEL = __45("Column gap", "elementor");
|
|
4609
4711
|
var ColumnGapField = () => {
|
|
4610
4712
|
const rowRef = useRef13(null);
|
|
4611
|
-
return /* @__PURE__ */
|
|
4713
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React68.createElement(SizeControl7, { anchorRef: rowRef })));
|
|
4612
4714
|
};
|
|
4613
4715
|
|
|
4614
4716
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4615
|
-
import * as
|
|
4717
|
+
import * as React69 from "react";
|
|
4616
4718
|
import { FontFamilyControl, useFontFamilies } from "@elementor/editor-controls";
|
|
4617
4719
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
4618
|
-
import { __ as
|
|
4619
|
-
var FONT_FAMILY_LABEL =
|
|
4720
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
4721
|
+
var FONT_FAMILY_LABEL = __46("Font family", "elementor");
|
|
4620
4722
|
var FontFamilyField = () => {
|
|
4621
4723
|
const fontFamilies = useFontFamilies();
|
|
4622
4724
|
const sectionWidth = useSectionWidth();
|
|
4623
4725
|
if (fontFamilies.length === 0) {
|
|
4624
4726
|
return null;
|
|
4625
4727
|
}
|
|
4626
|
-
return /* @__PURE__ */
|
|
4728
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React69.createElement(
|
|
4627
4729
|
FontFamilyControl,
|
|
4628
4730
|
{
|
|
4629
4731
|
fontFamilies,
|
|
@@ -4634,196 +4736,196 @@ var FontFamilyField = () => {
|
|
|
4634
4736
|
};
|
|
4635
4737
|
|
|
4636
4738
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4637
|
-
import * as
|
|
4739
|
+
import * as React70 from "react";
|
|
4638
4740
|
import { useRef as useRef14 } from "react";
|
|
4639
4741
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
4640
|
-
import { __ as
|
|
4641
|
-
var FONT_SIZE_LABEL =
|
|
4742
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
4743
|
+
var FONT_SIZE_LABEL = __47("Font size", "elementor");
|
|
4642
4744
|
var FontSizeField = () => {
|
|
4643
4745
|
const rowRef = useRef14(null);
|
|
4644
|
-
return /* @__PURE__ */
|
|
4746
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React70.createElement(SizeControl8, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
4645
4747
|
};
|
|
4646
4748
|
|
|
4647
4749
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4648
|
-
import * as
|
|
4649
|
-
import { ToggleControl as
|
|
4750
|
+
import * as React71 from "react";
|
|
4751
|
+
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
4650
4752
|
import { ItalicIcon, MinusIcon } from "@elementor/icons";
|
|
4651
|
-
import { __ as
|
|
4652
|
-
var FONT_STYLE_LABEL =
|
|
4753
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
4754
|
+
var FONT_STYLE_LABEL = __48("Font style", "elementor");
|
|
4653
4755
|
var options8 = [
|
|
4654
4756
|
{
|
|
4655
4757
|
value: "normal",
|
|
4656
|
-
label:
|
|
4657
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4758
|
+
label: __48("Normal", "elementor"),
|
|
4759
|
+
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(MinusIcon, { fontSize: size }),
|
|
4658
4760
|
showTooltip: true
|
|
4659
4761
|
},
|
|
4660
4762
|
{
|
|
4661
4763
|
value: "italic",
|
|
4662
|
-
label:
|
|
4663
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4764
|
+
label: __48("Italic", "elementor"),
|
|
4765
|
+
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(ItalicIcon, { fontSize: size }),
|
|
4664
4766
|
showTooltip: true
|
|
4665
4767
|
}
|
|
4666
4768
|
];
|
|
4667
4769
|
var FontStyleField = () => {
|
|
4668
|
-
return /* @__PURE__ */
|
|
4770
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React71.createElement(ToggleControl12, { options: options8 })));
|
|
4669
4771
|
};
|
|
4670
4772
|
|
|
4671
4773
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4672
|
-
import * as
|
|
4774
|
+
import * as React72 from "react";
|
|
4673
4775
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
4674
|
-
import { __ as
|
|
4675
|
-
var FONT_WEIGHT_LABEL =
|
|
4776
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
4777
|
+
var FONT_WEIGHT_LABEL = __49("Font weight", "elementor");
|
|
4676
4778
|
var fontWeightOptions = [
|
|
4677
|
-
{ value: "100", label:
|
|
4678
|
-
{ value: "200", label:
|
|
4679
|
-
{ value: "300", label:
|
|
4680
|
-
{ value: "400", label:
|
|
4681
|
-
{ value: "500", label:
|
|
4682
|
-
{ value: "600", label:
|
|
4683
|
-
{ value: "700", label:
|
|
4684
|
-
{ value: "800", label:
|
|
4685
|
-
{ value: "900", label:
|
|
4779
|
+
{ value: "100", label: __49("100 - Thin", "elementor") },
|
|
4780
|
+
{ value: "200", label: __49("200 - Extra light", "elementor") },
|
|
4781
|
+
{ value: "300", label: __49("300 - Light", "elementor") },
|
|
4782
|
+
{ value: "400", label: __49("400 - Normal", "elementor") },
|
|
4783
|
+
{ value: "500", label: __49("500 - Medium", "elementor") },
|
|
4784
|
+
{ value: "600", label: __49("600 - Semi bold", "elementor") },
|
|
4785
|
+
{ value: "700", label: __49("700 - Bold", "elementor") },
|
|
4786
|
+
{ value: "800", label: __49("800 - Extra bold", "elementor") },
|
|
4787
|
+
{ value: "900", label: __49("900 - Black", "elementor") }
|
|
4686
4788
|
];
|
|
4687
4789
|
var FontWeightField = () => {
|
|
4688
|
-
return /* @__PURE__ */
|
|
4790
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React72.createElement(SelectControl5, { options: fontWeightOptions })));
|
|
4689
4791
|
};
|
|
4690
4792
|
|
|
4691
4793
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4692
|
-
import * as
|
|
4794
|
+
import * as React73 from "react";
|
|
4693
4795
|
import { useRef as useRef15 } from "react";
|
|
4694
4796
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
4695
|
-
import { __ as
|
|
4696
|
-
var LETTER_SPACING_LABEL =
|
|
4797
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
4798
|
+
var LETTER_SPACING_LABEL = __50("Letter spacing", "elementor");
|
|
4697
4799
|
var LetterSpacingField = () => {
|
|
4698
4800
|
const rowRef = useRef15(null);
|
|
4699
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React73.createElement(SizeControl9, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4700
4802
|
};
|
|
4701
4803
|
|
|
4702
4804
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4703
|
-
import * as
|
|
4805
|
+
import * as React74 from "react";
|
|
4704
4806
|
import { useRef as useRef16 } from "react";
|
|
4705
4807
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
4706
|
-
import { __ as
|
|
4707
|
-
var LINE_HEIGHT_LABEL =
|
|
4808
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
4809
|
+
var LINE_HEIGHT_LABEL = __51("Line height", "elementor");
|
|
4708
4810
|
var LineHeightField = () => {
|
|
4709
4811
|
const rowRef = useRef16(null);
|
|
4710
|
-
return /* @__PURE__ */
|
|
4812
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React74.createElement(SizeControl10, { anchorRef: rowRef })));
|
|
4711
4813
|
};
|
|
4712
4814
|
|
|
4713
4815
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
4714
|
-
import * as
|
|
4715
|
-
import { ToggleControl as
|
|
4816
|
+
import * as React75 from "react";
|
|
4817
|
+
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
4716
4818
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
4717
4819
|
import { withDirection as withDirection11 } from "@elementor/ui";
|
|
4718
|
-
import { __ as
|
|
4719
|
-
var TEXT_ALIGNMENT_LABEL =
|
|
4820
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
4821
|
+
var TEXT_ALIGNMENT_LABEL = __52("Text align", "elementor");
|
|
4720
4822
|
var AlignStartIcon = withDirection11(AlignLeftIcon);
|
|
4721
4823
|
var AlignEndIcon = withDirection11(AlignRightIcon);
|
|
4722
4824
|
var options9 = [
|
|
4723
4825
|
{
|
|
4724
4826
|
value: "start",
|
|
4725
|
-
label:
|
|
4726
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4827
|
+
label: __52("Start", "elementor"),
|
|
4828
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignStartIcon, { fontSize: size }),
|
|
4727
4829
|
showTooltip: true
|
|
4728
4830
|
},
|
|
4729
4831
|
{
|
|
4730
4832
|
value: "center",
|
|
4731
|
-
label:
|
|
4732
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4833
|
+
label: __52("Center", "elementor"),
|
|
4834
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignCenterIcon, { fontSize: size }),
|
|
4733
4835
|
showTooltip: true
|
|
4734
4836
|
},
|
|
4735
4837
|
{
|
|
4736
4838
|
value: "end",
|
|
4737
|
-
label:
|
|
4738
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4839
|
+
label: __52("End", "elementor"),
|
|
4840
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignEndIcon, { fontSize: size }),
|
|
4739
4841
|
showTooltip: true
|
|
4740
4842
|
},
|
|
4741
4843
|
{
|
|
4742
4844
|
value: "justify",
|
|
4743
|
-
label:
|
|
4744
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4845
|
+
label: __52("Justify", "elementor"),
|
|
4846
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
4745
4847
|
showTooltip: true
|
|
4746
4848
|
}
|
|
4747
4849
|
];
|
|
4748
4850
|
var TextAlignmentField = () => {
|
|
4749
|
-
return /* @__PURE__ */
|
|
4851
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React75.createElement(UiProviders, null, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React75.createElement(ToggleControl13, { options: options9 }))));
|
|
4750
4852
|
};
|
|
4751
4853
|
|
|
4752
4854
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
4753
|
-
import * as
|
|
4855
|
+
import * as React76 from "react";
|
|
4754
4856
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
4755
|
-
import { __ as
|
|
4756
|
-
var TEXT_COLOR_LABEL =
|
|
4857
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
4858
|
+
var TEXT_COLOR_LABEL = __53("Text color", "elementor");
|
|
4757
4859
|
var TextColorField = () => {
|
|
4758
|
-
return /* @__PURE__ */
|
|
4860
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React76.createElement(ColorControl2, { id: "text-color-control" })));
|
|
4759
4861
|
};
|
|
4760
4862
|
|
|
4761
4863
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
4762
|
-
import * as
|
|
4763
|
-
import { ToggleControl as
|
|
4864
|
+
import * as React77 from "react";
|
|
4865
|
+
import { ToggleControl as ToggleControl14 } from "@elementor/editor-controls";
|
|
4764
4866
|
import { MinusIcon as MinusIcon2, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
4765
|
-
import { __ as
|
|
4766
|
-
var TEXT_DECORATION_LABEL =
|
|
4867
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
4868
|
+
var TEXT_DECORATION_LABEL = __54("Line decoration", "elementor");
|
|
4767
4869
|
var options10 = [
|
|
4768
4870
|
{
|
|
4769
4871
|
value: "none",
|
|
4770
|
-
label:
|
|
4771
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4872
|
+
label: __54("None", "elementor"),
|
|
4873
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(MinusIcon2, { fontSize: size }),
|
|
4772
4874
|
showTooltip: true,
|
|
4773
4875
|
exclusive: true
|
|
4774
4876
|
},
|
|
4775
4877
|
{
|
|
4776
4878
|
value: "underline",
|
|
4777
|
-
label:
|
|
4778
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4879
|
+
label: __54("Underline", "elementor"),
|
|
4880
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(UnderlineIcon, { fontSize: size }),
|
|
4779
4881
|
showTooltip: true
|
|
4780
4882
|
},
|
|
4781
4883
|
{
|
|
4782
4884
|
value: "line-through",
|
|
4783
|
-
label:
|
|
4784
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4885
|
+
label: __54("Line-through", "elementor"),
|
|
4886
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(StrikethroughIcon, { fontSize: size }),
|
|
4785
4887
|
showTooltip: true
|
|
4786
4888
|
},
|
|
4787
4889
|
{
|
|
4788
4890
|
value: "overline",
|
|
4789
|
-
label:
|
|
4790
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4891
|
+
label: __54("Overline", "elementor"),
|
|
4892
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(OverlineIcon, { fontSize: size }),
|
|
4791
4893
|
showTooltip: true
|
|
4792
4894
|
}
|
|
4793
4895
|
];
|
|
4794
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
4896
|
+
var TextDecorationField = () => /* @__PURE__ */ React77.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React77.createElement(ToggleControl14, { options: options10, exclusive: false })));
|
|
4795
4897
|
|
|
4796
4898
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
4797
|
-
import * as
|
|
4798
|
-
import { ToggleControl as
|
|
4899
|
+
import * as React78 from "react";
|
|
4900
|
+
import { ToggleControl as ToggleControl15 } from "@elementor/editor-controls";
|
|
4799
4901
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
4800
|
-
import { __ as
|
|
4801
|
-
var TEXT_DIRECTION_LABEL =
|
|
4902
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
4903
|
+
var TEXT_DIRECTION_LABEL = __55("Direction", "elementor");
|
|
4802
4904
|
var options11 = [
|
|
4803
4905
|
{
|
|
4804
4906
|
value: "ltr",
|
|
4805
|
-
label:
|
|
4806
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4907
|
+
label: __55("Left to right", "elementor"),
|
|
4908
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
4807
4909
|
showTooltip: true
|
|
4808
4910
|
},
|
|
4809
4911
|
{
|
|
4810
4912
|
value: "rtl",
|
|
4811
|
-
label:
|
|
4812
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4913
|
+
label: __55("Right to left", "elementor"),
|
|
4914
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
4813
4915
|
showTooltip: true
|
|
4814
4916
|
}
|
|
4815
4917
|
];
|
|
4816
4918
|
var TextDirectionField = () => {
|
|
4817
|
-
return /* @__PURE__ */
|
|
4919
|
+
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React78.createElement(ToggleControl15, { options: options11 })));
|
|
4818
4920
|
};
|
|
4819
4921
|
|
|
4820
4922
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4821
|
-
import * as
|
|
4923
|
+
import * as React80 from "react";
|
|
4822
4924
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
4823
|
-
import { __ as
|
|
4925
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
4824
4926
|
|
|
4825
4927
|
// src/components/add-or-remove-content.tsx
|
|
4826
|
-
import * as
|
|
4928
|
+
import * as React79 from "react";
|
|
4827
4929
|
import { MinusIcon as MinusIcon3, PlusIcon } from "@elementor/icons";
|
|
4828
4930
|
import { Collapse as Collapse2, IconButton, Stack as Stack11 } from "@elementor/ui";
|
|
4829
4931
|
var SIZE = "tiny";
|
|
@@ -4835,7 +4937,7 @@ var AddOrRemoveContent = ({
|
|
|
4835
4937
|
disabled,
|
|
4836
4938
|
renderLabel
|
|
4837
4939
|
}) => {
|
|
4838
|
-
return /* @__PURE__ */
|
|
4940
|
+
return /* @__PURE__ */ React79.createElement(SectionContent, null, /* @__PURE__ */ React79.createElement(
|
|
4839
4941
|
Stack11,
|
|
4840
4942
|
{
|
|
4841
4943
|
direction: "row",
|
|
@@ -4846,8 +4948,8 @@ var AddOrRemoveContent = ({
|
|
|
4846
4948
|
}
|
|
4847
4949
|
},
|
|
4848
4950
|
renderLabel(),
|
|
4849
|
-
isAdded ? /* @__PURE__ */
|
|
4850
|
-
), /* @__PURE__ */
|
|
4951
|
+
isAdded ? /* @__PURE__ */ React79.createElement(IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React79.createElement(MinusIcon3, { fontSize: SIZE })) : /* @__PURE__ */ React79.createElement(IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React79.createElement(PlusIcon, { fontSize: SIZE }))
|
|
4952
|
+
), /* @__PURE__ */ React79.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React79.createElement(SectionContent, null, children)));
|
|
4851
4953
|
};
|
|
4852
4954
|
|
|
4853
4955
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -4867,7 +4969,7 @@ var initTextStroke = {
|
|
|
4867
4969
|
}
|
|
4868
4970
|
}
|
|
4869
4971
|
};
|
|
4870
|
-
var TEXT_STROKE_LABEL =
|
|
4972
|
+
var TEXT_STROKE_LABEL = __56("Text stroke", "elementor");
|
|
4871
4973
|
var TextStrokeField = () => {
|
|
4872
4974
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
4873
4975
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -4879,67 +4981,67 @@ var TextStrokeField = () => {
|
|
|
4879
4981
|
setValue(null);
|
|
4880
4982
|
};
|
|
4881
4983
|
const hasTextStroke = Boolean(value);
|
|
4882
|
-
return /* @__PURE__ */
|
|
4984
|
+
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React80.createElement(
|
|
4883
4985
|
AddOrRemoveContent,
|
|
4884
4986
|
{
|
|
4885
4987
|
isAdded: hasTextStroke,
|
|
4886
4988
|
onAdd: addTextStroke,
|
|
4887
4989
|
onRemove: removeTextStroke,
|
|
4888
4990
|
disabled: !canEdit,
|
|
4889
|
-
renderLabel: () => /* @__PURE__ */
|
|
4991
|
+
renderLabel: () => /* @__PURE__ */ React80.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
4890
4992
|
},
|
|
4891
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ React80.createElement(StrokeControl, null)
|
|
4892
4994
|
));
|
|
4893
4995
|
};
|
|
4894
4996
|
|
|
4895
4997
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
4896
|
-
import * as
|
|
4897
|
-
import { ToggleControl as
|
|
4998
|
+
import * as React81 from "react";
|
|
4999
|
+
import { ToggleControl as ToggleControl16 } from "@elementor/editor-controls";
|
|
4898
5000
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
4899
|
-
import { __ as
|
|
4900
|
-
var TEXT_TRANSFORM_LABEL =
|
|
5001
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
5002
|
+
var TEXT_TRANSFORM_LABEL = __57("Text transform", "elementor");
|
|
4901
5003
|
var options12 = [
|
|
4902
5004
|
{
|
|
4903
5005
|
value: "none",
|
|
4904
|
-
label:
|
|
4905
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5006
|
+
label: __57("None", "elementor"),
|
|
5007
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(MinusIcon4, { fontSize: size }),
|
|
4906
5008
|
showTooltip: true
|
|
4907
5009
|
},
|
|
4908
5010
|
{
|
|
4909
5011
|
value: "capitalize",
|
|
4910
|
-
label:
|
|
4911
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5012
|
+
label: __57("Capitalize", "elementor"),
|
|
5013
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(LetterCaseIcon, { fontSize: size }),
|
|
4912
5014
|
showTooltip: true
|
|
4913
5015
|
},
|
|
4914
5016
|
{
|
|
4915
5017
|
value: "uppercase",
|
|
4916
|
-
label:
|
|
4917
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5018
|
+
label: __57("Uppercase", "elementor"),
|
|
5019
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
4918
5020
|
showTooltip: true
|
|
4919
5021
|
},
|
|
4920
5022
|
{
|
|
4921
5023
|
value: "lowercase",
|
|
4922
|
-
label:
|
|
4923
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5024
|
+
label: __57("Lowercase", "elementor"),
|
|
5025
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
4924
5026
|
showTooltip: true
|
|
4925
5027
|
}
|
|
4926
5028
|
];
|
|
4927
|
-
var TransformField = () => /* @__PURE__ */
|
|
5029
|
+
var TransformField = () => /* @__PURE__ */ React81.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React81.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React81.createElement(ToggleControl16, { options: options12 })));
|
|
4928
5030
|
|
|
4929
5031
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
4930
|
-
import * as
|
|
5032
|
+
import * as React82 from "react";
|
|
4931
5033
|
import { useRef as useRef17 } from "react";
|
|
4932
5034
|
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
4933
|
-
import { __ as
|
|
4934
|
-
var WORD_SPACING_LABEL =
|
|
5035
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
5036
|
+
var WORD_SPACING_LABEL = __58("Word spacing", "elementor");
|
|
4935
5037
|
var WordSpacingField = () => {
|
|
4936
5038
|
const rowRef = useRef17(null);
|
|
4937
|
-
return /* @__PURE__ */
|
|
5039
|
+
return /* @__PURE__ */ React82.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React82.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React82.createElement(SizeControl11, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4938
5040
|
};
|
|
4939
5041
|
|
|
4940
5042
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4941
5043
|
var TypographySection = () => {
|
|
4942
|
-
return /* @__PURE__ */
|
|
5044
|
+
return /* @__PURE__ */ React83.createElement(SectionContent, null, /* @__PURE__ */ React83.createElement(FontFamilyField, null), /* @__PURE__ */ React83.createElement(FontWeightField, null), /* @__PURE__ */ React83.createElement(FontSizeField, null), /* @__PURE__ */ React83.createElement(PanelDivider, null), /* @__PURE__ */ React83.createElement(TextAlignmentField, null), /* @__PURE__ */ React83.createElement(TextColorField, null), /* @__PURE__ */ React83.createElement(
|
|
4943
5045
|
StyleTabCollapsibleContent,
|
|
4944
5046
|
{
|
|
4945
5047
|
fields: [
|
|
@@ -4954,18 +5056,18 @@ var TypographySection = () => {
|
|
|
4954
5056
|
"stroke"
|
|
4955
5057
|
]
|
|
4956
5058
|
},
|
|
4957
|
-
/* @__PURE__ */
|
|
5059
|
+
/* @__PURE__ */ React83.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React83.createElement(LineHeightField, null), /* @__PURE__ */ React83.createElement(LetterSpacingField, null), /* @__PURE__ */ React83.createElement(WordSpacingField, null), /* @__PURE__ */ React83.createElement(ColumnCountField, null), /* @__PURE__ */ React83.createElement(ColumnGapField, null), /* @__PURE__ */ React83.createElement(PanelDivider, null), /* @__PURE__ */ React83.createElement(TextDecorationField, null), /* @__PURE__ */ React83.createElement(TransformField, null), /* @__PURE__ */ React83.createElement(TextDirectionField, null), /* @__PURE__ */ React83.createElement(FontStyleField, null), /* @__PURE__ */ React83.createElement(TextStrokeField, null))
|
|
4958
5060
|
));
|
|
4959
5061
|
};
|
|
4960
5062
|
|
|
4961
5063
|
// src/components/style-tab-section.tsx
|
|
4962
|
-
import * as
|
|
5064
|
+
import * as React84 from "react";
|
|
4963
5065
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
4964
5066
|
const { component, name, title, action } = section;
|
|
4965
5067
|
const tabDefaults = useDefaultPanelSettings();
|
|
4966
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5068
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React84.createElement(React84.Fragment, null));
|
|
4967
5069
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
4968
|
-
return /* @__PURE__ */
|
|
5070
|
+
return /* @__PURE__ */ React84.createElement(
|
|
4969
5071
|
Section,
|
|
4970
5072
|
{
|
|
4971
5073
|
title,
|
|
@@ -4974,7 +5076,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
4974
5076
|
unmountOnExit,
|
|
4975
5077
|
action
|
|
4976
5078
|
},
|
|
4977
|
-
/* @__PURE__ */
|
|
5079
|
+
/* @__PURE__ */ React84.createElement(SectionComponent, null)
|
|
4978
5080
|
);
|
|
4979
5081
|
};
|
|
4980
5082
|
|
|
@@ -4996,7 +5098,7 @@ var StyleTab = () => {
|
|
|
4996
5098
|
if (!currentClassesProp) {
|
|
4997
5099
|
return null;
|
|
4998
5100
|
}
|
|
4999
|
-
return /* @__PURE__ */
|
|
5101
|
+
return /* @__PURE__ */ React85.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React85.createElement(
|
|
5000
5102
|
StyleProvider,
|
|
5001
5103
|
{
|
|
5002
5104
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5007,13 +5109,13 @@ var StyleTab = () => {
|
|
|
5007
5109
|
},
|
|
5008
5110
|
setMetaState: setActiveStyleState
|
|
5009
5111
|
},
|
|
5010
|
-
/* @__PURE__ */
|
|
5112
|
+
/* @__PURE__ */ React85.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React85.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React85.createElement(ClassesHeader, null, /* @__PURE__ */ React85.createElement(CssClassSelector, null), /* @__PURE__ */ React85.createElement(Divider5, null)), /* @__PURE__ */ React85.createElement(SectionsList, null, /* @__PURE__ */ React85.createElement(
|
|
5011
5113
|
StyleTabSection,
|
|
5012
5114
|
{
|
|
5013
5115
|
section: {
|
|
5014
5116
|
component: LayoutSection,
|
|
5015
5117
|
name: "Layout",
|
|
5016
|
-
title:
|
|
5118
|
+
title: __59("Layout", "elementor")
|
|
5017
5119
|
},
|
|
5018
5120
|
fields: [
|
|
5019
5121
|
"display",
|
|
@@ -5023,26 +5125,29 @@ var StyleTab = () => {
|
|
|
5023
5125
|
"align-items",
|
|
5024
5126
|
"align-content",
|
|
5025
5127
|
"align-self",
|
|
5026
|
-
"gap"
|
|
5128
|
+
"gap",
|
|
5129
|
+
"order",
|
|
5130
|
+
"grid-column",
|
|
5131
|
+
"grid-row"
|
|
5027
5132
|
]
|
|
5028
5133
|
}
|
|
5029
|
-
), /* @__PURE__ */
|
|
5134
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5030
5135
|
StyleTabSection,
|
|
5031
5136
|
{
|
|
5032
5137
|
section: {
|
|
5033
5138
|
component: SpacingSection,
|
|
5034
5139
|
name: "Spacing",
|
|
5035
|
-
title:
|
|
5140
|
+
title: __59("Spacing", "elementor")
|
|
5036
5141
|
},
|
|
5037
5142
|
fields: ["margin", "padding"]
|
|
5038
5143
|
}
|
|
5039
|
-
), /* @__PURE__ */
|
|
5144
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5040
5145
|
StyleTabSection,
|
|
5041
5146
|
{
|
|
5042
5147
|
section: {
|
|
5043
5148
|
component: SizeSection,
|
|
5044
5149
|
name: "Size",
|
|
5045
|
-
title:
|
|
5150
|
+
title: __59("Size", "elementor")
|
|
5046
5151
|
},
|
|
5047
5152
|
fields: [
|
|
5048
5153
|
"width",
|
|
@@ -5056,23 +5161,23 @@ var StyleTab = () => {
|
|
|
5056
5161
|
"object-fit"
|
|
5057
5162
|
]
|
|
5058
5163
|
}
|
|
5059
|
-
), /* @__PURE__ */
|
|
5164
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5060
5165
|
StyleTabSection,
|
|
5061
5166
|
{
|
|
5062
5167
|
section: {
|
|
5063
5168
|
component: PositionSection,
|
|
5064
5169
|
name: "Position",
|
|
5065
|
-
title:
|
|
5170
|
+
title: __59("Position", "elementor")
|
|
5066
5171
|
},
|
|
5067
5172
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5068
5173
|
}
|
|
5069
|
-
), /* @__PURE__ */
|
|
5174
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5070
5175
|
StyleTabSection,
|
|
5071
5176
|
{
|
|
5072
5177
|
section: {
|
|
5073
5178
|
component: TypographySection,
|
|
5074
5179
|
name: "Typography",
|
|
5075
|
-
title:
|
|
5180
|
+
title: __59("Typography", "elementor")
|
|
5076
5181
|
},
|
|
5077
5182
|
fields: [
|
|
5078
5183
|
"font-family",
|
|
@@ -5091,33 +5196,33 @@ var StyleTab = () => {
|
|
|
5091
5196
|
"stroke"
|
|
5092
5197
|
]
|
|
5093
5198
|
}
|
|
5094
|
-
), /* @__PURE__ */
|
|
5199
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5095
5200
|
StyleTabSection,
|
|
5096
5201
|
{
|
|
5097
5202
|
section: {
|
|
5098
5203
|
component: BackgroundSection,
|
|
5099
5204
|
name: "Background",
|
|
5100
|
-
title:
|
|
5205
|
+
title: __59("Background", "elementor")
|
|
5101
5206
|
},
|
|
5102
5207
|
fields: ["background"]
|
|
5103
5208
|
}
|
|
5104
|
-
), /* @__PURE__ */
|
|
5209
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5105
5210
|
StyleTabSection,
|
|
5106
5211
|
{
|
|
5107
5212
|
section: {
|
|
5108
5213
|
component: BorderSection,
|
|
5109
5214
|
name: "Border",
|
|
5110
|
-
title:
|
|
5215
|
+
title: __59("Border", "elementor")
|
|
5111
5216
|
},
|
|
5112
5217
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5113
5218
|
}
|
|
5114
|
-
), /* @__PURE__ */
|
|
5219
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5115
5220
|
StyleTabSection,
|
|
5116
5221
|
{
|
|
5117
5222
|
section: {
|
|
5118
5223
|
component: EffectsSection,
|
|
5119
5224
|
name: "Effects",
|
|
5120
|
-
title:
|
|
5225
|
+
title: __59("Effects", "elementor")
|
|
5121
5226
|
},
|
|
5122
5227
|
fields: [
|
|
5123
5228
|
"mix-blend-mode",
|
|
@@ -5130,12 +5235,12 @@ var StyleTab = () => {
|
|
|
5130
5235
|
"transition"
|
|
5131
5236
|
]
|
|
5132
5237
|
}
|
|
5133
|
-
), /* @__PURE__ */
|
|
5238
|
+
), /* @__PURE__ */ React85.createElement(StyleTabSlot, null)), /* @__PURE__ */ React85.createElement(Box5, { sx: { height: "150px" } })))
|
|
5134
5239
|
));
|
|
5135
5240
|
};
|
|
5136
5241
|
function ClassesHeader({ children }) {
|
|
5137
5242
|
const scrollDirection = useScrollDirection();
|
|
5138
|
-
return /* @__PURE__ */
|
|
5243
|
+
return /* @__PURE__ */ React85.createElement(Stack12, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5139
5244
|
}
|
|
5140
5245
|
function useCurrentClassesProp() {
|
|
5141
5246
|
const { elementType } = useElement();
|
|
@@ -5154,7 +5259,7 @@ var EditingPanelTabs = () => {
|
|
|
5154
5259
|
return (
|
|
5155
5260
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5156
5261
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5157
|
-
/* @__PURE__ */
|
|
5262
|
+
/* @__PURE__ */ React86.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React86.createElement(PanelTabContent, null))
|
|
5158
5263
|
);
|
|
5159
5264
|
};
|
|
5160
5265
|
var PanelTabContent = () => {
|
|
@@ -5166,7 +5271,7 @@ var PanelTabContent = () => {
|
|
|
5166
5271
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5167
5272
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5168
5273
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5169
|
-
return /* @__PURE__ */
|
|
5274
|
+
return /* @__PURE__ */ React86.createElement(ScrollProvider, null, /* @__PURE__ */ React86.createElement(Stack13, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React86.createElement(Stack13, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React86.createElement(
|
|
5170
5275
|
Tabs,
|
|
5171
5276
|
{
|
|
5172
5277
|
variant: "fullWidth",
|
|
@@ -5178,10 +5283,10 @@ var PanelTabContent = () => {
|
|
|
5178
5283
|
setCurrentTab(newValue);
|
|
5179
5284
|
}
|
|
5180
5285
|
},
|
|
5181
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5182
|
-
/* @__PURE__ */
|
|
5183
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5184
|
-
), /* @__PURE__ */
|
|
5286
|
+
!isPromotedElement && /* @__PURE__ */ React86.createElement(Tab, { label: __60("General", "elementor"), ...getTabProps("settings") }),
|
|
5287
|
+
/* @__PURE__ */ React86.createElement(Tab, { label: __60("Style", "elementor"), ...getTabProps("style") }),
|
|
5288
|
+
isInteractionsActive && /* @__PURE__ */ React86.createElement(Tab, { label: __60("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5289
|
+
), /* @__PURE__ */ React86.createElement(Divider6, null)), !isPromotedElement && /* @__PURE__ */ React86.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React86.createElement(SettingsTab, null)), /* @__PURE__ */ React86.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React86.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React86.createElement(TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React86.createElement(InteractionsTab, null))));
|
|
5185
5290
|
};
|
|
5186
5291
|
|
|
5187
5292
|
// src/components/editing-panel.tsx
|
|
@@ -5194,13 +5299,13 @@ var EditingPanel = () => {
|
|
|
5194
5299
|
if (!element || !elementType) {
|
|
5195
5300
|
return null;
|
|
5196
5301
|
}
|
|
5197
|
-
const panelTitle =
|
|
5302
|
+
const panelTitle = __61("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5198
5303
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5199
|
-
let panelContent = /* @__PURE__ */
|
|
5304
|
+
let panelContent = /* @__PURE__ */ React87.createElement(React87.Fragment, null, /* @__PURE__ */ React87.createElement(PanelHeader, null, /* @__PURE__ */ React87.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React87.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React87.createElement(PanelBody, null, /* @__PURE__ */ React87.createElement(EditingPanelTabs, null)));
|
|
5200
5305
|
if (ReplacementComponent) {
|
|
5201
|
-
panelContent = /* @__PURE__ */
|
|
5306
|
+
panelContent = /* @__PURE__ */ React87.createElement(ReplacementComponent, null);
|
|
5202
5307
|
}
|
|
5203
|
-
return /* @__PURE__ */
|
|
5308
|
+
return /* @__PURE__ */ React87.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React87.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React87.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React87.createElement(ThemeProvider3, null, /* @__PURE__ */ React87.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React87.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React87.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React87.createElement(Panel, null, /* @__PURE__ */ React87.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5204
5309
|
};
|
|
5205
5310
|
|
|
5206
5311
|
// src/init.ts
|
|
@@ -5252,21 +5357,21 @@ var EditingPanelHooks = () => {
|
|
|
5252
5357
|
import { AttributesControl, DisplayConditionsControl } from "@elementor/editor-controls";
|
|
5253
5358
|
|
|
5254
5359
|
// src/components/promotions/custom-css.tsx
|
|
5255
|
-
import * as
|
|
5360
|
+
import * as React88 from "react";
|
|
5256
5361
|
import { useRef as useRef18 } from "react";
|
|
5257
5362
|
import { PromotionTrigger } from "@elementor/editor-controls";
|
|
5258
|
-
import { __ as
|
|
5363
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
5259
5364
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5260
5365
|
var CustomCssSection = () => {
|
|
5261
5366
|
const triggerRef = useRef18(null);
|
|
5262
|
-
return /* @__PURE__ */
|
|
5367
|
+
return /* @__PURE__ */ React88.createElement(
|
|
5263
5368
|
StyleTabSection,
|
|
5264
5369
|
{
|
|
5265
5370
|
section: {
|
|
5266
5371
|
name: "Custom CSS",
|
|
5267
|
-
title:
|
|
5372
|
+
title: __62("Custom CSS", "elementor"),
|
|
5268
5373
|
action: {
|
|
5269
|
-
component: /* @__PURE__ */
|
|
5374
|
+
component: /* @__PURE__ */ React88.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5270
5375
|
onClick: () => triggerRef.current?.toggle()
|
|
5271
5376
|
}
|
|
5272
5377
|
}
|
|
@@ -5288,7 +5393,7 @@ var init = () => {
|
|
|
5288
5393
|
};
|
|
5289
5394
|
|
|
5290
5395
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5291
|
-
import * as
|
|
5396
|
+
import * as React89 from "react";
|
|
5292
5397
|
import {
|
|
5293
5398
|
ControlFormLabel as ControlFormLabel3,
|
|
5294
5399
|
Repeater,
|
|
@@ -5302,7 +5407,7 @@ import {
|
|
|
5302
5407
|
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
5303
5408
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
5304
5409
|
import { Alert as Alert2, Chip as Chip4, Infotip, Stack as Stack14, Switch, TextField as TextField2, Typography as Typography4 } from "@elementor/ui";
|
|
5305
|
-
import { __ as
|
|
5410
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
5306
5411
|
|
|
5307
5412
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5308
5413
|
import { getContainer as getContainer2 } from "@elementor/editor-elements";
|
|
@@ -5327,7 +5432,7 @@ import {
|
|
|
5327
5432
|
removeElements
|
|
5328
5433
|
} from "@elementor/editor-elements";
|
|
5329
5434
|
import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
|
|
5330
|
-
import { __ as
|
|
5435
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
5331
5436
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5332
5437
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5333
5438
|
var useActions = () => {
|
|
@@ -5350,7 +5455,7 @@ var useActions = () => {
|
|
|
5350
5455
|
}
|
|
5351
5456
|
duplicateElements({
|
|
5352
5457
|
elementIds: [tabId, tabContentId],
|
|
5353
|
-
title:
|
|
5458
|
+
title: __63("Duplicate Tab", "elementor"),
|
|
5354
5459
|
onDuplicateElements: () => {
|
|
5355
5460
|
if (newDefault !== defaultActiveTab) {
|
|
5356
5461
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5387,7 +5492,7 @@ var useActions = () => {
|
|
|
5387
5492
|
defaultActiveTab
|
|
5388
5493
|
});
|
|
5389
5494
|
moveElements({
|
|
5390
|
-
title:
|
|
5495
|
+
title: __63("Reorder Tabs", "elementor"),
|
|
5391
5496
|
moves: [
|
|
5392
5497
|
{
|
|
5393
5498
|
element: movedElement,
|
|
@@ -5421,7 +5526,7 @@ var useActions = () => {
|
|
|
5421
5526
|
defaultActiveTab
|
|
5422
5527
|
});
|
|
5423
5528
|
removeElements({
|
|
5424
|
-
title:
|
|
5529
|
+
title: __63("Tabs", "elementor"),
|
|
5425
5530
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5426
5531
|
const tabId = item.id;
|
|
5427
5532
|
const tabContentContainer = getContainer3(tabContentAreaId);
|
|
@@ -5456,7 +5561,7 @@ var useActions = () => {
|
|
|
5456
5561
|
items3.forEach(({ index }) => {
|
|
5457
5562
|
const position = index + 1;
|
|
5458
5563
|
createElements({
|
|
5459
|
-
title:
|
|
5564
|
+
title: __63("Tabs", "elementor"),
|
|
5460
5565
|
elements: [
|
|
5461
5566
|
{
|
|
5462
5567
|
container: tabContentArea,
|
|
@@ -5525,7 +5630,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5525
5630
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5526
5631
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5527
5632
|
var TabsControl = ({ label }) => {
|
|
5528
|
-
return /* @__PURE__ */
|
|
5633
|
+
return /* @__PURE__ */ React89.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __64("Tabs", "elementor") }, /* @__PURE__ */ React89.createElement(TabsControlContent, { label }));
|
|
5529
5634
|
};
|
|
5530
5635
|
var TabsControlContent = ({ label }) => {
|
|
5531
5636
|
const { element } = useElement();
|
|
@@ -5569,7 +5674,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5569
5674
|
});
|
|
5570
5675
|
}
|
|
5571
5676
|
};
|
|
5572
|
-
return /* @__PURE__ */
|
|
5677
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5573
5678
|
Repeater,
|
|
5574
5679
|
{
|
|
5575
5680
|
showToggle: false,
|
|
@@ -5589,7 +5694,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5589
5694
|
};
|
|
5590
5695
|
var ItemLabel = ({ value, index }) => {
|
|
5591
5696
|
const elementTitle = value?.title;
|
|
5592
|
-
return /* @__PURE__ */
|
|
5697
|
+
return /* @__PURE__ */ React89.createElement(Stack14, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React89.createElement("span", null, elementTitle), /* @__PURE__ */ React89.createElement(ItemDefaultTab, { index }));
|
|
5593
5698
|
};
|
|
5594
5699
|
var ItemDefaultTab = ({ index }) => {
|
|
5595
5700
|
const { value: defaultItem } = useBoundProp5(numberPropTypeUtil4);
|
|
@@ -5597,18 +5702,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5597
5702
|
if (!isDefault) {
|
|
5598
5703
|
return null;
|
|
5599
5704
|
}
|
|
5600
|
-
return /* @__PURE__ */
|
|
5705
|
+
return /* @__PURE__ */ React89.createElement(Chip4, { size: "tiny", shape: "rounded", label: __64("Default", "elementor") });
|
|
5601
5706
|
};
|
|
5602
5707
|
var ItemContent = ({ value, index }) => {
|
|
5603
5708
|
if (!value.id) {
|
|
5604
5709
|
return null;
|
|
5605
5710
|
}
|
|
5606
|
-
return /* @__PURE__ */
|
|
5711
|
+
return /* @__PURE__ */ React89.createElement(Stack14, { p: 2, gap: 1.5 }, /* @__PURE__ */ React89.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React89.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __64("Tabs", "elementor") }, /* @__PURE__ */ React89.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5607
5712
|
};
|
|
5608
5713
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5609
5714
|
const { value, setValue } = useBoundProp5(numberPropTypeUtil4);
|
|
5610
5715
|
const isDefault = value === tabIndex;
|
|
5611
|
-
return /* @__PURE__ */
|
|
5716
|
+
return /* @__PURE__ */ React89.createElement(Stack14, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React89.createElement(ControlFormLabel3, null, __64("Set as default tab", "elementor")), /* @__PURE__ */ React89.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React89.createElement(
|
|
5612
5717
|
Switch,
|
|
5613
5718
|
{
|
|
5614
5719
|
size: "small",
|
|
@@ -5626,7 +5731,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5626
5731
|
var TabLabelControl = ({ elementId }) => {
|
|
5627
5732
|
const editorSettings = useElementEditorSettings(elementId);
|
|
5628
5733
|
const label = editorSettings?.title ?? "";
|
|
5629
|
-
return /* @__PURE__ */
|
|
5734
|
+
return /* @__PURE__ */ React89.createElement(Stack14, { gap: 1 }, /* @__PURE__ */ React89.createElement(ControlFormLabel3, null, __64("Tab name", "elementor")), /* @__PURE__ */ React89.createElement(
|
|
5630
5735
|
TextField2,
|
|
5631
5736
|
{
|
|
5632
5737
|
size: "tiny",
|
|
@@ -5647,22 +5752,22 @@ var ConditionalTooltip = ({
|
|
|
5647
5752
|
if (!showTooltip) {
|
|
5648
5753
|
return children;
|
|
5649
5754
|
}
|
|
5650
|
-
return /* @__PURE__ */
|
|
5755
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5651
5756
|
Infotip,
|
|
5652
5757
|
{
|
|
5653
5758
|
arrow: false,
|
|
5654
|
-
content: /* @__PURE__ */
|
|
5759
|
+
content: /* @__PURE__ */ React89.createElement(
|
|
5655
5760
|
Alert2,
|
|
5656
5761
|
{
|
|
5657
5762
|
color: "secondary",
|
|
5658
|
-
icon: /* @__PURE__ */
|
|
5763
|
+
icon: /* @__PURE__ */ React89.createElement(InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
5659
5764
|
size: "small",
|
|
5660
5765
|
sx: { width: 288 }
|
|
5661
5766
|
},
|
|
5662
|
-
/* @__PURE__ */
|
|
5767
|
+
/* @__PURE__ */ React89.createElement(Typography4, { variant: "body2" }, __64("To change the default tab, simply set another tab as default.", "elementor"))
|
|
5663
5768
|
)
|
|
5664
5769
|
},
|
|
5665
|
-
/* @__PURE__ */
|
|
5770
|
+
/* @__PURE__ */ React89.createElement("span", null, children)
|
|
5666
5771
|
);
|
|
5667
5772
|
};
|
|
5668
5773
|
|
|
@@ -5688,7 +5793,7 @@ import {
|
|
|
5688
5793
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
5689
5794
|
|
|
5690
5795
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5691
|
-
import * as
|
|
5796
|
+
import * as React90 from "react";
|
|
5692
5797
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
|
|
5693
5798
|
import {
|
|
5694
5799
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -5831,24 +5936,24 @@ var useDynamicTag = (tagName) => {
|
|
|
5831
5936
|
};
|
|
5832
5937
|
|
|
5833
5938
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5834
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
5939
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React90.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
5835
5940
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
5836
5941
|
const context = useBoundProp7(backgroundImageOverlayPropTypeUtil);
|
|
5837
|
-
return /* @__PURE__ */
|
|
5942
|
+
return /* @__PURE__ */ React90.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React90.createElement(Wrapper2, { rawValue: value.value })));
|
|
5838
5943
|
};
|
|
5839
5944
|
var Wrapper2 = ({ rawValue }) => {
|
|
5840
5945
|
const { propType } = useBoundProp7();
|
|
5841
5946
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
5842
|
-
return /* @__PURE__ */
|
|
5947
|
+
return /* @__PURE__ */ React90.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React90.createElement(Content, { rawValue: rawValue.image })));
|
|
5843
5948
|
};
|
|
5844
5949
|
var Content = ({ rawValue }) => {
|
|
5845
5950
|
const src = rawValue.value.src;
|
|
5846
5951
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
5847
|
-
return /* @__PURE__ */
|
|
5952
|
+
return /* @__PURE__ */ React90.createElement(React90.Fragment, null, dynamicTag?.label);
|
|
5848
5953
|
};
|
|
5849
5954
|
|
|
5850
5955
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5851
|
-
import * as
|
|
5956
|
+
import * as React94 from "react";
|
|
5852
5957
|
import {
|
|
5853
5958
|
ControlFormLabel as ControlFormLabel4,
|
|
5854
5959
|
PropKeyProvider as PropKeyProvider6,
|
|
@@ -5862,7 +5967,7 @@ import {
|
|
|
5862
5967
|
bindTrigger as bindTrigger2,
|
|
5863
5968
|
Box as Box6,
|
|
5864
5969
|
Divider as Divider8,
|
|
5865
|
-
Grid as
|
|
5970
|
+
Grid as Grid8,
|
|
5866
5971
|
IconButton as IconButton2,
|
|
5867
5972
|
Popover,
|
|
5868
5973
|
Stack as Stack16,
|
|
@@ -5873,7 +5978,7 @@ import {
|
|
|
5873
5978
|
usePopupState as usePopupState2,
|
|
5874
5979
|
useTabs as useTabs2
|
|
5875
5980
|
} from "@elementor/ui";
|
|
5876
|
-
import { __ as
|
|
5981
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
5877
5982
|
|
|
5878
5983
|
// src/hooks/use-persist-dynamic-value.ts
|
|
5879
5984
|
import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
|
|
@@ -5884,11 +5989,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
5884
5989
|
};
|
|
5885
5990
|
|
|
5886
5991
|
// src/dynamics/dynamic-control.tsx
|
|
5887
|
-
import * as
|
|
5992
|
+
import * as React92 from "react";
|
|
5888
5993
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
|
|
5889
5994
|
|
|
5890
5995
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
5891
|
-
import * as
|
|
5996
|
+
import * as React91 from "react";
|
|
5892
5997
|
import { useMemo as useMemo14 } from "react";
|
|
5893
5998
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
5894
5999
|
var DynamicConditionalControl = ({
|
|
@@ -5930,10 +6035,10 @@ var DynamicConditionalControl = ({
|
|
|
5930
6035
|
return { ...defaults, ...convertedSettings };
|
|
5931
6036
|
}, [defaults, convertedSettings]);
|
|
5932
6037
|
if (!propType?.dependencies?.terms.length) {
|
|
5933
|
-
return /* @__PURE__ */
|
|
6038
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, children);
|
|
5934
6039
|
}
|
|
5935
6040
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
5936
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6041
|
+
return isHidden ? null : /* @__PURE__ */ React91.createElement(React91.Fragment, null, children);
|
|
5937
6042
|
};
|
|
5938
6043
|
|
|
5939
6044
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -5958,7 +6063,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5958
6063
|
});
|
|
5959
6064
|
};
|
|
5960
6065
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5961
|
-
return /* @__PURE__ */
|
|
6066
|
+
return /* @__PURE__ */ React92.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React92.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React92.createElement(
|
|
5962
6067
|
DynamicConditionalControl,
|
|
5963
6068
|
{
|
|
5964
6069
|
propType: dynamicPropType,
|
|
@@ -5970,13 +6075,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5970
6075
|
};
|
|
5971
6076
|
|
|
5972
6077
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5973
|
-
import * as
|
|
6078
|
+
import * as React93 from "react";
|
|
5974
6079
|
import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
|
|
5975
6080
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
5976
6081
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
5977
6082
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
5978
6083
|
import { Divider as Divider7, Link as Link2, Stack as Stack15, Typography as Typography5, useTheme as useTheme3 } from "@elementor/ui";
|
|
5979
|
-
import { __ as
|
|
6084
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
5980
6085
|
var SIZE2 = "tiny";
|
|
5981
6086
|
var PROMO_TEXT_WIDTH = 170;
|
|
5982
6087
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6023,19 +6128,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6023
6128
|
]);
|
|
6024
6129
|
const getPopOverContent = () => {
|
|
6025
6130
|
if (hasNoDynamicTags) {
|
|
6026
|
-
return /* @__PURE__ */
|
|
6131
|
+
return /* @__PURE__ */ React93.createElement(NoDynamicTags, null);
|
|
6027
6132
|
}
|
|
6028
6133
|
if (expired) {
|
|
6029
|
-
return /* @__PURE__ */
|
|
6134
|
+
return /* @__PURE__ */ React93.createElement(ExpiredDynamicTags, null);
|
|
6030
6135
|
}
|
|
6031
|
-
return /* @__PURE__ */
|
|
6136
|
+
return /* @__PURE__ */ React93.createElement(Fragment14, null, /* @__PURE__ */ React93.createElement(
|
|
6032
6137
|
SearchField,
|
|
6033
6138
|
{
|
|
6034
6139
|
value: searchValue,
|
|
6035
6140
|
onSearch: handleSearch,
|
|
6036
|
-
placeholder:
|
|
6141
|
+
placeholder: __65("Search dynamic tags\u2026", "elementor")
|
|
6037
6142
|
}
|
|
6038
|
-
), /* @__PURE__ */
|
|
6143
|
+
), /* @__PURE__ */ React93.createElement(Divider7, null), /* @__PURE__ */ React93.createElement(
|
|
6039
6144
|
PopoverMenuList,
|
|
6040
6145
|
{
|
|
6041
6146
|
items: virtualizedItems,
|
|
@@ -6043,20 +6148,20 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6043
6148
|
onClose: closePopover,
|
|
6044
6149
|
selectedValue: dynamicValue?.name,
|
|
6045
6150
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6046
|
-
noResultsComponent: /* @__PURE__ */
|
|
6151
|
+
noResultsComponent: /* @__PURE__ */ React93.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6047
6152
|
}
|
|
6048
6153
|
));
|
|
6049
6154
|
};
|
|
6050
|
-
return /* @__PURE__ */
|
|
6155
|
+
return /* @__PURE__ */ React93.createElement(SectionPopoverBody, { "aria-label": __65("Dynamic tags", "elementor") }, /* @__PURE__ */ React93.createElement(
|
|
6051
6156
|
PopoverHeader,
|
|
6052
6157
|
{
|
|
6053
|
-
title:
|
|
6158
|
+
title: __65("Dynamic tags", "elementor"),
|
|
6054
6159
|
onClose: closePopover,
|
|
6055
|
-
icon: /* @__PURE__ */
|
|
6160
|
+
icon: /* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
6056
6161
|
}
|
|
6057
6162
|
), getPopOverContent());
|
|
6058
6163
|
};
|
|
6059
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6164
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React93.createElement(
|
|
6060
6165
|
Stack15,
|
|
6061
6166
|
{
|
|
6062
6167
|
gap: 1,
|
|
@@ -6067,11 +6172,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React91.createElem
|
|
|
6067
6172
|
color: "text.secondary",
|
|
6068
6173
|
sx: { pb: 3.5 }
|
|
6069
6174
|
},
|
|
6070
|
-
/* @__PURE__ */
|
|
6071
|
-
/* @__PURE__ */
|
|
6072
|
-
/* @__PURE__ */
|
|
6175
|
+
/* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6176
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "subtitle2" }, __65("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React93.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6177
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __65("Try something else.", "elementor"), /* @__PURE__ */ React93.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __65("Clear & try again", "elementor")))
|
|
6073
6178
|
);
|
|
6074
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6179
|
+
var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(Divider7, null), /* @__PURE__ */ React93.createElement(
|
|
6075
6180
|
Stack15,
|
|
6076
6181
|
{
|
|
6077
6182
|
gap: 1,
|
|
@@ -6082,10 +6187,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React91.createElement(React91.Fragment
|
|
|
6082
6187
|
color: "text.secondary",
|
|
6083
6188
|
sx: { pb: 3.5 }
|
|
6084
6189
|
},
|
|
6085
|
-
/* @__PURE__ */
|
|
6086
|
-
/* @__PURE__ */
|
|
6087
|
-
/* @__PURE__ */
|
|
6088
|
-
/* @__PURE__ */
|
|
6190
|
+
/* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6191
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "subtitle2" }, __65("Streamline your workflow with dynamic tags", "elementor")),
|
|
6192
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __65("Upgrade now to display your content dynamically.", "elementor")),
|
|
6193
|
+
/* @__PURE__ */ React93.createElement(
|
|
6089
6194
|
CtaButton,
|
|
6090
6195
|
{
|
|
6091
6196
|
size: "small",
|
|
@@ -6094,7 +6199,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React91.createElement(React91.Fragment
|
|
|
6094
6199
|
}
|
|
6095
6200
|
)
|
|
6096
6201
|
));
|
|
6097
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6202
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(Divider7, null), /* @__PURE__ */ React93.createElement(
|
|
6098
6203
|
Stack15,
|
|
6099
6204
|
{
|
|
6100
6205
|
gap: 1,
|
|
@@ -6105,16 +6210,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React91.createElement(React91.Fra
|
|
|
6105
6210
|
color: "text.secondary",
|
|
6106
6211
|
sx: { pb: 3.5 }
|
|
6107
6212
|
},
|
|
6108
|
-
/* @__PURE__ */
|
|
6109
|
-
/* @__PURE__ */
|
|
6110
|
-
/* @__PURE__ */
|
|
6111
|
-
/* @__PURE__ */
|
|
6213
|
+
/* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6214
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "subtitle2" }, __65("Unlock your Dynamic tags again", "elementor")),
|
|
6215
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __65("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6216
|
+
/* @__PURE__ */ React93.createElement(
|
|
6112
6217
|
CtaButton,
|
|
6113
6218
|
{
|
|
6114
6219
|
size: "small",
|
|
6115
6220
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6116
6221
|
onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
|
|
6117
|
-
children:
|
|
6222
|
+
children: __65("Renew Now", "elementor")
|
|
6118
6223
|
}
|
|
6119
6224
|
)
|
|
6120
6225
|
));
|
|
@@ -6151,7 +6256,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6151
6256
|
const { name: tagName = "" } = value;
|
|
6152
6257
|
const dynamicTag = useDynamicTag(tagName);
|
|
6153
6258
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6154
|
-
return /* @__PURE__ */
|
|
6259
|
+
return /* @__PURE__ */ React94.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React94.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React94.createElement(OriginalControl, { ...props })));
|
|
6155
6260
|
}
|
|
6156
6261
|
const removeDynamicTag = () => {
|
|
6157
6262
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6159,25 +6264,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6159
6264
|
if (!dynamicTag) {
|
|
6160
6265
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6161
6266
|
}
|
|
6162
|
-
return /* @__PURE__ */
|
|
6267
|
+
return /* @__PURE__ */ React94.createElement(Box6, null, /* @__PURE__ */ React94.createElement(
|
|
6163
6268
|
Tag,
|
|
6164
6269
|
{
|
|
6165
6270
|
fullWidth: true,
|
|
6166
6271
|
showActionsOnHover: true,
|
|
6167
6272
|
label: dynamicTag.label,
|
|
6168
|
-
startIcon: /* @__PURE__ */
|
|
6273
|
+
startIcon: /* @__PURE__ */ React94.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
6169
6274
|
...bindTrigger2(selectionPopoverState),
|
|
6170
|
-
actions: /* @__PURE__ */
|
|
6275
|
+
actions: /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React94.createElement(
|
|
6171
6276
|
IconButton2,
|
|
6172
6277
|
{
|
|
6173
6278
|
size: SIZE3,
|
|
6174
6279
|
onClick: removeDynamicTag,
|
|
6175
|
-
"aria-label":
|
|
6280
|
+
"aria-label": __66("Remove dynamic value", "elementor")
|
|
6176
6281
|
},
|
|
6177
|
-
/* @__PURE__ */
|
|
6282
|
+
/* @__PURE__ */ React94.createElement(XIcon, { fontSize: SIZE3 })
|
|
6178
6283
|
))
|
|
6179
6284
|
}
|
|
6180
|
-
), /* @__PURE__ */
|
|
6285
|
+
), /* @__PURE__ */ React94.createElement(
|
|
6181
6286
|
Popover,
|
|
6182
6287
|
{
|
|
6183
6288
|
disablePortal: true,
|
|
@@ -6189,7 +6294,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6189
6294
|
},
|
|
6190
6295
|
...bindPopover(selectionPopoverState)
|
|
6191
6296
|
},
|
|
6192
|
-
/* @__PURE__ */
|
|
6297
|
+
/* @__PURE__ */ React94.createElement(SectionPopoverBody2, { "aria-label": __66("Dynamic tags", "elementor") }, /* @__PURE__ */ React94.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6193
6298
|
));
|
|
6194
6299
|
};
|
|
6195
6300
|
var DynamicSettingsPopover = ({
|
|
@@ -6201,16 +6306,16 @@ var DynamicSettingsPopover = ({
|
|
|
6201
6306
|
if (!hasDynamicSettings) {
|
|
6202
6307
|
return null;
|
|
6203
6308
|
}
|
|
6204
|
-
return /* @__PURE__ */
|
|
6309
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
|
|
6205
6310
|
IconButton2,
|
|
6206
6311
|
{
|
|
6207
6312
|
size: SIZE3,
|
|
6208
6313
|
disabled,
|
|
6209
6314
|
...!disabled && bindTrigger2(popupState),
|
|
6210
|
-
"aria-label":
|
|
6315
|
+
"aria-label": __66("Dynamic settings", "elementor")
|
|
6211
6316
|
},
|
|
6212
|
-
/* @__PURE__ */
|
|
6213
|
-
), /* @__PURE__ */
|
|
6317
|
+
/* @__PURE__ */ React94.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
6318
|
+
), /* @__PURE__ */ React94.createElement(
|
|
6214
6319
|
Popover,
|
|
6215
6320
|
{
|
|
6216
6321
|
disablePortal: true,
|
|
@@ -6222,14 +6327,14 @@ var DynamicSettingsPopover = ({
|
|
|
6222
6327
|
},
|
|
6223
6328
|
...bindPopover(popupState)
|
|
6224
6329
|
},
|
|
6225
|
-
/* @__PURE__ */
|
|
6330
|
+
/* @__PURE__ */ React94.createElement(SectionPopoverBody2, { "aria-label": __66("Dynamic settings", "elementor") }, /* @__PURE__ */ React94.createElement(
|
|
6226
6331
|
PopoverHeader2,
|
|
6227
6332
|
{
|
|
6228
6333
|
title: dynamicTag.label,
|
|
6229
6334
|
onClose: popupState.close,
|
|
6230
|
-
icon: /* @__PURE__ */
|
|
6335
|
+
icon: /* @__PURE__ */ React94.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
6231
6336
|
}
|
|
6232
|
-
), /* @__PURE__ */
|
|
6337
|
+
), /* @__PURE__ */ React94.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6233
6338
|
));
|
|
6234
6339
|
};
|
|
6235
6340
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6240,9 +6345,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6240
6345
|
}
|
|
6241
6346
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6242
6347
|
const singleTab = tabs[0];
|
|
6243
|
-
return /* @__PURE__ */
|
|
6348
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(Divider8, null), /* @__PURE__ */ React94.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6244
6349
|
}
|
|
6245
|
-
return /* @__PURE__ */
|
|
6350
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React94.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React94.createElement(
|
|
6246
6351
|
Tab2,
|
|
6247
6352
|
{
|
|
6248
6353
|
key: index,
|
|
@@ -6250,15 +6355,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6250
6355
|
sx: { px: 1, py: 0.5 },
|
|
6251
6356
|
...getTabProps(index)
|
|
6252
6357
|
}
|
|
6253
|
-
))), /* @__PURE__ */
|
|
6254
|
-
return /* @__PURE__ */
|
|
6358
|
+
))), /* @__PURE__ */ React94.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
6359
|
+
return /* @__PURE__ */ React94.createElement(
|
|
6255
6360
|
TabPanel2,
|
|
6256
6361
|
{
|
|
6257
6362
|
key: index,
|
|
6258
6363
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6259
6364
|
...getTabPanelProps(index)
|
|
6260
6365
|
},
|
|
6261
|
-
/* @__PURE__ */
|
|
6366
|
+
/* @__PURE__ */ React94.createElement(ControlsItemsStack, { items: value.items })
|
|
6262
6367
|
);
|
|
6263
6368
|
}));
|
|
6264
6369
|
};
|
|
@@ -6300,11 +6405,11 @@ var Control2 = ({ control }) => {
|
|
|
6300
6405
|
display: "grid",
|
|
6301
6406
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6302
6407
|
} : {};
|
|
6303
|
-
return /* @__PURE__ */
|
|
6408
|
+
return /* @__PURE__ */ React94.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React94.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React94.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React94.createElement(ControlFormLabel4, null, control.label)) : null, /* @__PURE__ */ React94.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React94.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6304
6409
|
};
|
|
6305
6410
|
function ControlsItemsStack({ items: items3 }) {
|
|
6306
|
-
return /* @__PURE__ */
|
|
6307
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6411
|
+
return /* @__PURE__ */ React94.createElement(Stack16, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6412
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React94.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6308
6413
|
));
|
|
6309
6414
|
}
|
|
6310
6415
|
|
|
@@ -6357,18 +6462,18 @@ function getDynamicValue(name, settings) {
|
|
|
6357
6462
|
}
|
|
6358
6463
|
|
|
6359
6464
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6360
|
-
import * as
|
|
6465
|
+
import * as React95 from "react";
|
|
6361
6466
|
import { useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
|
|
6362
6467
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
6363
|
-
import { __ as
|
|
6468
|
+
import { __ as __67 } from "@wordpress/i18n";
|
|
6364
6469
|
var usePropDynamicAction = () => {
|
|
6365
6470
|
const { propType } = useBoundProp11();
|
|
6366
6471
|
const visible = !!propType && supportsDynamic(propType);
|
|
6367
6472
|
return {
|
|
6368
6473
|
visible,
|
|
6369
6474
|
icon: DatabaseIcon4,
|
|
6370
|
-
title:
|
|
6371
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6475
|
+
title: __67("Dynamic tags", "elementor"),
|
|
6476
|
+
content: ({ close }) => /* @__PURE__ */ React95.createElement(DynamicSelection, { close })
|
|
6372
6477
|
};
|
|
6373
6478
|
};
|
|
6374
6479
|
|
|
@@ -6403,7 +6508,7 @@ import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
|
|
|
6403
6508
|
import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
|
|
6404
6509
|
import { BrushBigIcon } from "@elementor/icons";
|
|
6405
6510
|
import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
|
|
6406
|
-
import { __ as
|
|
6511
|
+
import { __ as __68 } from "@wordpress/i18n";
|
|
6407
6512
|
|
|
6408
6513
|
// src/utils/is-equal.ts
|
|
6409
6514
|
function isEqual(a, b) {
|
|
@@ -6479,21 +6584,21 @@ function useResetStyleValueProps() {
|
|
|
6479
6584
|
const visible = calculateVisibility();
|
|
6480
6585
|
return {
|
|
6481
6586
|
visible,
|
|
6482
|
-
title:
|
|
6587
|
+
title: __68("Clear", "elementor"),
|
|
6483
6588
|
icon: BrushBigIcon,
|
|
6484
6589
|
onClick: () => resetValue()
|
|
6485
6590
|
};
|
|
6486
6591
|
}
|
|
6487
6592
|
|
|
6488
6593
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6489
|
-
import * as
|
|
6594
|
+
import * as React101 from "react";
|
|
6490
6595
|
import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
|
|
6491
6596
|
import { isEmpty as isEmpty2 } from "@elementor/editor-props";
|
|
6492
6597
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
6493
|
-
import { __ as
|
|
6598
|
+
import { __ as __72 } from "@wordpress/i18n";
|
|
6494
6599
|
|
|
6495
6600
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6496
|
-
import * as
|
|
6601
|
+
import * as React100 from "react";
|
|
6497
6602
|
import { useMemo as useMemo15, useRef as useRef19, useState as useState12 } from "react";
|
|
6498
6603
|
import {
|
|
6499
6604
|
createPropsResolver as createPropsResolver2,
|
|
@@ -6511,7 +6616,7 @@ import {
|
|
|
6511
6616
|
Stack as Stack17,
|
|
6512
6617
|
Tooltip as Tooltip6
|
|
6513
6618
|
} from "@elementor/ui";
|
|
6514
|
-
import { __ as
|
|
6619
|
+
import { __ as __71 } from "@wordpress/i18n";
|
|
6515
6620
|
|
|
6516
6621
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6517
6622
|
import { isValidElement, useEffect as useEffect10, useState as useState11 } from "react";
|
|
@@ -6521,7 +6626,7 @@ import {
|
|
|
6521
6626
|
isPseudoState
|
|
6522
6627
|
} from "@elementor/editor-styles";
|
|
6523
6628
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
6524
|
-
import { __ as
|
|
6629
|
+
import { __ as __69 } from "@wordpress/i18n";
|
|
6525
6630
|
var MAXIMUM_ITEMS = 2;
|
|
6526
6631
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6527
6632
|
const [items3, setItems] = useState11([]);
|
|
@@ -6532,7 +6637,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
6532
6637
|
);
|
|
6533
6638
|
const validItems = normalizedItems.map((item) => ({
|
|
6534
6639
|
...item,
|
|
6535
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
6640
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __69("Base", "elementor")
|
|
6536
6641
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6537
6642
|
setItems(validItems);
|
|
6538
6643
|
})();
|
|
@@ -6589,7 +6694,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6589
6694
|
};
|
|
6590
6695
|
|
|
6591
6696
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6592
|
-
import * as
|
|
6697
|
+
import * as React96 from "react";
|
|
6593
6698
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
6594
6699
|
import {
|
|
6595
6700
|
DesktopIcon,
|
|
@@ -6620,20 +6725,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6620
6725
|
return null;
|
|
6621
6726
|
}
|
|
6622
6727
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6623
|
-
return /* @__PURE__ */
|
|
6728
|
+
return /* @__PURE__ */ React96.createElement(Tooltip3, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React96.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6624
6729
|
};
|
|
6625
6730
|
|
|
6626
6731
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6627
|
-
import * as
|
|
6732
|
+
import * as React97 from "react";
|
|
6628
6733
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
6629
6734
|
import { InfoCircleIcon } from "@elementor/icons";
|
|
6630
6735
|
import { Chip as Chip5, Tooltip as Tooltip4 } from "@elementor/ui";
|
|
6631
|
-
import { __ as
|
|
6736
|
+
import { __ as __70 } from "@wordpress/i18n";
|
|
6632
6737
|
var SIZE5 = "tiny";
|
|
6633
6738
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6634
6739
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
6635
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
6636
|
-
return /* @__PURE__ */
|
|
6740
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React97.createElement(Tooltip4, { title: __70("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React97.createElement(InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
6741
|
+
return /* @__PURE__ */ React97.createElement(
|
|
6637
6742
|
Chip5,
|
|
6638
6743
|
{
|
|
6639
6744
|
label: displayLabel,
|
|
@@ -6659,10 +6764,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
6659
6764
|
};
|
|
6660
6765
|
|
|
6661
6766
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
6662
|
-
import * as
|
|
6767
|
+
import * as React98 from "react";
|
|
6663
6768
|
import { Tooltip as Tooltip5, Typography as Typography6 } from "@elementor/ui";
|
|
6664
6769
|
var ValueComponent = ({ index, value }) => {
|
|
6665
|
-
return /* @__PURE__ */
|
|
6770
|
+
return /* @__PURE__ */ React98.createElement(Tooltip5, { title: value, placement: "top" }, /* @__PURE__ */ React98.createElement(
|
|
6666
6771
|
Typography6,
|
|
6667
6772
|
{
|
|
6668
6773
|
variant: "caption",
|
|
@@ -6684,9 +6789,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
6684
6789
|
};
|
|
6685
6790
|
|
|
6686
6791
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
6687
|
-
import * as
|
|
6792
|
+
import * as React99 from "react";
|
|
6688
6793
|
import { Box as Box7 } from "@elementor/ui";
|
|
6689
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
6794
|
+
var ActionIcons = () => /* @__PURE__ */ React99.createElement(Box7, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
6690
6795
|
|
|
6691
6796
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6692
6797
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -6722,7 +6827,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6722
6827
|
});
|
|
6723
6828
|
}, [key, propType]);
|
|
6724
6829
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
6725
|
-
const infotipContent = /* @__PURE__ */
|
|
6830
|
+
const infotipContent = /* @__PURE__ */ React100.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React100.createElement(
|
|
6726
6831
|
Card,
|
|
6727
6832
|
{
|
|
6728
6833
|
elevation: 0,
|
|
@@ -6735,7 +6840,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6735
6840
|
flexDirection: "column"
|
|
6736
6841
|
}
|
|
6737
6842
|
},
|
|
6738
|
-
/* @__PURE__ */
|
|
6843
|
+
/* @__PURE__ */ React100.createElement(
|
|
6739
6844
|
Box8,
|
|
6740
6845
|
{
|
|
6741
6846
|
sx: {
|
|
@@ -6745,9 +6850,9 @@ var StylesInheritanceInfotip = ({
|
|
|
6745
6850
|
backgroundColor: "background.paper"
|
|
6746
6851
|
}
|
|
6747
6852
|
},
|
|
6748
|
-
/* @__PURE__ */
|
|
6853
|
+
/* @__PURE__ */ React100.createElement(PopoverHeader3, { title: __71("Style origin", "elementor"), onClose: closeInfotip })
|
|
6749
6854
|
),
|
|
6750
|
-
/* @__PURE__ */
|
|
6855
|
+
/* @__PURE__ */ React100.createElement(
|
|
6751
6856
|
CardContent,
|
|
6752
6857
|
{
|
|
6753
6858
|
sx: {
|
|
@@ -6761,39 +6866,39 @@ var StylesInheritanceInfotip = ({
|
|
|
6761
6866
|
}
|
|
6762
6867
|
}
|
|
6763
6868
|
},
|
|
6764
|
-
/* @__PURE__ */
|
|
6765
|
-
return /* @__PURE__ */
|
|
6869
|
+
/* @__PURE__ */ React100.createElement(Stack17, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
6870
|
+
return /* @__PURE__ */ React100.createElement(
|
|
6766
6871
|
Box8,
|
|
6767
6872
|
{
|
|
6768
6873
|
key: item.id,
|
|
6769
6874
|
display: "flex",
|
|
6770
6875
|
gap: 0.5,
|
|
6771
6876
|
role: "listitem",
|
|
6772
|
-
"aria-label":
|
|
6877
|
+
"aria-label": __71("Inheritance item: %s", "elementor").replace(
|
|
6773
6878
|
"%s",
|
|
6774
6879
|
item.displayLabel
|
|
6775
6880
|
)
|
|
6776
6881
|
},
|
|
6777
|
-
/* @__PURE__ */
|
|
6882
|
+
/* @__PURE__ */ React100.createElement(
|
|
6778
6883
|
Box8,
|
|
6779
6884
|
{
|
|
6780
6885
|
display: "flex",
|
|
6781
6886
|
gap: 0.5,
|
|
6782
6887
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
6783
6888
|
},
|
|
6784
|
-
/* @__PURE__ */
|
|
6785
|
-
/* @__PURE__ */
|
|
6786
|
-
/* @__PURE__ */
|
|
6889
|
+
/* @__PURE__ */ React100.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
6890
|
+
/* @__PURE__ */ React100.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
6891
|
+
/* @__PURE__ */ React100.createElement(ValueComponent, { index, value: item.value })
|
|
6787
6892
|
),
|
|
6788
|
-
/* @__PURE__ */
|
|
6893
|
+
/* @__PURE__ */ React100.createElement(ActionIcons, null)
|
|
6789
6894
|
);
|
|
6790
6895
|
}))
|
|
6791
6896
|
)
|
|
6792
6897
|
));
|
|
6793
6898
|
if (isDisabled) {
|
|
6794
|
-
return /* @__PURE__ */
|
|
6899
|
+
return /* @__PURE__ */ React100.createElement(Box8, { sx: { display: "inline-flex" } }, children);
|
|
6795
6900
|
}
|
|
6796
|
-
return /* @__PURE__ */
|
|
6901
|
+
return /* @__PURE__ */ React100.createElement(Box8, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React100.createElement(
|
|
6797
6902
|
TooltipOrInfotip,
|
|
6798
6903
|
{
|
|
6799
6904
|
showInfotip,
|
|
@@ -6801,7 +6906,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6801
6906
|
infotipContent,
|
|
6802
6907
|
isDisabled
|
|
6803
6908
|
},
|
|
6804
|
-
/* @__PURE__ */
|
|
6909
|
+
/* @__PURE__ */ React100.createElement(
|
|
6805
6910
|
IconButton3,
|
|
6806
6911
|
{
|
|
6807
6912
|
onClick: toggleInfotip,
|
|
@@ -6821,10 +6926,10 @@ function TooltipOrInfotip({
|
|
|
6821
6926
|
isDisabled
|
|
6822
6927
|
}) {
|
|
6823
6928
|
if (isDisabled) {
|
|
6824
|
-
return /* @__PURE__ */
|
|
6929
|
+
return /* @__PURE__ */ React100.createElement(Box8, { sx: { display: "inline-flex" } }, children);
|
|
6825
6930
|
}
|
|
6826
6931
|
if (showInfotip) {
|
|
6827
|
-
return /* @__PURE__ */
|
|
6932
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
6828
6933
|
Backdrop,
|
|
6829
6934
|
{
|
|
6830
6935
|
open: showInfotip,
|
|
@@ -6834,7 +6939,7 @@ function TooltipOrInfotip({
|
|
|
6834
6939
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
6835
6940
|
}
|
|
6836
6941
|
}
|
|
6837
|
-
), /* @__PURE__ */
|
|
6942
|
+
), /* @__PURE__ */ React100.createElement(
|
|
6838
6943
|
Infotip2,
|
|
6839
6944
|
{
|
|
6840
6945
|
placement: "top-end",
|
|
@@ -6846,7 +6951,7 @@ function TooltipOrInfotip({
|
|
|
6846
6951
|
children
|
|
6847
6952
|
));
|
|
6848
6953
|
}
|
|
6849
|
-
return /* @__PURE__ */
|
|
6954
|
+
return /* @__PURE__ */ React100.createElement(Tooltip6, { title: __71("Style origin", "elementor"), placement: "top" }, children);
|
|
6850
6955
|
}
|
|
6851
6956
|
|
|
6852
6957
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -6859,7 +6964,7 @@ var StylesInheritanceIndicator = ({
|
|
|
6859
6964
|
if (!path || !inheritanceChain.length) {
|
|
6860
6965
|
return null;
|
|
6861
6966
|
}
|
|
6862
|
-
return /* @__PURE__ */
|
|
6967
|
+
return /* @__PURE__ */ React101.createElement(Indicator, { inheritanceChain, path, propType });
|
|
6863
6968
|
};
|
|
6864
6969
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
6865
6970
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -6875,7 +6980,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
6875
6980
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
6876
6981
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
6877
6982
|
};
|
|
6878
|
-
return /* @__PURE__ */
|
|
6983
|
+
return /* @__PURE__ */ React101.createElement(
|
|
6879
6984
|
StylesInheritanceInfotip,
|
|
6880
6985
|
{
|
|
6881
6986
|
inheritanceChain,
|
|
@@ -6884,17 +6989,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
6884
6989
|
label,
|
|
6885
6990
|
isDisabled
|
|
6886
6991
|
},
|
|
6887
|
-
/* @__PURE__ */
|
|
6992
|
+
/* @__PURE__ */ React101.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
6888
6993
|
);
|
|
6889
6994
|
};
|
|
6890
6995
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
6891
6996
|
if (isFinalValue) {
|
|
6892
|
-
return
|
|
6997
|
+
return __72("This is the final value", "elementor");
|
|
6893
6998
|
}
|
|
6894
6999
|
if (hasValue) {
|
|
6895
|
-
return
|
|
7000
|
+
return __72("This value is overridden by another style", "elementor");
|
|
6896
7001
|
}
|
|
6897
|
-
return
|
|
7002
|
+
return __72("This has value from another style", "elementor");
|
|
6898
7003
|
};
|
|
6899
7004
|
|
|
6900
7005
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -6919,7 +7024,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
6919
7024
|
]);
|
|
6920
7025
|
|
|
6921
7026
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
6922
|
-
import * as
|
|
7027
|
+
import * as React102 from "react";
|
|
6923
7028
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
6924
7029
|
var arrayTransformer = createTransformer2((values) => {
|
|
6925
7030
|
if (!values || values.length === 0) {
|
|
@@ -6929,16 +7034,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
6929
7034
|
if (allStrings) {
|
|
6930
7035
|
return values.join(" ");
|
|
6931
7036
|
}
|
|
6932
|
-
return /* @__PURE__ */
|
|
7037
|
+
return /* @__PURE__ */ React102.createElement(React102.Fragment, null, values.map((item, index) => /* @__PURE__ */ React102.createElement(React102.Fragment, { key: index }, index > 0 && " ", item)));
|
|
6933
7038
|
});
|
|
6934
7039
|
|
|
6935
7040
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
6936
|
-
import * as
|
|
7041
|
+
import * as React103 from "react";
|
|
6937
7042
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
6938
7043
|
import { Stack as Stack18, styled as styled6, UnstableColorIndicator } from "@elementor/ui";
|
|
6939
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
7044
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React103.createElement(Stack18, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React103.createElement(ItemLabelColor, { value })));
|
|
6940
7045
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
6941
|
-
return /* @__PURE__ */
|
|
7046
|
+
return /* @__PURE__ */ React103.createElement("span", null, color);
|
|
6942
7047
|
};
|
|
6943
7048
|
var StyledUnstableColorIndicator = styled6(UnstableColorIndicator)(({ theme }) => ({
|
|
6944
7049
|
width: "1em",
|
|
@@ -6949,20 +7054,20 @@ var StyledUnstableColorIndicator = styled6(UnstableColorIndicator)(({ theme }) =
|
|
|
6949
7054
|
}));
|
|
6950
7055
|
|
|
6951
7056
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
6952
|
-
import * as
|
|
7057
|
+
import * as React104 from "react";
|
|
6953
7058
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
6954
7059
|
import { Stack as Stack19 } from "@elementor/ui";
|
|
6955
|
-
import { __ as
|
|
6956
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
7060
|
+
import { __ as __73 } from "@wordpress/i18n";
|
|
7061
|
+
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React104.createElement(Stack19, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React104.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React104.createElement(ItemLabelGradient, { value })));
|
|
6957
7062
|
var ItemIconGradient = ({ value }) => {
|
|
6958
7063
|
const gradient = getGradientValue(value);
|
|
6959
|
-
return /* @__PURE__ */
|
|
7064
|
+
return /* @__PURE__ */ React104.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
6960
7065
|
};
|
|
6961
7066
|
var ItemLabelGradient = ({ value }) => {
|
|
6962
7067
|
if (value.type === "linear") {
|
|
6963
|
-
return /* @__PURE__ */
|
|
7068
|
+
return /* @__PURE__ */ React104.createElement("span", null, __73("Linear gradient", "elementor"));
|
|
6964
7069
|
}
|
|
6965
|
-
return /* @__PURE__ */
|
|
7070
|
+
return /* @__PURE__ */ React104.createElement("span", null, __73("Radial gradient", "elementor"));
|
|
6966
7071
|
};
|
|
6967
7072
|
var getGradientValue = (gradient) => {
|
|
6968
7073
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -6973,15 +7078,15 @@ var getGradientValue = (gradient) => {
|
|
|
6973
7078
|
};
|
|
6974
7079
|
|
|
6975
7080
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
6976
|
-
import * as
|
|
7081
|
+
import * as React105 from "react";
|
|
6977
7082
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
6978
7083
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
6979
7084
|
import { CardMedia, Stack as Stack20 } from "@elementor/ui";
|
|
6980
7085
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
6981
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
7086
|
+
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React105.createElement(Stack20, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React105.createElement(ItemIconImage, { value }), /* @__PURE__ */ React105.createElement(ItemLabelImage, { value })));
|
|
6982
7087
|
var ItemIconImage = ({ value }) => {
|
|
6983
7088
|
const { imageUrl } = useImage(value);
|
|
6984
|
-
return /* @__PURE__ */
|
|
7089
|
+
return /* @__PURE__ */ React105.createElement(
|
|
6985
7090
|
CardMedia,
|
|
6986
7091
|
{
|
|
6987
7092
|
image: imageUrl,
|
|
@@ -6997,7 +7102,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
6997
7102
|
};
|
|
6998
7103
|
var ItemLabelImage = ({ value }) => {
|
|
6999
7104
|
const { imageTitle } = useImage(value);
|
|
7000
|
-
return /* @__PURE__ */
|
|
7105
|
+
return /* @__PURE__ */ React105.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React105.createElement("span", null, imageTitle));
|
|
7001
7106
|
};
|
|
7002
7107
|
var useImage = (image) => {
|
|
7003
7108
|
let imageTitle, imageUrl = null;
|
|
@@ -7022,7 +7127,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7022
7127
|
};
|
|
7023
7128
|
|
|
7024
7129
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7025
|
-
import * as
|
|
7130
|
+
import * as React106 from "react";
|
|
7026
7131
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
7027
7132
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
7028
7133
|
if (!value) {
|
|
@@ -7032,11 +7137,11 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
7032
7137
|
const colorValue = color || "#000000";
|
|
7033
7138
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7034
7139
|
const positionValue = position || "outset";
|
|
7035
|
-
return /* @__PURE__ */
|
|
7140
|
+
return /* @__PURE__ */ React106.createElement(React106.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7036
7141
|
});
|
|
7037
7142
|
|
|
7038
7143
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7039
|
-
import * as
|
|
7144
|
+
import * as React107 from "react";
|
|
7040
7145
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
7041
7146
|
import { Stack as Stack21, styled as styled7, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
7042
7147
|
function isValidCSSColor(value) {
|
|
@@ -7056,7 +7161,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
7056
7161
|
if (!isValidCSSColor(value)) {
|
|
7057
7162
|
return value;
|
|
7058
7163
|
}
|
|
7059
|
-
return /* @__PURE__ */
|
|
7164
|
+
return /* @__PURE__ */ React107.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React107.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React107.createElement("span", null, value));
|
|
7060
7165
|
});
|
|
7061
7166
|
|
|
7062
7167
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|