@elementor/editor-editing-panel 1.48.0 → 1.50.0
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/CHANGELOG.md +48 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +56 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/components/css-classes/css-class-item.tsx +3 -2
- package/src/components/css-classes/css-class-menu.tsx +2 -2
- package/src/components/css-classes/css-class-selector.tsx +10 -2
- package/src/components/popover-body.tsx +12 -0
- package/src/components/style-sections/effects-section/effects-section.tsx +6 -1
- package/src/components/style-sections/layout-section/flex-order-field.tsx +6 -1
- package/src/dynamics/components/dynamic-selection-control.tsx +22 -14
- package/src/dynamics/components/dynamic-selection.tsx +32 -36
- package/src/index.ts +1 -1
- package/src/reset-style-props.tsx +1 -1
- package/src/styles-inheritance/components/styles-inheritance-infotip.tsx +1 -1
- package/src/utils/get-styles-provider-color.ts +8 -0
- package/src/components/popover-scrollable-content.tsx +0 -12
package/dist/index.mjs
CHANGED
|
@@ -148,6 +148,12 @@ var getStylesProviderThemeColor = (provider) => {
|
|
|
148
148
|
}
|
|
149
149
|
return getStyleProviderColors(provider).getThemeColor;
|
|
150
150
|
};
|
|
151
|
+
function getTempStylesProviderThemeColor(provider) {
|
|
152
|
+
if (isElementsStylesProvider(provider)) {
|
|
153
|
+
return (theme) => theme.palette.primary.main;
|
|
154
|
+
}
|
|
155
|
+
return getStylesProviderThemeColor(provider);
|
|
156
|
+
}
|
|
151
157
|
|
|
152
158
|
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
153
159
|
import * as React4 from "react";
|
|
@@ -492,6 +498,7 @@ import {
|
|
|
492
498
|
bindTrigger,
|
|
493
499
|
Chip as Chip2,
|
|
494
500
|
Stack as Stack2,
|
|
501
|
+
ThemeProvider,
|
|
495
502
|
Typography as Typography2,
|
|
496
503
|
UnstableChipGroup,
|
|
497
504
|
usePopupState
|
|
@@ -833,7 +840,7 @@ function StateMenuItem({ state, closeMenu, ...props }) {
|
|
|
833
840
|
StyleIndicator,
|
|
834
841
|
{
|
|
835
842
|
"aria-label": __2("Has style", "elementor"),
|
|
836
|
-
getColor:
|
|
843
|
+
getColor: getTempStylesProviderThemeColor(provider ?? "")
|
|
837
844
|
}
|
|
838
845
|
), state ?? "normal")
|
|
839
846
|
)
|
|
@@ -910,7 +917,7 @@ function CssClassItem(props) {
|
|
|
910
917
|
const providerActions = provider ? stylesRepository3.getProviderByKey(provider)?.actions : null;
|
|
911
918
|
const allowRename = Boolean(providerActions?.update) && userCan(provider ?? "")?.update;
|
|
912
919
|
const isShowingState = isActive && meta.state;
|
|
913
|
-
return /* @__PURE__ */ React7.createElement(
|
|
920
|
+
return /* @__PURE__ */ React7.createElement(ThemeProvider, { palette: "default" }, /* @__PURE__ */ React7.createElement(
|
|
914
921
|
UnstableChipGroup,
|
|
915
922
|
{
|
|
916
923
|
ref: setChipRef,
|
|
@@ -988,7 +995,7 @@ var EMPTY_OPTION = {
|
|
|
988
995
|
label: __4("local", "elementor"),
|
|
989
996
|
value: null,
|
|
990
997
|
fixed: true,
|
|
991
|
-
color: "accent",
|
|
998
|
+
color: getTempStylesProviderColorName("accent"),
|
|
992
999
|
icon: /* @__PURE__ */ React8.createElement(MapPinIcon, null),
|
|
993
1000
|
provider: null
|
|
994
1001
|
};
|
|
@@ -1099,13 +1106,19 @@ function useOptions() {
|
|
|
1099
1106
|
label: styleDef.label,
|
|
1100
1107
|
value: styleDef.id,
|
|
1101
1108
|
fixed: isElements,
|
|
1102
|
-
color: getStylesProviderColorName(provider.getKey()),
|
|
1109
|
+
color: getTempStylesProviderColorName(getStylesProviderColorName(provider.getKey())),
|
|
1103
1110
|
icon: isElements ? /* @__PURE__ */ React8.createElement(MapPinIcon, null) : null,
|
|
1104
1111
|
provider: provider.getKey()
|
|
1105
1112
|
};
|
|
1106
1113
|
});
|
|
1107
1114
|
});
|
|
1108
1115
|
}
|
|
1116
|
+
function getTempStylesProviderColorName(color) {
|
|
1117
|
+
if (color === "accent") {
|
|
1118
|
+
return "primary";
|
|
1119
|
+
}
|
|
1120
|
+
return color;
|
|
1121
|
+
}
|
|
1109
1122
|
function useCreateAction() {
|
|
1110
1123
|
const [provider, createAction] = useCreateAndApplyClass();
|
|
1111
1124
|
if (!provider || !createAction) {
|
|
@@ -1171,7 +1184,7 @@ import * as React86 from "react";
|
|
|
1171
1184
|
import { ControlActionsProvider, ControlReplacementsProvider } from "@elementor/editor-controls";
|
|
1172
1185
|
import { useSelectedElement } from "@elementor/editor-elements";
|
|
1173
1186
|
import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
|
|
1174
|
-
import { ThemeProvider as
|
|
1187
|
+
import { ThemeProvider as ThemeProvider3 } from "@elementor/editor-ui";
|
|
1175
1188
|
import { AtomIcon } from "@elementor/icons";
|
|
1176
1189
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1177
1190
|
import { ErrorBoundary } from "@elementor/ui";
|
|
@@ -1249,7 +1262,7 @@ function EditorPanelErrorFallback() {
|
|
|
1249
1262
|
|
|
1250
1263
|
// src/components/editing-panel-tabs.tsx
|
|
1251
1264
|
import * as React85 from "react";
|
|
1252
|
-
import { Fragment as
|
|
1265
|
+
import { Fragment as Fragment9 } from "react";
|
|
1253
1266
|
import { isExperimentActive as isExperimentActive17 } from "@elementor/editor-v1-adapters";
|
|
1254
1267
|
import { Divider as Divider6, Stack as Stack15, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1255
1268
|
import { __ as __61 } from "@wordpress/i18n";
|
|
@@ -2408,7 +2421,7 @@ var StylesInheritanceInfotip = ({ inheritanceChain, propType, path, label, child
|
|
|
2408
2421
|
const toggleInfotip = () => setShowInfotip((prev) => !prev);
|
|
2409
2422
|
const closeInfotip = () => setShowInfotip(false);
|
|
2410
2423
|
const key = path.join(".");
|
|
2411
|
-
const sectionWidth = useSectionWidth()
|
|
2424
|
+
const sectionWidth = useSectionWidth();
|
|
2412
2425
|
const resolve = useMemo5(() => {
|
|
2413
2426
|
return createPropsResolver({
|
|
2414
2427
|
transformers: stylesInheritanceTransformersRegistry,
|
|
@@ -2827,10 +2840,10 @@ import { __ as __17 } from "@wordpress/i18n";
|
|
|
2827
2840
|
|
|
2828
2841
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
2829
2842
|
import * as React38 from "react";
|
|
2830
|
-
import { DirectionProvider, ThemeProvider } from "@elementor/ui";
|
|
2843
|
+
import { DirectionProvider, ThemeProvider as ThemeProvider2 } from "@elementor/ui";
|
|
2831
2844
|
var UiProviders = ({ children }) => {
|
|
2832
2845
|
const { isSiteRtl } = useDirection();
|
|
2833
|
-
return /* @__PURE__ */ React38.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React38.createElement(
|
|
2846
|
+
return /* @__PURE__ */ React38.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React38.createElement(ThemeProvider2, null, children));
|
|
2834
2847
|
};
|
|
2835
2848
|
|
|
2836
2849
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
@@ -2901,11 +2914,12 @@ var OpacityControlField = () => {
|
|
|
2901
2914
|
|
|
2902
2915
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
2903
2916
|
var BOX_SHADOW_LABEL = __19("Box shadow", "elementor");
|
|
2904
|
-
var FILTER_LABEL = __19("
|
|
2917
|
+
var FILTER_LABEL = __19("Filters", "elementor");
|
|
2905
2918
|
var TRANSFORM_LABEL = __19("Transform", "elementor");
|
|
2919
|
+
var BACKDROP_FILTER_LABEL = __19("Backdrop filters", "elementor");
|
|
2906
2920
|
var EffectsSection = () => {
|
|
2907
2921
|
const isVersion331Active = isExperimentActive10(EXPERIMENTAL_FEATURES.V_3_31);
|
|
2908
|
-
return /* @__PURE__ */ React42.createElement(SectionContent, null, isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(OpacityControlField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null)), /* @__PURE__ */ React42.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React42.createElement(BoxShadowRepeaterControl, null)), isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React42.createElement(TransformRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React42.createElement(FilterRepeaterControl, null))));
|
|
2922
|
+
return /* @__PURE__ */ React42.createElement(SectionContent, null, isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(OpacityControlField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null)), /* @__PURE__ */ React42.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React42.createElement(BoxShadowRepeaterControl, null)), isVersion331Active && /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React42.createElement(TransformRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React42.createElement(FilterRepeaterControl, null)), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React42.createElement(FilterRepeaterControl, { filterPropName: "backdrop-filter" }))));
|
|
2909
2923
|
};
|
|
2910
2924
|
|
|
2911
2925
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -3273,7 +3287,7 @@ var FlexDirectionField = () => {
|
|
|
3273
3287
|
|
|
3274
3288
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3275
3289
|
import * as React49 from "react";
|
|
3276
|
-
import { useState as useState10 } from "react";
|
|
3290
|
+
import { useEffect as useEffect4, useState as useState10 } from "react";
|
|
3277
3291
|
import { ControlToggleButtonGroup, NumberControl } from "@elementor/editor-controls";
|
|
3278
3292
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
3279
3293
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
@@ -3317,6 +3331,10 @@ var FlexOrderField = () => {
|
|
|
3317
3331
|
history: { propDisplayName: ORDER_LABEL }
|
|
3318
3332
|
});
|
|
3319
3333
|
const [groupControlValue, setGroupControlValue] = useState10(getGroupControlValue(order?.value || null));
|
|
3334
|
+
useEffect4(() => {
|
|
3335
|
+
const newGroupControlValue = getGroupControlValue(order?.value || null);
|
|
3336
|
+
setGroupControlValue(newGroupControlValue);
|
|
3337
|
+
}, [order?.value]);
|
|
3320
3338
|
const handleToggleButtonChange = (group) => {
|
|
3321
3339
|
setGroupControlValue(group);
|
|
3322
3340
|
if (!group || group === CUSTOM) {
|
|
@@ -4474,7 +4492,7 @@ var EditingPanelTabs = () => {
|
|
|
4474
4492
|
return (
|
|
4475
4493
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
4476
4494
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
4477
|
-
/* @__PURE__ */ React85.createElement(
|
|
4495
|
+
/* @__PURE__ */ React85.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React85.createElement(PanelTabContent, null))
|
|
4478
4496
|
);
|
|
4479
4497
|
};
|
|
4480
4498
|
var PanelTabContent = () => {
|
|
@@ -4509,7 +4527,7 @@ var EditingPanel = () => {
|
|
|
4509
4527
|
return null;
|
|
4510
4528
|
}
|
|
4511
4529
|
const panelTitle = __62("Edit %s", "elementor").replace("%s", elementType.title);
|
|
4512
|
-
return /* @__PURE__ */ React86.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React86.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React86.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React86.createElement(
|
|
4530
|
+
return /* @__PURE__ */ React86.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React86.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React86.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React86.createElement(ThemeProvider3, null, /* @__PURE__ */ React86.createElement(Panel, null, /* @__PURE__ */ React86.createElement(PanelHeader, null, /* @__PURE__ */ React86.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React86.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React86.createElement(PanelBody, null, /* @__PURE__ */ React86.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React86.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React86.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React86.createElement(EditingPanelTabs, null)))))))));
|
|
4513
4531
|
};
|
|
4514
4532
|
|
|
4515
4533
|
// src/panel.ts
|
|
@@ -4518,12 +4536,12 @@ var { panel, usePanelActions, usePanelStatus } = createPanel({
|
|
|
4518
4536
|
component: EditingPanel
|
|
4519
4537
|
});
|
|
4520
4538
|
|
|
4521
|
-
// src/components/popover-
|
|
4539
|
+
// src/components/popover-body.tsx
|
|
4522
4540
|
import * as React87 from "react";
|
|
4523
|
-
import {
|
|
4524
|
-
var
|
|
4541
|
+
import { PopoverBody as BasePopoverBody } from "@elementor/editor-ui";
|
|
4542
|
+
var PopoverBody = (props) => {
|
|
4525
4543
|
const sectionWidth = useSectionWidth();
|
|
4526
|
-
return /* @__PURE__ */ React87.createElement(
|
|
4544
|
+
return /* @__PURE__ */ React87.createElement(BasePopoverBody, { ...props, width: sectionWidth });
|
|
4527
4545
|
};
|
|
4528
4546
|
|
|
4529
4547
|
// src/init.ts
|
|
@@ -4532,7 +4550,7 @@ import { __registerPanel as registerPanel } from "@elementor/editor-panels";
|
|
|
4532
4550
|
import { blockCommand, isExperimentActive as isExperimentActive18 } from "@elementor/editor-v1-adapters";
|
|
4533
4551
|
|
|
4534
4552
|
// src/hooks/use-open-editor-panel.ts
|
|
4535
|
-
import { useEffect as
|
|
4553
|
+
import { useEffect as useEffect5 } from "react";
|
|
4536
4554
|
import { __privateListenTo as listenTo, commandStartEvent } from "@elementor/editor-v1-adapters";
|
|
4537
4555
|
|
|
4538
4556
|
// src/sync/is-atomic-widget-selected.ts
|
|
@@ -4549,7 +4567,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
4549
4567
|
// src/hooks/use-open-editor-panel.ts
|
|
4550
4568
|
var useOpenEditorPanel = () => {
|
|
4551
4569
|
const { open } = usePanelActions();
|
|
4552
|
-
|
|
4570
|
+
useEffect5(() => {
|
|
4553
4571
|
return listenTo(commandStartEvent("panel/editor/open"), () => {
|
|
4554
4572
|
if (isAtomicWidgetSelected()) {
|
|
4555
4573
|
open();
|
|
@@ -4674,12 +4692,12 @@ var Content = ({ rawValue }) => {
|
|
|
4674
4692
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
4675
4693
|
import * as React91 from "react";
|
|
4676
4694
|
import { ControlFormLabel as ControlFormLabel5, useBoundProp as useBoundProp6 } from "@elementor/editor-controls";
|
|
4677
|
-
import { PopoverHeader as PopoverHeader3
|
|
4695
|
+
import { PopoverHeader as PopoverHeader3 } from "@elementor/editor-ui";
|
|
4678
4696
|
import { DatabaseIcon as DatabaseIcon3, SettingsIcon, XIcon } from "@elementor/icons";
|
|
4679
4697
|
import {
|
|
4680
4698
|
bindPopover as bindPopover2,
|
|
4681
4699
|
bindTrigger as bindTrigger2,
|
|
4682
|
-
Box as
|
|
4700
|
+
Box as Box7,
|
|
4683
4701
|
Divider as Divider8,
|
|
4684
4702
|
Grid as Grid5,
|
|
4685
4703
|
IconButton as IconButton5,
|
|
@@ -4729,12 +4747,12 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
4729
4747
|
};
|
|
4730
4748
|
|
|
4731
4749
|
// src/dynamics/components/dynamic-selection.tsx
|
|
4732
|
-
import { Fragment as
|
|
4750
|
+
import { Fragment as Fragment11, useState as useState13 } from "react";
|
|
4733
4751
|
import * as React90 from "react";
|
|
4734
4752
|
import { useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
|
|
4735
4753
|
import { PopoverHeader as PopoverHeader2, PopoverMenuList, PopoverSearch } from "@elementor/editor-ui";
|
|
4736
4754
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
4737
|
-
import {
|
|
4755
|
+
import { Divider as Divider7, Link as Link2, Stack as Stack16, Typography as Typography5, useTheme as useTheme3 } from "@elementor/ui";
|
|
4738
4756
|
import { __ as __63 } from "@wordpress/i18n";
|
|
4739
4757
|
var SIZE6 = "tiny";
|
|
4740
4758
|
var DynamicSelection = ({ close: closePopover }) => {
|
|
@@ -4770,21 +4788,21 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
4770
4788
|
label: item.label
|
|
4771
4789
|
}))
|
|
4772
4790
|
]);
|
|
4773
|
-
return /* @__PURE__ */ React90.createElement(
|
|
4791
|
+
return /* @__PURE__ */ React90.createElement(PopoverBody, null, /* @__PURE__ */ React90.createElement(
|
|
4774
4792
|
PopoverHeader2,
|
|
4775
4793
|
{
|
|
4776
4794
|
title: __63("Dynamic tags", "elementor"),
|
|
4777
4795
|
onClose: closePopover,
|
|
4778
4796
|
icon: /* @__PURE__ */ React90.createElement(DatabaseIcon2, { fontSize: SIZE6 })
|
|
4779
4797
|
}
|
|
4780
|
-
),
|
|
4798
|
+
), hasNoDynamicTags ? /* @__PURE__ */ React90.createElement(NoDynamicTags, null) : /* @__PURE__ */ React90.createElement(Fragment11, null, /* @__PURE__ */ React90.createElement(
|
|
4781
4799
|
PopoverSearch,
|
|
4782
4800
|
{
|
|
4783
4801
|
value: searchValue,
|
|
4784
4802
|
onSearch: handleSearch,
|
|
4785
4803
|
placeholder: __63("Search dynamic tags\u2026", "elementor")
|
|
4786
4804
|
}
|
|
4787
|
-
), /* @__PURE__ */ React90.createElement(Divider7, null), /* @__PURE__ */ React90.createElement(
|
|
4805
|
+
), /* @__PURE__ */ React90.createElement(Divider7, null), /* @__PURE__ */ React90.createElement(
|
|
4788
4806
|
PopoverMenuList,
|
|
4789
4807
|
{
|
|
4790
4808
|
items: virtualizedItems,
|
|
@@ -4794,7 +4812,7 @@ var DynamicSelection = ({ close: closePopover }) => {
|
|
|
4794
4812
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
4795
4813
|
noResultsComponent: /* @__PURE__ */ React90.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
4796
4814
|
}
|
|
4797
|
-
)))
|
|
4815
|
+
)));
|
|
4798
4816
|
};
|
|
4799
4817
|
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElement(
|
|
4800
4818
|
Stack16,
|
|
@@ -4811,7 +4829,7 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React90.createElem
|
|
|
4811
4829
|
/* @__PURE__ */ React90.createElement(Typography5, { align: "center", variant: "subtitle2" }, __63("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React90.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
4812
4830
|
/* @__PURE__ */ React90.createElement(Typography5, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __63("Try something else.", "elementor"), /* @__PURE__ */ React90.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __63("Clear & try again", "elementor")))
|
|
4813
4831
|
);
|
|
4814
|
-
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(
|
|
4832
|
+
var NoDynamicTags = () => /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(Divider7, null), /* @__PURE__ */ React90.createElement(
|
|
4815
4833
|
Stack16,
|
|
4816
4834
|
{
|
|
4817
4835
|
gap: 1,
|
|
@@ -4857,7 +4875,7 @@ var DynamicSelectionControl = () => {
|
|
|
4857
4875
|
if (!dynamicTag) {
|
|
4858
4876
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
4859
4877
|
}
|
|
4860
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4878
|
+
return /* @__PURE__ */ React91.createElement(Box7, null, /* @__PURE__ */ React91.createElement(
|
|
4861
4879
|
Tag,
|
|
4862
4880
|
{
|
|
4863
4881
|
fullWidth: true,
|
|
@@ -4887,7 +4905,7 @@ var DynamicSelectionControl = () => {
|
|
|
4887
4905
|
},
|
|
4888
4906
|
...bindPopover2(selectionPopoverState)
|
|
4889
4907
|
},
|
|
4890
|
-
/* @__PURE__ */ React91.createElement(
|
|
4908
|
+
/* @__PURE__ */ React91.createElement(PopoverBody, null, /* @__PURE__ */ React91.createElement(DynamicSelection, { close: selectionPopoverState.close }))
|
|
4891
4909
|
));
|
|
4892
4910
|
};
|
|
4893
4911
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
@@ -4901,21 +4919,21 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
4901
4919
|
{
|
|
4902
4920
|
disablePortal: true,
|
|
4903
4921
|
disableScrollLock: true,
|
|
4904
|
-
anchorOrigin: { vertical: "bottom", horizontal: "
|
|
4922
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
4923
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
4905
4924
|
PaperProps: {
|
|
4906
|
-
sx: { my:
|
|
4925
|
+
sx: { my: 1 }
|
|
4907
4926
|
},
|
|
4908
4927
|
...bindPopover2(popupState)
|
|
4909
4928
|
},
|
|
4910
|
-
/* @__PURE__ */ React91.createElement(
|
|
4929
|
+
/* @__PURE__ */ React91.createElement(PopoverBody, null, /* @__PURE__ */ React91.createElement(
|
|
4911
4930
|
PopoverHeader3,
|
|
4912
4931
|
{
|
|
4913
4932
|
title: dynamicTag.label,
|
|
4914
4933
|
onClose: popupState.close,
|
|
4915
4934
|
icon: /* @__PURE__ */ React91.createElement(DatabaseIcon3, { fontSize: SIZE7 })
|
|
4916
4935
|
}
|
|
4917
|
-
),
|
|
4918
|
-
/* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls })
|
|
4936
|
+
), /* @__PURE__ */ React91.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
4919
4937
|
));
|
|
4920
4938
|
};
|
|
4921
4939
|
var DynamicSettings = ({ controls }) => {
|
|
@@ -4924,13 +4942,21 @@ var DynamicSettings = ({ controls }) => {
|
|
|
4924
4942
|
if (!tabs.length) {
|
|
4925
4943
|
return null;
|
|
4926
4944
|
}
|
|
4927
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4928
|
-
return /* @__PURE__ */ React91.createElement(
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4945
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React91.createElement(Tab2, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React91.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
4946
|
+
return /* @__PURE__ */ React91.createElement(
|
|
4947
|
+
TabPanel2,
|
|
4948
|
+
{
|
|
4949
|
+
key: index,
|
|
4950
|
+
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
4951
|
+
...getTabPanelProps(index)
|
|
4952
|
+
},
|
|
4953
|
+
/* @__PURE__ */ React91.createElement(Stack17, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
4954
|
+
if (item.type === "control") {
|
|
4955
|
+
return /* @__PURE__ */ React91.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
4956
|
+
}
|
|
4957
|
+
return null;
|
|
4958
|
+
}))
|
|
4959
|
+
);
|
|
4934
4960
|
}));
|
|
4935
4961
|
};
|
|
4936
4962
|
var Control3 = ({ control }) => {
|
|
@@ -5041,7 +5067,7 @@ function initResetStyleProps() {
|
|
|
5041
5067
|
useProps: useResetStyleValueProps
|
|
5042
5068
|
});
|
|
5043
5069
|
}
|
|
5044
|
-
var EXCLUDED_BINDS = ["
|
|
5070
|
+
var EXCLUDED_BINDS = ["flex-grow", "flex-shrink", "flex-basis"];
|
|
5045
5071
|
function useResetStyleValueProps() {
|
|
5046
5072
|
const isStyle = useIsStyle();
|
|
5047
5073
|
const { value, setValue, path, bind } = useBoundProp8();
|
|
@@ -5210,7 +5236,7 @@ var blockV1Panel = () => {
|
|
|
5210
5236
|
};
|
|
5211
5237
|
export {
|
|
5212
5238
|
EXPERIMENTAL_FEATURES,
|
|
5213
|
-
|
|
5239
|
+
PopoverBody,
|
|
5214
5240
|
controlActionsMenu,
|
|
5215
5241
|
init3 as init,
|
|
5216
5242
|
injectIntoClassSelectorActions,
|