@elementor/editor-editing-panel 4.0.0-511 → 4.0.0-513
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 +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +163 -171
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/components/editing-panel.tsx +5 -2
- package/src/dynamics/init.ts +1 -1
- package/src/index.ts +0 -1
- package/src/control-replacement.tsx +0 -3
package/dist/index.js
CHANGED
|
@@ -47,7 +47,6 @@ __export(index_exports, {
|
|
|
47
47
|
doApplyClasses: () => doApplyClasses,
|
|
48
48
|
doGetAppliedClasses: () => doGetAppliedClasses,
|
|
49
49
|
doUnapplyClass: () => doUnapplyClass,
|
|
50
|
-
getControlReplacements: () => getControlReplacements,
|
|
51
50
|
getFieldIndicators: () => getFieldIndicators,
|
|
52
51
|
getSubtitle: () => getSubtitle,
|
|
53
52
|
getTitle: () => getTitle,
|
|
@@ -56,7 +55,6 @@ __export(index_exports, {
|
|
|
56
55
|
injectIntoCssClassConvert: () => injectIntoCssClassConvert,
|
|
57
56
|
injectIntoPanelHeaderTop: () => injectIntoPanelHeaderTop,
|
|
58
57
|
injectIntoStyleTab: () => injectIntoStyleTab,
|
|
59
|
-
registerControlReplacement: () => registerControlReplacement,
|
|
60
58
|
registerEditingPanelReplacement: () => registerEditingPanelReplacement,
|
|
61
59
|
registerFieldIndicator: () => registerFieldIndicator,
|
|
62
60
|
registerStyleProviderToColors: () => registerStyleProviderToColors,
|
|
@@ -1728,7 +1726,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1728
1726
|
|
|
1729
1727
|
// src/components/editing-panel.tsx
|
|
1730
1728
|
var React83 = __toESM(require("react"));
|
|
1731
|
-
var
|
|
1729
|
+
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
1732
1730
|
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
1733
1731
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1734
1732
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
@@ -1738,10 +1736,6 @@ var import_session8 = require("@elementor/session");
|
|
|
1738
1736
|
var import_ui38 = require("@elementor/ui");
|
|
1739
1737
|
var import_i18n56 = require("@wordpress/i18n");
|
|
1740
1738
|
|
|
1741
|
-
// src/control-replacement.tsx
|
|
1742
|
-
var import_editor_controls = require("@elementor/editor-controls");
|
|
1743
|
-
var { registerControlReplacement, getControlReplacements } = (0, import_editor_controls.createControlReplacementsRegistry)();
|
|
1744
|
-
|
|
1745
1739
|
// src/controls-actions.ts
|
|
1746
1740
|
var import_editor_ui4 = require("@elementor/editor-ui");
|
|
1747
1741
|
var import_menus = require("@elementor/menus");
|
|
@@ -2002,33 +1996,33 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2002
1996
|
|
|
2003
1997
|
// src/components/settings-control.tsx
|
|
2004
1998
|
var React23 = __toESM(require("react"));
|
|
2005
|
-
var
|
|
1999
|
+
var import_editor_controls4 = require("@elementor/editor-controls");
|
|
2006
2000
|
var import_ui16 = require("@elementor/ui");
|
|
2007
2001
|
|
|
2008
2002
|
// src/controls-registry/control.tsx
|
|
2009
2003
|
var React19 = __toESM(require("react"));
|
|
2010
2004
|
|
|
2011
2005
|
// src/controls-registry/controls-registry.tsx
|
|
2012
|
-
var
|
|
2006
|
+
var import_editor_controls = require("@elementor/editor-controls");
|
|
2013
2007
|
var import_editor_props4 = require("@elementor/editor-props");
|
|
2014
2008
|
var controlTypes = {
|
|
2015
|
-
image: { component:
|
|
2016
|
-
"svg-media": { component:
|
|
2017
|
-
text: { component:
|
|
2018
|
-
textarea: { component:
|
|
2019
|
-
size: { component:
|
|
2020
|
-
select: { component:
|
|
2021
|
-
link: { component:
|
|
2022
|
-
query: { component:
|
|
2023
|
-
url: { component:
|
|
2024
|
-
switch: { component:
|
|
2025
|
-
number: { component:
|
|
2026
|
-
repeatable: { component:
|
|
2027
|
-
"key-value": { component:
|
|
2028
|
-
"html-tag": { component:
|
|
2029
|
-
toggle: { component:
|
|
2030
|
-
"date-time": { component:
|
|
2031
|
-
"inline-editing": { component:
|
|
2009
|
+
image: { component: import_editor_controls.ImageControl, layout: "custom", propTypeUtil: import_editor_props4.imagePropTypeUtil },
|
|
2010
|
+
"svg-media": { component: import_editor_controls.SvgMediaControl, layout: "full", propTypeUtil: import_editor_props4.imageSrcPropTypeUtil },
|
|
2011
|
+
text: { component: import_editor_controls.TextControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2012
|
+
textarea: { component: import_editor_controls.TextAreaControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2013
|
+
size: { component: import_editor_controls.SizeControl, layout: "two-columns", propTypeUtil: import_editor_props4.sizePropTypeUtil },
|
|
2014
|
+
select: { component: import_editor_controls.SelectControlWrapper, layout: "two-columns", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2015
|
+
link: { component: import_editor_controls.LinkControl, layout: "custom", propTypeUtil: import_editor_props4.linkPropTypeUtil },
|
|
2016
|
+
query: { component: import_editor_controls.QueryControl, layout: "full", propTypeUtil: import_editor_props4.queryPropTypeUtil },
|
|
2017
|
+
url: { component: import_editor_controls.UrlControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2018
|
+
switch: { component: import_editor_controls.SwitchControl, layout: "two-columns", propTypeUtil: import_editor_props4.booleanPropTypeUtil },
|
|
2019
|
+
number: { component: import_editor_controls.NumberControl, layout: "two-columns", propTypeUtil: import_editor_props4.numberPropTypeUtil },
|
|
2020
|
+
repeatable: { component: import_editor_controls.RepeatableControl, layout: "full", propTypeUtil: void 0 },
|
|
2021
|
+
"key-value": { component: import_editor_controls.KeyValueControl, layout: "full", propTypeUtil: import_editor_props4.keyValuePropTypeUtil },
|
|
2022
|
+
"html-tag": { component: import_editor_controls.HtmlTagControl, layout: "two-columns", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2023
|
+
toggle: { component: import_editor_controls.ToggleControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2024
|
+
"date-time": { component: import_editor_controls.DateTimeControl, layout: "full", propTypeUtil: import_editor_props4.DateTimePropTypeUtil },
|
|
2025
|
+
"inline-editing": { component: import_editor_controls.InlineEditingControl, layout: "full", propTypeUtil: import_editor_props4.htmlPropTypeUtil }
|
|
2032
2026
|
};
|
|
2033
2027
|
var ControlsRegistry = class {
|
|
2034
2028
|
constructor(controlsRegistry2) {
|
|
@@ -2111,7 +2105,7 @@ var getStyleByLayout = (layout) => {
|
|
|
2111
2105
|
// src/controls-registry/settings-field.tsx
|
|
2112
2106
|
var React21 = __toESM(require("react"));
|
|
2113
2107
|
var import_react19 = require("react");
|
|
2114
|
-
var
|
|
2108
|
+
var import_editor_controls2 = require("@elementor/editor-controls");
|
|
2115
2109
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
2116
2110
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
2117
2111
|
var import_editor_props6 = require("@elementor/editor-props");
|
|
@@ -2286,7 +2280,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2286
2280
|
}
|
|
2287
2281
|
};
|
|
2288
2282
|
const isDisabled = (prop) => !(0, import_editor_props6.isDependencyMet)(prop?.dependencies, elementSettingValues).isMet;
|
|
2289
|
-
return /* @__PURE__ */ React21.createElement(
|
|
2283
|
+
return /* @__PURE__ */ React21.createElement(import_editor_controls2.PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React21.createElement(import_editor_controls2.PropKeyProvider, { bind }, children));
|
|
2290
2284
|
};
|
|
2291
2285
|
function useUndoableUpdateElementProp({
|
|
2292
2286
|
elementId,
|
|
@@ -2337,10 +2331,10 @@ var getFieldIndicators = (fieldType) => Array.from(indicatorsRegistry[fieldType]
|
|
|
2337
2331
|
|
|
2338
2332
|
// src/components/control-label.tsx
|
|
2339
2333
|
var React22 = __toESM(require("react"));
|
|
2340
|
-
var
|
|
2334
|
+
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
2341
2335
|
var import_ui15 = require("@elementor/ui");
|
|
2342
2336
|
var ControlLabel = ({ children }) => {
|
|
2343
|
-
return /* @__PURE__ */ React22.createElement(import_ui15.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React22.createElement(
|
|
2337
|
+
return /* @__PURE__ */ React22.createElement(import_ui15.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React22.createElement(import_editor_controls3.ControlFormLabel, null, children), /* @__PURE__ */ React22.createElement(import_editor_controls3.ControlAdornments, null));
|
|
2344
2338
|
};
|
|
2345
2339
|
|
|
2346
2340
|
// src/components/settings-control.tsx
|
|
@@ -2367,7 +2361,7 @@ var ControlLayout = ({
|
|
|
2367
2361
|
controlProps
|
|
2368
2362
|
}) => {
|
|
2369
2363
|
const controlType = control.type;
|
|
2370
|
-
return /* @__PURE__ */ React23.createElement(
|
|
2364
|
+
return /* @__PURE__ */ React23.createElement(import_editor_controls4.ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React23.createElement(import_ui16.Divider, null), /* @__PURE__ */ React23.createElement(Wrapper, { "data-type": "settings-field" }, /* @__PURE__ */ React23.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React23.createElement(ControlLabel, null, control.label) : null, /* @__PURE__ */ React23.createElement(Control, { type: controlType, props: controlProps }))));
|
|
2371
2365
|
};
|
|
2372
2366
|
function populateChildControlProps(props) {
|
|
2373
2367
|
if (props.childControlType) {
|
|
@@ -2741,12 +2735,12 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
2741
2735
|
|
|
2742
2736
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2743
2737
|
var React28 = __toESM(require("react"));
|
|
2744
|
-
var
|
|
2738
|
+
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
2745
2739
|
var import_i18n9 = require("@wordpress/i18n");
|
|
2746
2740
|
|
|
2747
2741
|
// src/controls-registry/styles-field.tsx
|
|
2748
2742
|
var React26 = __toESM(require("react"));
|
|
2749
|
-
var
|
|
2743
|
+
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
2750
2744
|
var import_editor_styles6 = require("@elementor/editor-styles");
|
|
2751
2745
|
|
|
2752
2746
|
// src/hooks/use-styles-field.ts
|
|
@@ -2760,10 +2754,10 @@ function useStylesField(propName, meta) {
|
|
|
2760
2754
|
}
|
|
2761
2755
|
|
|
2762
2756
|
// src/controls-registry/conditional-field.tsx
|
|
2763
|
-
var
|
|
2757
|
+
var import_editor_controls5 = require("@elementor/editor-controls");
|
|
2764
2758
|
var import_editor_props10 = require("@elementor/editor-props");
|
|
2765
2759
|
var ConditionalField = ({ children }) => {
|
|
2766
|
-
const { propType } = (0,
|
|
2760
|
+
const { propType } = (0, import_editor_controls5.useBoundProp)();
|
|
2767
2761
|
const depList = getDependencies(propType);
|
|
2768
2762
|
const { values: depValues } = useStylesFields(depList);
|
|
2769
2763
|
const isHidden = !(0, import_editor_props10.isDependencyMet)(propType?.dependencies, depValues).isMet;
|
|
@@ -2789,8 +2783,8 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
2789
2783
|
const setValue = (newValue) => {
|
|
2790
2784
|
fields.setValue(newValue[bind]);
|
|
2791
2785
|
};
|
|
2792
|
-
return /* @__PURE__ */ React26.createElement(
|
|
2793
|
-
|
|
2786
|
+
return /* @__PURE__ */ React26.createElement(import_editor_controls6.ControlAdornmentsProvider, { items: getFieldIndicators("styles") }, /* @__PURE__ */ React26.createElement(
|
|
2787
|
+
import_editor_controls6.PropProvider,
|
|
2794
2788
|
{
|
|
2795
2789
|
propType,
|
|
2796
2790
|
value: { [bind]: value },
|
|
@@ -2798,7 +2792,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
2798
2792
|
placeholder: placeholderValues,
|
|
2799
2793
|
isDisabled: () => !canEdit
|
|
2800
2794
|
},
|
|
2801
|
-
/* @__PURE__ */ React26.createElement(
|
|
2795
|
+
/* @__PURE__ */ React26.createElement(import_editor_controls6.PropKeyProvider, { bind }, /* @__PURE__ */ React26.createElement(ConditionalField, null, children))
|
|
2802
2796
|
));
|
|
2803
2797
|
};
|
|
2804
2798
|
|
|
@@ -2810,7 +2804,7 @@ var SectionContent = ({ gap = 2, sx, children, "aria-label": ariaLabel }) => /*
|
|
|
2810
2804
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2811
2805
|
var BACKGROUND_LABEL = (0, import_i18n9.__)("Background", "elementor");
|
|
2812
2806
|
var BackgroundSection = () => {
|
|
2813
|
-
return /* @__PURE__ */ React28.createElement(SectionContent, null, /* @__PURE__ */ React28.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React28.createElement(
|
|
2807
|
+
return /* @__PURE__ */ React28.createElement(SectionContent, null, /* @__PURE__ */ React28.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React28.createElement(import_editor_controls7.BackgroundControl, null)));
|
|
2814
2808
|
};
|
|
2815
2809
|
|
|
2816
2810
|
// src/components/style-sections/border-section/border-section.tsx
|
|
@@ -2818,7 +2812,7 @@ var React35 = __toESM(require("react"));
|
|
|
2818
2812
|
|
|
2819
2813
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
2820
2814
|
var React30 = __toESM(require("react"));
|
|
2821
|
-
var
|
|
2815
|
+
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
2822
2816
|
var import_i18n10 = require("@wordpress/i18n");
|
|
2823
2817
|
|
|
2824
2818
|
// src/components/styles-field-layout.tsx
|
|
@@ -2864,11 +2858,11 @@ var Column = React29.forwardRef(
|
|
|
2864
2858
|
|
|
2865
2859
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
2866
2860
|
var BORDER_COLOR_LABEL = (0, import_i18n10.__)("Border color", "elementor");
|
|
2867
|
-
var BorderColorField = () => /* @__PURE__ */ React30.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(
|
|
2861
|
+
var BorderColorField = () => /* @__PURE__ */ React30.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(import_editor_controls8.ColorControl, null)));
|
|
2868
2862
|
|
|
2869
2863
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
2870
2864
|
var React32 = __toESM(require("react"));
|
|
2871
|
-
var
|
|
2865
|
+
var import_editor_controls9 = require("@elementor/editor-controls");
|
|
2872
2866
|
var import_editor_props11 = require("@elementor/editor-props");
|
|
2873
2867
|
var import_icons3 = require("@elementor/icons");
|
|
2874
2868
|
var import_ui21 = require("@elementor/ui");
|
|
@@ -2934,7 +2928,7 @@ var getCorners = (isSiteRtl) => [
|
|
|
2934
2928
|
var BorderRadiusField = () => {
|
|
2935
2929
|
const { isSiteRtl } = useDirection();
|
|
2936
2930
|
return /* @__PURE__ */ React32.createElement(UiProviders, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React32.createElement(
|
|
2937
|
-
|
|
2931
|
+
import_editor_controls9.EqualUnequalSizesControl,
|
|
2938
2932
|
{
|
|
2939
2933
|
items: getCorners(isSiteRtl),
|
|
2940
2934
|
label: BORDER_RADIUS_LABEL,
|
|
@@ -2947,7 +2941,7 @@ var BorderRadiusField = () => {
|
|
|
2947
2941
|
|
|
2948
2942
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
2949
2943
|
var React33 = __toESM(require("react"));
|
|
2950
|
-
var
|
|
2944
|
+
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
2951
2945
|
var import_i18n12 = require("@wordpress/i18n");
|
|
2952
2946
|
var BORDER_TYPE_LABEL = (0, import_i18n12.__)("Border type", "elementor");
|
|
2953
2947
|
var borderStyles = [
|
|
@@ -2961,11 +2955,11 @@ var borderStyles = [
|
|
|
2961
2955
|
{ value: "inset", label: (0, import_i18n12.__)("Inset", "elementor") },
|
|
2962
2956
|
{ value: "outset", label: (0, import_i18n12.__)("Outset", "elementor") }
|
|
2963
2957
|
];
|
|
2964
|
-
var BorderStyleField = () => /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(
|
|
2958
|
+
var BorderStyleField = () => /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(import_editor_controls10.SelectControl, { options: borderStyles })));
|
|
2965
2959
|
|
|
2966
2960
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
2967
2961
|
var React34 = __toESM(require("react"));
|
|
2968
|
-
var
|
|
2962
|
+
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
2969
2963
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
2970
2964
|
var import_icons4 = require("@elementor/icons");
|
|
2971
2965
|
var import_ui22 = require("@elementor/ui");
|
|
@@ -3002,7 +2996,7 @@ var getEdges = (isSiteRtl) => [
|
|
|
3002
2996
|
var BorderWidthField = () => {
|
|
3003
2997
|
const { isSiteRtl } = useDirection();
|
|
3004
2998
|
return /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React34.createElement(
|
|
3005
|
-
|
|
2999
|
+
import_editor_controls11.EqualUnequalSizesControl,
|
|
3006
3000
|
{
|
|
3007
3001
|
items: getEdges(isSiteRtl),
|
|
3008
3002
|
label: BORDER_WIDTH_LABEL,
|
|
@@ -3018,7 +3012,7 @@ var BorderSection = () => /* @__PURE__ */ React35.createElement(SectionContent,
|
|
|
3018
3012
|
|
|
3019
3013
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3020
3014
|
var React39 = __toESM(require("react"));
|
|
3021
|
-
var
|
|
3015
|
+
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
3022
3016
|
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3023
3017
|
var import_i18n16 = require("@wordpress/i18n");
|
|
3024
3018
|
|
|
@@ -3057,7 +3051,7 @@ var PanelDivider = () => /* @__PURE__ */ React36.createElement(import_ui23.Divid
|
|
|
3057
3051
|
|
|
3058
3052
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3059
3053
|
var React37 = __toESM(require("react"));
|
|
3060
|
-
var
|
|
3054
|
+
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
3061
3055
|
var import_i18n14 = require("@wordpress/i18n");
|
|
3062
3056
|
var BLEND_MODE_LABEL = (0, import_i18n14.__)("Blend mode", "elementor");
|
|
3063
3057
|
var blendModeOptions = [
|
|
@@ -3079,18 +3073,18 @@ var blendModeOptions = [
|
|
|
3079
3073
|
{ label: (0, import_i18n14.__)("Hard light", "elementor"), value: "hard-light" }
|
|
3080
3074
|
];
|
|
3081
3075
|
var BlendModeField = () => {
|
|
3082
|
-
return /* @__PURE__ */ React37.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(
|
|
3076
|
+
return /* @__PURE__ */ React37.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(import_editor_controls12.SelectControl, { options: blendModeOptions })));
|
|
3083
3077
|
};
|
|
3084
3078
|
|
|
3085
3079
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3086
3080
|
var React38 = __toESM(require("react"));
|
|
3087
3081
|
var import_react21 = require("react");
|
|
3088
|
-
var
|
|
3082
|
+
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3089
3083
|
var import_i18n15 = require("@wordpress/i18n");
|
|
3090
3084
|
var OPACITY_LABEL = (0, import_i18n15.__)("Opacity", "elementor");
|
|
3091
3085
|
var OpacityControlField = () => {
|
|
3092
3086
|
const rowRef = (0, import_react21.useRef)(null);
|
|
3093
|
-
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(
|
|
3087
|
+
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(import_editor_controls13.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3094
3088
|
};
|
|
3095
3089
|
|
|
3096
3090
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
@@ -3102,18 +3096,18 @@ var TRANSITIONS_LABEL = (0, import_i18n16.__)("Transitions", "elementor");
|
|
|
3102
3096
|
var EffectsSection = () => {
|
|
3103
3097
|
const { element } = (0, import_editor_elements11.useSelectedElement)();
|
|
3104
3098
|
const { meta } = useStyle();
|
|
3105
|
-
return /* @__PURE__ */ React39.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React39.createElement(BlendModeField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(OpacityControlField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3106
|
-
|
|
3099
|
+
return /* @__PURE__ */ React39.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React39.createElement(BlendModeField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(OpacityControlField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.BoxShadowRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.TransformRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3100
|
+
import_editor_controls14.TransitionRepeaterControl,
|
|
3107
3101
|
{
|
|
3108
3102
|
currentStyleState: meta.state,
|
|
3109
3103
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3110
3104
|
}
|
|
3111
|
-
)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3105
|
+
)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.FilterRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3112
3106
|
};
|
|
3113
3107
|
|
|
3114
3108
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3115
3109
|
var React51 = __toESM(require("react"));
|
|
3116
|
-
var
|
|
3110
|
+
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
3117
3111
|
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
3118
3112
|
var import_i18n28 = require("@wordpress/i18n");
|
|
3119
3113
|
|
|
@@ -3143,7 +3137,7 @@ function useComputedStyle(elementId) {
|
|
|
3143
3137
|
|
|
3144
3138
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3145
3139
|
var React41 = __toESM(require("react"));
|
|
3146
|
-
var
|
|
3140
|
+
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
3147
3141
|
var import_icons5 = require("@elementor/icons");
|
|
3148
3142
|
var import_ui25 = require("@elementor/ui");
|
|
3149
3143
|
var import_i18n18 = require("@wordpress/i18n");
|
|
@@ -3242,11 +3236,11 @@ var options = [
|
|
|
3242
3236
|
showTooltip: true
|
|
3243
3237
|
}
|
|
3244
3238
|
];
|
|
3245
|
-
var AlignContentField = () => /* @__PURE__ */ React41.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React41.createElement(UiProviders, null, /* @__PURE__ */ React41.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React41.createElement(
|
|
3239
|
+
var AlignContentField = () => /* @__PURE__ */ React41.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React41.createElement(UiProviders, null, /* @__PURE__ */ React41.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React41.createElement(import_editor_controls15.ToggleControl, { options, fullWidth: true }))));
|
|
3246
3240
|
|
|
3247
3241
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3248
3242
|
var React42 = __toESM(require("react"));
|
|
3249
|
-
var
|
|
3243
|
+
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
3250
3244
|
var import_icons6 = require("@elementor/icons");
|
|
3251
3245
|
var import_ui26 = require("@elementor/ui");
|
|
3252
3246
|
var import_i18n19 = require("@wordpress/i18n");
|
|
@@ -3284,12 +3278,12 @@ var options2 = [
|
|
|
3284
3278
|
}
|
|
3285
3279
|
];
|
|
3286
3280
|
var AlignItemsField = () => {
|
|
3287
|
-
return /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(
|
|
3281
|
+
return /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls16.ToggleControl, { options: options2 }))));
|
|
3288
3282
|
};
|
|
3289
3283
|
|
|
3290
3284
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3291
3285
|
var React43 = __toESM(require("react"));
|
|
3292
|
-
var
|
|
3286
|
+
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3293
3287
|
var import_icons7 = require("@elementor/icons");
|
|
3294
3288
|
var import_ui27 = require("@elementor/ui");
|
|
3295
3289
|
var import_i18n20 = require("@wordpress/i18n");
|
|
@@ -3363,11 +3357,11 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3363
3357
|
showTooltip: true
|
|
3364
3358
|
}
|
|
3365
3359
|
];
|
|
3366
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React43.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(UiProviders, null, /* @__PURE__ */ React43.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(
|
|
3360
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React43.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(UiProviders, null, /* @__PURE__ */ React43.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(import_editor_controls17.ToggleControl, { options: getOptions(parentStyleDirection) }))));
|
|
3367
3361
|
|
|
3368
3362
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3369
3363
|
var React44 = __toESM(require("react"));
|
|
3370
|
-
var
|
|
3364
|
+
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3371
3365
|
var import_i18n21 = require("@wordpress/i18n");
|
|
3372
3366
|
var DISPLAY_LABEL = (0, import_i18n21.__)("Display", "elementor");
|
|
3373
3367
|
var displayFieldItems = [
|
|
@@ -3404,13 +3398,13 @@ var displayFieldItems = [
|
|
|
3404
3398
|
];
|
|
3405
3399
|
var DisplayField = () => {
|
|
3406
3400
|
const placeholder = useDisplayPlaceholderValue();
|
|
3407
|
-
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React44.createElement(
|
|
3401
|
+
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React44.createElement(import_editor_controls18.ToggleControl, { options: displayFieldItems, maxItems: 4, fullWidth: true })));
|
|
3408
3402
|
};
|
|
3409
3403
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3410
3404
|
|
|
3411
3405
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3412
3406
|
var React45 = __toESM(require("react"));
|
|
3413
|
-
var
|
|
3407
|
+
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3414
3408
|
var import_icons8 = require("@elementor/icons");
|
|
3415
3409
|
var import_ui28 = require("@elementor/ui");
|
|
3416
3410
|
var import_i18n22 = require("@wordpress/i18n");
|
|
@@ -3448,13 +3442,13 @@ var options3 = [
|
|
|
3448
3442
|
}
|
|
3449
3443
|
];
|
|
3450
3444
|
var FlexDirectionField = () => {
|
|
3451
|
-
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(
|
|
3445
|
+
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(import_editor_controls19.ToggleControl, { options: options3 }))));
|
|
3452
3446
|
};
|
|
3453
3447
|
|
|
3454
3448
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3455
3449
|
var React46 = __toESM(require("react"));
|
|
3456
3450
|
var import_react23 = require("react");
|
|
3457
|
-
var
|
|
3451
|
+
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
3458
3452
|
var import_icons9 = require("@elementor/icons");
|
|
3459
3453
|
var import_ui29 = require("@elementor/ui");
|
|
3460
3454
|
var import_i18n23 = require("@wordpress/i18n");
|
|
@@ -3499,7 +3493,7 @@ function FlexOrderFieldContent() {
|
|
|
3499
3493
|
} = useStylesField("order", {
|
|
3500
3494
|
history: { propDisplayName: ORDER_LABEL }
|
|
3501
3495
|
});
|
|
3502
|
-
const { placeholder } = (0,
|
|
3496
|
+
const { placeholder } = (0, import_editor_controls20.useBoundProp)();
|
|
3503
3497
|
const placeholderValue = placeholder;
|
|
3504
3498
|
const currentGroup = (0, import_react23.useMemo)(() => getGroupControlValue(order?.value ?? null), [order]);
|
|
3505
3499
|
const [activeGroup, setActiveGroup] = (0, import_react23.useState)(currentGroup);
|
|
@@ -3535,7 +3529,7 @@ function FlexOrderFieldContent() {
|
|
|
3535
3529
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
3536
3530
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
3537
3531
|
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React46.createElement(
|
|
3538
|
-
|
|
3532
|
+
import_editor_controls20.ControlToggleButtonGroup,
|
|
3539
3533
|
{
|
|
3540
3534
|
items,
|
|
3541
3535
|
value: activeGroup,
|
|
@@ -3545,7 +3539,7 @@ function FlexOrderFieldContent() {
|
|
|
3545
3539
|
disabled: !canEdit
|
|
3546
3540
|
}
|
|
3547
3541
|
)), isCustomVisible && /* @__PURE__ */ React46.createElement(import_ui29.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui29.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n23.__)("Custom order", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui29.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(
|
|
3548
|
-
|
|
3542
|
+
import_editor_controls20.NumberControl,
|
|
3549
3543
|
{
|
|
3550
3544
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
3551
3545
|
max: LAST_DEFAULT_VALUE - 1,
|
|
@@ -3570,7 +3564,7 @@ var getGroupControlValue = (order) => {
|
|
|
3570
3564
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
3571
3565
|
var React47 = __toESM(require("react"));
|
|
3572
3566
|
var import_react24 = require("react");
|
|
3573
|
-
var
|
|
3567
|
+
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3574
3568
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3575
3569
|
var import_icons10 = require("@elementor/icons");
|
|
3576
3570
|
var import_i18n24 = require("@wordpress/i18n");
|
|
@@ -3603,7 +3597,7 @@ var FlexSizeFieldContent = () => {
|
|
|
3603
3597
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
3604
3598
|
history: { propDisplayName: FLEX_SIZE_LABEL }
|
|
3605
3599
|
});
|
|
3606
|
-
const { placeholder } = (0,
|
|
3600
|
+
const { placeholder } = (0, import_editor_controls21.useBoundProp)();
|
|
3607
3601
|
const flexValues = extractFlexValues(value);
|
|
3608
3602
|
const currentGroup = (0, import_react24.useMemo)(() => getActiveGroup(flexValues), [flexValues]);
|
|
3609
3603
|
const [activeGroup, setActiveGroup] = (0, import_react24.useState)(currentGroup);
|
|
@@ -3627,7 +3621,7 @@ var FlexSizeFieldContent = () => {
|
|
|
3627
3621
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
3628
3622
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
3629
3623
|
return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React47.createElement(
|
|
3630
|
-
|
|
3624
|
+
import_editor_controls21.ControlToggleButtonGroup,
|
|
3631
3625
|
{
|
|
3632
3626
|
value: activeGroup ?? null,
|
|
3633
3627
|
placeholder: groupPlaceholder ?? null,
|
|
@@ -3677,8 +3671,8 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
3677
3671
|
};
|
|
3678
3672
|
var FlexCustomField = () => {
|
|
3679
3673
|
const flexBasisRowRef = (0, import_react24.useRef)(null);
|
|
3680
|
-
const context = (0,
|
|
3681
|
-
return /* @__PURE__ */ React47.createElement(
|
|
3674
|
+
const context = (0, import_editor_controls21.useBoundProp)(import_editor_props13.flexPropTypeUtil);
|
|
3675
|
+
return /* @__PURE__ */ React47.createElement(import_editor_controls21.PropProvider, { ...context }, /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: (0, import_i18n24.__)("Grow", "elementor") }, /* @__PURE__ */ React47.createElement(import_editor_controls21.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React47.createElement(import_editor_controls21.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: (0, import_i18n24.__)("Shrink", "elementor") }, /* @__PURE__ */ React47.createElement(import_editor_controls21.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React47.createElement(import_editor_controls21.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: (0, import_i18n24.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React47.createElement(import_editor_controls21.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React47.createElement(import_editor_controls21.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
3682
3676
|
};
|
|
3683
3677
|
var getActiveGroup = ({
|
|
3684
3678
|
grow,
|
|
@@ -3703,16 +3697,16 @@ var getActiveGroup = ({
|
|
|
3703
3697
|
|
|
3704
3698
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
3705
3699
|
var React48 = __toESM(require("react"));
|
|
3706
|
-
var
|
|
3700
|
+
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
3707
3701
|
var import_i18n25 = require("@wordpress/i18n");
|
|
3708
3702
|
var GAPS_LABEL = (0, import_i18n25.__)("Gaps", "elementor");
|
|
3709
3703
|
var GapControlField = () => {
|
|
3710
|
-
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React48.createElement(
|
|
3704
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React48.createElement(import_editor_controls22.GapControl, { label: GAPS_LABEL }));
|
|
3711
3705
|
};
|
|
3712
3706
|
|
|
3713
3707
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
3714
3708
|
var React49 = __toESM(require("react"));
|
|
3715
|
-
var
|
|
3709
|
+
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
3716
3710
|
var import_icons11 = require("@elementor/icons");
|
|
3717
3711
|
var import_ui30 = require("@elementor/ui");
|
|
3718
3712
|
var import_i18n26 = require("@wordpress/i18n");
|
|
@@ -3761,11 +3755,11 @@ var options4 = [
|
|
|
3761
3755
|
showTooltip: true
|
|
3762
3756
|
}
|
|
3763
3757
|
];
|
|
3764
|
-
var JustifyContentField = () => /* @__PURE__ */ React49.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React49.createElement(
|
|
3758
|
+
var JustifyContentField = () => /* @__PURE__ */ React49.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React49.createElement(UiProviders, null, /* @__PURE__ */ React49.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React49.createElement(import_editor_controls23.ToggleControl, { options: options4, fullWidth: true }))));
|
|
3765
3759
|
|
|
3766
3760
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
3767
3761
|
var React50 = __toESM(require("react"));
|
|
3768
|
-
var
|
|
3762
|
+
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
3769
3763
|
var import_icons12 = require("@elementor/icons");
|
|
3770
3764
|
var import_i18n27 = require("@wordpress/i18n");
|
|
3771
3765
|
var FLEX_WRAP_LABEL = (0, import_i18n27.__)("Wrap", "elementor");
|
|
@@ -3790,7 +3784,7 @@ var options5 = [
|
|
|
3790
3784
|
}
|
|
3791
3785
|
];
|
|
3792
3786
|
var WrapField = () => {
|
|
3793
|
-
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React50.createElement(
|
|
3787
|
+
return /* @__PURE__ */ React50.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React50.createElement(import_editor_controls24.ToggleControl, { options: options5 }))));
|
|
3794
3788
|
};
|
|
3795
3789
|
|
|
3796
3790
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -3814,7 +3808,7 @@ var FlexFields = () => {
|
|
|
3814
3808
|
});
|
|
3815
3809
|
return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(FlexDirectionField, null), /* @__PURE__ */ React51.createElement(JustifyContentField, null), /* @__PURE__ */ React51.createElement(AlignItemsField, null), /* @__PURE__ */ React51.createElement(PanelDivider, null), /* @__PURE__ */ React51.createElement(GapControlField, null), /* @__PURE__ */ React51.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React51.createElement(AlignContentField, null));
|
|
3816
3810
|
};
|
|
3817
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(PanelDivider, null), /* @__PURE__ */ React51.createElement(
|
|
3811
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(PanelDivider, null), /* @__PURE__ */ React51.createElement(import_editor_controls25.ControlFormLabel, null, (0, import_i18n28.__)("Flex child", "elementor")), /* @__PURE__ */ React51.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React51.createElement(FlexOrderField, null), /* @__PURE__ */ React51.createElement(FlexSizeField, null));
|
|
3818
3812
|
var shouldDisplayFlexFields = (display, local) => {
|
|
3819
3813
|
const value = display?.value ?? local?.value;
|
|
3820
3814
|
if (!value) {
|
|
@@ -3831,7 +3825,7 @@ var import_i18n33 = require("@wordpress/i18n");
|
|
|
3831
3825
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
3832
3826
|
var React52 = __toESM(require("react"));
|
|
3833
3827
|
var import_react25 = require("react");
|
|
3834
|
-
var
|
|
3828
|
+
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
3835
3829
|
var import_icons13 = require("@elementor/icons");
|
|
3836
3830
|
var import_ui31 = require("@elementor/ui");
|
|
3837
3831
|
var import_i18n29 = require("@wordpress/i18n");
|
|
@@ -3869,7 +3863,7 @@ var DimensionField = ({
|
|
|
3869
3863
|
label,
|
|
3870
3864
|
rowRef
|
|
3871
3865
|
}) => /* @__PURE__ */ React52.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React52.createElement(import_ui31.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React52.createElement(import_ui31.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, label)), /* @__PURE__ */ React52.createElement(import_ui31.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React52.createElement(
|
|
3872
|
-
|
|
3866
|
+
import_editor_controls26.SizeControl,
|
|
3873
3867
|
{
|
|
3874
3868
|
startIcon: sideIcons[side],
|
|
3875
3869
|
extendedOptions: ["auto"],
|
|
@@ -3881,18 +3875,18 @@ var DimensionField = ({
|
|
|
3881
3875
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
3882
3876
|
var React53 = __toESM(require("react"));
|
|
3883
3877
|
var import_react26 = require("react");
|
|
3884
|
-
var
|
|
3878
|
+
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
3885
3879
|
var import_i18n30 = require("@wordpress/i18n");
|
|
3886
3880
|
var OFFSET_LABEL = (0, import_i18n30.__)("Anchor offset", "elementor");
|
|
3887
3881
|
var UNITS = ["px", "em", "rem", "vw", "vh"];
|
|
3888
3882
|
var OffsetField = () => {
|
|
3889
3883
|
const rowRef = (0, import_react26.useRef)(null);
|
|
3890
|
-
return /* @__PURE__ */ React53.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React53.createElement(
|
|
3884
|
+
return /* @__PURE__ */ React53.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React53.createElement(import_editor_controls27.SizeControl, { units: UNITS, anchorRef: rowRef })));
|
|
3891
3885
|
};
|
|
3892
3886
|
|
|
3893
3887
|
// src/components/style-sections/position-section/position-field.tsx
|
|
3894
3888
|
var React54 = __toESM(require("react"));
|
|
3895
|
-
var
|
|
3889
|
+
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
3896
3890
|
var import_i18n31 = require("@wordpress/i18n");
|
|
3897
3891
|
var POSITION_LABEL = (0, import_i18n31.__)("Position", "elementor");
|
|
3898
3892
|
var positionOptions = [
|
|
@@ -3903,16 +3897,16 @@ var positionOptions = [
|
|
|
3903
3897
|
{ label: (0, import_i18n31.__)("Sticky", "elementor"), value: "sticky" }
|
|
3904
3898
|
];
|
|
3905
3899
|
var PositionField = ({ onChange }) => {
|
|
3906
|
-
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React54.createElement(
|
|
3900
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React54.createElement(import_editor_controls28.SelectControl, { options: positionOptions, onChange })));
|
|
3907
3901
|
};
|
|
3908
3902
|
|
|
3909
3903
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
3910
3904
|
var React55 = __toESM(require("react"));
|
|
3911
|
-
var
|
|
3905
|
+
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
3912
3906
|
var import_i18n32 = require("@wordpress/i18n");
|
|
3913
3907
|
var Z_INDEX_LABEL = (0, import_i18n32.__)("Z-index", "elementor");
|
|
3914
3908
|
var ZIndexField = () => {
|
|
3915
|
-
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React55.createElement(
|
|
3909
|
+
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React55.createElement(import_editor_controls29.NumberControl, null)));
|
|
3916
3910
|
};
|
|
3917
3911
|
|
|
3918
3912
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -3964,7 +3958,7 @@ var usePersistDimensions = () => {
|
|
|
3964
3958
|
// src/components/style-sections/size-section/size-section.tsx
|
|
3965
3959
|
var React61 = __toESM(require("react"));
|
|
3966
3960
|
var import_react27 = require("react");
|
|
3967
|
-
var
|
|
3961
|
+
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
3968
3962
|
var import_ui33 = require("@elementor/ui");
|
|
3969
3963
|
var import_i18n37 = require("@wordpress/i18n");
|
|
3970
3964
|
|
|
@@ -4050,7 +4044,7 @@ function getStylesInheritanceIndicators(fields) {
|
|
|
4050
4044
|
|
|
4051
4045
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4052
4046
|
var React59 = __toESM(require("react"));
|
|
4053
|
-
var
|
|
4047
|
+
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
4054
4048
|
var import_i18n35 = require("@wordpress/i18n");
|
|
4055
4049
|
var OBJECT_FIT_LABEL = (0, import_i18n35.__)("Object fit", "elementor");
|
|
4056
4050
|
var positionOptions2 = [
|
|
@@ -4061,12 +4055,12 @@ var positionOptions2 = [
|
|
|
4061
4055
|
{ label: (0, import_i18n35.__)("Scale down", "elementor"), value: "scale-down" }
|
|
4062
4056
|
];
|
|
4063
4057
|
var ObjectFitField = () => {
|
|
4064
|
-
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React59.createElement(
|
|
4058
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React59.createElement(import_editor_controls30.SelectControl, { options: positionOptions2 })));
|
|
4065
4059
|
};
|
|
4066
4060
|
|
|
4067
4061
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4068
4062
|
var React60 = __toESM(require("react"));
|
|
4069
|
-
var
|
|
4063
|
+
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
4070
4064
|
var import_icons14 = require("@elementor/icons");
|
|
4071
4065
|
var import_i18n36 = require("@wordpress/i18n");
|
|
4072
4066
|
var OVERFLOW_LABEL = (0, import_i18n36.__)("Overflow", "elementor");
|
|
@@ -4091,7 +4085,7 @@ var options6 = [
|
|
|
4091
4085
|
}
|
|
4092
4086
|
];
|
|
4093
4087
|
var OverflowField = () => {
|
|
4094
|
-
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React60.createElement(
|
|
4088
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React60.createElement(import_editor_controls31.ToggleControl, { options: options6 })));
|
|
4095
4089
|
};
|
|
4096
4090
|
|
|
4097
4091
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4130,29 +4124,29 @@ var CssSizeProps = [
|
|
|
4130
4124
|
var ASPECT_RATIO_LABEL = (0, import_i18n37.__)("Aspect Ratio", "elementor");
|
|
4131
4125
|
var SizeSection = () => {
|
|
4132
4126
|
const gridRowRefs = [(0, import_react27.useRef)(null), (0, import_react27.useRef)(null), (0, import_react27.useRef)(null)];
|
|
4133
|
-
return /* @__PURE__ */ React61.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React61.createElement(import_ui33.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React61.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_ui33.Stack, null, /* @__PURE__ */ React61.createElement(OverflowField, null)), /* @__PURE__ */ React61.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React61.createElement(import_ui33.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React61.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React61.createElement(
|
|
4127
|
+
return /* @__PURE__ */ React61.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React61.createElement(import_ui33.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React61.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_ui33.Stack, null, /* @__PURE__ */ React61.createElement(OverflowField, null)), /* @__PURE__ */ React61.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React61.createElement(import_ui33.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React61.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React61.createElement(import_editor_controls32.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ObjectFitField, null), /* @__PURE__ */ React61.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n37.__)("Object position", "elementor") }, /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(import_editor_controls32.PositionControl, null))))));
|
|
4134
4128
|
};
|
|
4135
4129
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4136
|
-
return /* @__PURE__ */ React61.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React61.createElement(import_ui33.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(ControlLabel, null, label)), /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(
|
|
4130
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React61.createElement(import_ui33.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(ControlLabel, null, label)), /* @__PURE__ */ React61.createElement(import_ui33.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React61.createElement(import_editor_controls32.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
4137
4131
|
};
|
|
4138
4132
|
|
|
4139
4133
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4140
4134
|
var React62 = __toESM(require("react"));
|
|
4141
|
-
var
|
|
4135
|
+
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4142
4136
|
var import_i18n38 = require("@wordpress/i18n");
|
|
4143
4137
|
var MARGIN_LABEL = (0, import_i18n38.__)("Margin", "elementor");
|
|
4144
4138
|
var PADDING_LABEL = (0, import_i18n38.__)("Padding", "elementor");
|
|
4145
4139
|
var SpacingSection = () => {
|
|
4146
4140
|
const { isSiteRtl } = useDirection();
|
|
4147
4141
|
return /* @__PURE__ */ React62.createElement(SectionContent, null, /* @__PURE__ */ React62.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React62.createElement(
|
|
4148
|
-
|
|
4142
|
+
import_editor_controls33.LinkedDimensionsControl,
|
|
4149
4143
|
{
|
|
4150
4144
|
label: MARGIN_LABEL,
|
|
4151
4145
|
isSiteRtl,
|
|
4152
4146
|
extendedOptions: ["auto"],
|
|
4153
4147
|
min: -Number.MAX_SAFE_INTEGER
|
|
4154
4148
|
}
|
|
4155
|
-
)), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React62.createElement(
|
|
4149
|
+
)), /* @__PURE__ */ React62.createElement(PanelDivider, null), /* @__PURE__ */ React62.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React62.createElement(import_editor_controls33.LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4156
4150
|
};
|
|
4157
4151
|
|
|
4158
4152
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
@@ -4160,38 +4154,38 @@ var React79 = __toESM(require("react"));
|
|
|
4160
4154
|
|
|
4161
4155
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4162
4156
|
var React63 = __toESM(require("react"));
|
|
4163
|
-
var
|
|
4157
|
+
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4164
4158
|
var import_i18n39 = require("@wordpress/i18n");
|
|
4165
4159
|
var COLUMN_COUNT_LABEL = (0, import_i18n39.__)("Columns", "elementor");
|
|
4166
4160
|
var ColumnCountField = () => {
|
|
4167
|
-
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React63.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React63.createElement(
|
|
4161
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React63.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React63.createElement(import_editor_controls34.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4168
4162
|
};
|
|
4169
4163
|
|
|
4170
4164
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4171
4165
|
var React64 = __toESM(require("react"));
|
|
4172
4166
|
var import_react28 = require("react");
|
|
4173
|
-
var
|
|
4167
|
+
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
4174
4168
|
var import_i18n40 = require("@wordpress/i18n");
|
|
4175
4169
|
var COLUMN_GAP_LABEL = (0, import_i18n40.__)("Column gap", "elementor");
|
|
4176
4170
|
var ColumnGapField = () => {
|
|
4177
4171
|
const rowRef = (0, import_react28.useRef)(null);
|
|
4178
|
-
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React64.createElement(
|
|
4172
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React64.createElement(import_editor_controls35.SizeControl, { anchorRef: rowRef })));
|
|
4179
4173
|
};
|
|
4180
4174
|
|
|
4181
4175
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4182
4176
|
var React65 = __toESM(require("react"));
|
|
4183
|
-
var
|
|
4177
|
+
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
4184
4178
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
4185
4179
|
var import_i18n41 = require("@wordpress/i18n");
|
|
4186
4180
|
var FONT_FAMILY_LABEL = (0, import_i18n41.__)("Font family", "elementor");
|
|
4187
4181
|
var FontFamilyField = () => {
|
|
4188
|
-
const fontFamilies = (0,
|
|
4182
|
+
const fontFamilies = (0, import_editor_controls36.useFontFamilies)();
|
|
4189
4183
|
const sectionWidth = (0, import_editor_ui7.useSectionWidth)();
|
|
4190
4184
|
if (fontFamilies.length === 0) {
|
|
4191
4185
|
return null;
|
|
4192
4186
|
}
|
|
4193
4187
|
return /* @__PURE__ */ React65.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React65.createElement(
|
|
4194
|
-
|
|
4188
|
+
import_editor_controls36.FontFamilyControl,
|
|
4195
4189
|
{
|
|
4196
4190
|
fontFamilies,
|
|
4197
4191
|
sectionWidth,
|
|
@@ -4203,17 +4197,17 @@ var FontFamilyField = () => {
|
|
|
4203
4197
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4204
4198
|
var React66 = __toESM(require("react"));
|
|
4205
4199
|
var import_react29 = require("react");
|
|
4206
|
-
var
|
|
4200
|
+
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4207
4201
|
var import_i18n42 = require("@wordpress/i18n");
|
|
4208
4202
|
var FONT_SIZE_LABEL = (0, import_i18n42.__)("Font size", "elementor");
|
|
4209
4203
|
var FontSizeField = () => {
|
|
4210
4204
|
const rowRef = (0, import_react29.useRef)(null);
|
|
4211
|
-
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React66.createElement(
|
|
4205
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React66.createElement(import_editor_controls37.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
4212
4206
|
};
|
|
4213
4207
|
|
|
4214
4208
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4215
4209
|
var React67 = __toESM(require("react"));
|
|
4216
|
-
var
|
|
4210
|
+
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
4217
4211
|
var import_icons15 = require("@elementor/icons");
|
|
4218
4212
|
var import_i18n43 = require("@wordpress/i18n");
|
|
4219
4213
|
var FONT_STYLE_LABEL = (0, import_i18n43.__)("Font style", "elementor");
|
|
@@ -4232,12 +4226,12 @@ var options7 = [
|
|
|
4232
4226
|
}
|
|
4233
4227
|
];
|
|
4234
4228
|
var FontStyleField = () => {
|
|
4235
|
-
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React67.createElement(
|
|
4229
|
+
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React67.createElement(import_editor_controls38.ToggleControl, { options: options7 })));
|
|
4236
4230
|
};
|
|
4237
4231
|
|
|
4238
4232
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4239
4233
|
var React68 = __toESM(require("react"));
|
|
4240
|
-
var
|
|
4234
|
+
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
4241
4235
|
var import_i18n44 = require("@wordpress/i18n");
|
|
4242
4236
|
var FONT_WEIGHT_LABEL = (0, import_i18n44.__)("Font weight", "elementor");
|
|
4243
4237
|
var fontWeightOptions = [
|
|
@@ -4252,34 +4246,34 @@ var fontWeightOptions = [
|
|
|
4252
4246
|
{ value: "900", label: (0, import_i18n44.__)("900 - Black", "elementor") }
|
|
4253
4247
|
];
|
|
4254
4248
|
var FontWeightField = () => {
|
|
4255
|
-
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React68.createElement(
|
|
4249
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React68.createElement(import_editor_controls39.SelectControl, { options: fontWeightOptions })));
|
|
4256
4250
|
};
|
|
4257
4251
|
|
|
4258
4252
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4259
4253
|
var React69 = __toESM(require("react"));
|
|
4260
4254
|
var import_react30 = require("react");
|
|
4261
|
-
var
|
|
4255
|
+
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
4262
4256
|
var import_i18n45 = require("@wordpress/i18n");
|
|
4263
4257
|
var LETTER_SPACING_LABEL = (0, import_i18n45.__)("Letter spacing", "elementor");
|
|
4264
4258
|
var LetterSpacingField = () => {
|
|
4265
4259
|
const rowRef = (0, import_react30.useRef)(null);
|
|
4266
|
-
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React69.createElement(
|
|
4260
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React69.createElement(import_editor_controls40.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4267
4261
|
};
|
|
4268
4262
|
|
|
4269
4263
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4270
4264
|
var React70 = __toESM(require("react"));
|
|
4271
4265
|
var import_react31 = require("react");
|
|
4272
|
-
var
|
|
4266
|
+
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
4273
4267
|
var import_i18n46 = require("@wordpress/i18n");
|
|
4274
4268
|
var LINE_HEIGHT_LABEL = (0, import_i18n46.__)("Line height", "elementor");
|
|
4275
4269
|
var LineHeightField = () => {
|
|
4276
4270
|
const rowRef = (0, import_react31.useRef)(null);
|
|
4277
|
-
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React70.createElement(
|
|
4271
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React70.createElement(import_editor_controls41.SizeControl, { anchorRef: rowRef })));
|
|
4278
4272
|
};
|
|
4279
4273
|
|
|
4280
4274
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
4281
4275
|
var React71 = __toESM(require("react"));
|
|
4282
|
-
var
|
|
4276
|
+
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
4283
4277
|
var import_icons16 = require("@elementor/icons");
|
|
4284
4278
|
var import_ui34 = require("@elementor/ui");
|
|
4285
4279
|
var import_i18n47 = require("@wordpress/i18n");
|
|
@@ -4313,21 +4307,21 @@ var options8 = [
|
|
|
4313
4307
|
}
|
|
4314
4308
|
];
|
|
4315
4309
|
var TextAlignmentField = () => {
|
|
4316
|
-
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React71.createElement(UiProviders, null, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React71.createElement(
|
|
4310
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React71.createElement(UiProviders, null, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React71.createElement(import_editor_controls42.ToggleControl, { options: options8 }))));
|
|
4317
4311
|
};
|
|
4318
4312
|
|
|
4319
4313
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
4320
4314
|
var React72 = __toESM(require("react"));
|
|
4321
|
-
var
|
|
4315
|
+
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
4322
4316
|
var import_i18n48 = require("@wordpress/i18n");
|
|
4323
4317
|
var TEXT_COLOR_LABEL = (0, import_i18n48.__)("Text color", "elementor");
|
|
4324
4318
|
var TextColorField = () => {
|
|
4325
|
-
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React72.createElement(
|
|
4319
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React72.createElement(import_editor_controls43.ColorControl, { id: "text-color-control" })));
|
|
4326
4320
|
};
|
|
4327
4321
|
|
|
4328
4322
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
4329
4323
|
var React73 = __toESM(require("react"));
|
|
4330
|
-
var
|
|
4324
|
+
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
4331
4325
|
var import_icons17 = require("@elementor/icons");
|
|
4332
4326
|
var import_i18n49 = require("@wordpress/i18n");
|
|
4333
4327
|
var TEXT_DECORATION_LABEL = (0, import_i18n49.__)("Line decoration", "elementor");
|
|
@@ -4358,11 +4352,11 @@ var options9 = [
|
|
|
4358
4352
|
showTooltip: true
|
|
4359
4353
|
}
|
|
4360
4354
|
];
|
|
4361
|
-
var TextDecorationField = () => /* @__PURE__ */ React73.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React73.createElement(
|
|
4355
|
+
var TextDecorationField = () => /* @__PURE__ */ React73.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React73.createElement(import_editor_controls44.ToggleControl, { options: options9, exclusive: false })));
|
|
4362
4356
|
|
|
4363
4357
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
4364
4358
|
var React74 = __toESM(require("react"));
|
|
4365
|
-
var
|
|
4359
|
+
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
4366
4360
|
var import_icons18 = require("@elementor/icons");
|
|
4367
4361
|
var import_i18n50 = require("@wordpress/i18n");
|
|
4368
4362
|
var TEXT_DIRECTION_LABEL = (0, import_i18n50.__)("Direction", "elementor");
|
|
@@ -4381,12 +4375,12 @@ var options10 = [
|
|
|
4381
4375
|
}
|
|
4382
4376
|
];
|
|
4383
4377
|
var TextDirectionField = () => {
|
|
4384
|
-
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React74.createElement(
|
|
4378
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React74.createElement(import_editor_controls45.ToggleControl, { options: options10 })));
|
|
4385
4379
|
};
|
|
4386
4380
|
|
|
4387
4381
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4388
4382
|
var React76 = __toESM(require("react"));
|
|
4389
|
-
var
|
|
4383
|
+
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
4390
4384
|
var import_i18n51 = require("@wordpress/i18n");
|
|
4391
4385
|
|
|
4392
4386
|
// src/components/add-or-remove-content.tsx
|
|
@@ -4455,13 +4449,13 @@ var TextStrokeField = () => {
|
|
|
4455
4449
|
disabled: !canEdit,
|
|
4456
4450
|
renderLabel: () => /* @__PURE__ */ React76.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
4457
4451
|
},
|
|
4458
|
-
/* @__PURE__ */ React76.createElement(
|
|
4452
|
+
/* @__PURE__ */ React76.createElement(import_editor_controls46.StrokeControl, null)
|
|
4459
4453
|
));
|
|
4460
4454
|
};
|
|
4461
4455
|
|
|
4462
4456
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
4463
4457
|
var React77 = __toESM(require("react"));
|
|
4464
|
-
var
|
|
4458
|
+
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
4465
4459
|
var import_icons20 = require("@elementor/icons");
|
|
4466
4460
|
var import_i18n52 = require("@wordpress/i18n");
|
|
4467
4461
|
var TEXT_TRANSFORM_LABEL = (0, import_i18n52.__)("Text transform", "elementor");
|
|
@@ -4491,17 +4485,17 @@ var options11 = [
|
|
|
4491
4485
|
showTooltip: true
|
|
4492
4486
|
}
|
|
4493
4487
|
];
|
|
4494
|
-
var TransformField = () => /* @__PURE__ */ React77.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React77.createElement(
|
|
4488
|
+
var TransformField = () => /* @__PURE__ */ React77.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React77.createElement(import_editor_controls47.ToggleControl, { options: options11 })));
|
|
4495
4489
|
|
|
4496
4490
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
4497
4491
|
var React78 = __toESM(require("react"));
|
|
4498
4492
|
var import_react32 = require("react");
|
|
4499
|
-
var
|
|
4493
|
+
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
4500
4494
|
var import_i18n53 = require("@wordpress/i18n");
|
|
4501
4495
|
var WORD_SPACING_LABEL = (0, import_i18n53.__)("Word spacing", "elementor");
|
|
4502
4496
|
var WordSpacingField = () => {
|
|
4503
4497
|
const rowRef = (0, import_react32.useRef)(null);
|
|
4504
|
-
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(
|
|
4498
|
+
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(import_editor_controls48.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4505
4499
|
};
|
|
4506
4500
|
|
|
4507
4501
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
@@ -4753,7 +4747,7 @@ var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_
|
|
|
4753
4747
|
var { useMenuItems } = controlActionsMenu;
|
|
4754
4748
|
var EditingPanel = () => {
|
|
4755
4749
|
const { element, elementType } = (0, import_editor_elements13.useSelectedElement)();
|
|
4756
|
-
const controlReplacements = getControlReplacements();
|
|
4750
|
+
const controlReplacements = (0, import_editor_controls49.getControlReplacements)();
|
|
4757
4751
|
const menuItems = useMenuItems().default;
|
|
4758
4752
|
if (!element || !elementType) {
|
|
4759
4753
|
return null;
|
|
@@ -4764,7 +4758,7 @@ var EditingPanel = () => {
|
|
|
4764
4758
|
if (ReplacementComponent) {
|
|
4765
4759
|
panelContent = /* @__PURE__ */ React83.createElement(ReplacementComponent, null);
|
|
4766
4760
|
}
|
|
4767
|
-
return /* @__PURE__ */ React83.createElement(import_ui38.ErrorBoundary, { fallback: /* @__PURE__ */ React83.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React83.createElement(import_session8.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React83.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React83.createElement(
|
|
4761
|
+
return /* @__PURE__ */ React83.createElement(import_ui38.ErrorBoundary, { fallback: /* @__PURE__ */ React83.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React83.createElement(import_session8.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React83.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React83.createElement(import_editor_controls49.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React83.createElement(import_editor_controls49.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React83.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React83.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React83.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
4768
4762
|
};
|
|
4769
4763
|
|
|
4770
4764
|
// src/init.ts
|
|
@@ -4869,7 +4863,7 @@ var init = () => {
|
|
|
4869
4863
|
|
|
4870
4864
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
4871
4865
|
var React85 = __toESM(require("react"));
|
|
4872
|
-
var
|
|
4866
|
+
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
4873
4867
|
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
4874
4868
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
4875
4869
|
var import_icons22 = require("@elementor/icons");
|
|
@@ -4894,14 +4888,14 @@ var getElementByType = (elementId, type) => {
|
|
|
4894
4888
|
};
|
|
4895
4889
|
|
|
4896
4890
|
// src/controls-registry/element-controls/tabs-control/use-actions.ts
|
|
4897
|
-
var
|
|
4891
|
+
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
4898
4892
|
var import_editor_elements16 = require("@elementor/editor-elements");
|
|
4899
4893
|
var import_editor_props15 = require("@elementor/editor-props");
|
|
4900
4894
|
var import_i18n58 = require("@wordpress/i18n");
|
|
4901
4895
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
4902
4896
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
4903
4897
|
var useActions = () => {
|
|
4904
|
-
const { value, setValue: setDefaultActiveTab } = (0,
|
|
4898
|
+
const { value, setValue: setDefaultActiveTab } = (0, import_editor_controls50.useBoundProp)(import_editor_props15.numberPropTypeUtil);
|
|
4905
4899
|
const defaultActiveTab = value ?? 0;
|
|
4906
4900
|
const duplicateItem = ({
|
|
4907
4901
|
items: items3,
|
|
@@ -5131,7 +5125,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5131
5125
|
}
|
|
5132
5126
|
};
|
|
5133
5127
|
return /* @__PURE__ */ React85.createElement(
|
|
5134
|
-
|
|
5128
|
+
import_editor_controls51.Repeater,
|
|
5135
5129
|
{
|
|
5136
5130
|
showToggle: false,
|
|
5137
5131
|
values: repeaterValues,
|
|
@@ -5155,7 +5149,7 @@ var ItemLabel = ({ value, index }) => {
|
|
|
5155
5149
|
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React85.createElement("span", null, elementTitle), /* @__PURE__ */ React85.createElement(ItemDefaultTab, { index }));
|
|
5156
5150
|
};
|
|
5157
5151
|
var ItemDefaultTab = ({ index }) => {
|
|
5158
|
-
const { value: defaultItem } = (0,
|
|
5152
|
+
const { value: defaultItem } = (0, import_editor_controls51.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
5159
5153
|
const isDefault = defaultItem === index;
|
|
5160
5154
|
if (!isDefault) {
|
|
5161
5155
|
return null;
|
|
@@ -5169,9 +5163,9 @@ var ItemContent = ({ value, index }) => {
|
|
|
5169
5163
|
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React85.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React85.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n59.__)("Tabs", "elementor") }, /* @__PURE__ */ React85.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5170
5164
|
};
|
|
5171
5165
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5172
|
-
const { value, setValue } = (0,
|
|
5166
|
+
const { value, setValue } = (0, import_editor_controls51.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
5173
5167
|
const isDefault = value === tabIndex;
|
|
5174
|
-
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React85.createElement(
|
|
5168
|
+
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React85.createElement(import_editor_controls51.ControlFormLabel, null, (0, import_i18n59.__)("Set as default tab", "elementor")), /* @__PURE__ */ React85.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React85.createElement(
|
|
5175
5169
|
import_ui39.Switch,
|
|
5176
5170
|
{
|
|
5177
5171
|
size: "small",
|
|
@@ -5189,7 +5183,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5189
5183
|
var TabLabelControl = ({ elementId }) => {
|
|
5190
5184
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
|
|
5191
5185
|
const label = editorSettings?.title ?? "";
|
|
5192
|
-
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { gap: 1 }, /* @__PURE__ */ React85.createElement(
|
|
5186
|
+
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { gap: 1 }, /* @__PURE__ */ React85.createElement(import_editor_controls51.ControlFormLabel, null, (0, import_i18n59.__)("Tab name", "elementor")), /* @__PURE__ */ React85.createElement(
|
|
5193
5187
|
import_ui39.TextField,
|
|
5194
5188
|
{
|
|
5195
5189
|
size: "tiny",
|
|
@@ -5243,11 +5237,11 @@ var registerElementControls = () => {
|
|
|
5243
5237
|
|
|
5244
5238
|
// src/dynamics/init.ts
|
|
5245
5239
|
var import_editor_canvas3 = require("@elementor/editor-canvas");
|
|
5246
|
-
var
|
|
5240
|
+
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5247
5241
|
|
|
5248
5242
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5249
5243
|
var React86 = __toESM(require("react"));
|
|
5250
|
-
var
|
|
5244
|
+
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5251
5245
|
var import_editor_props18 = require("@elementor/editor-props");
|
|
5252
5246
|
var import_icons23 = require("@elementor/icons");
|
|
5253
5247
|
|
|
@@ -5256,7 +5250,7 @@ var import_react39 = require("react");
|
|
|
5256
5250
|
|
|
5257
5251
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
5258
5252
|
var import_react38 = require("react");
|
|
5259
|
-
var
|
|
5253
|
+
var import_editor_controls52 = require("@elementor/editor-controls");
|
|
5260
5254
|
|
|
5261
5255
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
5262
5256
|
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
@@ -5340,7 +5334,7 @@ var useAllPropDynamicTags = () => {
|
|
|
5340
5334
|
};
|
|
5341
5335
|
var usePropDynamicTagsInternal = (filterByLicense2) => {
|
|
5342
5336
|
let categories = [];
|
|
5343
|
-
const { propType } = (0,
|
|
5337
|
+
const { propType } = (0, import_editor_controls52.useBoundProp)();
|
|
5344
5338
|
if (propType) {
|
|
5345
5339
|
const propDynamicType = getDynamicPropType(propType);
|
|
5346
5340
|
categories = propDynamicType?.settings.categories || [];
|
|
@@ -5386,13 +5380,13 @@ var useDynamicTag = (tagName) => {
|
|
|
5386
5380
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5387
5381
|
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React86.createElement(import_icons23.DatabaseIcon, { fontSize: "tiny" });
|
|
5388
5382
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
5389
|
-
const context = (0,
|
|
5390
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5383
|
+
const context = (0, import_editor_controls53.useBoundProp)(import_editor_props18.backgroundImageOverlayPropTypeUtil);
|
|
5384
|
+
return /* @__PURE__ */ React86.createElement(import_editor_controls53.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React86.createElement(import_editor_controls53.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React86.createElement(Wrapper2, { rawValue: value.value })));
|
|
5391
5385
|
};
|
|
5392
5386
|
var Wrapper2 = ({ rawValue }) => {
|
|
5393
|
-
const { propType } = (0,
|
|
5387
|
+
const { propType } = (0, import_editor_controls53.useBoundProp)();
|
|
5394
5388
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
5395
|
-
return /* @__PURE__ */ React86.createElement(
|
|
5389
|
+
return /* @__PURE__ */ React86.createElement(import_editor_controls53.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React86.createElement(import_editor_controls53.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React86.createElement(Content, { rawValue: rawValue.image })));
|
|
5396
5390
|
};
|
|
5397
5391
|
var Content = ({ rawValue }) => {
|
|
5398
5392
|
const src = rawValue.value.src;
|
|
@@ -5402,7 +5396,7 @@ var Content = ({ rawValue }) => {
|
|
|
5402
5396
|
|
|
5403
5397
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
5404
5398
|
var React90 = __toESM(require("react"));
|
|
5405
|
-
var
|
|
5399
|
+
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
5406
5400
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
5407
5401
|
var import_icons25 = require("@elementor/icons");
|
|
5408
5402
|
var import_ui41 = require("@elementor/ui");
|
|
@@ -5418,7 +5412,7 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
5418
5412
|
|
|
5419
5413
|
// src/dynamics/dynamic-control.tsx
|
|
5420
5414
|
var React88 = __toESM(require("react"));
|
|
5421
|
-
var
|
|
5415
|
+
var import_editor_controls54 = require("@elementor/editor-controls");
|
|
5422
5416
|
|
|
5423
5417
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
5424
5418
|
var React87 = __toESM(require("react"));
|
|
@@ -5470,7 +5464,7 @@ var DynamicConditionalControl = ({
|
|
|
5470
5464
|
|
|
5471
5465
|
// src/dynamics/dynamic-control.tsx
|
|
5472
5466
|
var DynamicControl = ({ bind, children }) => {
|
|
5473
|
-
const { value, setValue } = (0,
|
|
5467
|
+
const { value, setValue } = (0, import_editor_controls54.useBoundProp)(dynamicPropTypeUtil);
|
|
5474
5468
|
const { name = "", group = "", settings } = value ?? {};
|
|
5475
5469
|
const dynamicTag = useDynamicTag(name);
|
|
5476
5470
|
if (!dynamicTag) {
|
|
@@ -5490,7 +5484,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5490
5484
|
});
|
|
5491
5485
|
};
|
|
5492
5486
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5493
|
-
return /* @__PURE__ */ React88.createElement(
|
|
5487
|
+
return /* @__PURE__ */ React88.createElement(import_editor_controls54.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React88.createElement(import_editor_controls54.PropKeyProvider, { bind }, /* @__PURE__ */ React88.createElement(
|
|
5494
5488
|
DynamicConditionalControl,
|
|
5495
5489
|
{
|
|
5496
5490
|
propType: dynamicPropType,
|
|
@@ -5504,7 +5498,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5504
5498
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5505
5499
|
var import_react40 = require("react");
|
|
5506
5500
|
var React89 = __toESM(require("react"));
|
|
5507
|
-
var
|
|
5501
|
+
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
5508
5502
|
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
5509
5503
|
var import_icons24 = require("@elementor/icons");
|
|
5510
5504
|
var import_ui40 = require("@elementor/ui");
|
|
@@ -5517,8 +5511,8 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
5517
5511
|
const [searchValue, setSearchValue] = (0, import_react40.useState)("");
|
|
5518
5512
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
5519
5513
|
const theme = (0, import_ui40.useTheme)();
|
|
5520
|
-
const { value: anyValue } = (0,
|
|
5521
|
-
const { bind, value: dynamicValue, setValue } = (0,
|
|
5514
|
+
const { value: anyValue } = (0, import_editor_controls55.useBoundProp)();
|
|
5515
|
+
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls55.useBoundProp)(dynamicPropTypeUtil);
|
|
5522
5516
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
5523
5517
|
const isCurrentValueDynamic = !!dynamicValue;
|
|
5524
5518
|
const options12 = useFilteredOptions(searchValue);
|
|
@@ -5648,8 +5642,8 @@ var useFilteredOptions = (searchValue) => {
|
|
|
5648
5642
|
var SIZE4 = "tiny";
|
|
5649
5643
|
var tagsWithoutTabs = ["popup"];
|
|
5650
5644
|
var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
5651
|
-
const { setValue: setAnyValue, propType } = (0,
|
|
5652
|
-
const { bind, value } = (0,
|
|
5645
|
+
const { setValue: setAnyValue, propType } = (0, import_editor_controls56.useBoundProp)();
|
|
5646
|
+
const { bind, value } = (0, import_editor_controls56.useBoundProp)(dynamicPropTypeUtil);
|
|
5653
5647
|
const { expired: readonly } = useLicenseConfig();
|
|
5654
5648
|
const originalPropType = createTopLevelObjectType({
|
|
5655
5649
|
schema: {
|
|
@@ -5661,7 +5655,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
5661
5655
|
const { name: tagName = "" } = value;
|
|
5662
5656
|
const dynamicTag = useDynamicTag(tagName);
|
|
5663
5657
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
5664
|
-
return /* @__PURE__ */ React90.createElement(
|
|
5658
|
+
return /* @__PURE__ */ React90.createElement(import_editor_controls56.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React90.createElement(import_editor_controls56.PropKeyProvider, { bind }, /* @__PURE__ */ React90.createElement(OriginalControl, { ...props })));
|
|
5665
5659
|
}
|
|
5666
5660
|
const removeDynamicTag = () => {
|
|
5667
5661
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -5810,7 +5804,7 @@ var Control2 = ({ control }) => {
|
|
|
5810
5804
|
display: "grid",
|
|
5811
5805
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
5812
5806
|
} : {};
|
|
5813
|
-
return /* @__PURE__ */ React90.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React90.createElement(import_ui41.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React90.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(
|
|
5807
|
+
return /* @__PURE__ */ React90.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React90.createElement(import_ui41.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React90.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(import_editor_controls56.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React90.createElement(import_ui41.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(Control, { type: control.type, props: controlProps }))));
|
|
5814
5808
|
};
|
|
5815
5809
|
function ControlsItemsStack({ items: items3 }) {
|
|
5816
5810
|
return /* @__PURE__ */ React90.createElement(import_ui41.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
@@ -5868,11 +5862,11 @@ function getDynamicValue(name, settings) {
|
|
|
5868
5862
|
|
|
5869
5863
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
5870
5864
|
var React91 = __toESM(require("react"));
|
|
5871
|
-
var
|
|
5865
|
+
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5872
5866
|
var import_icons26 = require("@elementor/icons");
|
|
5873
5867
|
var import_i18n62 = require("@wordpress/i18n");
|
|
5874
5868
|
var usePropDynamicAction = () => {
|
|
5875
|
-
const { propType } = (0,
|
|
5869
|
+
const { propType } = (0, import_editor_controls57.useBoundProp)();
|
|
5876
5870
|
const visible = !!propType && supportsDynamic(propType);
|
|
5877
5871
|
return {
|
|
5878
5872
|
visible,
|
|
@@ -5885,16 +5879,16 @@ var usePropDynamicAction = () => {
|
|
|
5885
5879
|
// src/dynamics/init.ts
|
|
5886
5880
|
var { registerPopoverAction } = controlActionsMenu;
|
|
5887
5881
|
var init2 = () => {
|
|
5888
|
-
registerControlReplacement({
|
|
5882
|
+
(0, import_editor_controls58.registerControlReplacement)({
|
|
5889
5883
|
component: DynamicSelectionControl,
|
|
5890
5884
|
condition: ({ value }) => isDynamicPropValue(value)
|
|
5891
5885
|
});
|
|
5892
|
-
(0,
|
|
5886
|
+
(0, import_editor_controls58.injectIntoRepeaterItemLabel)({
|
|
5893
5887
|
id: "dynamic-background-image",
|
|
5894
5888
|
condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
|
|
5895
5889
|
component: BackgroundControlDynamicTagLabel
|
|
5896
5890
|
});
|
|
5897
|
-
(0,
|
|
5891
|
+
(0, import_editor_controls58.injectIntoRepeaterItemIcon)({
|
|
5898
5892
|
id: "dynamic-background-image",
|
|
5899
5893
|
condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
|
|
5900
5894
|
component: BackgroundControlDynamicTagIcon
|
|
@@ -5908,7 +5902,7 @@ var init2 = () => {
|
|
|
5908
5902
|
};
|
|
5909
5903
|
|
|
5910
5904
|
// src/reset-style-props.tsx
|
|
5911
|
-
var
|
|
5905
|
+
var import_editor_controls59 = require("@elementor/editor-controls");
|
|
5912
5906
|
var import_icons27 = require("@elementor/icons");
|
|
5913
5907
|
var import_i18n63 = require("@wordpress/i18n");
|
|
5914
5908
|
|
|
@@ -5965,7 +5959,7 @@ function initResetStyleProps() {
|
|
|
5965
5959
|
}
|
|
5966
5960
|
function useResetStyleValueProps() {
|
|
5967
5961
|
const isStyle = useIsStyle();
|
|
5968
|
-
const { value, resetValue, propType } = (0,
|
|
5962
|
+
const { value, resetValue, propType } = (0, import_editor_controls59.useBoundProp)();
|
|
5969
5963
|
const hasValue = value !== null && value !== void 0;
|
|
5970
5964
|
const hasInitial = propType.initial_value !== void 0 && propType.initial_value !== null;
|
|
5971
5965
|
const isRequired = !!propType.settings?.required;
|
|
@@ -5990,7 +5984,7 @@ function useResetStyleValueProps() {
|
|
|
5990
5984
|
|
|
5991
5985
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
5992
5986
|
var React97 = __toESM(require("react"));
|
|
5993
|
-
var
|
|
5987
|
+
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
5994
5988
|
var import_editor_props21 = require("@elementor/editor-props");
|
|
5995
5989
|
var import_editor_styles_repository16 = require("@elementor/editor-styles-repository");
|
|
5996
5990
|
var import_i18n67 = require("@wordpress/i18n");
|
|
@@ -6366,7 +6360,7 @@ function TooltipOrInfotip({
|
|
|
6366
6360
|
var StylesInheritanceIndicator = ({
|
|
6367
6361
|
customContext
|
|
6368
6362
|
}) => {
|
|
6369
|
-
const context = (0,
|
|
6363
|
+
const context = (0, import_editor_controls60.useBoundProp)();
|
|
6370
6364
|
const { path, propType } = customContext || context;
|
|
6371
6365
|
const inheritanceChain = useStylesInheritanceChain(path);
|
|
6372
6366
|
if (!path || !inheritanceChain.length) {
|
|
@@ -6676,7 +6670,6 @@ var blockV1Panel = () => {
|
|
|
6676
6670
|
doApplyClasses,
|
|
6677
6671
|
doGetAppliedClasses,
|
|
6678
6672
|
doUnapplyClass,
|
|
6679
|
-
getControlReplacements,
|
|
6680
6673
|
getFieldIndicators,
|
|
6681
6674
|
getSubtitle,
|
|
6682
6675
|
getTitle,
|
|
@@ -6685,7 +6678,6 @@ var blockV1Panel = () => {
|
|
|
6685
6678
|
injectIntoCssClassConvert,
|
|
6686
6679
|
injectIntoPanelHeaderTop,
|
|
6687
6680
|
injectIntoStyleTab,
|
|
6688
|
-
registerControlReplacement,
|
|
6689
6681
|
registerEditingPanelReplacement,
|
|
6690
6682
|
registerFieldIndicator,
|
|
6691
6683
|
registerStyleProviderToColors,
|