@elementor/editor-editing-panel 4.1.0-817 → 4.1.0-819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +806 -690
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +656 -535
- 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-sections/position-section/position-section.tsx +1 -1
- package/src/components/style-sections/position-section/z-index-field.tsx +29 -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();
|
|
@@ -1817,12 +1817,12 @@ function EditorPanelErrorFallback() {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
1819
|
// src/components/editing-panel-tabs.tsx
|
|
1820
|
-
import { Fragment as
|
|
1821
|
-
import * as
|
|
1820
|
+
import { Fragment as Fragment10 } from "react";
|
|
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
|
-
import { Box as
|
|
2492
|
-
import { __ as
|
|
2491
|
+
import { Box as Box6, Divider as Divider5, Stack as Stack12 } from "@elementor/ui";
|
|
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,62 @@ 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 {
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4424
|
+
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
4425
|
+
import { Alert as Alert2, AlertTitle, Box as Box5, Infotip } from "@elementor/ui";
|
|
4426
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
4427
|
+
var Z_INDEX_LABEL = __37("Z-index", "elementor");
|
|
4428
|
+
var ZIndexField = ({ disabled }) => {
|
|
4429
|
+
const StyleField = /* @__PURE__ */ React59.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React59.createElement(NumberControl4, { disabled })));
|
|
4430
|
+
const content = /* @__PURE__ */ React59.createElement(Alert2, { color: "secondary", icon: /* @__PURE__ */ React59.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React59.createElement(AlertTitle, null, __37("Z-index", "elementor")), /* @__PURE__ */ React59.createElement(Box5, { component: "span" }, __37(
|
|
4431
|
+
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4432
|
+
"elementor"
|
|
4433
|
+
)));
|
|
4434
|
+
return disabled ? /* @__PURE__ */ React59.createElement(
|
|
4435
|
+
Infotip,
|
|
4436
|
+
{
|
|
4437
|
+
placement: "right",
|
|
4438
|
+
content,
|
|
4439
|
+
color: "secondary",
|
|
4440
|
+
slotProps: { popper: { sx: { width: 300 } } }
|
|
4441
|
+
},
|
|
4442
|
+
/* @__PURE__ */ React59.createElement(Box5, null, StyleField)
|
|
4443
|
+
) : /* @__PURE__ */ React59.createElement(React59.Fragment, null, StyleField);
|
|
4326
4444
|
};
|
|
4327
4445
|
|
|
4328
4446
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4329
4447
|
var POSITION_STATIC = "static";
|
|
4330
|
-
var POSITION_LABEL2 =
|
|
4331
|
-
var DIMENSIONS_LABEL =
|
|
4448
|
+
var POSITION_LABEL2 = __38("Position", "elementor");
|
|
4449
|
+
var DIMENSIONS_LABEL = __38("Dimensions", "elementor");
|
|
4332
4450
|
var POSITION_DEPENDENT_PROP_NAMES = [
|
|
4333
4451
|
"inset-block-start",
|
|
4334
4452
|
"inset-block-end",
|
|
@@ -4385,7 +4503,7 @@ var PositionSection = () => {
|
|
|
4385
4503
|
}
|
|
4386
4504
|
};
|
|
4387
4505
|
const isNotStatic = positionValue && positionValue?.value !== POSITION_STATIC;
|
|
4388
|
-
return /* @__PURE__ */
|
|
4506
|
+
return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(DimensionsField, null)) : null, /* @__PURE__ */ React60.createElement(ZIndexField, { disabled: !isNotStatic }), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(OffsetField, null));
|
|
4389
4507
|
};
|
|
4390
4508
|
var usePersistDimensions = () => {
|
|
4391
4509
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4395,26 +4513,26 @@ var usePersistDimensions = () => {
|
|
|
4395
4513
|
};
|
|
4396
4514
|
|
|
4397
4515
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4398
|
-
import * as
|
|
4516
|
+
import * as React65 from "react";
|
|
4399
4517
|
import { useRef as useRef12 } from "react";
|
|
4400
4518
|
import { AspectRatioControl, PositionControl, SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4401
|
-
import { Grid as
|
|
4402
|
-
import { __ as
|
|
4519
|
+
import { Grid as Grid7, Stack as Stack10 } from "@elementor/ui";
|
|
4520
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4403
4521
|
|
|
4404
4522
|
// src/components/style-tab-collapsible-content.tsx
|
|
4405
|
-
import * as
|
|
4523
|
+
import * as React62 from "react";
|
|
4406
4524
|
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
4407
4525
|
|
|
4408
4526
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4409
|
-
import * as
|
|
4527
|
+
import * as React61 from "react";
|
|
4410
4528
|
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
4411
4529
|
import { Stack as Stack9, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
4412
|
-
import { __ as
|
|
4530
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4413
4531
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4414
4532
|
const { id, meta, provider } = useStyle();
|
|
4415
4533
|
const snapshot = useStylesInheritanceSnapshot();
|
|
4416
4534
|
if (fields.includes("custom_css")) {
|
|
4417
|
-
return /* @__PURE__ */
|
|
4535
|
+
return /* @__PURE__ */ React61.createElement(CustomCssIndicator, null);
|
|
4418
4536
|
}
|
|
4419
4537
|
const snapshotFields = Object.fromEntries(
|
|
4420
4538
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -4423,9 +4541,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4423
4541
|
if (!hasValues && !hasOverrides) {
|
|
4424
4542
|
return null;
|
|
4425
4543
|
}
|
|
4426
|
-
const hasValueLabel =
|
|
4427
|
-
const hasOverridesLabel =
|
|
4428
|
-
return /* @__PURE__ */
|
|
4544
|
+
const hasValueLabel = __39("Has effective styles", "elementor");
|
|
4545
|
+
const hasOverridesLabel = __39("Has overridden styles", "elementor");
|
|
4546
|
+
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
4547
|
StyleIndicator,
|
|
4430
4548
|
{
|
|
4431
4549
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4433,7 +4551,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4433
4551
|
role: "listitem",
|
|
4434
4552
|
"aria-label": hasValueLabel
|
|
4435
4553
|
}
|
|
4436
|
-
), hasOverrides && /* @__PURE__ */
|
|
4554
|
+
), hasOverrides && /* @__PURE__ */ React61.createElement(
|
|
4437
4555
|
StyleIndicator,
|
|
4438
4556
|
{
|
|
4439
4557
|
isOverridden: true,
|
|
@@ -4473,59 +4591,59 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
4473
4591
|
|
|
4474
4592
|
// src/components/style-tab-collapsible-content.tsx
|
|
4475
4593
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4476
|
-
return /* @__PURE__ */
|
|
4594
|
+
return /* @__PURE__ */ React62.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4477
4595
|
};
|
|
4478
4596
|
function getStylesInheritanceIndicators(fields) {
|
|
4479
4597
|
if (fields.length === 0) {
|
|
4480
4598
|
return null;
|
|
4481
4599
|
}
|
|
4482
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
4600
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React62.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4483
4601
|
}
|
|
4484
4602
|
|
|
4485
4603
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4486
|
-
import * as
|
|
4604
|
+
import * as React63 from "react";
|
|
4487
4605
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4488
|
-
import { __ as
|
|
4489
|
-
var OBJECT_FIT_LABEL =
|
|
4606
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4607
|
+
var OBJECT_FIT_LABEL = __40("Object fit", "elementor");
|
|
4490
4608
|
var positionOptions2 = [
|
|
4491
|
-
{ label:
|
|
4492
|
-
{ label:
|
|
4493
|
-
{ label:
|
|
4494
|
-
{ label:
|
|
4495
|
-
{ label:
|
|
4609
|
+
{ label: __40("Fill", "elementor"), value: "fill" },
|
|
4610
|
+
{ label: __40("Cover", "elementor"), value: "cover" },
|
|
4611
|
+
{ label: __40("Contain", "elementor"), value: "contain" },
|
|
4612
|
+
{ label: __40("None", "elementor"), value: "none" },
|
|
4613
|
+
{ label: __40("Scale down", "elementor"), value: "scale-down" }
|
|
4496
4614
|
];
|
|
4497
4615
|
var ObjectFitField = () => {
|
|
4498
|
-
return /* @__PURE__ */
|
|
4616
|
+
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
4617
|
};
|
|
4500
4618
|
|
|
4501
4619
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4502
|
-
import * as
|
|
4503
|
-
import { ToggleControl as
|
|
4620
|
+
import * as React64 from "react";
|
|
4621
|
+
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
4504
4622
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
4505
|
-
import { __ as
|
|
4506
|
-
var OVERFLOW_LABEL =
|
|
4623
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4624
|
+
var OVERFLOW_LABEL = __41("Overflow", "elementor");
|
|
4507
4625
|
var options7 = [
|
|
4508
4626
|
{
|
|
4509
4627
|
value: "visible",
|
|
4510
|
-
label:
|
|
4511
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4628
|
+
label: __41("Visible", "elementor"),
|
|
4629
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(EyeIcon, { fontSize: size }),
|
|
4512
4630
|
showTooltip: true
|
|
4513
4631
|
},
|
|
4514
4632
|
{
|
|
4515
4633
|
value: "hidden",
|
|
4516
|
-
label:
|
|
4517
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4634
|
+
label: __41("Hidden", "elementor"),
|
|
4635
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(EyeOffIcon, { fontSize: size }),
|
|
4518
4636
|
showTooltip: true
|
|
4519
4637
|
},
|
|
4520
4638
|
{
|
|
4521
4639
|
value: "auto",
|
|
4522
|
-
label:
|
|
4523
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4640
|
+
label: __41("Auto", "elementor"),
|
|
4641
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(LetterAIcon, { fontSize: size }),
|
|
4524
4642
|
showTooltip: true
|
|
4525
4643
|
}
|
|
4526
4644
|
];
|
|
4527
4645
|
var OverflowField = () => {
|
|
4528
|
-
return /* @__PURE__ */
|
|
4646
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React64.createElement(ToggleControl11, { options: options7 })));
|
|
4529
4647
|
};
|
|
4530
4648
|
|
|
4531
4649
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4533,97 +4651,97 @@ var CssSizeProps = [
|
|
|
4533
4651
|
[
|
|
4534
4652
|
{
|
|
4535
4653
|
bind: "width",
|
|
4536
|
-
label:
|
|
4654
|
+
label: __42("Width", "elementor")
|
|
4537
4655
|
},
|
|
4538
4656
|
{
|
|
4539
4657
|
bind: "height",
|
|
4540
|
-
label:
|
|
4658
|
+
label: __42("Height", "elementor")
|
|
4541
4659
|
}
|
|
4542
4660
|
],
|
|
4543
4661
|
[
|
|
4544
4662
|
{
|
|
4545
4663
|
bind: "min-width",
|
|
4546
|
-
label:
|
|
4664
|
+
label: __42("Min width", "elementor")
|
|
4547
4665
|
},
|
|
4548
4666
|
{
|
|
4549
4667
|
bind: "min-height",
|
|
4550
|
-
label:
|
|
4668
|
+
label: __42("Min height", "elementor")
|
|
4551
4669
|
}
|
|
4552
4670
|
],
|
|
4553
4671
|
[
|
|
4554
4672
|
{
|
|
4555
4673
|
bind: "max-width",
|
|
4556
|
-
label:
|
|
4674
|
+
label: __42("Max width", "elementor")
|
|
4557
4675
|
},
|
|
4558
4676
|
{
|
|
4559
4677
|
bind: "max-height",
|
|
4560
|
-
label:
|
|
4678
|
+
label: __42("Max height", "elementor")
|
|
4561
4679
|
}
|
|
4562
4680
|
]
|
|
4563
4681
|
];
|
|
4564
|
-
var ASPECT_RATIO_LABEL =
|
|
4682
|
+
var ASPECT_RATIO_LABEL = __42("Aspect Ratio", "elementor");
|
|
4565
4683
|
var SizeSection = () => {
|
|
4566
4684
|
const gridRowRefs = [useRef12(null), useRef12(null), useRef12(null)];
|
|
4567
|
-
return /* @__PURE__ */
|
|
4685
|
+
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
4686
|
};
|
|
4569
4687
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4570
|
-
return /* @__PURE__ */
|
|
4688
|
+
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
4689
|
};
|
|
4572
4690
|
|
|
4573
4691
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4574
|
-
import * as
|
|
4692
|
+
import * as React66 from "react";
|
|
4575
4693
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
4576
|
-
import { __ as
|
|
4577
|
-
var MARGIN_LABEL =
|
|
4578
|
-
var PADDING_LABEL =
|
|
4694
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4695
|
+
var MARGIN_LABEL = __43("Margin", "elementor");
|
|
4696
|
+
var PADDING_LABEL = __43("Padding", "elementor");
|
|
4579
4697
|
var SpacingSection = () => {
|
|
4580
4698
|
const { isSiteRtl } = useDirection();
|
|
4581
|
-
return /* @__PURE__ */
|
|
4699
|
+
return /* @__PURE__ */ React66.createElement(SectionContent, null, /* @__PURE__ */ React66.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React66.createElement(
|
|
4582
4700
|
LinkedDimensionsControl,
|
|
4583
4701
|
{
|
|
4584
4702
|
label: MARGIN_LABEL,
|
|
4585
4703
|
isSiteRtl,
|
|
4586
4704
|
min: -Number.MAX_SAFE_INTEGER
|
|
4587
4705
|
}
|
|
4588
|
-
)), /* @__PURE__ */
|
|
4706
|
+
)), /* @__PURE__ */ React66.createElement(PanelDivider, null), /* @__PURE__ */ React66.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React66.createElement(LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4589
4707
|
};
|
|
4590
4708
|
|
|
4591
4709
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4592
|
-
import * as
|
|
4710
|
+
import * as React83 from "react";
|
|
4593
4711
|
|
|
4594
4712
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4595
|
-
import * as
|
|
4713
|
+
import * as React67 from "react";
|
|
4596
4714
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
4597
|
-
import { __ as
|
|
4598
|
-
var COLUMN_COUNT_LABEL =
|
|
4715
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
4716
|
+
var COLUMN_COUNT_LABEL = __44("Columns", "elementor");
|
|
4599
4717
|
var ColumnCountField = () => {
|
|
4600
|
-
return /* @__PURE__ */
|
|
4718
|
+
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
4719
|
};
|
|
4602
4720
|
|
|
4603
4721
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4604
|
-
import * as
|
|
4722
|
+
import * as React68 from "react";
|
|
4605
4723
|
import { useRef as useRef13 } from "react";
|
|
4606
4724
|
import { SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4607
|
-
import { __ as
|
|
4608
|
-
var COLUMN_GAP_LABEL =
|
|
4725
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
4726
|
+
var COLUMN_GAP_LABEL = __45("Column gap", "elementor");
|
|
4609
4727
|
var ColumnGapField = () => {
|
|
4610
4728
|
const rowRef = useRef13(null);
|
|
4611
|
-
return /* @__PURE__ */
|
|
4729
|
+
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
4730
|
};
|
|
4613
4731
|
|
|
4614
4732
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4615
|
-
import * as
|
|
4733
|
+
import * as React69 from "react";
|
|
4616
4734
|
import { FontFamilyControl, useFontFamilies } from "@elementor/editor-controls";
|
|
4617
4735
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
4618
|
-
import { __ as
|
|
4619
|
-
var FONT_FAMILY_LABEL =
|
|
4736
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
4737
|
+
var FONT_FAMILY_LABEL = __46("Font family", "elementor");
|
|
4620
4738
|
var FontFamilyField = () => {
|
|
4621
4739
|
const fontFamilies = useFontFamilies();
|
|
4622
4740
|
const sectionWidth = useSectionWidth();
|
|
4623
4741
|
if (fontFamilies.length === 0) {
|
|
4624
4742
|
return null;
|
|
4625
4743
|
}
|
|
4626
|
-
return /* @__PURE__ */
|
|
4744
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React69.createElement(
|
|
4627
4745
|
FontFamilyControl,
|
|
4628
4746
|
{
|
|
4629
4747
|
fontFamilies,
|
|
@@ -4634,196 +4752,196 @@ var FontFamilyField = () => {
|
|
|
4634
4752
|
};
|
|
4635
4753
|
|
|
4636
4754
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4637
|
-
import * as
|
|
4755
|
+
import * as React70 from "react";
|
|
4638
4756
|
import { useRef as useRef14 } from "react";
|
|
4639
4757
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
4640
|
-
import { __ as
|
|
4641
|
-
var FONT_SIZE_LABEL =
|
|
4758
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
4759
|
+
var FONT_SIZE_LABEL = __47("Font size", "elementor");
|
|
4642
4760
|
var FontSizeField = () => {
|
|
4643
4761
|
const rowRef = useRef14(null);
|
|
4644
|
-
return /* @__PURE__ */
|
|
4762
|
+
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
4763
|
};
|
|
4646
4764
|
|
|
4647
4765
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4648
|
-
import * as
|
|
4649
|
-
import { ToggleControl as
|
|
4766
|
+
import * as React71 from "react";
|
|
4767
|
+
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
4650
4768
|
import { ItalicIcon, MinusIcon } from "@elementor/icons";
|
|
4651
|
-
import { __ as
|
|
4652
|
-
var FONT_STYLE_LABEL =
|
|
4769
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
4770
|
+
var FONT_STYLE_LABEL = __48("Font style", "elementor");
|
|
4653
4771
|
var options8 = [
|
|
4654
4772
|
{
|
|
4655
4773
|
value: "normal",
|
|
4656
|
-
label:
|
|
4657
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4774
|
+
label: __48("Normal", "elementor"),
|
|
4775
|
+
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(MinusIcon, { fontSize: size }),
|
|
4658
4776
|
showTooltip: true
|
|
4659
4777
|
},
|
|
4660
4778
|
{
|
|
4661
4779
|
value: "italic",
|
|
4662
|
-
label:
|
|
4663
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4780
|
+
label: __48("Italic", "elementor"),
|
|
4781
|
+
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(ItalicIcon, { fontSize: size }),
|
|
4664
4782
|
showTooltip: true
|
|
4665
4783
|
}
|
|
4666
4784
|
];
|
|
4667
4785
|
var FontStyleField = () => {
|
|
4668
|
-
return /* @__PURE__ */
|
|
4786
|
+
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
4787
|
};
|
|
4670
4788
|
|
|
4671
4789
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4672
|
-
import * as
|
|
4790
|
+
import * as React72 from "react";
|
|
4673
4791
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
4674
|
-
import { __ as
|
|
4675
|
-
var FONT_WEIGHT_LABEL =
|
|
4792
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
4793
|
+
var FONT_WEIGHT_LABEL = __49("Font weight", "elementor");
|
|
4676
4794
|
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:
|
|
4795
|
+
{ value: "100", label: __49("100 - Thin", "elementor") },
|
|
4796
|
+
{ value: "200", label: __49("200 - Extra light", "elementor") },
|
|
4797
|
+
{ value: "300", label: __49("300 - Light", "elementor") },
|
|
4798
|
+
{ value: "400", label: __49("400 - Normal", "elementor") },
|
|
4799
|
+
{ value: "500", label: __49("500 - Medium", "elementor") },
|
|
4800
|
+
{ value: "600", label: __49("600 - Semi bold", "elementor") },
|
|
4801
|
+
{ value: "700", label: __49("700 - Bold", "elementor") },
|
|
4802
|
+
{ value: "800", label: __49("800 - Extra bold", "elementor") },
|
|
4803
|
+
{ value: "900", label: __49("900 - Black", "elementor") }
|
|
4686
4804
|
];
|
|
4687
4805
|
var FontWeightField = () => {
|
|
4688
|
-
return /* @__PURE__ */
|
|
4806
|
+
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
4807
|
};
|
|
4690
4808
|
|
|
4691
4809
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4692
|
-
import * as
|
|
4810
|
+
import * as React73 from "react";
|
|
4693
4811
|
import { useRef as useRef15 } from "react";
|
|
4694
4812
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
4695
|
-
import { __ as
|
|
4696
|
-
var LETTER_SPACING_LABEL =
|
|
4813
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
4814
|
+
var LETTER_SPACING_LABEL = __50("Letter spacing", "elementor");
|
|
4697
4815
|
var LetterSpacingField = () => {
|
|
4698
4816
|
const rowRef = useRef15(null);
|
|
4699
|
-
return /* @__PURE__ */
|
|
4817
|
+
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
4818
|
};
|
|
4701
4819
|
|
|
4702
4820
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4703
|
-
import * as
|
|
4821
|
+
import * as React74 from "react";
|
|
4704
4822
|
import { useRef as useRef16 } from "react";
|
|
4705
4823
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
4706
|
-
import { __ as
|
|
4707
|
-
var LINE_HEIGHT_LABEL =
|
|
4824
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
4825
|
+
var LINE_HEIGHT_LABEL = __51("Line height", "elementor");
|
|
4708
4826
|
var LineHeightField = () => {
|
|
4709
4827
|
const rowRef = useRef16(null);
|
|
4710
|
-
return /* @__PURE__ */
|
|
4828
|
+
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
4829
|
};
|
|
4712
4830
|
|
|
4713
4831
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
4714
|
-
import * as
|
|
4715
|
-
import { ToggleControl as
|
|
4832
|
+
import * as React75 from "react";
|
|
4833
|
+
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
4716
4834
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
4717
4835
|
import { withDirection as withDirection11 } from "@elementor/ui";
|
|
4718
|
-
import { __ as
|
|
4719
|
-
var TEXT_ALIGNMENT_LABEL =
|
|
4836
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
4837
|
+
var TEXT_ALIGNMENT_LABEL = __52("Text align", "elementor");
|
|
4720
4838
|
var AlignStartIcon = withDirection11(AlignLeftIcon);
|
|
4721
4839
|
var AlignEndIcon = withDirection11(AlignRightIcon);
|
|
4722
4840
|
var options9 = [
|
|
4723
4841
|
{
|
|
4724
4842
|
value: "start",
|
|
4725
|
-
label:
|
|
4726
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4843
|
+
label: __52("Start", "elementor"),
|
|
4844
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignStartIcon, { fontSize: size }),
|
|
4727
4845
|
showTooltip: true
|
|
4728
4846
|
},
|
|
4729
4847
|
{
|
|
4730
4848
|
value: "center",
|
|
4731
|
-
label:
|
|
4732
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4849
|
+
label: __52("Center", "elementor"),
|
|
4850
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignCenterIcon, { fontSize: size }),
|
|
4733
4851
|
showTooltip: true
|
|
4734
4852
|
},
|
|
4735
4853
|
{
|
|
4736
4854
|
value: "end",
|
|
4737
|
-
label:
|
|
4738
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4855
|
+
label: __52("End", "elementor"),
|
|
4856
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignEndIcon, { fontSize: size }),
|
|
4739
4857
|
showTooltip: true
|
|
4740
4858
|
},
|
|
4741
4859
|
{
|
|
4742
4860
|
value: "justify",
|
|
4743
|
-
label:
|
|
4744
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4861
|
+
label: __52("Justify", "elementor"),
|
|
4862
|
+
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
4745
4863
|
showTooltip: true
|
|
4746
4864
|
}
|
|
4747
4865
|
];
|
|
4748
4866
|
var TextAlignmentField = () => {
|
|
4749
|
-
return /* @__PURE__ */
|
|
4867
|
+
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
4868
|
};
|
|
4751
4869
|
|
|
4752
4870
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
4753
|
-
import * as
|
|
4871
|
+
import * as React76 from "react";
|
|
4754
4872
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
4755
|
-
import { __ as
|
|
4756
|
-
var TEXT_COLOR_LABEL =
|
|
4873
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
4874
|
+
var TEXT_COLOR_LABEL = __53("Text color", "elementor");
|
|
4757
4875
|
var TextColorField = () => {
|
|
4758
|
-
return /* @__PURE__ */
|
|
4876
|
+
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
4877
|
};
|
|
4760
4878
|
|
|
4761
4879
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
4762
|
-
import * as
|
|
4763
|
-
import { ToggleControl as
|
|
4880
|
+
import * as React77 from "react";
|
|
4881
|
+
import { ToggleControl as ToggleControl14 } from "@elementor/editor-controls";
|
|
4764
4882
|
import { MinusIcon as MinusIcon2, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
4765
|
-
import { __ as
|
|
4766
|
-
var TEXT_DECORATION_LABEL =
|
|
4883
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
4884
|
+
var TEXT_DECORATION_LABEL = __54("Line decoration", "elementor");
|
|
4767
4885
|
var options10 = [
|
|
4768
4886
|
{
|
|
4769
4887
|
value: "none",
|
|
4770
|
-
label:
|
|
4771
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4888
|
+
label: __54("None", "elementor"),
|
|
4889
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(MinusIcon2, { fontSize: size }),
|
|
4772
4890
|
showTooltip: true,
|
|
4773
4891
|
exclusive: true
|
|
4774
4892
|
},
|
|
4775
4893
|
{
|
|
4776
4894
|
value: "underline",
|
|
4777
|
-
label:
|
|
4778
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4895
|
+
label: __54("Underline", "elementor"),
|
|
4896
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(UnderlineIcon, { fontSize: size }),
|
|
4779
4897
|
showTooltip: true
|
|
4780
4898
|
},
|
|
4781
4899
|
{
|
|
4782
4900
|
value: "line-through",
|
|
4783
|
-
label:
|
|
4784
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4901
|
+
label: __54("Line-through", "elementor"),
|
|
4902
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(StrikethroughIcon, { fontSize: size }),
|
|
4785
4903
|
showTooltip: true
|
|
4786
4904
|
},
|
|
4787
4905
|
{
|
|
4788
4906
|
value: "overline",
|
|
4789
|
-
label:
|
|
4790
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4907
|
+
label: __54("Overline", "elementor"),
|
|
4908
|
+
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(OverlineIcon, { fontSize: size }),
|
|
4791
4909
|
showTooltip: true
|
|
4792
4910
|
}
|
|
4793
4911
|
];
|
|
4794
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
4912
|
+
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
4913
|
|
|
4796
4914
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
4797
|
-
import * as
|
|
4798
|
-
import { ToggleControl as
|
|
4915
|
+
import * as React78 from "react";
|
|
4916
|
+
import { ToggleControl as ToggleControl15 } from "@elementor/editor-controls";
|
|
4799
4917
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
4800
|
-
import { __ as
|
|
4801
|
-
var TEXT_DIRECTION_LABEL =
|
|
4918
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
4919
|
+
var TEXT_DIRECTION_LABEL = __55("Direction", "elementor");
|
|
4802
4920
|
var options11 = [
|
|
4803
4921
|
{
|
|
4804
4922
|
value: "ltr",
|
|
4805
|
-
label:
|
|
4806
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4923
|
+
label: __55("Left to right", "elementor"),
|
|
4924
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
4807
4925
|
showTooltip: true
|
|
4808
4926
|
},
|
|
4809
4927
|
{
|
|
4810
4928
|
value: "rtl",
|
|
4811
|
-
label:
|
|
4812
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4929
|
+
label: __55("Right to left", "elementor"),
|
|
4930
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
4813
4931
|
showTooltip: true
|
|
4814
4932
|
}
|
|
4815
4933
|
];
|
|
4816
4934
|
var TextDirectionField = () => {
|
|
4817
|
-
return /* @__PURE__ */
|
|
4935
|
+
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
4936
|
};
|
|
4819
4937
|
|
|
4820
4938
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4821
|
-
import * as
|
|
4939
|
+
import * as React80 from "react";
|
|
4822
4940
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
4823
|
-
import { __ as
|
|
4941
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
4824
4942
|
|
|
4825
4943
|
// src/components/add-or-remove-content.tsx
|
|
4826
|
-
import * as
|
|
4944
|
+
import * as React79 from "react";
|
|
4827
4945
|
import { MinusIcon as MinusIcon3, PlusIcon } from "@elementor/icons";
|
|
4828
4946
|
import { Collapse as Collapse2, IconButton, Stack as Stack11 } from "@elementor/ui";
|
|
4829
4947
|
var SIZE = "tiny";
|
|
@@ -4835,7 +4953,7 @@ var AddOrRemoveContent = ({
|
|
|
4835
4953
|
disabled,
|
|
4836
4954
|
renderLabel
|
|
4837
4955
|
}) => {
|
|
4838
|
-
return /* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ React79.createElement(SectionContent, null, /* @__PURE__ */ React79.createElement(
|
|
4839
4957
|
Stack11,
|
|
4840
4958
|
{
|
|
4841
4959
|
direction: "row",
|
|
@@ -4846,8 +4964,8 @@ var AddOrRemoveContent = ({
|
|
|
4846
4964
|
}
|
|
4847
4965
|
},
|
|
4848
4966
|
renderLabel(),
|
|
4849
|
-
isAdded ? /* @__PURE__ */
|
|
4850
|
-
), /* @__PURE__ */
|
|
4967
|
+
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 }))
|
|
4968
|
+
), /* @__PURE__ */ React79.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React79.createElement(SectionContent, null, children)));
|
|
4851
4969
|
};
|
|
4852
4970
|
|
|
4853
4971
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -4867,7 +4985,7 @@ var initTextStroke = {
|
|
|
4867
4985
|
}
|
|
4868
4986
|
}
|
|
4869
4987
|
};
|
|
4870
|
-
var TEXT_STROKE_LABEL =
|
|
4988
|
+
var TEXT_STROKE_LABEL = __56("Text stroke", "elementor");
|
|
4871
4989
|
var TextStrokeField = () => {
|
|
4872
4990
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
4873
4991
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -4879,67 +4997,67 @@ var TextStrokeField = () => {
|
|
|
4879
4997
|
setValue(null);
|
|
4880
4998
|
};
|
|
4881
4999
|
const hasTextStroke = Boolean(value);
|
|
4882
|
-
return /* @__PURE__ */
|
|
5000
|
+
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React80.createElement(
|
|
4883
5001
|
AddOrRemoveContent,
|
|
4884
5002
|
{
|
|
4885
5003
|
isAdded: hasTextStroke,
|
|
4886
5004
|
onAdd: addTextStroke,
|
|
4887
5005
|
onRemove: removeTextStroke,
|
|
4888
5006
|
disabled: !canEdit,
|
|
4889
|
-
renderLabel: () => /* @__PURE__ */
|
|
5007
|
+
renderLabel: () => /* @__PURE__ */ React80.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
4890
5008
|
},
|
|
4891
|
-
/* @__PURE__ */
|
|
5009
|
+
/* @__PURE__ */ React80.createElement(StrokeControl, null)
|
|
4892
5010
|
));
|
|
4893
5011
|
};
|
|
4894
5012
|
|
|
4895
5013
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
4896
|
-
import * as
|
|
4897
|
-
import { ToggleControl as
|
|
5014
|
+
import * as React81 from "react";
|
|
5015
|
+
import { ToggleControl as ToggleControl16 } from "@elementor/editor-controls";
|
|
4898
5016
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
4899
|
-
import { __ as
|
|
4900
|
-
var TEXT_TRANSFORM_LABEL =
|
|
5017
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
5018
|
+
var TEXT_TRANSFORM_LABEL = __57("Text transform", "elementor");
|
|
4901
5019
|
var options12 = [
|
|
4902
5020
|
{
|
|
4903
5021
|
value: "none",
|
|
4904
|
-
label:
|
|
4905
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5022
|
+
label: __57("None", "elementor"),
|
|
5023
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(MinusIcon4, { fontSize: size }),
|
|
4906
5024
|
showTooltip: true
|
|
4907
5025
|
},
|
|
4908
5026
|
{
|
|
4909
5027
|
value: "capitalize",
|
|
4910
|
-
label:
|
|
4911
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5028
|
+
label: __57("Capitalize", "elementor"),
|
|
5029
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(LetterCaseIcon, { fontSize: size }),
|
|
4912
5030
|
showTooltip: true
|
|
4913
5031
|
},
|
|
4914
5032
|
{
|
|
4915
5033
|
value: "uppercase",
|
|
4916
|
-
label:
|
|
4917
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5034
|
+
label: __57("Uppercase", "elementor"),
|
|
5035
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
4918
5036
|
showTooltip: true
|
|
4919
5037
|
},
|
|
4920
5038
|
{
|
|
4921
5039
|
value: "lowercase",
|
|
4922
|
-
label:
|
|
4923
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5040
|
+
label: __57("Lowercase", "elementor"),
|
|
5041
|
+
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
4924
5042
|
showTooltip: true
|
|
4925
5043
|
}
|
|
4926
5044
|
];
|
|
4927
|
-
var TransformField = () => /* @__PURE__ */
|
|
5045
|
+
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
5046
|
|
|
4929
5047
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
4930
|
-
import * as
|
|
5048
|
+
import * as React82 from "react";
|
|
4931
5049
|
import { useRef as useRef17 } from "react";
|
|
4932
5050
|
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
4933
|
-
import { __ as
|
|
4934
|
-
var WORD_SPACING_LABEL =
|
|
5051
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
5052
|
+
var WORD_SPACING_LABEL = __58("Word spacing", "elementor");
|
|
4935
5053
|
var WordSpacingField = () => {
|
|
4936
5054
|
const rowRef = useRef17(null);
|
|
4937
|
-
return /* @__PURE__ */
|
|
5055
|
+
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
5056
|
};
|
|
4939
5057
|
|
|
4940
5058
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4941
5059
|
var TypographySection = () => {
|
|
4942
|
-
return /* @__PURE__ */
|
|
5060
|
+
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
5061
|
StyleTabCollapsibleContent,
|
|
4944
5062
|
{
|
|
4945
5063
|
fields: [
|
|
@@ -4954,18 +5072,18 @@ var TypographySection = () => {
|
|
|
4954
5072
|
"stroke"
|
|
4955
5073
|
]
|
|
4956
5074
|
},
|
|
4957
|
-
/* @__PURE__ */
|
|
5075
|
+
/* @__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
5076
|
));
|
|
4959
5077
|
};
|
|
4960
5078
|
|
|
4961
5079
|
// src/components/style-tab-section.tsx
|
|
4962
|
-
import * as
|
|
5080
|
+
import * as React84 from "react";
|
|
4963
5081
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
4964
5082
|
const { component, name, title, action } = section;
|
|
4965
5083
|
const tabDefaults = useDefaultPanelSettings();
|
|
4966
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5084
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React84.createElement(React84.Fragment, null));
|
|
4967
5085
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
4968
|
-
return /* @__PURE__ */
|
|
5086
|
+
return /* @__PURE__ */ React84.createElement(
|
|
4969
5087
|
Section,
|
|
4970
5088
|
{
|
|
4971
5089
|
title,
|
|
@@ -4974,7 +5092,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
4974
5092
|
unmountOnExit,
|
|
4975
5093
|
action
|
|
4976
5094
|
},
|
|
4977
|
-
/* @__PURE__ */
|
|
5095
|
+
/* @__PURE__ */ React84.createElement(SectionComponent, null)
|
|
4978
5096
|
);
|
|
4979
5097
|
};
|
|
4980
5098
|
|
|
@@ -4996,7 +5114,7 @@ var StyleTab = () => {
|
|
|
4996
5114
|
if (!currentClassesProp) {
|
|
4997
5115
|
return null;
|
|
4998
5116
|
}
|
|
4999
|
-
return /* @__PURE__ */
|
|
5117
|
+
return /* @__PURE__ */ React85.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React85.createElement(
|
|
5000
5118
|
StyleProvider,
|
|
5001
5119
|
{
|
|
5002
5120
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5007,13 +5125,13 @@ var StyleTab = () => {
|
|
|
5007
5125
|
},
|
|
5008
5126
|
setMetaState: setActiveStyleState
|
|
5009
5127
|
},
|
|
5010
|
-
/* @__PURE__ */
|
|
5128
|
+
/* @__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
5129
|
StyleTabSection,
|
|
5012
5130
|
{
|
|
5013
5131
|
section: {
|
|
5014
5132
|
component: LayoutSection,
|
|
5015
5133
|
name: "Layout",
|
|
5016
|
-
title:
|
|
5134
|
+
title: __59("Layout", "elementor")
|
|
5017
5135
|
},
|
|
5018
5136
|
fields: [
|
|
5019
5137
|
"display",
|
|
@@ -5023,26 +5141,29 @@ var StyleTab = () => {
|
|
|
5023
5141
|
"align-items",
|
|
5024
5142
|
"align-content",
|
|
5025
5143
|
"align-self",
|
|
5026
|
-
"gap"
|
|
5144
|
+
"gap",
|
|
5145
|
+
"order",
|
|
5146
|
+
"grid-column",
|
|
5147
|
+
"grid-row"
|
|
5027
5148
|
]
|
|
5028
5149
|
}
|
|
5029
|
-
), /* @__PURE__ */
|
|
5150
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5030
5151
|
StyleTabSection,
|
|
5031
5152
|
{
|
|
5032
5153
|
section: {
|
|
5033
5154
|
component: SpacingSection,
|
|
5034
5155
|
name: "Spacing",
|
|
5035
|
-
title:
|
|
5156
|
+
title: __59("Spacing", "elementor")
|
|
5036
5157
|
},
|
|
5037
5158
|
fields: ["margin", "padding"]
|
|
5038
5159
|
}
|
|
5039
|
-
), /* @__PURE__ */
|
|
5160
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5040
5161
|
StyleTabSection,
|
|
5041
5162
|
{
|
|
5042
5163
|
section: {
|
|
5043
5164
|
component: SizeSection,
|
|
5044
5165
|
name: "Size",
|
|
5045
|
-
title:
|
|
5166
|
+
title: __59("Size", "elementor")
|
|
5046
5167
|
},
|
|
5047
5168
|
fields: [
|
|
5048
5169
|
"width",
|
|
@@ -5056,23 +5177,23 @@ var StyleTab = () => {
|
|
|
5056
5177
|
"object-fit"
|
|
5057
5178
|
]
|
|
5058
5179
|
}
|
|
5059
|
-
), /* @__PURE__ */
|
|
5180
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5060
5181
|
StyleTabSection,
|
|
5061
5182
|
{
|
|
5062
5183
|
section: {
|
|
5063
5184
|
component: PositionSection,
|
|
5064
5185
|
name: "Position",
|
|
5065
|
-
title:
|
|
5186
|
+
title: __59("Position", "elementor")
|
|
5066
5187
|
},
|
|
5067
5188
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5068
5189
|
}
|
|
5069
|
-
), /* @__PURE__ */
|
|
5190
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5070
5191
|
StyleTabSection,
|
|
5071
5192
|
{
|
|
5072
5193
|
section: {
|
|
5073
5194
|
component: TypographySection,
|
|
5074
5195
|
name: "Typography",
|
|
5075
|
-
title:
|
|
5196
|
+
title: __59("Typography", "elementor")
|
|
5076
5197
|
},
|
|
5077
5198
|
fields: [
|
|
5078
5199
|
"font-family",
|
|
@@ -5091,33 +5212,33 @@ var StyleTab = () => {
|
|
|
5091
5212
|
"stroke"
|
|
5092
5213
|
]
|
|
5093
5214
|
}
|
|
5094
|
-
), /* @__PURE__ */
|
|
5215
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5095
5216
|
StyleTabSection,
|
|
5096
5217
|
{
|
|
5097
5218
|
section: {
|
|
5098
5219
|
component: BackgroundSection,
|
|
5099
5220
|
name: "Background",
|
|
5100
|
-
title:
|
|
5221
|
+
title: __59("Background", "elementor")
|
|
5101
5222
|
},
|
|
5102
5223
|
fields: ["background"]
|
|
5103
5224
|
}
|
|
5104
|
-
), /* @__PURE__ */
|
|
5225
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5105
5226
|
StyleTabSection,
|
|
5106
5227
|
{
|
|
5107
5228
|
section: {
|
|
5108
5229
|
component: BorderSection,
|
|
5109
5230
|
name: "Border",
|
|
5110
|
-
title:
|
|
5231
|
+
title: __59("Border", "elementor")
|
|
5111
5232
|
},
|
|
5112
5233
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5113
5234
|
}
|
|
5114
|
-
), /* @__PURE__ */
|
|
5235
|
+
), /* @__PURE__ */ React85.createElement(
|
|
5115
5236
|
StyleTabSection,
|
|
5116
5237
|
{
|
|
5117
5238
|
section: {
|
|
5118
5239
|
component: EffectsSection,
|
|
5119
5240
|
name: "Effects",
|
|
5120
|
-
title:
|
|
5241
|
+
title: __59("Effects", "elementor")
|
|
5121
5242
|
},
|
|
5122
5243
|
fields: [
|
|
5123
5244
|
"mix-blend-mode",
|
|
@@ -5130,12 +5251,12 @@ var StyleTab = () => {
|
|
|
5130
5251
|
"transition"
|
|
5131
5252
|
]
|
|
5132
5253
|
}
|
|
5133
|
-
), /* @__PURE__ */
|
|
5254
|
+
), /* @__PURE__ */ React85.createElement(StyleTabSlot, null)), /* @__PURE__ */ React85.createElement(Box6, { sx: { height: "150px" } })))
|
|
5134
5255
|
));
|
|
5135
5256
|
};
|
|
5136
5257
|
function ClassesHeader({ children }) {
|
|
5137
5258
|
const scrollDirection = useScrollDirection();
|
|
5138
|
-
return /* @__PURE__ */
|
|
5259
|
+
return /* @__PURE__ */ React85.createElement(Stack12, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5139
5260
|
}
|
|
5140
5261
|
function useCurrentClassesProp() {
|
|
5141
5262
|
const { elementType } = useElement();
|
|
@@ -5154,7 +5275,7 @@ var EditingPanelTabs = () => {
|
|
|
5154
5275
|
return (
|
|
5155
5276
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5156
5277
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5157
|
-
/* @__PURE__ */
|
|
5278
|
+
/* @__PURE__ */ React86.createElement(Fragment10, { key: element.id }, /* @__PURE__ */ React86.createElement(PanelTabContent, null))
|
|
5158
5279
|
);
|
|
5159
5280
|
};
|
|
5160
5281
|
var PanelTabContent = () => {
|
|
@@ -5166,7 +5287,7 @@ var PanelTabContent = () => {
|
|
|
5166
5287
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5167
5288
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5168
5289
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5169
|
-
return /* @__PURE__ */
|
|
5290
|
+
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
5291
|
Tabs,
|
|
5171
5292
|
{
|
|
5172
5293
|
variant: "fullWidth",
|
|
@@ -5178,10 +5299,10 @@ var PanelTabContent = () => {
|
|
|
5178
5299
|
setCurrentTab(newValue);
|
|
5179
5300
|
}
|
|
5180
5301
|
},
|
|
5181
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5182
|
-
/* @__PURE__ */
|
|
5183
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5184
|
-
), /* @__PURE__ */
|
|
5302
|
+
!isPromotedElement && /* @__PURE__ */ React86.createElement(Tab, { label: __60("General", "elementor"), ...getTabProps("settings") }),
|
|
5303
|
+
/* @__PURE__ */ React86.createElement(Tab, { label: __60("Style", "elementor"), ...getTabProps("style") }),
|
|
5304
|
+
isInteractionsActive && /* @__PURE__ */ React86.createElement(Tab, { label: __60("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5305
|
+
), /* @__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
5306
|
};
|
|
5186
5307
|
|
|
5187
5308
|
// src/components/editing-panel.tsx
|
|
@@ -5194,13 +5315,13 @@ var EditingPanel = () => {
|
|
|
5194
5315
|
if (!element || !elementType) {
|
|
5195
5316
|
return null;
|
|
5196
5317
|
}
|
|
5197
|
-
const panelTitle =
|
|
5318
|
+
const panelTitle = __61("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5198
5319
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5199
|
-
let panelContent = /* @__PURE__ */
|
|
5320
|
+
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
5321
|
if (ReplacementComponent) {
|
|
5201
|
-
panelContent = /* @__PURE__ */
|
|
5322
|
+
panelContent = /* @__PURE__ */ React87.createElement(ReplacementComponent, null);
|
|
5202
5323
|
}
|
|
5203
|
-
return /* @__PURE__ */
|
|
5324
|
+
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
5325
|
};
|
|
5205
5326
|
|
|
5206
5327
|
// src/init.ts
|
|
@@ -5252,21 +5373,21 @@ var EditingPanelHooks = () => {
|
|
|
5252
5373
|
import { AttributesControl, DisplayConditionsControl } from "@elementor/editor-controls";
|
|
5253
5374
|
|
|
5254
5375
|
// src/components/promotions/custom-css.tsx
|
|
5255
|
-
import * as
|
|
5376
|
+
import * as React88 from "react";
|
|
5256
5377
|
import { useRef as useRef18 } from "react";
|
|
5257
5378
|
import { PromotionTrigger } from "@elementor/editor-controls";
|
|
5258
|
-
import { __ as
|
|
5379
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
5259
5380
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5260
5381
|
var CustomCssSection = () => {
|
|
5261
5382
|
const triggerRef = useRef18(null);
|
|
5262
|
-
return /* @__PURE__ */
|
|
5383
|
+
return /* @__PURE__ */ React88.createElement(
|
|
5263
5384
|
StyleTabSection,
|
|
5264
5385
|
{
|
|
5265
5386
|
section: {
|
|
5266
5387
|
name: "Custom CSS",
|
|
5267
|
-
title:
|
|
5388
|
+
title: __62("Custom CSS", "elementor"),
|
|
5268
5389
|
action: {
|
|
5269
|
-
component: /* @__PURE__ */
|
|
5390
|
+
component: /* @__PURE__ */ React88.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5270
5391
|
onClick: () => triggerRef.current?.toggle()
|
|
5271
5392
|
}
|
|
5272
5393
|
}
|
|
@@ -5288,7 +5409,7 @@ var init = () => {
|
|
|
5288
5409
|
};
|
|
5289
5410
|
|
|
5290
5411
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5291
|
-
import * as
|
|
5412
|
+
import * as React89 from "react";
|
|
5292
5413
|
import {
|
|
5293
5414
|
ControlFormLabel as ControlFormLabel3,
|
|
5294
5415
|
Repeater,
|
|
@@ -5300,9 +5421,9 @@ import {
|
|
|
5300
5421
|
useElementEditorSettings
|
|
5301
5422
|
} from "@elementor/editor-elements";
|
|
5302
5423
|
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
5303
|
-
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
5304
|
-
import { Alert as
|
|
5305
|
-
import { __ as
|
|
5424
|
+
import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
5425
|
+
import { Alert as Alert3, Chip as Chip4, Infotip as Infotip2, Stack as Stack14, Switch, TextField as TextField2, Typography as Typography4 } from "@elementor/ui";
|
|
5426
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
5306
5427
|
|
|
5307
5428
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5308
5429
|
import { getContainer as getContainer2 } from "@elementor/editor-elements";
|
|
@@ -5327,7 +5448,7 @@ import {
|
|
|
5327
5448
|
removeElements
|
|
5328
5449
|
} from "@elementor/editor-elements";
|
|
5329
5450
|
import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
|
|
5330
|
-
import { __ as
|
|
5451
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
5331
5452
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5332
5453
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5333
5454
|
var useActions = () => {
|
|
@@ -5350,7 +5471,7 @@ var useActions = () => {
|
|
|
5350
5471
|
}
|
|
5351
5472
|
duplicateElements({
|
|
5352
5473
|
elementIds: [tabId, tabContentId],
|
|
5353
|
-
title:
|
|
5474
|
+
title: __63("Duplicate Tab", "elementor"),
|
|
5354
5475
|
onDuplicateElements: () => {
|
|
5355
5476
|
if (newDefault !== defaultActiveTab) {
|
|
5356
5477
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5387,7 +5508,7 @@ var useActions = () => {
|
|
|
5387
5508
|
defaultActiveTab
|
|
5388
5509
|
});
|
|
5389
5510
|
moveElements({
|
|
5390
|
-
title:
|
|
5511
|
+
title: __63("Reorder Tabs", "elementor"),
|
|
5391
5512
|
moves: [
|
|
5392
5513
|
{
|
|
5393
5514
|
element: movedElement,
|
|
@@ -5421,7 +5542,7 @@ var useActions = () => {
|
|
|
5421
5542
|
defaultActiveTab
|
|
5422
5543
|
});
|
|
5423
5544
|
removeElements({
|
|
5424
|
-
title:
|
|
5545
|
+
title: __63("Tabs", "elementor"),
|
|
5425
5546
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5426
5547
|
const tabId = item.id;
|
|
5427
5548
|
const tabContentContainer = getContainer3(tabContentAreaId);
|
|
@@ -5456,7 +5577,7 @@ var useActions = () => {
|
|
|
5456
5577
|
items3.forEach(({ index }) => {
|
|
5457
5578
|
const position = index + 1;
|
|
5458
5579
|
createElements({
|
|
5459
|
-
title:
|
|
5580
|
+
title: __63("Tabs", "elementor"),
|
|
5460
5581
|
elements: [
|
|
5461
5582
|
{
|
|
5462
5583
|
container: tabContentArea,
|
|
@@ -5525,7 +5646,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5525
5646
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5526
5647
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5527
5648
|
var TabsControl = ({ label }) => {
|
|
5528
|
-
return /* @__PURE__ */
|
|
5649
|
+
return /* @__PURE__ */ React89.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __64("Tabs", "elementor") }, /* @__PURE__ */ React89.createElement(TabsControlContent, { label }));
|
|
5529
5650
|
};
|
|
5530
5651
|
var TabsControlContent = ({ label }) => {
|
|
5531
5652
|
const { element } = useElement();
|
|
@@ -5569,7 +5690,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5569
5690
|
});
|
|
5570
5691
|
}
|
|
5571
5692
|
};
|
|
5572
|
-
return /* @__PURE__ */
|
|
5693
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5573
5694
|
Repeater,
|
|
5574
5695
|
{
|
|
5575
5696
|
showToggle: false,
|
|
@@ -5589,7 +5710,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5589
5710
|
};
|
|
5590
5711
|
var ItemLabel = ({ value, index }) => {
|
|
5591
5712
|
const elementTitle = value?.title;
|
|
5592
|
-
return /* @__PURE__ */
|
|
5713
|
+
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
5714
|
};
|
|
5594
5715
|
var ItemDefaultTab = ({ index }) => {
|
|
5595
5716
|
const { value: defaultItem } = useBoundProp5(numberPropTypeUtil4);
|
|
@@ -5597,18 +5718,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5597
5718
|
if (!isDefault) {
|
|
5598
5719
|
return null;
|
|
5599
5720
|
}
|
|
5600
|
-
return /* @__PURE__ */
|
|
5721
|
+
return /* @__PURE__ */ React89.createElement(Chip4, { size: "tiny", shape: "rounded", label: __64("Default", "elementor") });
|
|
5601
5722
|
};
|
|
5602
5723
|
var ItemContent = ({ value, index }) => {
|
|
5603
5724
|
if (!value.id) {
|
|
5604
5725
|
return null;
|
|
5605
5726
|
}
|
|
5606
|
-
return /* @__PURE__ */
|
|
5727
|
+
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
5728
|
};
|
|
5608
5729
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5609
5730
|
const { value, setValue } = useBoundProp5(numberPropTypeUtil4);
|
|
5610
5731
|
const isDefault = value === tabIndex;
|
|
5611
|
-
return /* @__PURE__ */
|
|
5732
|
+
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
5733
|
Switch,
|
|
5613
5734
|
{
|
|
5614
5735
|
size: "small",
|
|
@@ -5626,7 +5747,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5626
5747
|
var TabLabelControl = ({ elementId }) => {
|
|
5627
5748
|
const editorSettings = useElementEditorSettings(elementId);
|
|
5628
5749
|
const label = editorSettings?.title ?? "";
|
|
5629
|
-
return /* @__PURE__ */
|
|
5750
|
+
return /* @__PURE__ */ React89.createElement(Stack14, { gap: 1 }, /* @__PURE__ */ React89.createElement(ControlFormLabel3, null, __64("Tab name", "elementor")), /* @__PURE__ */ React89.createElement(
|
|
5630
5751
|
TextField2,
|
|
5631
5752
|
{
|
|
5632
5753
|
size: "tiny",
|
|
@@ -5647,22 +5768,22 @@ var ConditionalTooltip = ({
|
|
|
5647
5768
|
if (!showTooltip) {
|
|
5648
5769
|
return children;
|
|
5649
5770
|
}
|
|
5650
|
-
return /* @__PURE__ */
|
|
5651
|
-
|
|
5771
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5772
|
+
Infotip2,
|
|
5652
5773
|
{
|
|
5653
5774
|
arrow: false,
|
|
5654
|
-
content: /* @__PURE__ */
|
|
5655
|
-
|
|
5775
|
+
content: /* @__PURE__ */ React89.createElement(
|
|
5776
|
+
Alert3,
|
|
5656
5777
|
{
|
|
5657
5778
|
color: "secondary",
|
|
5658
|
-
icon: /* @__PURE__ */
|
|
5779
|
+
icon: /* @__PURE__ */ React89.createElement(InfoCircleFilledIcon2, { fontSize: "tiny" }),
|
|
5659
5780
|
size: "small",
|
|
5660
5781
|
sx: { width: 288 }
|
|
5661
5782
|
},
|
|
5662
|
-
/* @__PURE__ */
|
|
5783
|
+
/* @__PURE__ */ React89.createElement(Typography4, { variant: "body2" }, __64("To change the default tab, simply set another tab as default.", "elementor"))
|
|
5663
5784
|
)
|
|
5664
5785
|
},
|
|
5665
|
-
/* @__PURE__ */
|
|
5786
|
+
/* @__PURE__ */ React89.createElement("span", null, children)
|
|
5666
5787
|
);
|
|
5667
5788
|
};
|
|
5668
5789
|
|
|
@@ -5688,7 +5809,7 @@ import {
|
|
|
5688
5809
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
5689
5810
|
|
|
5690
5811
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5691
|
-
import * as
|
|
5812
|
+
import * as React90 from "react";
|
|
5692
5813
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
|
|
5693
5814
|
import {
|
|
5694
5815
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -5831,24 +5952,24 @@ var useDynamicTag = (tagName) => {
|
|
|
5831
5952
|
};
|
|
5832
5953
|
|
|
5833
5954
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5834
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
5955
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React90.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
5835
5956
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
5836
5957
|
const context = useBoundProp7(backgroundImageOverlayPropTypeUtil);
|
|
5837
|
-
return /* @__PURE__ */
|
|
5958
|
+
return /* @__PURE__ */ React90.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React90.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React90.createElement(Wrapper2, { rawValue: value.value })));
|
|
5838
5959
|
};
|
|
5839
5960
|
var Wrapper2 = ({ rawValue }) => {
|
|
5840
5961
|
const { propType } = useBoundProp7();
|
|
5841
5962
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
5842
|
-
return /* @__PURE__ */
|
|
5963
|
+
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
5964
|
};
|
|
5844
5965
|
var Content = ({ rawValue }) => {
|
|
5845
5966
|
const src = rawValue.value.src;
|
|
5846
5967
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
5847
|
-
return /* @__PURE__ */
|
|
5968
|
+
return /* @__PURE__ */ React90.createElement(React90.Fragment, null, dynamicTag?.label);
|
|
5848
5969
|
};
|
|
5849
5970
|
|
|
5850
5971
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5851
|
-
import * as
|
|
5972
|
+
import * as React94 from "react";
|
|
5852
5973
|
import {
|
|
5853
5974
|
ControlFormLabel as ControlFormLabel4,
|
|
5854
5975
|
PropKeyProvider as PropKeyProvider6,
|
|
@@ -5860,9 +5981,9 @@ import { DatabaseIcon as DatabaseIcon3, SettingsIcon, XIcon } from "@elementor/i
|
|
|
5860
5981
|
import {
|
|
5861
5982
|
bindPopover,
|
|
5862
5983
|
bindTrigger as bindTrigger2,
|
|
5863
|
-
Box as
|
|
5984
|
+
Box as Box7,
|
|
5864
5985
|
Divider as Divider8,
|
|
5865
|
-
Grid as
|
|
5986
|
+
Grid as Grid8,
|
|
5866
5987
|
IconButton as IconButton2,
|
|
5867
5988
|
Popover,
|
|
5868
5989
|
Stack as Stack16,
|
|
@@ -5873,7 +5994,7 @@ import {
|
|
|
5873
5994
|
usePopupState as usePopupState2,
|
|
5874
5995
|
useTabs as useTabs2
|
|
5875
5996
|
} from "@elementor/ui";
|
|
5876
|
-
import { __ as
|
|
5997
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
5877
5998
|
|
|
5878
5999
|
// src/hooks/use-persist-dynamic-value.ts
|
|
5879
6000
|
import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
|
|
@@ -5884,11 +6005,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
5884
6005
|
};
|
|
5885
6006
|
|
|
5886
6007
|
// src/dynamics/dynamic-control.tsx
|
|
5887
|
-
import * as
|
|
6008
|
+
import * as React92 from "react";
|
|
5888
6009
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
|
|
5889
6010
|
|
|
5890
6011
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
5891
|
-
import * as
|
|
6012
|
+
import * as React91 from "react";
|
|
5892
6013
|
import { useMemo as useMemo14 } from "react";
|
|
5893
6014
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
5894
6015
|
var DynamicConditionalControl = ({
|
|
@@ -5930,10 +6051,10 @@ var DynamicConditionalControl = ({
|
|
|
5930
6051
|
return { ...defaults, ...convertedSettings };
|
|
5931
6052
|
}, [defaults, convertedSettings]);
|
|
5932
6053
|
if (!propType?.dependencies?.terms.length) {
|
|
5933
|
-
return /* @__PURE__ */
|
|
6054
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, children);
|
|
5934
6055
|
}
|
|
5935
6056
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
5936
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6057
|
+
return isHidden ? null : /* @__PURE__ */ React91.createElement(React91.Fragment, null, children);
|
|
5937
6058
|
};
|
|
5938
6059
|
|
|
5939
6060
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -5958,7 +6079,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5958
6079
|
});
|
|
5959
6080
|
};
|
|
5960
6081
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5961
|
-
return /* @__PURE__ */
|
|
6082
|
+
return /* @__PURE__ */ React92.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React92.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React92.createElement(
|
|
5962
6083
|
DynamicConditionalControl,
|
|
5963
6084
|
{
|
|
5964
6085
|
propType: dynamicPropType,
|
|
@@ -5970,13 +6091,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5970
6091
|
};
|
|
5971
6092
|
|
|
5972
6093
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5973
|
-
import * as
|
|
5974
|
-
import { Fragment as
|
|
6094
|
+
import * as React93 from "react";
|
|
6095
|
+
import { Fragment as Fragment15, useEffect as useEffect9, useState as useState10 } from "react";
|
|
5975
6096
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
5976
6097
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
5977
6098
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
5978
6099
|
import { Divider as Divider7, Link as Link2, Stack as Stack15, Typography as Typography5, useTheme as useTheme3 } from "@elementor/ui";
|
|
5979
|
-
import { __ as
|
|
6100
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
5980
6101
|
var SIZE2 = "tiny";
|
|
5981
6102
|
var PROMO_TEXT_WIDTH = 170;
|
|
5982
6103
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6023,19 +6144,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6023
6144
|
]);
|
|
6024
6145
|
const getPopOverContent = () => {
|
|
6025
6146
|
if (hasNoDynamicTags) {
|
|
6026
|
-
return /* @__PURE__ */
|
|
6147
|
+
return /* @__PURE__ */ React93.createElement(NoDynamicTags, null);
|
|
6027
6148
|
}
|
|
6028
6149
|
if (expired) {
|
|
6029
|
-
return /* @__PURE__ */
|
|
6150
|
+
return /* @__PURE__ */ React93.createElement(ExpiredDynamicTags, null);
|
|
6030
6151
|
}
|
|
6031
|
-
return /* @__PURE__ */
|
|
6152
|
+
return /* @__PURE__ */ React93.createElement(Fragment15, null, /* @__PURE__ */ React93.createElement(
|
|
6032
6153
|
SearchField,
|
|
6033
6154
|
{
|
|
6034
6155
|
value: searchValue,
|
|
6035
6156
|
onSearch: handleSearch,
|
|
6036
|
-
placeholder:
|
|
6157
|
+
placeholder: __65("Search dynamic tags\u2026", "elementor")
|
|
6037
6158
|
}
|
|
6038
|
-
), /* @__PURE__ */
|
|
6159
|
+
), /* @__PURE__ */ React93.createElement(Divider7, null), /* @__PURE__ */ React93.createElement(
|
|
6039
6160
|
PopoverMenuList,
|
|
6040
6161
|
{
|
|
6041
6162
|
items: virtualizedItems,
|
|
@@ -6043,20 +6164,20 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6043
6164
|
onClose: closePopover,
|
|
6044
6165
|
selectedValue: dynamicValue?.name,
|
|
6045
6166
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6046
|
-
noResultsComponent: /* @__PURE__ */
|
|
6167
|
+
noResultsComponent: /* @__PURE__ */ React93.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6047
6168
|
}
|
|
6048
6169
|
));
|
|
6049
6170
|
};
|
|
6050
|
-
return /* @__PURE__ */
|
|
6171
|
+
return /* @__PURE__ */ React93.createElement(SectionPopoverBody, { "aria-label": __65("Dynamic tags", "elementor") }, /* @__PURE__ */ React93.createElement(
|
|
6051
6172
|
PopoverHeader,
|
|
6052
6173
|
{
|
|
6053
|
-
title:
|
|
6174
|
+
title: __65("Dynamic tags", "elementor"),
|
|
6054
6175
|
onClose: closePopover,
|
|
6055
|
-
icon: /* @__PURE__ */
|
|
6176
|
+
icon: /* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
6056
6177
|
}
|
|
6057
6178
|
), getPopOverContent());
|
|
6058
6179
|
};
|
|
6059
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6180
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React93.createElement(
|
|
6060
6181
|
Stack15,
|
|
6061
6182
|
{
|
|
6062
6183
|
gap: 1,
|
|
@@ -6067,11 +6188,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React91.createElem
|
|
|
6067
6188
|
color: "text.secondary",
|
|
6068
6189
|
sx: { pb: 3.5 }
|
|
6069
6190
|
},
|
|
6070
|
-
/* @__PURE__ */
|
|
6071
|
-
/* @__PURE__ */
|
|
6072
|
-
/* @__PURE__ */
|
|
6191
|
+
/* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6192
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "subtitle2" }, __65("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React93.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6193
|
+
/* @__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
6194
|
);
|
|
6074
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6195
|
+
var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(Divider7, null), /* @__PURE__ */ React93.createElement(
|
|
6075
6196
|
Stack15,
|
|
6076
6197
|
{
|
|
6077
6198
|
gap: 1,
|
|
@@ -6082,10 +6203,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React91.createElement(React91.Fragment
|
|
|
6082
6203
|
color: "text.secondary",
|
|
6083
6204
|
sx: { pb: 3.5 }
|
|
6084
6205
|
},
|
|
6085
|
-
/* @__PURE__ */
|
|
6086
|
-
/* @__PURE__ */
|
|
6087
|
-
/* @__PURE__ */
|
|
6088
|
-
/* @__PURE__ */
|
|
6206
|
+
/* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6207
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "subtitle2" }, __65("Streamline your workflow with dynamic tags", "elementor")),
|
|
6208
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __65("Upgrade now to display your content dynamically.", "elementor")),
|
|
6209
|
+
/* @__PURE__ */ React93.createElement(
|
|
6089
6210
|
CtaButton,
|
|
6090
6211
|
{
|
|
6091
6212
|
size: "small",
|
|
@@ -6094,7 +6215,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React91.createElement(React91.Fragment
|
|
|
6094
6215
|
}
|
|
6095
6216
|
)
|
|
6096
6217
|
));
|
|
6097
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6218
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(Divider7, null), /* @__PURE__ */ React93.createElement(
|
|
6098
6219
|
Stack15,
|
|
6099
6220
|
{
|
|
6100
6221
|
gap: 1,
|
|
@@ -6105,16 +6226,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React91.createElement(React91.Fra
|
|
|
6105
6226
|
color: "text.secondary",
|
|
6106
6227
|
sx: { pb: 3.5 }
|
|
6107
6228
|
},
|
|
6108
|
-
/* @__PURE__ */
|
|
6109
|
-
/* @__PURE__ */
|
|
6110
|
-
/* @__PURE__ */
|
|
6111
|
-
/* @__PURE__ */
|
|
6229
|
+
/* @__PURE__ */ React93.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6230
|
+
/* @__PURE__ */ React93.createElement(Typography5, { align: "center", variant: "subtitle2" }, __65("Unlock your Dynamic tags again", "elementor")),
|
|
6231
|
+
/* @__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")),
|
|
6232
|
+
/* @__PURE__ */ React93.createElement(
|
|
6112
6233
|
CtaButton,
|
|
6113
6234
|
{
|
|
6114
6235
|
size: "small",
|
|
6115
6236
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6116
6237
|
onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
|
|
6117
|
-
children:
|
|
6238
|
+
children: __65("Renew Now", "elementor")
|
|
6118
6239
|
}
|
|
6119
6240
|
)
|
|
6120
6241
|
));
|
|
@@ -6151,7 +6272,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6151
6272
|
const { name: tagName = "" } = value;
|
|
6152
6273
|
const dynamicTag = useDynamicTag(tagName);
|
|
6153
6274
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6154
|
-
return /* @__PURE__ */
|
|
6275
|
+
return /* @__PURE__ */ React94.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React94.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React94.createElement(OriginalControl, { ...props })));
|
|
6155
6276
|
}
|
|
6156
6277
|
const removeDynamicTag = () => {
|
|
6157
6278
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6159,25 +6280,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6159
6280
|
if (!dynamicTag) {
|
|
6160
6281
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6161
6282
|
}
|
|
6162
|
-
return /* @__PURE__ */
|
|
6283
|
+
return /* @__PURE__ */ React94.createElement(Box7, null, /* @__PURE__ */ React94.createElement(
|
|
6163
6284
|
Tag,
|
|
6164
6285
|
{
|
|
6165
6286
|
fullWidth: true,
|
|
6166
6287
|
showActionsOnHover: true,
|
|
6167
6288
|
label: dynamicTag.label,
|
|
6168
|
-
startIcon: /* @__PURE__ */
|
|
6289
|
+
startIcon: /* @__PURE__ */ React94.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
6169
6290
|
...bindTrigger2(selectionPopoverState),
|
|
6170
|
-
actions: /* @__PURE__ */
|
|
6291
|
+
actions: /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React94.createElement(
|
|
6171
6292
|
IconButton2,
|
|
6172
6293
|
{
|
|
6173
6294
|
size: SIZE3,
|
|
6174
6295
|
onClick: removeDynamicTag,
|
|
6175
|
-
"aria-label":
|
|
6296
|
+
"aria-label": __66("Remove dynamic value", "elementor")
|
|
6176
6297
|
},
|
|
6177
|
-
/* @__PURE__ */
|
|
6298
|
+
/* @__PURE__ */ React94.createElement(XIcon, { fontSize: SIZE3 })
|
|
6178
6299
|
))
|
|
6179
6300
|
}
|
|
6180
|
-
), /* @__PURE__ */
|
|
6301
|
+
), /* @__PURE__ */ React94.createElement(
|
|
6181
6302
|
Popover,
|
|
6182
6303
|
{
|
|
6183
6304
|
disablePortal: true,
|
|
@@ -6189,7 +6310,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6189
6310
|
},
|
|
6190
6311
|
...bindPopover(selectionPopoverState)
|
|
6191
6312
|
},
|
|
6192
|
-
/* @__PURE__ */
|
|
6313
|
+
/* @__PURE__ */ React94.createElement(SectionPopoverBody2, { "aria-label": __66("Dynamic tags", "elementor") }, /* @__PURE__ */ React94.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6193
6314
|
));
|
|
6194
6315
|
};
|
|
6195
6316
|
var DynamicSettingsPopover = ({
|
|
@@ -6201,16 +6322,16 @@ var DynamicSettingsPopover = ({
|
|
|
6201
6322
|
if (!hasDynamicSettings) {
|
|
6202
6323
|
return null;
|
|
6203
6324
|
}
|
|
6204
|
-
return /* @__PURE__ */
|
|
6325
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
|
|
6205
6326
|
IconButton2,
|
|
6206
6327
|
{
|
|
6207
6328
|
size: SIZE3,
|
|
6208
6329
|
disabled,
|
|
6209
6330
|
...!disabled && bindTrigger2(popupState),
|
|
6210
|
-
"aria-label":
|
|
6331
|
+
"aria-label": __66("Dynamic settings", "elementor")
|
|
6211
6332
|
},
|
|
6212
|
-
/* @__PURE__ */
|
|
6213
|
-
), /* @__PURE__ */
|
|
6333
|
+
/* @__PURE__ */ React94.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
6334
|
+
), /* @__PURE__ */ React94.createElement(
|
|
6214
6335
|
Popover,
|
|
6215
6336
|
{
|
|
6216
6337
|
disablePortal: true,
|
|
@@ -6222,14 +6343,14 @@ var DynamicSettingsPopover = ({
|
|
|
6222
6343
|
},
|
|
6223
6344
|
...bindPopover(popupState)
|
|
6224
6345
|
},
|
|
6225
|
-
/* @__PURE__ */
|
|
6346
|
+
/* @__PURE__ */ React94.createElement(SectionPopoverBody2, { "aria-label": __66("Dynamic settings", "elementor") }, /* @__PURE__ */ React94.createElement(
|
|
6226
6347
|
PopoverHeader2,
|
|
6227
6348
|
{
|
|
6228
6349
|
title: dynamicTag.label,
|
|
6229
6350
|
onClose: popupState.close,
|
|
6230
|
-
icon: /* @__PURE__ */
|
|
6351
|
+
icon: /* @__PURE__ */ React94.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
6231
6352
|
}
|
|
6232
|
-
), /* @__PURE__ */
|
|
6353
|
+
), /* @__PURE__ */ React94.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6233
6354
|
));
|
|
6234
6355
|
};
|
|
6235
6356
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6240,9 +6361,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6240
6361
|
}
|
|
6241
6362
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6242
6363
|
const singleTab = tabs[0];
|
|
6243
|
-
return /* @__PURE__ */
|
|
6364
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(Divider8, null), /* @__PURE__ */ React94.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6244
6365
|
}
|
|
6245
|
-
return /* @__PURE__ */
|
|
6366
|
+
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
6367
|
Tab2,
|
|
6247
6368
|
{
|
|
6248
6369
|
key: index,
|
|
@@ -6250,15 +6371,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6250
6371
|
sx: { px: 1, py: 0.5 },
|
|
6251
6372
|
...getTabProps(index)
|
|
6252
6373
|
}
|
|
6253
|
-
))), /* @__PURE__ */
|
|
6254
|
-
return /* @__PURE__ */
|
|
6374
|
+
))), /* @__PURE__ */ React94.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
6375
|
+
return /* @__PURE__ */ React94.createElement(
|
|
6255
6376
|
TabPanel2,
|
|
6256
6377
|
{
|
|
6257
6378
|
key: index,
|
|
6258
6379
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6259
6380
|
...getTabPanelProps(index)
|
|
6260
6381
|
},
|
|
6261
|
-
/* @__PURE__ */
|
|
6382
|
+
/* @__PURE__ */ React94.createElement(ControlsItemsStack, { items: value.items })
|
|
6262
6383
|
);
|
|
6263
6384
|
}));
|
|
6264
6385
|
};
|
|
@@ -6300,11 +6421,11 @@ var Control2 = ({ control }) => {
|
|
|
6300
6421
|
display: "grid",
|
|
6301
6422
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6302
6423
|
} : {};
|
|
6303
|
-
return /* @__PURE__ */
|
|
6424
|
+
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
6425
|
};
|
|
6305
6426
|
function ControlsItemsStack({ items: items3 }) {
|
|
6306
|
-
return /* @__PURE__ */
|
|
6307
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6427
|
+
return /* @__PURE__ */ React94.createElement(Stack16, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6428
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React94.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6308
6429
|
));
|
|
6309
6430
|
}
|
|
6310
6431
|
|
|
@@ -6357,18 +6478,18 @@ function getDynamicValue(name, settings) {
|
|
|
6357
6478
|
}
|
|
6358
6479
|
|
|
6359
6480
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6360
|
-
import * as
|
|
6481
|
+
import * as React95 from "react";
|
|
6361
6482
|
import { useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
|
|
6362
6483
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
6363
|
-
import { __ as
|
|
6484
|
+
import { __ as __67 } from "@wordpress/i18n";
|
|
6364
6485
|
var usePropDynamicAction = () => {
|
|
6365
6486
|
const { propType } = useBoundProp11();
|
|
6366
6487
|
const visible = !!propType && supportsDynamic(propType);
|
|
6367
6488
|
return {
|
|
6368
6489
|
visible,
|
|
6369
6490
|
icon: DatabaseIcon4,
|
|
6370
|
-
title:
|
|
6371
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6491
|
+
title: __67("Dynamic tags", "elementor"),
|
|
6492
|
+
content: ({ close }) => /* @__PURE__ */ React95.createElement(DynamicSelection, { close })
|
|
6372
6493
|
};
|
|
6373
6494
|
};
|
|
6374
6495
|
|
|
@@ -6403,7 +6524,7 @@ import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
|
|
|
6403
6524
|
import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
|
|
6404
6525
|
import { BrushBigIcon } from "@elementor/icons";
|
|
6405
6526
|
import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
|
|
6406
|
-
import { __ as
|
|
6527
|
+
import { __ as __68 } from "@wordpress/i18n";
|
|
6407
6528
|
|
|
6408
6529
|
// src/utils/is-equal.ts
|
|
6409
6530
|
function isEqual(a, b) {
|
|
@@ -6479,21 +6600,21 @@ function useResetStyleValueProps() {
|
|
|
6479
6600
|
const visible = calculateVisibility();
|
|
6480
6601
|
return {
|
|
6481
6602
|
visible,
|
|
6482
|
-
title:
|
|
6603
|
+
title: __68("Clear", "elementor"),
|
|
6483
6604
|
icon: BrushBigIcon,
|
|
6484
6605
|
onClick: () => resetValue()
|
|
6485
6606
|
};
|
|
6486
6607
|
}
|
|
6487
6608
|
|
|
6488
6609
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6489
|
-
import * as
|
|
6610
|
+
import * as React101 from "react";
|
|
6490
6611
|
import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
|
|
6491
6612
|
import { isEmpty as isEmpty2 } from "@elementor/editor-props";
|
|
6492
6613
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
6493
|
-
import { __ as
|
|
6614
|
+
import { __ as __72 } from "@wordpress/i18n";
|
|
6494
6615
|
|
|
6495
6616
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6496
|
-
import * as
|
|
6617
|
+
import * as React100 from "react";
|
|
6497
6618
|
import { useMemo as useMemo15, useRef as useRef19, useState as useState12 } from "react";
|
|
6498
6619
|
import {
|
|
6499
6620
|
createPropsResolver as createPropsResolver2,
|
|
@@ -6502,16 +6623,16 @@ import {
|
|
|
6502
6623
|
import { PopoverHeader as PopoverHeader3, useSectionWidth as useSectionWidth2 } from "@elementor/editor-ui";
|
|
6503
6624
|
import {
|
|
6504
6625
|
Backdrop,
|
|
6505
|
-
Box as
|
|
6626
|
+
Box as Box9,
|
|
6506
6627
|
Card,
|
|
6507
6628
|
CardContent,
|
|
6508
6629
|
ClickAwayListener,
|
|
6509
6630
|
IconButton as IconButton3,
|
|
6510
|
-
Infotip as
|
|
6631
|
+
Infotip as Infotip3,
|
|
6511
6632
|
Stack as Stack17,
|
|
6512
6633
|
Tooltip as Tooltip6
|
|
6513
6634
|
} from "@elementor/ui";
|
|
6514
|
-
import { __ as
|
|
6635
|
+
import { __ as __71 } from "@wordpress/i18n";
|
|
6515
6636
|
|
|
6516
6637
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6517
6638
|
import { isValidElement, useEffect as useEffect10, useState as useState11 } from "react";
|
|
@@ -6521,7 +6642,7 @@ import {
|
|
|
6521
6642
|
isPseudoState
|
|
6522
6643
|
} from "@elementor/editor-styles";
|
|
6523
6644
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
6524
|
-
import { __ as
|
|
6645
|
+
import { __ as __69 } from "@wordpress/i18n";
|
|
6525
6646
|
var MAXIMUM_ITEMS = 2;
|
|
6526
6647
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6527
6648
|
const [items3, setItems] = useState11([]);
|
|
@@ -6532,7 +6653,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
6532
6653
|
);
|
|
6533
6654
|
const validItems = normalizedItems.map((item) => ({
|
|
6534
6655
|
...item,
|
|
6535
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
6656
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __69("Base", "elementor")
|
|
6536
6657
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6537
6658
|
setItems(validItems);
|
|
6538
6659
|
})();
|
|
@@ -6589,7 +6710,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6589
6710
|
};
|
|
6590
6711
|
|
|
6591
6712
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6592
|
-
import * as
|
|
6713
|
+
import * as React96 from "react";
|
|
6593
6714
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
6594
6715
|
import {
|
|
6595
6716
|
DesktopIcon,
|
|
@@ -6620,20 +6741,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6620
6741
|
return null;
|
|
6621
6742
|
}
|
|
6622
6743
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6623
|
-
return /* @__PURE__ */
|
|
6744
|
+
return /* @__PURE__ */ React96.createElement(Tooltip3, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React96.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6624
6745
|
};
|
|
6625
6746
|
|
|
6626
6747
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6627
|
-
import * as
|
|
6748
|
+
import * as React97 from "react";
|
|
6628
6749
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
6629
6750
|
import { InfoCircleIcon } from "@elementor/icons";
|
|
6630
6751
|
import { Chip as Chip5, Tooltip as Tooltip4 } from "@elementor/ui";
|
|
6631
|
-
import { __ as
|
|
6752
|
+
import { __ as __70 } from "@wordpress/i18n";
|
|
6632
6753
|
var SIZE5 = "tiny";
|
|
6633
6754
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6634
6755
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
6635
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
6636
|
-
return /* @__PURE__ */
|
|
6756
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React97.createElement(Tooltip4, { title: __70("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React97.createElement(InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
6757
|
+
return /* @__PURE__ */ React97.createElement(
|
|
6637
6758
|
Chip5,
|
|
6638
6759
|
{
|
|
6639
6760
|
label: displayLabel,
|
|
@@ -6659,10 +6780,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
6659
6780
|
};
|
|
6660
6781
|
|
|
6661
6782
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
6662
|
-
import * as
|
|
6783
|
+
import * as React98 from "react";
|
|
6663
6784
|
import { Tooltip as Tooltip5, Typography as Typography6 } from "@elementor/ui";
|
|
6664
6785
|
var ValueComponent = ({ index, value }) => {
|
|
6665
|
-
return /* @__PURE__ */
|
|
6786
|
+
return /* @__PURE__ */ React98.createElement(Tooltip5, { title: value, placement: "top" }, /* @__PURE__ */ React98.createElement(
|
|
6666
6787
|
Typography6,
|
|
6667
6788
|
{
|
|
6668
6789
|
variant: "caption",
|
|
@@ -6684,9 +6805,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
6684
6805
|
};
|
|
6685
6806
|
|
|
6686
6807
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
6687
|
-
import * as
|
|
6688
|
-
import { Box as
|
|
6689
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
6808
|
+
import * as React99 from "react";
|
|
6809
|
+
import { Box as Box8 } from "@elementor/ui";
|
|
6810
|
+
var ActionIcons = () => /* @__PURE__ */ React99.createElement(Box8, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
6690
6811
|
|
|
6691
6812
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6692
6813
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -6722,7 +6843,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6722
6843
|
});
|
|
6723
6844
|
}, [key, propType]);
|
|
6724
6845
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
6725
|
-
const infotipContent = /* @__PURE__ */
|
|
6846
|
+
const infotipContent = /* @__PURE__ */ React100.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React100.createElement(
|
|
6726
6847
|
Card,
|
|
6727
6848
|
{
|
|
6728
6849
|
elevation: 0,
|
|
@@ -6735,8 +6856,8 @@ var StylesInheritanceInfotip = ({
|
|
|
6735
6856
|
flexDirection: "column"
|
|
6736
6857
|
}
|
|
6737
6858
|
},
|
|
6738
|
-
/* @__PURE__ */
|
|
6739
|
-
|
|
6859
|
+
/* @__PURE__ */ React100.createElement(
|
|
6860
|
+
Box9,
|
|
6740
6861
|
{
|
|
6741
6862
|
sx: {
|
|
6742
6863
|
position: "sticky",
|
|
@@ -6745,9 +6866,9 @@ var StylesInheritanceInfotip = ({
|
|
|
6745
6866
|
backgroundColor: "background.paper"
|
|
6746
6867
|
}
|
|
6747
6868
|
},
|
|
6748
|
-
/* @__PURE__ */
|
|
6869
|
+
/* @__PURE__ */ React100.createElement(PopoverHeader3, { title: __71("Style origin", "elementor"), onClose: closeInfotip })
|
|
6749
6870
|
),
|
|
6750
|
-
/* @__PURE__ */
|
|
6871
|
+
/* @__PURE__ */ React100.createElement(
|
|
6751
6872
|
CardContent,
|
|
6752
6873
|
{
|
|
6753
6874
|
sx: {
|
|
@@ -6761,39 +6882,39 @@ var StylesInheritanceInfotip = ({
|
|
|
6761
6882
|
}
|
|
6762
6883
|
}
|
|
6763
6884
|
},
|
|
6764
|
-
/* @__PURE__ */
|
|
6765
|
-
return /* @__PURE__ */
|
|
6766
|
-
|
|
6885
|
+
/* @__PURE__ */ React100.createElement(Stack17, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
6886
|
+
return /* @__PURE__ */ React100.createElement(
|
|
6887
|
+
Box9,
|
|
6767
6888
|
{
|
|
6768
6889
|
key: item.id,
|
|
6769
6890
|
display: "flex",
|
|
6770
6891
|
gap: 0.5,
|
|
6771
6892
|
role: "listitem",
|
|
6772
|
-
"aria-label":
|
|
6893
|
+
"aria-label": __71("Inheritance item: %s", "elementor").replace(
|
|
6773
6894
|
"%s",
|
|
6774
6895
|
item.displayLabel
|
|
6775
6896
|
)
|
|
6776
6897
|
},
|
|
6777
|
-
/* @__PURE__ */
|
|
6778
|
-
|
|
6898
|
+
/* @__PURE__ */ React100.createElement(
|
|
6899
|
+
Box9,
|
|
6779
6900
|
{
|
|
6780
6901
|
display: "flex",
|
|
6781
6902
|
gap: 0.5,
|
|
6782
6903
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
6783
6904
|
},
|
|
6784
|
-
/* @__PURE__ */
|
|
6785
|
-
/* @__PURE__ */
|
|
6786
|
-
/* @__PURE__ */
|
|
6905
|
+
/* @__PURE__ */ React100.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
6906
|
+
/* @__PURE__ */ React100.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
6907
|
+
/* @__PURE__ */ React100.createElement(ValueComponent, { index, value: item.value })
|
|
6787
6908
|
),
|
|
6788
|
-
/* @__PURE__ */
|
|
6909
|
+
/* @__PURE__ */ React100.createElement(ActionIcons, null)
|
|
6789
6910
|
);
|
|
6790
6911
|
}))
|
|
6791
6912
|
)
|
|
6792
6913
|
));
|
|
6793
6914
|
if (isDisabled) {
|
|
6794
|
-
return /* @__PURE__ */
|
|
6915
|
+
return /* @__PURE__ */ React100.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
6795
6916
|
}
|
|
6796
|
-
return /* @__PURE__ */
|
|
6917
|
+
return /* @__PURE__ */ React100.createElement(Box9, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React100.createElement(
|
|
6797
6918
|
TooltipOrInfotip,
|
|
6798
6919
|
{
|
|
6799
6920
|
showInfotip,
|
|
@@ -6801,7 +6922,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6801
6922
|
infotipContent,
|
|
6802
6923
|
isDisabled
|
|
6803
6924
|
},
|
|
6804
|
-
/* @__PURE__ */
|
|
6925
|
+
/* @__PURE__ */ React100.createElement(
|
|
6805
6926
|
IconButton3,
|
|
6806
6927
|
{
|
|
6807
6928
|
onClick: toggleInfotip,
|
|
@@ -6821,10 +6942,10 @@ function TooltipOrInfotip({
|
|
|
6821
6942
|
isDisabled
|
|
6822
6943
|
}) {
|
|
6823
6944
|
if (isDisabled) {
|
|
6824
|
-
return /* @__PURE__ */
|
|
6945
|
+
return /* @__PURE__ */ React100.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
6825
6946
|
}
|
|
6826
6947
|
if (showInfotip) {
|
|
6827
|
-
return /* @__PURE__ */
|
|
6948
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
6828
6949
|
Backdrop,
|
|
6829
6950
|
{
|
|
6830
6951
|
open: showInfotip,
|
|
@@ -6834,8 +6955,8 @@ function TooltipOrInfotip({
|
|
|
6834
6955
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
6835
6956
|
}
|
|
6836
6957
|
}
|
|
6837
|
-
), /* @__PURE__ */
|
|
6838
|
-
|
|
6958
|
+
), /* @__PURE__ */ React100.createElement(
|
|
6959
|
+
Infotip3,
|
|
6839
6960
|
{
|
|
6840
6961
|
placement: "top-end",
|
|
6841
6962
|
content: infotipContent,
|
|
@@ -6846,7 +6967,7 @@ function TooltipOrInfotip({
|
|
|
6846
6967
|
children
|
|
6847
6968
|
));
|
|
6848
6969
|
}
|
|
6849
|
-
return /* @__PURE__ */
|
|
6970
|
+
return /* @__PURE__ */ React100.createElement(Tooltip6, { title: __71("Style origin", "elementor"), placement: "top" }, children);
|
|
6850
6971
|
}
|
|
6851
6972
|
|
|
6852
6973
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -6859,7 +6980,7 @@ var StylesInheritanceIndicator = ({
|
|
|
6859
6980
|
if (!path || !inheritanceChain.length) {
|
|
6860
6981
|
return null;
|
|
6861
6982
|
}
|
|
6862
|
-
return /* @__PURE__ */
|
|
6983
|
+
return /* @__PURE__ */ React101.createElement(Indicator, { inheritanceChain, path, propType });
|
|
6863
6984
|
};
|
|
6864
6985
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
6865
6986
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -6875,7 +6996,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
6875
6996
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
6876
6997
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
6877
6998
|
};
|
|
6878
|
-
return /* @__PURE__ */
|
|
6999
|
+
return /* @__PURE__ */ React101.createElement(
|
|
6879
7000
|
StylesInheritanceInfotip,
|
|
6880
7001
|
{
|
|
6881
7002
|
inheritanceChain,
|
|
@@ -6884,17 +7005,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
6884
7005
|
label,
|
|
6885
7006
|
isDisabled
|
|
6886
7007
|
},
|
|
6887
|
-
/* @__PURE__ */
|
|
7008
|
+
/* @__PURE__ */ React101.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
6888
7009
|
);
|
|
6889
7010
|
};
|
|
6890
7011
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
6891
7012
|
if (isFinalValue) {
|
|
6892
|
-
return
|
|
7013
|
+
return __72("This is the final value", "elementor");
|
|
6893
7014
|
}
|
|
6894
7015
|
if (hasValue) {
|
|
6895
|
-
return
|
|
7016
|
+
return __72("This value is overridden by another style", "elementor");
|
|
6896
7017
|
}
|
|
6897
|
-
return
|
|
7018
|
+
return __72("This has value from another style", "elementor");
|
|
6898
7019
|
};
|
|
6899
7020
|
|
|
6900
7021
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -6919,7 +7040,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
6919
7040
|
]);
|
|
6920
7041
|
|
|
6921
7042
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
6922
|
-
import * as
|
|
7043
|
+
import * as React102 from "react";
|
|
6923
7044
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
6924
7045
|
var arrayTransformer = createTransformer2((values) => {
|
|
6925
7046
|
if (!values || values.length === 0) {
|
|
@@ -6929,16 +7050,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
6929
7050
|
if (allStrings) {
|
|
6930
7051
|
return values.join(" ");
|
|
6931
7052
|
}
|
|
6932
|
-
return /* @__PURE__ */
|
|
7053
|
+
return /* @__PURE__ */ React102.createElement(React102.Fragment, null, values.map((item, index) => /* @__PURE__ */ React102.createElement(React102.Fragment, { key: index }, index > 0 && " ", item)));
|
|
6933
7054
|
});
|
|
6934
7055
|
|
|
6935
7056
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
6936
|
-
import * as
|
|
7057
|
+
import * as React103 from "react";
|
|
6937
7058
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
6938
7059
|
import { Stack as Stack18, styled as styled6, UnstableColorIndicator } from "@elementor/ui";
|
|
6939
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
7060
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React103.createElement(Stack18, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React103.createElement(ItemLabelColor, { value })));
|
|
6940
7061
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
6941
|
-
return /* @__PURE__ */
|
|
7062
|
+
return /* @__PURE__ */ React103.createElement("span", null, color);
|
|
6942
7063
|
};
|
|
6943
7064
|
var StyledUnstableColorIndicator = styled6(UnstableColorIndicator)(({ theme }) => ({
|
|
6944
7065
|
width: "1em",
|
|
@@ -6949,20 +7070,20 @@ var StyledUnstableColorIndicator = styled6(UnstableColorIndicator)(({ theme }) =
|
|
|
6949
7070
|
}));
|
|
6950
7071
|
|
|
6951
7072
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
6952
|
-
import * as
|
|
7073
|
+
import * as React104 from "react";
|
|
6953
7074
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
6954
7075
|
import { Stack as Stack19 } from "@elementor/ui";
|
|
6955
|
-
import { __ as
|
|
6956
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
7076
|
+
import { __ as __73 } from "@wordpress/i18n";
|
|
7077
|
+
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
7078
|
var ItemIconGradient = ({ value }) => {
|
|
6958
7079
|
const gradient = getGradientValue(value);
|
|
6959
|
-
return /* @__PURE__ */
|
|
7080
|
+
return /* @__PURE__ */ React104.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
6960
7081
|
};
|
|
6961
7082
|
var ItemLabelGradient = ({ value }) => {
|
|
6962
7083
|
if (value.type === "linear") {
|
|
6963
|
-
return /* @__PURE__ */
|
|
7084
|
+
return /* @__PURE__ */ React104.createElement("span", null, __73("Linear gradient", "elementor"));
|
|
6964
7085
|
}
|
|
6965
|
-
return /* @__PURE__ */
|
|
7086
|
+
return /* @__PURE__ */ React104.createElement("span", null, __73("Radial gradient", "elementor"));
|
|
6966
7087
|
};
|
|
6967
7088
|
var getGradientValue = (gradient) => {
|
|
6968
7089
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -6973,15 +7094,15 @@ var getGradientValue = (gradient) => {
|
|
|
6973
7094
|
};
|
|
6974
7095
|
|
|
6975
7096
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
6976
|
-
import * as
|
|
7097
|
+
import * as React105 from "react";
|
|
6977
7098
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
6978
7099
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
6979
7100
|
import { CardMedia, Stack as Stack20 } from "@elementor/ui";
|
|
6980
7101
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
6981
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
7102
|
+
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
7103
|
var ItemIconImage = ({ value }) => {
|
|
6983
7104
|
const { imageUrl } = useImage(value);
|
|
6984
|
-
return /* @__PURE__ */
|
|
7105
|
+
return /* @__PURE__ */ React105.createElement(
|
|
6985
7106
|
CardMedia,
|
|
6986
7107
|
{
|
|
6987
7108
|
image: imageUrl,
|
|
@@ -6997,7 +7118,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
6997
7118
|
};
|
|
6998
7119
|
var ItemLabelImage = ({ value }) => {
|
|
6999
7120
|
const { imageTitle } = useImage(value);
|
|
7000
|
-
return /* @__PURE__ */
|
|
7121
|
+
return /* @__PURE__ */ React105.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React105.createElement("span", null, imageTitle));
|
|
7001
7122
|
};
|
|
7002
7123
|
var useImage = (image) => {
|
|
7003
7124
|
let imageTitle, imageUrl = null;
|
|
@@ -7022,7 +7143,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7022
7143
|
};
|
|
7023
7144
|
|
|
7024
7145
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7025
|
-
import * as
|
|
7146
|
+
import * as React106 from "react";
|
|
7026
7147
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
7027
7148
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
7028
7149
|
if (!value) {
|
|
@@ -7032,11 +7153,11 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
7032
7153
|
const colorValue = color || "#000000";
|
|
7033
7154
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7034
7155
|
const positionValue = position || "outset";
|
|
7035
|
-
return /* @__PURE__ */
|
|
7156
|
+
return /* @__PURE__ */ React106.createElement(React106.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7036
7157
|
});
|
|
7037
7158
|
|
|
7038
7159
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7039
|
-
import * as
|
|
7160
|
+
import * as React107 from "react";
|
|
7040
7161
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
7041
7162
|
import { Stack as Stack21, styled as styled7, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
7042
7163
|
function isValidCSSColor(value) {
|
|
@@ -7056,7 +7177,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
7056
7177
|
if (!isValidCSSColor(value)) {
|
|
7057
7178
|
return value;
|
|
7058
7179
|
}
|
|
7059
|
-
return /* @__PURE__ */
|
|
7180
|
+
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
7181
|
});
|
|
7061
7182
|
|
|
7062
7183
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|