@elementor/editor-editing-panel 4.4.1 → 4.4.2
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 +21 -33
- package/dist/index.d.ts +21 -33
- package/dist/index.js +360 -682
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +224 -554
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -25
- package/src/components/css-classes/css-class-menu.tsx +1 -4
- package/src/components/css-classes/css-class-selector.tsx +0 -3
- package/src/components/section.tsx +1 -19
- package/src/components/style-tab-section.tsx +0 -6
- package/src/components/style-tab.tsx +0 -3
- package/src/controls-registry/controls-registry.tsx +1 -1
- package/src/controls-registry/element-controls/registry.ts +0 -2
- package/src/index.ts +0 -7
- package/src/init.ts +0 -3
- package/src/components/custom-css-header-location.tsx +0 -11
- package/src/components/style-section-header-location.tsx +0 -29
- package/src/components/style-tab-header-location.tsx +0 -12
- package/src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx +0 -188
- package/src/controls-registry/element-controls/menu-items-control/use-actions.ts +0 -126
- package/src/controls-registry/element-controls/menu-items-control/use-entry-item.ts +0 -33
- package/src/hooks/use-broadcast-style-state.ts +0 -20
package/dist/index.mjs
CHANGED
|
@@ -507,7 +507,7 @@ import {
|
|
|
507
507
|
} from "@elementor/editor-styles-repository";
|
|
508
508
|
import { InfoAlert, WarningInfotip } from "@elementor/editor-ui";
|
|
509
509
|
import { ColorSwatchIcon, MapPinIcon } from "@elementor/icons";
|
|
510
|
-
import { createLocation as
|
|
510
|
+
import { createLocation as createLocation2 } from "@elementor/locations";
|
|
511
511
|
import {
|
|
512
512
|
Box as Box2,
|
|
513
513
|
Button,
|
|
@@ -560,14 +560,6 @@ var trackStyles = (provider, event, data) => {
|
|
|
560
560
|
providerInstance?.actions.tracking?.({ event, ...data });
|
|
561
561
|
};
|
|
562
562
|
|
|
563
|
-
// src/components/style-tab-header-location.tsx
|
|
564
|
-
import { createLocation as createLocation2 } from "@elementor/locations";
|
|
565
|
-
var {
|
|
566
|
-
Slot: StyleTabHeaderSlot,
|
|
567
|
-
inject: injectIntoStyleTabHeader,
|
|
568
|
-
useInjections: useStyleTabHeaderInjections
|
|
569
|
-
} = createLocation2();
|
|
570
|
-
|
|
571
563
|
// src/components/css-classes/css-class-item.tsx
|
|
572
564
|
import * as React11 from "react";
|
|
573
565
|
import { useEffect, useMemo as useMemo3, useState as useState3 } from "react";
|
|
@@ -1027,9 +1019,6 @@ var CLASS_STATES_MAP = {
|
|
|
1027
1019
|
},
|
|
1028
1020
|
disabled: {
|
|
1029
1021
|
label: __5("disabled", "elementor")
|
|
1030
|
-
},
|
|
1031
|
-
current: {
|
|
1032
|
-
label: __5("current", "elementor")
|
|
1033
1022
|
}
|
|
1034
1023
|
};
|
|
1035
1024
|
function useElementStates() {
|
|
@@ -1038,7 +1027,7 @@ function useElementStates() {
|
|
|
1038
1027
|
const elementStates = styleStates.map(({ value, name }) => ({
|
|
1039
1028
|
key: value,
|
|
1040
1029
|
value,
|
|
1041
|
-
label: CLASS_STATES_MAP[
|
|
1030
|
+
label: CLASS_STATES_MAP[value]?.label ?? name
|
|
1042
1031
|
}));
|
|
1043
1032
|
return {
|
|
1044
1033
|
elementStates,
|
|
@@ -1354,9 +1343,8 @@ var EMPTY_OPTION = {
|
|
|
1354
1343
|
icon: /* @__PURE__ */ React13.createElement(MapPinIcon, null),
|
|
1355
1344
|
provider: null
|
|
1356
1345
|
};
|
|
1357
|
-
var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } =
|
|
1346
|
+
var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = createLocation2();
|
|
1358
1347
|
function CssClassSelector() {
|
|
1359
|
-
const { element } = useElement();
|
|
1360
1348
|
const options13 = useOptions();
|
|
1361
1349
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
1362
1350
|
const autocompleteRef = useRef(null);
|
|
@@ -1374,7 +1362,7 @@ function CssClassSelector() {
|
|
|
1374
1362
|
const clearMissingClasses = useCallback2(() => {
|
|
1375
1363
|
unapplyClasses(missingClassesIds);
|
|
1376
1364
|
}, [missingClassesIds, unapplyClasses]);
|
|
1377
|
-
return /* @__PURE__ */ React13.createElement(Stack4, { p: 2 }, /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(FormLabel, { htmlFor: ID, size: "small" }, __8("Classes", "elementor")), /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(
|
|
1365
|
+
return /* @__PURE__ */ React13.createElement(Stack4, { p: 2 }, /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(FormLabel, { htmlFor: ID, size: "small" }, __8("Classes", "elementor")), /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
|
|
1378
1366
|
WarningInfotip,
|
|
1379
1367
|
{
|
|
1380
1368
|
open: Boolean(renameError),
|
|
@@ -1946,7 +1934,7 @@ import { useSelectedElementSettings } from "@elementor/editor-elements";
|
|
|
1946
1934
|
import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
|
|
1947
1935
|
import { ThemeProvider as ThemeProvider3 } from "@elementor/editor-ui";
|
|
1948
1936
|
import { AtomIcon } from "@elementor/icons";
|
|
1949
|
-
import { createLocation as
|
|
1937
|
+
import { createLocation as createLocation5 } from "@elementor/locations";
|
|
1950
1938
|
import { controlActionsMenu } from "@elementor/menus";
|
|
1951
1939
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1952
1940
|
import { ErrorBoundary } from "@elementor/ui";
|
|
@@ -2390,15 +2378,7 @@ import * as React21 from "react";
|
|
|
2390
2378
|
import { useId as useId2, useRef as useRef3 } from "react";
|
|
2391
2379
|
import { CollapseIcon, getCollapsibleValue, SectionRefContext } from "@elementor/editor-ui";
|
|
2392
2380
|
import { Collapse, Divider as Divider2, ListItemButton, ListItemText, Stack as Stack5 } from "@elementor/ui";
|
|
2393
|
-
function Section({
|
|
2394
|
-
title,
|
|
2395
|
-
children,
|
|
2396
|
-
defaultExpanded = false,
|
|
2397
|
-
titleEnd,
|
|
2398
|
-
titleActions,
|
|
2399
|
-
unmountOnExit = true,
|
|
2400
|
-
action
|
|
2401
|
-
}) {
|
|
2381
|
+
function Section({ title, children, defaultExpanded = false, titleEnd, unmountOnExit = true, action }) {
|
|
2402
2382
|
const [isOpen, setIsOpen] = useStateByElement(title, !!defaultExpanded);
|
|
2403
2383
|
const ref = useRef3(null);
|
|
2404
2384
|
const isDisabled = !!action;
|
|
@@ -2428,15 +2408,7 @@ function Section({
|
|
|
2428
2408
|
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
|
|
2429
2409
|
sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
|
|
2430
2410
|
}
|
|
2431
|
-
), getCollapsibleValue(titleEnd, isOpen),
|
|
2432
|
-
Stack5,
|
|
2433
|
-
{
|
|
2434
|
-
direction: "row",
|
|
2435
|
-
alignItems: "center",
|
|
2436
|
-
onClick: (event) => event.stopPropagation()
|
|
2437
|
-
},
|
|
2438
|
-
titleActions
|
|
2439
|
-
)),
|
|
2411
|
+
), getCollapsibleValue(titleEnd, isOpen)),
|
|
2440
2412
|
action?.component,
|
|
2441
2413
|
/* @__PURE__ */ React21.createElement(
|
|
2442
2414
|
CollapseIcon,
|
|
@@ -2546,7 +2518,7 @@ var controlTypes = {
|
|
|
2546
2518
|
toggle: { component: ToggleControl, layout: "full", propTypeUtil: stringPropTypeUtil2 },
|
|
2547
2519
|
"date-time": { component: DateTimeControl, layout: "full", propTypeUtil: DateTimePropTypeUtil },
|
|
2548
2520
|
video: { component: VideoMediaControl, layout: "full", propTypeUtil: videoSrcPropTypeUtil },
|
|
2549
|
-
"inline-editing": { component: InlineEditingControl, layout: "
|
|
2521
|
+
"inline-editing": { component: InlineEditingControl, layout: "full", propTypeUtil: escapedHtmlPropTypeUtil },
|
|
2550
2522
|
email: { component: EmailFormActionControl, layout: "custom", propTypeUtil: emailsPropTypeUtil },
|
|
2551
2523
|
"date-range": {
|
|
2552
2524
|
component: DateRangeControl,
|
|
@@ -2912,7 +2884,7 @@ import * as React91 from "react";
|
|
|
2912
2884
|
import { useState as useState10 } from "react";
|
|
2913
2885
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2914
2886
|
import { useActiveBreakpoint as useActiveBreakpoint2 } from "@elementor/editor-responsive";
|
|
2915
|
-
import { createLocation as
|
|
2887
|
+
import { createLocation as createLocation4 } from "@elementor/locations";
|
|
2916
2888
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
2917
2889
|
import { Box as Box8, Divider as Divider5, Stack as Stack13 } from "@elementor/ui";
|
|
2918
2890
|
|
|
@@ -3267,20 +3239,6 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
3267
3239
|
return isClassApplied ? id : null;
|
|
3268
3240
|
}
|
|
3269
3241
|
|
|
3270
|
-
// src/hooks/use-broadcast-style-state.ts
|
|
3271
|
-
import { useEffect as useEffect4 } from "react";
|
|
3272
|
-
var STYLE_STATE_EVENT = "elementor/editor/style-state/change";
|
|
3273
|
-
function broadcast(id, state) {
|
|
3274
|
-
window.dispatchEvent(new CustomEvent(STYLE_STATE_EVENT, { detail: { id, state } }));
|
|
3275
|
-
}
|
|
3276
|
-
function useBroadcastStyleState(state) {
|
|
3277
|
-
const { element } = useElement();
|
|
3278
|
-
useEffect4(() => {
|
|
3279
|
-
broadcast(element.id, state);
|
|
3280
|
-
return () => broadcast(element.id, null);
|
|
3281
|
-
}, [element.id, state]);
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
3242
|
// src/components/style-sections.tsx
|
|
3285
3243
|
import * as React90 from "react";
|
|
3286
3244
|
|
|
@@ -3309,7 +3267,7 @@ function useStylesField(propName, meta) {
|
|
|
3309
3267
|
}
|
|
3310
3268
|
|
|
3311
3269
|
// src/controls-registry/conditional-field.tsx
|
|
3312
|
-
import { useEffect as
|
|
3270
|
+
import { useEffect as useEffect4, useRef as useRef4 } from "react";
|
|
3313
3271
|
import { useBoundProp as useBoundProp2 } from "@elementor/editor-controls";
|
|
3314
3272
|
import { isDependency as isDependency2, isDependencyMet as isDependencyMet2 } from "@elementor/editor-props";
|
|
3315
3273
|
var ConditionalField = ({ children }) => {
|
|
@@ -3339,7 +3297,7 @@ function useSyncDepsWithInherited({
|
|
|
3339
3297
|
resetValue
|
|
3340
3298
|
}) {
|
|
3341
3299
|
const syncRef = useRef4({ hasSynced: false, prevDepValues: depValues });
|
|
3342
|
-
|
|
3300
|
+
useEffect4(() => {
|
|
3343
3301
|
const { hasSynced, prevDepValues } = syncRef.current;
|
|
3344
3302
|
if (hasSynced && value && wasDepsCleared(prevDepValues, depValues) || isHidden && depValues && value) {
|
|
3345
3303
|
resetValue();
|
|
@@ -3776,7 +3734,7 @@ var EffectsSection = () => {
|
|
|
3776
3734
|
import * as React62 from "react";
|
|
3777
3735
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3778
3736
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3779
|
-
import { createLocation as
|
|
3737
|
+
import { createLocation as createLocation3 } from "@elementor/locations";
|
|
3780
3738
|
import { __ as __39 } from "@wordpress/i18n";
|
|
3781
3739
|
|
|
3782
3740
|
// src/hooks/use-computed-style.ts
|
|
@@ -4270,7 +4228,7 @@ var FlexDirectionField = () => {
|
|
|
4270
4228
|
|
|
4271
4229
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
4272
4230
|
import * as React51 from "react";
|
|
4273
|
-
import { useEffect as
|
|
4231
|
+
import { useEffect as useEffect5, useMemo as useMemo9, useState as useState8 } from "react";
|
|
4274
4232
|
import {
|
|
4275
4233
|
ControlToggleButtonGroup,
|
|
4276
4234
|
NumberControl as NumberControl2,
|
|
@@ -4325,12 +4283,12 @@ function FlexOrderFieldContent() {
|
|
|
4325
4283
|
const currentGroup = useMemo9(() => getGroupControlValue(order?.value ?? null), [order]);
|
|
4326
4284
|
const [activeGroup, setActiveGroup] = useState8(currentGroup);
|
|
4327
4285
|
const [customLocked, setCustomLocked] = useState8(false);
|
|
4328
|
-
|
|
4286
|
+
useEffect5(() => {
|
|
4329
4287
|
if (!customLocked) {
|
|
4330
4288
|
setActiveGroup(currentGroup);
|
|
4331
4289
|
}
|
|
4332
4290
|
}, [currentGroup, customLocked]);
|
|
4333
|
-
|
|
4291
|
+
useEffect5(() => {
|
|
4334
4292
|
if (order === null) {
|
|
4335
4293
|
setCustomLocked(false);
|
|
4336
4294
|
}
|
|
@@ -4390,7 +4348,7 @@ var getGroupControlValue = (order) => {
|
|
|
4390
4348
|
|
|
4391
4349
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
4392
4350
|
import * as React52 from "react";
|
|
4393
|
-
import { useEffect as
|
|
4351
|
+
import { useEffect as useEffect6, useMemo as useMemo10, useRef as useRef7, useState as useState9 } from "react";
|
|
4394
4352
|
import {
|
|
4395
4353
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
4396
4354
|
NumberControl as NumberControl3,
|
|
@@ -4436,12 +4394,12 @@ var FlexSizeFieldContent = () => {
|
|
|
4436
4394
|
const currentGroup = useMemo10(() => getActiveGroup(flexValues), [flexValues]);
|
|
4437
4395
|
const [activeGroup, setActiveGroup] = useState9(currentGroup);
|
|
4438
4396
|
const [customLocked, setCustomLocked] = useState9(false);
|
|
4439
|
-
|
|
4397
|
+
useEffect6(() => {
|
|
4440
4398
|
if (!customLocked) {
|
|
4441
4399
|
setActiveGroup(currentGroup);
|
|
4442
4400
|
}
|
|
4443
4401
|
}, [currentGroup, customLocked]);
|
|
4444
|
-
|
|
4402
|
+
useEffect6(() => {
|
|
4445
4403
|
if (value === null) {
|
|
4446
4404
|
setCustomLocked(false);
|
|
4447
4405
|
}
|
|
@@ -4983,7 +4941,7 @@ var WrapField = () => {
|
|
|
4983
4941
|
var DISPLAY_LABEL2 = __39("Display", "elementor");
|
|
4984
4942
|
var FLEX_WRAP_LABEL2 = __39("Flex wrap", "elementor");
|
|
4985
4943
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4986
|
-
var { Slot: GridFieldsSlot, inject: injectIntoGridFields } =
|
|
4944
|
+
var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = createLocation3();
|
|
4987
4945
|
var LayoutSection = () => {
|
|
4988
4946
|
const { value: display } = useStylesField("display", {
|
|
4989
4947
|
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
@@ -5024,7 +4982,7 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
5024
4982
|
|
|
5025
4983
|
// src/components/style-sections/position-section/position-section.tsx
|
|
5026
4984
|
import * as React67 from "react";
|
|
5027
|
-
import { useEffect as
|
|
4985
|
+
import { useEffect as useEffect7, useRef as useRef12 } from "react";
|
|
5028
4986
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
5029
4987
|
import { styled as styled6 } from "@elementor/ui";
|
|
5030
4988
|
import { __ as __44 } from "@wordpress/i18n";
|
|
@@ -5151,7 +5109,7 @@ var PositionSection = () => {
|
|
|
5151
5109
|
const positionPrevRef = useRef12(position);
|
|
5152
5110
|
const { values: dependentValues, setValues: setDependentValues } = useStylesFields(DEPENDENT_PROP_NAMES);
|
|
5153
5111
|
const [savedDependentValues, saveToHistory, clearHistory] = usePersistDimensions();
|
|
5154
|
-
|
|
5112
|
+
useEffect7(() => {
|
|
5155
5113
|
if (position && position?.value === POSITION_STATIC && hasDependentValues(dependentValues)) {
|
|
5156
5114
|
saveToHistory(extractDimensions(dependentValues));
|
|
5157
5115
|
}
|
|
@@ -5799,25 +5757,8 @@ var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
|
|
|
5799
5757
|
|
|
5800
5758
|
// src/components/style-tab-section.tsx
|
|
5801
5759
|
import * as React89 from "react";
|
|
5802
|
-
|
|
5803
|
-
// src/components/style-section-header-location.tsx
|
|
5804
|
-
import { createElement as createElement89 } from "react";
|
|
5805
|
-
import { createLocation as createLocation5 } from "@elementor/locations";
|
|
5806
|
-
var { Slot: StyleSectionHeaderSlot, inject: injectStyleSectionHeader } = createLocation5();
|
|
5807
|
-
var injectIntoStyleSectionHeader = ({ id, component, sections, options: options13 }) => {
|
|
5808
|
-
const filteredComponent = (props) => {
|
|
5809
|
-
if (sections && !sections.includes(props.sectionName)) {
|
|
5810
|
-
return null;
|
|
5811
|
-
}
|
|
5812
|
-
return createElement89(component, props);
|
|
5813
|
-
};
|
|
5814
|
-
injectStyleSectionHeader({ id, component: filteredComponent, options: options13 });
|
|
5815
|
-
};
|
|
5816
|
-
|
|
5817
|
-
// src/components/style-tab-section.tsx
|
|
5818
5760
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5819
5761
|
const { component, name, title, action } = section;
|
|
5820
|
-
const { element } = useElement();
|
|
5821
5762
|
const tabDefaults = useDefaultPanelSettings();
|
|
5822
5763
|
const SectionComponent = component || (() => /* @__PURE__ */ React89.createElement(React89.Fragment, null));
|
|
5823
5764
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
@@ -5827,7 +5768,6 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5827
5768
|
title,
|
|
5828
5769
|
defaultExpanded: isExpanded,
|
|
5829
5770
|
titleEnd: getStylesInheritanceIndicators(fields),
|
|
5830
|
-
titleActions: element ? /* @__PURE__ */ React89.createElement(StyleSectionHeaderSlot, { elementId: element.id, sectionName: name }) : void 0,
|
|
5831
5771
|
unmountOnExit,
|
|
5832
5772
|
action
|
|
5833
5773
|
},
|
|
@@ -5853,7 +5793,7 @@ var StyleSections = () => {
|
|
|
5853
5793
|
|
|
5854
5794
|
// src/components/style-tab.tsx
|
|
5855
5795
|
var TABS_HEADER_HEIGHT = "37px";
|
|
5856
|
-
var { Slot: StyleTabSlot, inject: injectIntoStyleTab } =
|
|
5796
|
+
var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = createLocation4();
|
|
5857
5797
|
var stickyHeaderStyles = {
|
|
5858
5798
|
position: "sticky",
|
|
5859
5799
|
zIndex: 1100,
|
|
@@ -5866,7 +5806,6 @@ var StyleTab = () => {
|
|
|
5866
5806
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
|
|
5867
5807
|
const [activeStyleState, setActiveStyleState] = useState10(null);
|
|
5868
5808
|
const breakpoint = useActiveBreakpoint2();
|
|
5869
|
-
useBroadcastStyleState(activeStyleState);
|
|
5870
5809
|
if (!currentClassesProp) {
|
|
5871
5810
|
return null;
|
|
5872
5811
|
}
|
|
@@ -5985,7 +5924,7 @@ var resolveCurrentTab = ({
|
|
|
5985
5924
|
};
|
|
5986
5925
|
|
|
5987
5926
|
// src/components/editing-panel.tsx
|
|
5988
|
-
var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } =
|
|
5927
|
+
var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = createLocation5();
|
|
5989
5928
|
var { useMenuItems } = controlActionsMenu;
|
|
5990
5929
|
var EditingPanel = () => {
|
|
5991
5930
|
const { element, elementType, settings } = useSelectedElementSettings();
|
|
@@ -6035,22 +5974,13 @@ function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
|
|
|
6035
5974
|
)));
|
|
6036
5975
|
}
|
|
6037
5976
|
|
|
6038
|
-
// src/components/custom-css-header-location.tsx
|
|
6039
|
-
import { createLocation as createLocation8 } from "@elementor/locations";
|
|
6040
|
-
var {
|
|
6041
|
-
Slot: CustomCssHeaderSlot,
|
|
6042
|
-
inject: injectIntoCustomCssHeader,
|
|
6043
|
-
useInjections: useCustomCssHeaderInjections
|
|
6044
|
-
} = createLocation8();
|
|
6045
|
-
|
|
6046
5977
|
// src/init.ts
|
|
6047
5978
|
import { injectIntoLogic } from "@elementor/editor";
|
|
6048
|
-
import { init as initEditorControls } from "@elementor/editor-controls";
|
|
6049
5979
|
import { registerPanel } from "@elementor/editor-panels";
|
|
6050
5980
|
import { blockCommand } from "@elementor/editor-v1-adapters";
|
|
6051
5981
|
|
|
6052
5982
|
// src/hooks/use-open-editor-panel.ts
|
|
6053
|
-
import { useEffect as
|
|
5983
|
+
import { useEffect as useEffect8 } from "react";
|
|
6054
5984
|
import { __privateListenTo as listenTo, commandStartEvent } from "@elementor/editor-v1-adapters";
|
|
6055
5985
|
|
|
6056
5986
|
// src/panel.ts
|
|
@@ -6074,7 +6004,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
6074
6004
|
// src/hooks/use-open-editor-panel.ts
|
|
6075
6005
|
var useOpenEditorPanel = () => {
|
|
6076
6006
|
const { open } = usePanelActions();
|
|
6077
|
-
|
|
6007
|
+
useEffect8(() => {
|
|
6078
6008
|
return listenTo(commandStartEvent("panel/editor/open"), () => {
|
|
6079
6009
|
if (isAtomicWidgetSelected()) {
|
|
6080
6010
|
open();
|
|
@@ -6312,7 +6242,7 @@ var useActions = () => {
|
|
|
6312
6242
|
};
|
|
6313
6243
|
|
|
6314
6244
|
// src/controls-registry/element-controls/accordion-items-control/use-show-icon-write-through.ts
|
|
6315
|
-
import { useEffect as
|
|
6245
|
+
import { useEffect as useEffect9, useRef as useRef20 } from "react";
|
|
6316
6246
|
import { getContainer as getContainer4, getElementSettings as getElementSettings2, updateElementSettings as updateElementSettings4 } from "@elementor/editor-elements";
|
|
6317
6247
|
import { booleanPropTypeUtil as booleanPropTypeUtil3 } from "@elementor/editor-props";
|
|
6318
6248
|
import { undoable as undoable5 } from "@elementor/editor-v1-adapters";
|
|
@@ -6419,7 +6349,7 @@ var cascadeDifferentOpenIconToHeaders = undoable5(
|
|
|
6419
6349
|
);
|
|
6420
6350
|
function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
|
|
6421
6351
|
const previousRef = useRef20(null);
|
|
6422
|
-
|
|
6352
|
+
useEffect9(() => {
|
|
6423
6353
|
const previous = previousRef.current;
|
|
6424
6354
|
previousRef.current = { accordionId, differentOpenIcon };
|
|
6425
6355
|
if (!previous || previous.accordionId !== accordionId || previous.differentOpenIcon === differentOpenIcon) {
|
|
@@ -6430,7 +6360,7 @@ function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
|
|
|
6430
6360
|
}
|
|
6431
6361
|
function useShowIconWriteThrough(accordionId, showIcon) {
|
|
6432
6362
|
const previousRef = useRef20(null);
|
|
6433
|
-
|
|
6363
|
+
useEffect9(() => {
|
|
6434
6364
|
const previous = previousRef.current;
|
|
6435
6365
|
previousRef.current = { accordionId, showIcon };
|
|
6436
6366
|
if (!previous || previous.accordionId !== accordionId || previous.showIcon === showIcon) {
|
|
@@ -6680,7 +6610,7 @@ var addItem = ({
|
|
|
6680
6610
|
};
|
|
6681
6611
|
|
|
6682
6612
|
// src/controls-registry/element-controls/list-items-control/use-show-markers-write-through.ts
|
|
6683
|
-
import { useEffect as
|
|
6613
|
+
import { useEffect as useEffect10, useRef as useRef21 } from "react";
|
|
6684
6614
|
import { getContainer as getContainer6, getElementSettings as getElementSettings3, updateElementSettings as updateElementSettings5 } from "@elementor/editor-elements";
|
|
6685
6615
|
import { booleanPropTypeUtil as booleanPropTypeUtil6 } from "@elementor/editor-props";
|
|
6686
6616
|
import { undoable as undoable6 } from "@elementor/editor-v1-adapters";
|
|
@@ -6733,7 +6663,7 @@ function getListItemIds(listId) {
|
|
|
6733
6663
|
}
|
|
6734
6664
|
function useShowMarkersWriteThrough(listId, showMarkers) {
|
|
6735
6665
|
const previousRef = useRef21(null);
|
|
6736
|
-
|
|
6666
|
+
useEffect10(() => {
|
|
6737
6667
|
const previous = previousRef.current;
|
|
6738
6668
|
previousRef.current = { listId, showMarkers };
|
|
6739
6669
|
if (!previous || previous.listId !== listId || previous.showMarkers === showMarkers) {
|
|
@@ -6844,18 +6774,21 @@ var ListItemLabelControl = ({ elementId, fallbackLabel }) => {
|
|
|
6844
6774
|
));
|
|
6845
6775
|
};
|
|
6846
6776
|
|
|
6847
|
-
// src/controls-registry/element-controls/
|
|
6777
|
+
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
6848
6778
|
import * as React98 from "react";
|
|
6849
|
-
import { useId as useId3 } from "react";
|
|
6850
|
-
import { ControlFormLabel as ControlFormLabel5, Repeater as Repeater3 } from "@elementor/editor-controls";
|
|
6851
6779
|
import {
|
|
6852
|
-
|
|
6780
|
+
ControlFormLabel as ControlFormLabel5,
|
|
6781
|
+
Repeater as Repeater3,
|
|
6782
|
+
useBoundProp as useBoundProp8
|
|
6783
|
+
} from "@elementor/editor-controls";
|
|
6784
|
+
import {
|
|
6853
6785
|
updateElementEditorSettings as updateElementEditorSettings4,
|
|
6854
6786
|
useElementChildren as useElementChildren3,
|
|
6855
6787
|
useElementEditorSettings as useElementEditorSettings4
|
|
6856
6788
|
} from "@elementor/editor-elements";
|
|
6857
|
-
import {
|
|
6858
|
-
import {
|
|
6789
|
+
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
6790
|
+
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
6791
|
+
import { Alert as Alert5, Chip as Chip4, Infotip as Infotip3, Stack as Stack17, Switch as Switch2, TextField as TextField4, Typography as Typography5 } from "@elementor/ui";
|
|
6859
6792
|
import { __ as __76 } from "@wordpress/i18n";
|
|
6860
6793
|
|
|
6861
6794
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
@@ -6871,277 +6804,20 @@ var getElementByType = (elementId, type) => {
|
|
|
6871
6804
|
return currentElement.children?.findRecursive?.((child) => child.model.get("elType") === type) ?? null;
|
|
6872
6805
|
};
|
|
6873
6806
|
|
|
6874
|
-
// src/controls-registry/element-controls/
|
|
6807
|
+
// src/controls-registry/element-controls/tabs-control/use-actions.ts
|
|
6808
|
+
import { useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
|
|
6875
6809
|
import {
|
|
6876
6810
|
createElements as createElements3,
|
|
6877
6811
|
duplicateElements as duplicateElements3,
|
|
6878
|
-
generateElementId as generateElementId3,
|
|
6879
6812
|
getContainer as getContainer8,
|
|
6880
6813
|
moveElements as moveElements3,
|
|
6881
6814
|
removeElements as removeElements3
|
|
6882
6815
|
} from "@elementor/editor-elements";
|
|
6883
|
-
import { escapedHtmlPropTypeUtil as escapedHtmlPropTypeUtil4 } from "@elementor/editor-props";
|
|
6884
|
-
import { __ as __75 } from "@wordpress/i18n";
|
|
6885
|
-
var MENU_ITEMS_ELEMENT_TYPE = "e-menu-items";
|
|
6886
|
-
var MENU_ENTRY_ELEMENT_TYPE = "e-menu-entry";
|
|
6887
|
-
var MENU_ITEM_ELEMENT_TYPE = "e-menu-item";
|
|
6888
|
-
var MIN_ENTRIES = 1;
|
|
6889
|
-
var PARAGRAPH_WIDGET_TYPE3 = "e-paragraph";
|
|
6890
|
-
var getEntryTitle = () => __75("Menu item", "elementor");
|
|
6891
|
-
var buildEntryModel = (title) => ({
|
|
6892
|
-
elType: MENU_ENTRY_ELEMENT_TYPE,
|
|
6893
|
-
id: generateElementId3(),
|
|
6894
|
-
editor_settings: { title },
|
|
6895
|
-
elements: [
|
|
6896
|
-
{
|
|
6897
|
-
elType: MENU_ITEM_ELEMENT_TYPE,
|
|
6898
|
-
id: generateElementId3(),
|
|
6899
|
-
elements: [
|
|
6900
|
-
{
|
|
6901
|
-
elType: "widget",
|
|
6902
|
-
widgetType: PARAGRAPH_WIDGET_TYPE3,
|
|
6903
|
-
id: generateElementId3(),
|
|
6904
|
-
elements: [],
|
|
6905
|
-
settings: {
|
|
6906
|
-
paragraph: escapedHtmlPropTypeUtil4.create(title),
|
|
6907
|
-
tag: { $$type: "string", value: "span" }
|
|
6908
|
-
}
|
|
6909
|
-
}
|
|
6910
|
-
]
|
|
6911
|
-
}
|
|
6912
|
-
]
|
|
6913
|
-
});
|
|
6914
|
-
var useActions2 = () => {
|
|
6915
|
-
const addItem2 = ({ menuItemsId, items: items3 }) => {
|
|
6916
|
-
const menuItems = getContainer8(menuItemsId);
|
|
6917
|
-
if (!menuItems) {
|
|
6918
|
-
throw new Error("Menu items container not found");
|
|
6919
|
-
}
|
|
6920
|
-
items3.forEach(() => {
|
|
6921
|
-
createElements3({
|
|
6922
|
-
title: __75("Menu", "elementor"),
|
|
6923
|
-
elements: [
|
|
6924
|
-
{
|
|
6925
|
-
container: menuItems,
|
|
6926
|
-
model: buildEntryModel(getEntryTitle())
|
|
6927
|
-
}
|
|
6928
|
-
]
|
|
6929
|
-
});
|
|
6930
|
-
});
|
|
6931
|
-
};
|
|
6932
|
-
const removeItem2 = ({ menuItemsId, items: items3 }) => {
|
|
6933
|
-
const entriesCount = getContainer8(menuItemsId)?.children?.filter(
|
|
6934
|
-
(child) => child.model.get("elType") === MENU_ENTRY_ELEMENT_TYPE
|
|
6935
|
-
).length ?? 0;
|
|
6936
|
-
const removableCount = Math.max(0, Math.min(items3.length, entriesCount - MIN_ENTRIES));
|
|
6937
|
-
if (removableCount === 0) {
|
|
6938
|
-
return;
|
|
6939
|
-
}
|
|
6940
|
-
removeElements3({
|
|
6941
|
-
title: __75("Menu", "elementor"),
|
|
6942
|
-
elementIds: items3.slice(0, removableCount).map(({ item }) => item.id)
|
|
6943
|
-
});
|
|
6944
|
-
};
|
|
6945
|
-
const duplicateItem2 = ({ items: items3 }) => {
|
|
6946
|
-
duplicateElements3({
|
|
6947
|
-
title: __75("Duplicate Menu item", "elementor"),
|
|
6948
|
-
elementIds: items3.map(({ item }) => item.id)
|
|
6949
|
-
});
|
|
6950
|
-
};
|
|
6951
|
-
const moveItem2 = ({
|
|
6952
|
-
menuItemsId,
|
|
6953
|
-
movedElementId,
|
|
6954
|
-
toIndex
|
|
6955
|
-
}) => {
|
|
6956
|
-
const menuItems = getContainer8(menuItemsId);
|
|
6957
|
-
const movedElement = getContainer8(movedElementId);
|
|
6958
|
-
if (!menuItems || !movedElement) {
|
|
6959
|
-
throw new Error("Menu item or container not found");
|
|
6960
|
-
}
|
|
6961
|
-
moveElements3({
|
|
6962
|
-
title: __75("Reorder Menu items", "elementor"),
|
|
6963
|
-
moves: [
|
|
6964
|
-
{
|
|
6965
|
-
element: movedElement,
|
|
6966
|
-
targetContainer: menuItems,
|
|
6967
|
-
options: { at: toIndex }
|
|
6968
|
-
}
|
|
6969
|
-
]
|
|
6970
|
-
});
|
|
6971
|
-
};
|
|
6972
|
-
return { addItem: addItem2, removeItem: removeItem2, duplicateItem: duplicateItem2, moveItem: moveItem2 };
|
|
6973
|
-
};
|
|
6974
|
-
|
|
6975
|
-
// src/controls-registry/element-controls/menu-items-control/use-entry-item.ts
|
|
6976
|
-
import { getContainer as getContainer9, getElementSettings as getElementSettings4, getElementType } from "@elementor/editor-elements";
|
|
6977
|
-
import { __privateUseListenTo as useListenTo4, commandEndEvent as commandEndEvent4 } from "@elementor/editor-v1-adapters";
|
|
6978
|
-
var useEntryItem = (entryId) => {
|
|
6979
|
-
return useListenTo4(
|
|
6980
|
-
[commandEndEvent4("document/elements/set-settings"), commandEndEvent4("document/elements/settings")],
|
|
6981
|
-
() => {
|
|
6982
|
-
const item = getContainer9(entryId)?.children?.find(
|
|
6983
|
-
(child) => child.model.get("elType") === MENU_ITEM_ELEMENT_TYPE
|
|
6984
|
-
);
|
|
6985
|
-
return {
|
|
6986
|
-
itemId: item?.id ?? null,
|
|
6987
|
-
settings: item ? getEntrySettings(item.id) : {}
|
|
6988
|
-
};
|
|
6989
|
-
},
|
|
6990
|
-
[entryId]
|
|
6991
|
-
);
|
|
6992
|
-
};
|
|
6993
|
-
var getEntrySettings = (itemId) => {
|
|
6994
|
-
const propsSchema = getElementType(MENU_ITEM_ELEMENT_TYPE)?.propsSchema ?? {};
|
|
6995
|
-
return getElementSettings4(itemId, Object.keys(propsSchema));
|
|
6996
|
-
};
|
|
6997
|
-
|
|
6998
|
-
// src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx
|
|
6999
|
-
var LINK_BIND = "link";
|
|
7000
|
-
var MenuItemsControl = ({ label }) => {
|
|
7001
|
-
const { element } = useElement();
|
|
7002
|
-
const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions2();
|
|
7003
|
-
const { [MENU_ENTRY_ELEMENT_TYPE]: entries } = useElementChildren3(element.id, {
|
|
7004
|
-
[MENU_ITEMS_ELEMENT_TYPE]: MENU_ENTRY_ELEMENT_TYPE
|
|
7005
|
-
});
|
|
7006
|
-
const menuItems = getElementByType(element.id, MENU_ITEMS_ELEMENT_TYPE);
|
|
7007
|
-
const repeaterValues = entries.map((entry, index) => ({
|
|
7008
|
-
id: entry.id,
|
|
7009
|
-
title: entry.editorSettings?.title,
|
|
7010
|
-
index
|
|
7011
|
-
}));
|
|
7012
|
-
const setValue = (_newValues, _options, meta) => {
|
|
7013
|
-
if (!menuItems) {
|
|
7014
|
-
return;
|
|
7015
|
-
}
|
|
7016
|
-
if (meta?.action?.type === "add") {
|
|
7017
|
-
return addItem2({
|
|
7018
|
-
menuItemsId: menuItems.id,
|
|
7019
|
-
items: meta.action.payload
|
|
7020
|
-
});
|
|
7021
|
-
}
|
|
7022
|
-
if (meta?.action?.type === "remove") {
|
|
7023
|
-
return removeItem2({ menuItemsId: menuItems.id, items: meta.action.payload });
|
|
7024
|
-
}
|
|
7025
|
-
if (meta?.action?.type === "duplicate") {
|
|
7026
|
-
return duplicateItem2({ items: meta.action.payload });
|
|
7027
|
-
}
|
|
7028
|
-
if (meta?.action?.type === "reorder") {
|
|
7029
|
-
const { from, to } = meta.action.payload;
|
|
7030
|
-
return moveItem2({
|
|
7031
|
-
menuItemsId: menuItems.id,
|
|
7032
|
-
movedElementId: entries[from].id,
|
|
7033
|
-
toIndex: to
|
|
7034
|
-
});
|
|
7035
|
-
}
|
|
7036
|
-
};
|
|
7037
|
-
return /* @__PURE__ */ React98.createElement(
|
|
7038
|
-
Repeater3,
|
|
7039
|
-
{
|
|
7040
|
-
showToggle: false,
|
|
7041
|
-
values: repeaterValues,
|
|
7042
|
-
setValues: setValue,
|
|
7043
|
-
showRemove: repeaterValues.length > 1,
|
|
7044
|
-
label,
|
|
7045
|
-
adornment: () => null,
|
|
7046
|
-
itemSettings: {
|
|
7047
|
-
getId: ({ item }) => item.id,
|
|
7048
|
-
initialValues: { id: "", title: __76("Menu item", "elementor") },
|
|
7049
|
-
Label: ItemLabel3,
|
|
7050
|
-
Content: ItemContent3,
|
|
7051
|
-
Icon: () => null
|
|
7052
|
-
}
|
|
7053
|
-
}
|
|
7054
|
-
);
|
|
7055
|
-
};
|
|
7056
|
-
var ItemLabel3 = ({ value }) => /* @__PURE__ */ React98.createElement(Stack17, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React98.createElement(EntryLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React98.createElement("span", null, value?.title));
|
|
7057
|
-
var EntryLabel = ({ elementId, fallbackTitle }) => {
|
|
7058
|
-
const editorSettings = useElementEditorSettings4(elementId);
|
|
7059
|
-
return /* @__PURE__ */ React98.createElement("span", null, editorSettings?.title ?? fallbackTitle ?? "");
|
|
7060
|
-
};
|
|
7061
|
-
var ItemContent3 = ({ value }) => {
|
|
7062
|
-
if (!value.id) {
|
|
7063
|
-
return null;
|
|
7064
|
-
}
|
|
7065
|
-
return /* @__PURE__ */ React98.createElement(Stack17, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(ItemNameControl2, { elementId: value.id }), /* @__PURE__ */ React98.createElement(ItemLinkControl, { entryId: value.id }));
|
|
7066
|
-
};
|
|
7067
|
-
var ItemNameControl2 = ({ elementId }) => {
|
|
7068
|
-
const editorSettings = useElementEditorSettings4(elementId);
|
|
7069
|
-
const inputId = useId3();
|
|
7070
|
-
return /* @__PURE__ */ React98.createElement(Stack17, { gap: 1 }, /* @__PURE__ */ React98.createElement(ControlFormLabel5, { htmlFor: inputId }, __76("Item name", "elementor")), /* @__PURE__ */ React98.createElement(
|
|
7071
|
-
TextField4,
|
|
7072
|
-
{
|
|
7073
|
-
id: inputId,
|
|
7074
|
-
size: "tiny",
|
|
7075
|
-
value: editorSettings?.title ?? "",
|
|
7076
|
-
onChange: ({ target }) => {
|
|
7077
|
-
updateElementEditorSettings4({ elementId, settings: { title: target.value } });
|
|
7078
|
-
}
|
|
7079
|
-
}
|
|
7080
|
-
));
|
|
7081
|
-
};
|
|
7082
|
-
var ItemLinkControl = ({ entryId }) => {
|
|
7083
|
-
const { itemId, settings } = useEntryItem(entryId);
|
|
7084
|
-
const elementType = itemId ? getElementType2(MENU_ITEM_ELEMENT_TYPE) : null;
|
|
7085
|
-
const linkControl = elementType ? findControlByBind(elementType.controls, LINK_BIND) : null;
|
|
7086
|
-
if (!itemId || !elementType || !linkControl) {
|
|
7087
|
-
return null;
|
|
7088
|
-
}
|
|
7089
|
-
return /* @__PURE__ */ React98.createElement(
|
|
7090
|
-
ElementProvider,
|
|
7091
|
-
{
|
|
7092
|
-
element: { id: itemId, type: MENU_ITEM_ELEMENT_TYPE },
|
|
7093
|
-
elementType,
|
|
7094
|
-
settings
|
|
7095
|
-
},
|
|
7096
|
-
/* @__PURE__ */ React98.createElement(SessionStorageProvider4, { prefix: itemId }, /* @__PURE__ */ React98.createElement(SettingsControl, { control: linkControl }))
|
|
7097
|
-
);
|
|
7098
|
-
};
|
|
7099
|
-
var findControlByBind = (items3, bind) => {
|
|
7100
|
-
for (const item of items3) {
|
|
7101
|
-
if (item.type === "section") {
|
|
7102
|
-
const found = findControlByBind(item.value.items, bind);
|
|
7103
|
-
if (found) {
|
|
7104
|
-
return found;
|
|
7105
|
-
}
|
|
7106
|
-
}
|
|
7107
|
-
if (item.type === "control" && item.value.bind === bind) {
|
|
7108
|
-
return item;
|
|
7109
|
-
}
|
|
7110
|
-
}
|
|
7111
|
-
return null;
|
|
7112
|
-
};
|
|
7113
|
-
|
|
7114
|
-
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
7115
|
-
import * as React99 from "react";
|
|
7116
|
-
import {
|
|
7117
|
-
ControlFormLabel as ControlFormLabel6,
|
|
7118
|
-
Repeater as Repeater4,
|
|
7119
|
-
useBoundProp as useBoundProp8
|
|
7120
|
-
} from "@elementor/editor-controls";
|
|
7121
|
-
import {
|
|
7122
|
-
updateElementEditorSettings as updateElementEditorSettings5,
|
|
7123
|
-
useElementChildren as useElementChildren4,
|
|
7124
|
-
useElementEditorSettings as useElementEditorSettings5
|
|
7125
|
-
} from "@elementor/editor-elements";
|
|
7126
|
-
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
7127
|
-
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
7128
|
-
import { Alert as Alert5, Chip as Chip4, Infotip as Infotip3, Stack as Stack18, Switch as Switch2, TextField as TextField5, Typography as Typography5 } from "@elementor/ui";
|
|
7129
|
-
import { __ as __78 } from "@wordpress/i18n";
|
|
7130
|
-
|
|
7131
|
-
// src/controls-registry/element-controls/tabs-control/use-actions.ts
|
|
7132
|
-
import { useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
|
|
7133
|
-
import {
|
|
7134
|
-
createElements as createElements4,
|
|
7135
|
-
duplicateElements as duplicateElements4,
|
|
7136
|
-
getContainer as getContainer10,
|
|
7137
|
-
moveElements as moveElements4,
|
|
7138
|
-
removeElements as removeElements4
|
|
7139
|
-
} from "@elementor/editor-elements";
|
|
7140
6816
|
import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
|
|
7141
|
-
import { __ as
|
|
6817
|
+
import { __ as __75 } from "@wordpress/i18n";
|
|
7142
6818
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
7143
6819
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
7144
|
-
var
|
|
6820
|
+
var useActions2 = () => {
|
|
7145
6821
|
const { value, setValue: setDefaultActiveTab } = useBoundProp7(numberPropTypeUtil3);
|
|
7146
6822
|
const defaultActiveTab = value ?? 0;
|
|
7147
6823
|
const duplicateItem2 = ({
|
|
@@ -7154,14 +6830,14 @@ var useActions3 = () => {
|
|
|
7154
6830
|
});
|
|
7155
6831
|
items3.forEach(({ item, index }) => {
|
|
7156
6832
|
const tabId = item.id;
|
|
7157
|
-
const tabContentAreaContainer =
|
|
6833
|
+
const tabContentAreaContainer = getContainer8(tabContentAreaId);
|
|
7158
6834
|
const tabContentId = tabContentAreaContainer?.children?.[index]?.id;
|
|
7159
6835
|
if (!tabContentId) {
|
|
7160
6836
|
throw new Error("Original content ID is required for duplication");
|
|
7161
6837
|
}
|
|
7162
|
-
|
|
6838
|
+
duplicateElements3({
|
|
7163
6839
|
elementIds: [tabId, tabContentId],
|
|
7164
|
-
title:
|
|
6840
|
+
title: __75("Duplicate Tab", "elementor"),
|
|
7165
6841
|
onDuplicateElements: () => {
|
|
7166
6842
|
if (newDefault !== defaultActiveTab) {
|
|
7167
6843
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -7182,10 +6858,10 @@ var useActions3 = () => {
|
|
|
7182
6858
|
movedElementId,
|
|
7183
6859
|
movedElementIndex
|
|
7184
6860
|
}) => {
|
|
7185
|
-
const tabContentContainer =
|
|
6861
|
+
const tabContentContainer = getContainer8(tabContentAreaId);
|
|
7186
6862
|
const tabContent = tabContentContainer?.children?.[movedElementIndex];
|
|
7187
|
-
const movedElement =
|
|
7188
|
-
const tabsMenu =
|
|
6863
|
+
const movedElement = getContainer8(movedElementId);
|
|
6864
|
+
const tabsMenu = getContainer8(tabsMenuId);
|
|
7189
6865
|
if (!tabContent) {
|
|
7190
6866
|
throw new Error("Content element is required");
|
|
7191
6867
|
}
|
|
@@ -7197,8 +6873,8 @@ var useActions3 = () => {
|
|
|
7197
6873
|
to: toIndex,
|
|
7198
6874
|
defaultActiveTab
|
|
7199
6875
|
});
|
|
7200
|
-
|
|
7201
|
-
title:
|
|
6876
|
+
moveElements3({
|
|
6877
|
+
title: __75("Reorder Tabs", "elementor"),
|
|
7202
6878
|
moves: [
|
|
7203
6879
|
{
|
|
7204
6880
|
element: movedElement,
|
|
@@ -7231,11 +6907,11 @@ var useActions3 = () => {
|
|
|
7231
6907
|
items: items3,
|
|
7232
6908
|
defaultActiveTab
|
|
7233
6909
|
});
|
|
7234
|
-
|
|
7235
|
-
title:
|
|
6910
|
+
removeElements3({
|
|
6911
|
+
title: __75("Tabs", "elementor"),
|
|
7236
6912
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
7237
6913
|
const tabId = item.id;
|
|
7238
|
-
const tabContentContainer =
|
|
6914
|
+
const tabContentContainer = getContainer8(tabContentAreaId);
|
|
7239
6915
|
const tabContentId = tabContentContainer?.children?.[index]?.id;
|
|
7240
6916
|
if (!tabContentId) {
|
|
7241
6917
|
throw new Error("Content ID is required");
|
|
@@ -7259,15 +6935,15 @@ var useActions3 = () => {
|
|
|
7259
6935
|
tabsMenuId,
|
|
7260
6936
|
items: items3
|
|
7261
6937
|
}) => {
|
|
7262
|
-
const tabContentArea =
|
|
7263
|
-
const tabsMenu =
|
|
6938
|
+
const tabContentArea = getContainer8(tabContentAreaId);
|
|
6939
|
+
const tabsMenu = getContainer8(tabsMenuId);
|
|
7264
6940
|
if (!tabContentArea || !tabsMenu) {
|
|
7265
6941
|
throw new Error("Tab containers not found");
|
|
7266
6942
|
}
|
|
7267
6943
|
items3.forEach(({ index }) => {
|
|
7268
6944
|
const position = index + 1;
|
|
7269
|
-
|
|
7270
|
-
title:
|
|
6945
|
+
createElements3({
|
|
6946
|
+
title: __75("Tabs", "elementor"),
|
|
7271
6947
|
elements: [
|
|
7272
6948
|
{
|
|
7273
6949
|
container: tabContentArea,
|
|
@@ -7336,12 +7012,12 @@ var calculateDefaultOnDuplicate = ({
|
|
|
7336
7012
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
7337
7013
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
7338
7014
|
var TabsControl = ({ label }) => {
|
|
7339
|
-
return /* @__PURE__ */
|
|
7015
|
+
return /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __76("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(TabsControlContent, { label }));
|
|
7340
7016
|
};
|
|
7341
7017
|
var TabsControlContent = ({ label }) => {
|
|
7342
7018
|
const { element } = useElement();
|
|
7343
|
-
const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } =
|
|
7344
|
-
const { [TAB_ELEMENT_TYPE]: tabLinks } =
|
|
7019
|
+
const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions2();
|
|
7020
|
+
const { [TAB_ELEMENT_TYPE]: tabLinks } = useElementChildren3(element.id, {
|
|
7345
7021
|
[TAB_MENU_ELEMENT_TYPE]: TAB_ELEMENT_TYPE
|
|
7346
7022
|
});
|
|
7347
7023
|
const tabList = getElementByType(element.id, TAB_MENU_ELEMENT_TYPE);
|
|
@@ -7380,8 +7056,8 @@ var TabsControlContent = ({ label }) => {
|
|
|
7380
7056
|
});
|
|
7381
7057
|
}
|
|
7382
7058
|
};
|
|
7383
|
-
return /* @__PURE__ */
|
|
7384
|
-
|
|
7059
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7060
|
+
Repeater3,
|
|
7385
7061
|
{
|
|
7386
7062
|
showToggle: false,
|
|
7387
7063
|
values: repeaterValues,
|
|
@@ -7391,20 +7067,20 @@ var TabsControlContent = ({ label }) => {
|
|
|
7391
7067
|
itemSettings: {
|
|
7392
7068
|
getId: ({ item }) => item.id,
|
|
7393
7069
|
initialValues: { id: "", title: "Tab" },
|
|
7394
|
-
Label:
|
|
7395
|
-
Content:
|
|
7070
|
+
Label: ItemLabel3,
|
|
7071
|
+
Content: ItemContent3,
|
|
7396
7072
|
Icon: () => null
|
|
7397
7073
|
}
|
|
7398
7074
|
}
|
|
7399
7075
|
);
|
|
7400
7076
|
};
|
|
7401
|
-
var
|
|
7402
|
-
return /* @__PURE__ */
|
|
7077
|
+
var ItemLabel3 = ({ value, index }) => {
|
|
7078
|
+
return /* @__PURE__ */ React98.createElement(Stack17, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React98.createElement(TabRepeaterLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React98.createElement("span", null, value?.title), /* @__PURE__ */ React98.createElement(ItemDefaultTab, { index }));
|
|
7403
7079
|
};
|
|
7404
7080
|
var TabRepeaterLabel = ({ elementId, fallbackTitle }) => {
|
|
7405
|
-
const editorSettings =
|
|
7081
|
+
const editorSettings = useElementEditorSettings4(elementId);
|
|
7406
7082
|
const label = editorSettings?.title ?? fallbackTitle ?? "";
|
|
7407
|
-
return /* @__PURE__ */
|
|
7083
|
+
return /* @__PURE__ */ React98.createElement("span", null, label);
|
|
7408
7084
|
};
|
|
7409
7085
|
var ItemDefaultTab = ({ index }) => {
|
|
7410
7086
|
const { value: defaultItem } = useBoundProp8(numberPropTypeUtil4);
|
|
@@ -7412,18 +7088,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
7412
7088
|
if (!isDefault) {
|
|
7413
7089
|
return null;
|
|
7414
7090
|
}
|
|
7415
|
-
return /* @__PURE__ */
|
|
7091
|
+
return /* @__PURE__ */ React98.createElement(Chip4, { size: "tiny", shape: "rounded", label: __76("Default", "elementor") });
|
|
7416
7092
|
};
|
|
7417
|
-
var
|
|
7093
|
+
var ItemContent3 = ({ value, index }) => {
|
|
7418
7094
|
if (!value.id) {
|
|
7419
7095
|
return null;
|
|
7420
7096
|
}
|
|
7421
|
-
return /* @__PURE__ */
|
|
7097
|
+
return /* @__PURE__ */ React98.createElement(Stack17, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __76("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(DefaultTabControl, { tabIndex: index })));
|
|
7422
7098
|
};
|
|
7423
7099
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
7424
7100
|
const { value, setValue } = useBoundProp8(numberPropTypeUtil4);
|
|
7425
7101
|
const isDefault = value === tabIndex;
|
|
7426
|
-
return /* @__PURE__ */
|
|
7102
|
+
return /* @__PURE__ */ React98.createElement(Stack17, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React98.createElement(ControlFormLabel5, null, __76("Set as default tab", "elementor")), /* @__PURE__ */ React98.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React98.createElement(
|
|
7427
7103
|
Switch2,
|
|
7428
7104
|
{
|
|
7429
7105
|
size: "small",
|
|
@@ -7439,15 +7115,15 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
7439
7115
|
)));
|
|
7440
7116
|
};
|
|
7441
7117
|
var TabLabelControl = ({ elementId }) => {
|
|
7442
|
-
const editorSettings =
|
|
7118
|
+
const editorSettings = useElementEditorSettings4(elementId);
|
|
7443
7119
|
const label = editorSettings?.title ?? "";
|
|
7444
|
-
return /* @__PURE__ */
|
|
7445
|
-
|
|
7120
|
+
return /* @__PURE__ */ React98.createElement(Stack17, { gap: 1 }, /* @__PURE__ */ React98.createElement(ControlFormLabel5, null, __76("Tab name", "elementor")), /* @__PURE__ */ React98.createElement(
|
|
7121
|
+
TextField4,
|
|
7446
7122
|
{
|
|
7447
7123
|
size: "tiny",
|
|
7448
7124
|
value: label,
|
|
7449
7125
|
onChange: ({ target }) => {
|
|
7450
|
-
|
|
7126
|
+
updateElementEditorSettings4({
|
|
7451
7127
|
elementId,
|
|
7452
7128
|
settings: { title: target.value }
|
|
7453
7129
|
});
|
|
@@ -7462,29 +7138,28 @@ var ConditionalTooltip = ({
|
|
|
7462
7138
|
if (!showTooltip) {
|
|
7463
7139
|
return children;
|
|
7464
7140
|
}
|
|
7465
|
-
return /* @__PURE__ */
|
|
7141
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7466
7142
|
Infotip3,
|
|
7467
7143
|
{
|
|
7468
7144
|
arrow: false,
|
|
7469
|
-
content: /* @__PURE__ */
|
|
7145
|
+
content: /* @__PURE__ */ React98.createElement(
|
|
7470
7146
|
Alert5,
|
|
7471
7147
|
{
|
|
7472
7148
|
color: "secondary",
|
|
7473
|
-
icon: /* @__PURE__ */
|
|
7149
|
+
icon: /* @__PURE__ */ React98.createElement(InfoCircleFilledIcon3, { fontSize: "tiny" }),
|
|
7474
7150
|
size: "small",
|
|
7475
7151
|
sx: { width: 288 }
|
|
7476
7152
|
},
|
|
7477
|
-
/* @__PURE__ */
|
|
7153
|
+
/* @__PURE__ */ React98.createElement(Typography5, { variant: "body2" }, __76("To change the default tab, simply set another tab as default.", "elementor"))
|
|
7478
7154
|
)
|
|
7479
7155
|
},
|
|
7480
|
-
/* @__PURE__ */
|
|
7156
|
+
/* @__PURE__ */ React98.createElement("span", null, children)
|
|
7481
7157
|
);
|
|
7482
7158
|
};
|
|
7483
7159
|
|
|
7484
7160
|
// src/controls-registry/element-controls/registry.ts
|
|
7485
7161
|
var controlTypes2 = {
|
|
7486
7162
|
"list-items": { component: ListItemsControl, layout: "full" },
|
|
7487
|
-
"menu-items": { component: MenuItemsControl, layout: "full" },
|
|
7488
7163
|
tabs: { component: TabsControl, layout: "full" },
|
|
7489
7164
|
"accordion-items": { component: AccordionItemsControl, layout: "full" }
|
|
7490
7165
|
};
|
|
@@ -7506,7 +7181,7 @@ import {
|
|
|
7506
7181
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
7507
7182
|
|
|
7508
7183
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
7509
|
-
import * as
|
|
7184
|
+
import * as React99 from "react";
|
|
7510
7185
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
|
|
7511
7186
|
import {
|
|
7512
7187
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -7649,26 +7324,26 @@ var useDynamicTag = (tagName) => {
|
|
|
7649
7324
|
};
|
|
7650
7325
|
|
|
7651
7326
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
7652
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
7327
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React99.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
7653
7328
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
7654
7329
|
const context = useBoundProp10(backgroundImageOverlayPropTypeUtil);
|
|
7655
|
-
return /* @__PURE__ */
|
|
7330
|
+
return /* @__PURE__ */ React99.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React99.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React99.createElement(Wrapper2, { rawValue: value.value })));
|
|
7656
7331
|
};
|
|
7657
7332
|
var Wrapper2 = ({ rawValue }) => {
|
|
7658
7333
|
const { propType } = useBoundProp10();
|
|
7659
7334
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
7660
|
-
return /* @__PURE__ */
|
|
7335
|
+
return /* @__PURE__ */ React99.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React99.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React99.createElement(Content, { rawValue: rawValue.image })));
|
|
7661
7336
|
};
|
|
7662
7337
|
var Content = ({ rawValue }) => {
|
|
7663
7338
|
const src = rawValue.value.src;
|
|
7664
7339
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
7665
|
-
return /* @__PURE__ */
|
|
7340
|
+
return /* @__PURE__ */ React99.createElement(React99.Fragment, null, dynamicTag?.label);
|
|
7666
7341
|
};
|
|
7667
7342
|
|
|
7668
7343
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
7669
|
-
import * as
|
|
7344
|
+
import * as React103 from "react";
|
|
7670
7345
|
import {
|
|
7671
|
-
ControlFormLabel as
|
|
7346
|
+
ControlFormLabel as ControlFormLabel6,
|
|
7672
7347
|
PropKeyProvider as PropKeyProvider6,
|
|
7673
7348
|
PropProvider as PropProvider6,
|
|
7674
7349
|
useBoundProp as useBoundProp13
|
|
@@ -7683,7 +7358,7 @@ import {
|
|
|
7683
7358
|
Grid as Grid8,
|
|
7684
7359
|
IconButton as IconButton2,
|
|
7685
7360
|
Popover,
|
|
7686
|
-
Stack as
|
|
7361
|
+
Stack as Stack19,
|
|
7687
7362
|
Tab as Tab2,
|
|
7688
7363
|
TabPanel as TabPanel2,
|
|
7689
7364
|
Tabs as Tabs2,
|
|
@@ -7691,7 +7366,7 @@ import {
|
|
|
7691
7366
|
usePopupState as usePopupState2,
|
|
7692
7367
|
useTabs as useTabs2
|
|
7693
7368
|
} from "@elementor/ui";
|
|
7694
|
-
import { __ as
|
|
7369
|
+
import { __ as __78 } from "@wordpress/i18n";
|
|
7695
7370
|
|
|
7696
7371
|
// src/hooks/use-persist-dynamic-value.ts
|
|
7697
7372
|
import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
|
|
@@ -7702,11 +7377,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
7702
7377
|
};
|
|
7703
7378
|
|
|
7704
7379
|
// src/dynamics/dynamic-control.tsx
|
|
7705
|
-
import * as
|
|
7380
|
+
import * as React101 from "react";
|
|
7706
7381
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
|
|
7707
7382
|
|
|
7708
7383
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
7709
|
-
import * as
|
|
7384
|
+
import * as React100 from "react";
|
|
7710
7385
|
import { useMemo as useMemo13 } from "react";
|
|
7711
7386
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
7712
7387
|
var DynamicConditionalControl = ({
|
|
@@ -7748,10 +7423,10 @@ var DynamicConditionalControl = ({
|
|
|
7748
7423
|
return { ...defaults, ...convertedSettings };
|
|
7749
7424
|
}, [defaults, convertedSettings]);
|
|
7750
7425
|
if (!propType?.dependencies?.terms.length) {
|
|
7751
|
-
return /* @__PURE__ */
|
|
7426
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
|
|
7752
7427
|
}
|
|
7753
7428
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
7754
|
-
return isHidden ? null : /* @__PURE__ */
|
|
7429
|
+
return isHidden ? null : /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
|
|
7755
7430
|
};
|
|
7756
7431
|
|
|
7757
7432
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -7776,7 +7451,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
7776
7451
|
});
|
|
7777
7452
|
};
|
|
7778
7453
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
7779
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ React101.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React101.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React101.createElement(
|
|
7780
7455
|
DynamicConditionalControl,
|
|
7781
7456
|
{
|
|
7782
7457
|
propType: dynamicPropType,
|
|
@@ -7788,13 +7463,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
7788
7463
|
};
|
|
7789
7464
|
|
|
7790
7465
|
// src/dynamics/components/dynamic-selection.tsx
|
|
7791
|
-
import * as
|
|
7792
|
-
import { Fragment as Fragment17, useEffect as
|
|
7466
|
+
import * as React102 from "react";
|
|
7467
|
+
import { Fragment as Fragment17, useEffect as useEffect11, useState as useState11 } from "react";
|
|
7793
7468
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
|
|
7794
7469
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
7795
7470
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
7796
|
-
import { Divider as Divider7, Link as Link3, Stack as
|
|
7797
|
-
import { __ as
|
|
7471
|
+
import { Divider as Divider7, Link as Link3, Stack as Stack18, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
|
|
7472
|
+
import { __ as __77 } from "@wordpress/i18n";
|
|
7798
7473
|
var SIZE2 = "tiny";
|
|
7799
7474
|
var PROMO_TEXT_WIDTH = 170;
|
|
7800
7475
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -7809,7 +7484,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
7809
7484
|
const isCurrentValueDynamic = !!dynamicValue;
|
|
7810
7485
|
const options13 = useFilteredOptions(searchValue);
|
|
7811
7486
|
const hasNoDynamicTags = !options13.length && !searchValue.trim();
|
|
7812
|
-
|
|
7487
|
+
useEffect11(() => {
|
|
7813
7488
|
if (hasNoDynamicTags) {
|
|
7814
7489
|
trackViewPromotion({ target_name: "dynamic_tags" });
|
|
7815
7490
|
} else if (expired) {
|
|
@@ -7841,19 +7516,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
7841
7516
|
]);
|
|
7842
7517
|
const getPopOverContent = () => {
|
|
7843
7518
|
if (hasNoDynamicTags) {
|
|
7844
|
-
return /* @__PURE__ */
|
|
7519
|
+
return /* @__PURE__ */ React102.createElement(NoDynamicTags, null);
|
|
7845
7520
|
}
|
|
7846
7521
|
if (expired) {
|
|
7847
|
-
return /* @__PURE__ */
|
|
7522
|
+
return /* @__PURE__ */ React102.createElement(ExpiredDynamicTags, null);
|
|
7848
7523
|
}
|
|
7849
|
-
return /* @__PURE__ */
|
|
7524
|
+
return /* @__PURE__ */ React102.createElement(Fragment17, null, /* @__PURE__ */ React102.createElement(
|
|
7850
7525
|
SearchField,
|
|
7851
7526
|
{
|
|
7852
7527
|
value: searchValue,
|
|
7853
7528
|
onSearch: handleSearch,
|
|
7854
|
-
placeholder:
|
|
7529
|
+
placeholder: __77("Search dynamic tags\u2026", "elementor")
|
|
7855
7530
|
}
|
|
7856
|
-
), /* @__PURE__ */
|
|
7531
|
+
), /* @__PURE__ */ React102.createElement(Divider7, null), /* @__PURE__ */ React102.createElement(
|
|
7857
7532
|
PopoverMenuList,
|
|
7858
7533
|
{
|
|
7859
7534
|
items: virtualizedItems,
|
|
@@ -7861,21 +7536,21 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
7861
7536
|
onClose: closePopover,
|
|
7862
7537
|
selectedValue: dynamicValue?.name,
|
|
7863
7538
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
7864
|
-
noResultsComponent: /* @__PURE__ */
|
|
7539
|
+
noResultsComponent: /* @__PURE__ */ React102.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
7865
7540
|
}
|
|
7866
7541
|
));
|
|
7867
7542
|
};
|
|
7868
|
-
return /* @__PURE__ */
|
|
7543
|
+
return /* @__PURE__ */ React102.createElement(SectionPopoverBody, { "aria-label": __77("Dynamic tags", "elementor") }, /* @__PURE__ */ React102.createElement(
|
|
7869
7544
|
PopoverHeader,
|
|
7870
7545
|
{
|
|
7871
|
-
title:
|
|
7546
|
+
title: __77("Dynamic tags", "elementor"),
|
|
7872
7547
|
onClose: closePopover,
|
|
7873
|
-
icon: /* @__PURE__ */
|
|
7548
|
+
icon: /* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
7874
7549
|
}
|
|
7875
7550
|
), getPopOverContent());
|
|
7876
7551
|
};
|
|
7877
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
7878
|
-
|
|
7552
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React102.createElement(
|
|
7553
|
+
Stack18,
|
|
7879
7554
|
{
|
|
7880
7555
|
gap: 1,
|
|
7881
7556
|
alignItems: "center",
|
|
@@ -7885,12 +7560,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React103.createEle
|
|
|
7885
7560
|
color: "text.secondary",
|
|
7886
7561
|
sx: { pb: 3.5 }
|
|
7887
7562
|
},
|
|
7888
|
-
/* @__PURE__ */
|
|
7889
|
-
/* @__PURE__ */
|
|
7890
|
-
/* @__PURE__ */
|
|
7563
|
+
/* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
7564
|
+
/* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "subtitle2" }, __77("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React102.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
7565
|
+
/* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __77("Try something else.", "elementor"), /* @__PURE__ */ React102.createElement(Link3, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __77("Clear & try again", "elementor")))
|
|
7891
7566
|
);
|
|
7892
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
7893
|
-
|
|
7567
|
+
var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Divider7, null), /* @__PURE__ */ React102.createElement(
|
|
7568
|
+
Stack18,
|
|
7894
7569
|
{
|
|
7895
7570
|
gap: 1,
|
|
7896
7571
|
alignItems: "center",
|
|
@@ -7900,10 +7575,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.Fragme
|
|
|
7900
7575
|
color: "text.secondary",
|
|
7901
7576
|
sx: { pb: 3.5 }
|
|
7902
7577
|
},
|
|
7903
|
-
/* @__PURE__ */
|
|
7904
|
-
/* @__PURE__ */
|
|
7905
|
-
/* @__PURE__ */
|
|
7906
|
-
/* @__PURE__ */
|
|
7578
|
+
/* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
7579
|
+
/* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "subtitle2" }, __77("Streamline your workflow with dynamic tags", "elementor")),
|
|
7580
|
+
/* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __77("Upgrade now to display your content dynamically.", "elementor")),
|
|
7581
|
+
/* @__PURE__ */ React102.createElement(
|
|
7907
7582
|
CtaButton,
|
|
7908
7583
|
{
|
|
7909
7584
|
size: "small",
|
|
@@ -7912,8 +7587,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.Fragme
|
|
|
7912
7587
|
}
|
|
7913
7588
|
)
|
|
7914
7589
|
));
|
|
7915
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
7916
|
-
|
|
7590
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Divider7, null), /* @__PURE__ */ React102.createElement(
|
|
7591
|
+
Stack18,
|
|
7917
7592
|
{
|
|
7918
7593
|
gap: 1,
|
|
7919
7594
|
alignItems: "center",
|
|
@@ -7923,16 +7598,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.F
|
|
|
7923
7598
|
color: "text.secondary",
|
|
7924
7599
|
sx: { pb: 3.5 }
|
|
7925
7600
|
},
|
|
7926
|
-
/* @__PURE__ */
|
|
7927
|
-
/* @__PURE__ */
|
|
7928
|
-
/* @__PURE__ */
|
|
7929
|
-
/* @__PURE__ */
|
|
7601
|
+
/* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
7602
|
+
/* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "subtitle2" }, __77("Unlock your Dynamic tags again", "elementor")),
|
|
7603
|
+
/* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __77("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
7604
|
+
/* @__PURE__ */ React102.createElement(
|
|
7930
7605
|
CtaButton,
|
|
7931
7606
|
{
|
|
7932
7607
|
size: "small",
|
|
7933
7608
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
7934
7609
|
onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
|
|
7935
|
-
children:
|
|
7610
|
+
children: __77("Renew Now", "elementor")
|
|
7936
7611
|
}
|
|
7937
7612
|
)
|
|
7938
7613
|
));
|
|
@@ -7969,7 +7644,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
7969
7644
|
const { name: tagName = "" } = value;
|
|
7970
7645
|
const dynamicTag = useDynamicTag(tagName);
|
|
7971
7646
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
7972
|
-
return /* @__PURE__ */
|
|
7647
|
+
return /* @__PURE__ */ React103.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React103.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React103.createElement(OriginalControl, { ...props })));
|
|
7973
7648
|
}
|
|
7974
7649
|
const removeDynamicTag = () => {
|
|
7975
7650
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -7977,25 +7652,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
7977
7652
|
if (!dynamicTag) {
|
|
7978
7653
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
7979
7654
|
}
|
|
7980
|
-
return /* @__PURE__ */
|
|
7655
|
+
return /* @__PURE__ */ React103.createElement(Box9, null, /* @__PURE__ */ React103.createElement(
|
|
7981
7656
|
Tag,
|
|
7982
7657
|
{
|
|
7983
7658
|
fullWidth: true,
|
|
7984
7659
|
showActionsOnHover: true,
|
|
7985
7660
|
label: dynamicTag.label,
|
|
7986
|
-
startIcon: /* @__PURE__ */
|
|
7661
|
+
startIcon: /* @__PURE__ */ React103.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
7987
7662
|
...bindTrigger2(selectionPopoverState),
|
|
7988
|
-
actions: /* @__PURE__ */
|
|
7663
|
+
actions: /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React103.createElement(
|
|
7989
7664
|
IconButton2,
|
|
7990
7665
|
{
|
|
7991
7666
|
size: SIZE3,
|
|
7992
7667
|
onClick: removeDynamicTag,
|
|
7993
|
-
"aria-label":
|
|
7668
|
+
"aria-label": __78("Remove dynamic value", "elementor")
|
|
7994
7669
|
},
|
|
7995
|
-
/* @__PURE__ */
|
|
7670
|
+
/* @__PURE__ */ React103.createElement(XIcon, { fontSize: SIZE3 })
|
|
7996
7671
|
))
|
|
7997
7672
|
}
|
|
7998
|
-
), /* @__PURE__ */
|
|
7673
|
+
), /* @__PURE__ */ React103.createElement(
|
|
7999
7674
|
Popover,
|
|
8000
7675
|
{
|
|
8001
7676
|
disablePortal: true,
|
|
@@ -8007,7 +7682,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
8007
7682
|
},
|
|
8008
7683
|
...bindPopover(selectionPopoverState)
|
|
8009
7684
|
},
|
|
8010
|
-
/* @__PURE__ */
|
|
7685
|
+
/* @__PURE__ */ React103.createElement(SectionPopoverBody2, { "aria-label": __78("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
8011
7686
|
));
|
|
8012
7687
|
};
|
|
8013
7688
|
var DynamicSettingsPopover = ({
|
|
@@ -8019,16 +7694,16 @@ var DynamicSettingsPopover = ({
|
|
|
8019
7694
|
if (!hasDynamicSettings) {
|
|
8020
7695
|
return null;
|
|
8021
7696
|
}
|
|
8022
|
-
return /* @__PURE__ */
|
|
7697
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
|
|
8023
7698
|
IconButton2,
|
|
8024
7699
|
{
|
|
8025
7700
|
size: SIZE3,
|
|
8026
7701
|
disabled,
|
|
8027
7702
|
...!disabled && bindTrigger2(popupState),
|
|
8028
|
-
"aria-label":
|
|
7703
|
+
"aria-label": __78("Dynamic settings", "elementor")
|
|
8029
7704
|
},
|
|
8030
|
-
/* @__PURE__ */
|
|
8031
|
-
), /* @__PURE__ */
|
|
7705
|
+
/* @__PURE__ */ React103.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
7706
|
+
), /* @__PURE__ */ React103.createElement(
|
|
8032
7707
|
Popover,
|
|
8033
7708
|
{
|
|
8034
7709
|
disablePortal: true,
|
|
@@ -8040,14 +7715,14 @@ var DynamicSettingsPopover = ({
|
|
|
8040
7715
|
},
|
|
8041
7716
|
...bindPopover(popupState)
|
|
8042
7717
|
},
|
|
8043
|
-
/* @__PURE__ */
|
|
7718
|
+
/* @__PURE__ */ React103.createElement(SectionPopoverBody2, { "aria-label": __78("Dynamic settings", "elementor") }, /* @__PURE__ */ React103.createElement(
|
|
8044
7719
|
PopoverHeader2,
|
|
8045
7720
|
{
|
|
8046
7721
|
title: dynamicTag.label,
|
|
8047
7722
|
onClose: popupState.close,
|
|
8048
|
-
icon: /* @__PURE__ */
|
|
7723
|
+
icon: /* @__PURE__ */ React103.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
8049
7724
|
}
|
|
8050
|
-
), /* @__PURE__ */
|
|
7725
|
+
), /* @__PURE__ */ React103.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
8051
7726
|
));
|
|
8052
7727
|
};
|
|
8053
7728
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -8058,9 +7733,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
8058
7733
|
}
|
|
8059
7734
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
8060
7735
|
const singleTab = tabs[0];
|
|
8061
|
-
return /* @__PURE__ */
|
|
7736
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(Divider8, null), /* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
8062
7737
|
}
|
|
8063
|
-
return /* @__PURE__ */
|
|
7738
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React103.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React103.createElement(
|
|
8064
7739
|
Tab2,
|
|
8065
7740
|
{
|
|
8066
7741
|
key: index,
|
|
@@ -8068,15 +7743,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
8068
7743
|
sx: { px: 1, py: 0.5 },
|
|
8069
7744
|
...getTabProps(index)
|
|
8070
7745
|
}
|
|
8071
|
-
))), /* @__PURE__ */
|
|
8072
|
-
return /* @__PURE__ */
|
|
7746
|
+
))), /* @__PURE__ */ React103.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
7747
|
+
return /* @__PURE__ */ React103.createElement(
|
|
8073
7748
|
TabPanel2,
|
|
8074
7749
|
{
|
|
8075
7750
|
key: index,
|
|
8076
7751
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
8077
7752
|
...getTabPanelProps(index)
|
|
8078
7753
|
},
|
|
8079
|
-
/* @__PURE__ */
|
|
7754
|
+
/* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: value.items })
|
|
8080
7755
|
);
|
|
8081
7756
|
}));
|
|
8082
7757
|
};
|
|
@@ -8118,11 +7793,11 @@ var Control2 = ({ control }) => {
|
|
|
8118
7793
|
display: "grid",
|
|
8119
7794
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
8120
7795
|
} : {};
|
|
8121
|
-
return /* @__PURE__ */
|
|
7796
|
+
return /* @__PURE__ */ React103.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React103.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React103.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(ControlFormLabel6, null, control.label)) : null, /* @__PURE__ */ React103.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(Control, { type: control.type, props: controlProps }))));
|
|
8122
7797
|
};
|
|
8123
7798
|
function ControlsItemsStack({ items: items3 }) {
|
|
8124
|
-
return /* @__PURE__ */
|
|
8125
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
7799
|
+
return /* @__PURE__ */ React103.createElement(Stack19, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
7800
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React103.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
8126
7801
|
));
|
|
8127
7802
|
}
|
|
8128
7803
|
|
|
@@ -8179,18 +7854,18 @@ function getDynamicValue(name, settings, renderPostId) {
|
|
|
8179
7854
|
}
|
|
8180
7855
|
|
|
8181
7856
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
8182
|
-
import * as
|
|
7857
|
+
import * as React104 from "react";
|
|
8183
7858
|
import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
|
|
8184
7859
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
8185
|
-
import { __ as
|
|
7860
|
+
import { __ as __79 } from "@wordpress/i18n";
|
|
8186
7861
|
var usePropDynamicAction = () => {
|
|
8187
7862
|
const { propType } = useBoundProp14();
|
|
8188
7863
|
const visible = !!propType && supportsDynamic(propType);
|
|
8189
7864
|
return {
|
|
8190
7865
|
visible,
|
|
8191
7866
|
icon: DatabaseIcon4,
|
|
8192
|
-
title:
|
|
8193
|
-
content: ({ close }) => /* @__PURE__ */
|
|
7867
|
+
title: __79("Dynamic tags", "elementor"),
|
|
7868
|
+
content: ({ close }) => /* @__PURE__ */ React104.createElement(DynamicSelection, { close })
|
|
8194
7869
|
};
|
|
8195
7870
|
};
|
|
8196
7871
|
|
|
@@ -8225,7 +7900,7 @@ import { useBoundProp as useBoundProp15 } from "@elementor/editor-controls";
|
|
|
8225
7900
|
import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
|
|
8226
7901
|
import { BrushBigIcon } from "@elementor/icons";
|
|
8227
7902
|
import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
|
|
8228
|
-
import { __ as
|
|
7903
|
+
import { __ as __80 } from "@wordpress/i18n";
|
|
8229
7904
|
|
|
8230
7905
|
// src/utils/is-equal.ts
|
|
8231
7906
|
function isEqual(a, b) {
|
|
@@ -8301,21 +7976,21 @@ function useResetStyleValueProps() {
|
|
|
8301
7976
|
const visible = calculateVisibility();
|
|
8302
7977
|
return {
|
|
8303
7978
|
visible,
|
|
8304
|
-
title:
|
|
7979
|
+
title: __80("Clear", "elementor"),
|
|
8305
7980
|
icon: BrushBigIcon,
|
|
8306
7981
|
onClick: () => resetValue()
|
|
8307
7982
|
};
|
|
8308
7983
|
}
|
|
8309
7984
|
|
|
8310
7985
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
8311
|
-
import * as
|
|
7986
|
+
import * as React110 from "react";
|
|
8312
7987
|
import { useBoundProp as useBoundProp16 } from "@elementor/editor-controls";
|
|
8313
7988
|
import { isEmpty as isEmpty3 } from "@elementor/editor-props";
|
|
8314
7989
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
8315
|
-
import { __ as
|
|
7990
|
+
import { __ as __84 } from "@wordpress/i18n";
|
|
8316
7991
|
|
|
8317
7992
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
8318
|
-
import * as
|
|
7993
|
+
import * as React109 from "react";
|
|
8319
7994
|
import { useMemo as useMemo14, useRef as useRef22, useState as useState13 } from "react";
|
|
8320
7995
|
import {
|
|
8321
7996
|
createPropsResolver as createPropsResolver2,
|
|
@@ -8330,31 +8005,31 @@ import {
|
|
|
8330
8005
|
ClickAwayListener,
|
|
8331
8006
|
IconButton as IconButton3,
|
|
8332
8007
|
Infotip as Infotip4,
|
|
8333
|
-
Stack as
|
|
8008
|
+
Stack as Stack20,
|
|
8334
8009
|
Tooltip as Tooltip7
|
|
8335
8010
|
} from "@elementor/ui";
|
|
8336
|
-
import { __ as
|
|
8011
|
+
import { __ as __83 } from "@wordpress/i18n";
|
|
8337
8012
|
|
|
8338
8013
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
8339
|
-
import { isValidElement, useEffect as
|
|
8014
|
+
import { isValidElement, useEffect as useEffect12, useState as useState12 } from "react";
|
|
8340
8015
|
import { UnknownStyleStateError } from "@elementor/editor-canvas";
|
|
8341
8016
|
import {
|
|
8342
8017
|
isClassState as isClassState2,
|
|
8343
8018
|
isPseudoState
|
|
8344
8019
|
} from "@elementor/editor-styles";
|
|
8345
8020
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
8346
|
-
import { __ as
|
|
8021
|
+
import { __ as __81 } from "@wordpress/i18n";
|
|
8347
8022
|
var MAXIMUM_ITEMS = 2;
|
|
8348
8023
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
8349
8024
|
const [items3, setItems] = useState12([]);
|
|
8350
|
-
|
|
8025
|
+
useEffect12(() => {
|
|
8351
8026
|
(async () => {
|
|
8352
8027
|
const normalizedItems = await Promise.all(
|
|
8353
8028
|
inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
|
|
8354
8029
|
);
|
|
8355
8030
|
const validItems = normalizedItems.map((item) => ({
|
|
8356
8031
|
...item,
|
|
8357
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
8032
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __81("Base", "elementor")
|
|
8358
8033
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
8359
8034
|
setItems(validItems);
|
|
8360
8035
|
})();
|
|
@@ -8411,7 +8086,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
8411
8086
|
};
|
|
8412
8087
|
|
|
8413
8088
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
8414
|
-
import * as
|
|
8089
|
+
import * as React105 from "react";
|
|
8415
8090
|
import { useBreakpoints as useBreakpoints2 } from "@elementor/editor-responsive";
|
|
8416
8091
|
import {
|
|
8417
8092
|
DesktopIcon,
|
|
@@ -8442,20 +8117,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
8442
8117
|
return null;
|
|
8443
8118
|
}
|
|
8444
8119
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
8445
|
-
return /* @__PURE__ */
|
|
8120
|
+
return /* @__PURE__ */ React105.createElement(Tooltip4, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React105.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
8446
8121
|
};
|
|
8447
8122
|
|
|
8448
8123
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
8449
|
-
import * as
|
|
8124
|
+
import * as React106 from "react";
|
|
8450
8125
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
8451
8126
|
import { InfoCircleIcon as InfoCircleIcon2 } from "@elementor/icons";
|
|
8452
8127
|
import { Chip as Chip5, Tooltip as Tooltip5 } from "@elementor/ui";
|
|
8453
|
-
import { __ as
|
|
8128
|
+
import { __ as __82 } from "@wordpress/i18n";
|
|
8454
8129
|
var SIZE5 = "tiny";
|
|
8455
8130
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
8456
8131
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
8457
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
8458
|
-
return /* @__PURE__ */
|
|
8132
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React106.createElement(Tooltip5, { title: __82("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React106.createElement(InfoCircleIcon2, { fontSize: SIZE5 })) : void 0;
|
|
8133
|
+
return /* @__PURE__ */ React106.createElement(
|
|
8459
8134
|
Chip5,
|
|
8460
8135
|
{
|
|
8461
8136
|
label: displayLabel,
|
|
@@ -8481,10 +8156,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
8481
8156
|
};
|
|
8482
8157
|
|
|
8483
8158
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
8484
|
-
import * as
|
|
8159
|
+
import * as React107 from "react";
|
|
8485
8160
|
import { Tooltip as Tooltip6, Typography as Typography7 } from "@elementor/ui";
|
|
8486
8161
|
var ValueComponent = ({ index, value }) => {
|
|
8487
|
-
return /* @__PURE__ */
|
|
8162
|
+
return /* @__PURE__ */ React107.createElement(Tooltip6, { title: value, placement: "top" }, /* @__PURE__ */ React107.createElement(
|
|
8488
8163
|
Typography7,
|
|
8489
8164
|
{
|
|
8490
8165
|
variant: "caption",
|
|
@@ -8506,9 +8181,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
8506
8181
|
};
|
|
8507
8182
|
|
|
8508
8183
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
8509
|
-
import * as
|
|
8184
|
+
import * as React108 from "react";
|
|
8510
8185
|
import { Box as Box10 } from "@elementor/ui";
|
|
8511
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
8186
|
+
var ActionIcons = () => /* @__PURE__ */ React108.createElement(Box10, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
8512
8187
|
|
|
8513
8188
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
8514
8189
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -8544,7 +8219,7 @@ var StylesInheritanceInfotip = ({
|
|
|
8544
8219
|
});
|
|
8545
8220
|
}, [key, propType]);
|
|
8546
8221
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
8547
|
-
const infotipContent = /* @__PURE__ */
|
|
8222
|
+
const infotipContent = /* @__PURE__ */ React109.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React109.createElement(
|
|
8548
8223
|
Card,
|
|
8549
8224
|
{
|
|
8550
8225
|
elevation: 0,
|
|
@@ -8557,7 +8232,7 @@ var StylesInheritanceInfotip = ({
|
|
|
8557
8232
|
flexDirection: "column"
|
|
8558
8233
|
}
|
|
8559
8234
|
},
|
|
8560
|
-
/* @__PURE__ */
|
|
8235
|
+
/* @__PURE__ */ React109.createElement(
|
|
8561
8236
|
Box11,
|
|
8562
8237
|
{
|
|
8563
8238
|
sx: {
|
|
@@ -8567,9 +8242,9 @@ var StylesInheritanceInfotip = ({
|
|
|
8567
8242
|
backgroundColor: "background.paper"
|
|
8568
8243
|
}
|
|
8569
8244
|
},
|
|
8570
|
-
/* @__PURE__ */
|
|
8245
|
+
/* @__PURE__ */ React109.createElement(PopoverHeader3, { title: __83("Style origin", "elementor"), onClose: closeInfotip })
|
|
8571
8246
|
),
|
|
8572
|
-
/* @__PURE__ */
|
|
8247
|
+
/* @__PURE__ */ React109.createElement(
|
|
8573
8248
|
CardContent,
|
|
8574
8249
|
{
|
|
8575
8250
|
sx: {
|
|
@@ -8583,39 +8258,39 @@ var StylesInheritanceInfotip = ({
|
|
|
8583
8258
|
}
|
|
8584
8259
|
}
|
|
8585
8260
|
},
|
|
8586
|
-
/* @__PURE__ */
|
|
8587
|
-
return /* @__PURE__ */
|
|
8261
|
+
/* @__PURE__ */ React109.createElement(Stack20, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
8262
|
+
return /* @__PURE__ */ React109.createElement(
|
|
8588
8263
|
Box11,
|
|
8589
8264
|
{
|
|
8590
8265
|
key: item.id,
|
|
8591
8266
|
display: "flex",
|
|
8592
8267
|
gap: 0.5,
|
|
8593
8268
|
role: "listitem",
|
|
8594
|
-
"aria-label":
|
|
8269
|
+
"aria-label": __83("Inheritance item: %s", "elementor").replace(
|
|
8595
8270
|
"%s",
|
|
8596
8271
|
item.displayLabel
|
|
8597
8272
|
)
|
|
8598
8273
|
},
|
|
8599
|
-
/* @__PURE__ */
|
|
8274
|
+
/* @__PURE__ */ React109.createElement(
|
|
8600
8275
|
Box11,
|
|
8601
8276
|
{
|
|
8602
8277
|
display: "flex",
|
|
8603
8278
|
gap: 0.5,
|
|
8604
8279
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
8605
8280
|
},
|
|
8606
|
-
/* @__PURE__ */
|
|
8607
|
-
/* @__PURE__ */
|
|
8608
|
-
/* @__PURE__ */
|
|
8281
|
+
/* @__PURE__ */ React109.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
8282
|
+
/* @__PURE__ */ React109.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
8283
|
+
/* @__PURE__ */ React109.createElement(ValueComponent, { index, value: item.value })
|
|
8609
8284
|
),
|
|
8610
|
-
/* @__PURE__ */
|
|
8285
|
+
/* @__PURE__ */ React109.createElement(ActionIcons, null)
|
|
8611
8286
|
);
|
|
8612
8287
|
}))
|
|
8613
8288
|
)
|
|
8614
8289
|
));
|
|
8615
8290
|
if (isDisabled) {
|
|
8616
|
-
return /* @__PURE__ */
|
|
8291
|
+
return /* @__PURE__ */ React109.createElement(Box11, { sx: { display: "inline-flex" } }, children);
|
|
8617
8292
|
}
|
|
8618
|
-
return /* @__PURE__ */
|
|
8293
|
+
return /* @__PURE__ */ React109.createElement(Box11, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React109.createElement(
|
|
8619
8294
|
TooltipOrInfotip,
|
|
8620
8295
|
{
|
|
8621
8296
|
showInfotip,
|
|
@@ -8623,7 +8298,7 @@ var StylesInheritanceInfotip = ({
|
|
|
8623
8298
|
infotipContent,
|
|
8624
8299
|
isDisabled
|
|
8625
8300
|
},
|
|
8626
|
-
/* @__PURE__ */
|
|
8301
|
+
/* @__PURE__ */ React109.createElement(
|
|
8627
8302
|
IconButton3,
|
|
8628
8303
|
{
|
|
8629
8304
|
onClick: toggleInfotip,
|
|
@@ -8643,10 +8318,10 @@ function TooltipOrInfotip({
|
|
|
8643
8318
|
isDisabled
|
|
8644
8319
|
}) {
|
|
8645
8320
|
if (isDisabled) {
|
|
8646
|
-
return /* @__PURE__ */
|
|
8321
|
+
return /* @__PURE__ */ React109.createElement(Box11, { sx: { display: "inline-flex" } }, children);
|
|
8647
8322
|
}
|
|
8648
8323
|
if (showInfotip) {
|
|
8649
|
-
return /* @__PURE__ */
|
|
8324
|
+
return /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(
|
|
8650
8325
|
Backdrop,
|
|
8651
8326
|
{
|
|
8652
8327
|
open: showInfotip,
|
|
@@ -8656,7 +8331,7 @@ function TooltipOrInfotip({
|
|
|
8656
8331
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
8657
8332
|
}
|
|
8658
8333
|
}
|
|
8659
|
-
), /* @__PURE__ */
|
|
8334
|
+
), /* @__PURE__ */ React109.createElement(
|
|
8660
8335
|
Infotip4,
|
|
8661
8336
|
{
|
|
8662
8337
|
placement: "top-end",
|
|
@@ -8668,7 +8343,7 @@ function TooltipOrInfotip({
|
|
|
8668
8343
|
children
|
|
8669
8344
|
));
|
|
8670
8345
|
}
|
|
8671
|
-
return /* @__PURE__ */
|
|
8346
|
+
return /* @__PURE__ */ React109.createElement(Tooltip7, { title: __83("Style origin", "elementor"), placement: "top" }, children);
|
|
8672
8347
|
}
|
|
8673
8348
|
|
|
8674
8349
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -8681,7 +8356,7 @@ var StylesInheritanceIndicator = ({
|
|
|
8681
8356
|
if (!path || !inheritanceChain.length) {
|
|
8682
8357
|
return null;
|
|
8683
8358
|
}
|
|
8684
|
-
return /* @__PURE__ */
|
|
8359
|
+
return /* @__PURE__ */ React110.createElement(Indicator, { inheritanceChain, path, propType });
|
|
8685
8360
|
};
|
|
8686
8361
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
8687
8362
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -8697,7 +8372,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
8697
8372
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
8698
8373
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
8699
8374
|
};
|
|
8700
|
-
return /* @__PURE__ */
|
|
8375
|
+
return /* @__PURE__ */ React110.createElement(
|
|
8701
8376
|
StylesInheritanceInfotip,
|
|
8702
8377
|
{
|
|
8703
8378
|
inheritanceChain,
|
|
@@ -8706,17 +8381,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
8706
8381
|
label,
|
|
8707
8382
|
isDisabled
|
|
8708
8383
|
},
|
|
8709
|
-
/* @__PURE__ */
|
|
8384
|
+
/* @__PURE__ */ React110.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
8710
8385
|
);
|
|
8711
8386
|
};
|
|
8712
8387
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
8713
8388
|
if (isFinalValue) {
|
|
8714
|
-
return
|
|
8389
|
+
return __84("This is the final value", "elementor");
|
|
8715
8390
|
}
|
|
8716
8391
|
if (hasValue) {
|
|
8717
|
-
return
|
|
8392
|
+
return __84("This value is overridden by another style", "elementor");
|
|
8718
8393
|
}
|
|
8719
|
-
return
|
|
8394
|
+
return __84("This has value from another style", "elementor");
|
|
8720
8395
|
};
|
|
8721
8396
|
|
|
8722
8397
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -8741,7 +8416,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
8741
8416
|
]);
|
|
8742
8417
|
|
|
8743
8418
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
8744
|
-
import * as
|
|
8419
|
+
import * as React111 from "react";
|
|
8745
8420
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
8746
8421
|
var arrayTransformer = createTransformer2((values) => {
|
|
8747
8422
|
if (!values || values.length === 0) {
|
|
@@ -8751,16 +8426,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
8751
8426
|
if (allStrings) {
|
|
8752
8427
|
return values.join(" ");
|
|
8753
8428
|
}
|
|
8754
|
-
return /* @__PURE__ */
|
|
8429
|
+
return /* @__PURE__ */ React111.createElement(React111.Fragment, null, values.map((item, index) => /* @__PURE__ */ React111.createElement(React111.Fragment, { key: index }, index > 0 && " ", item)));
|
|
8755
8430
|
});
|
|
8756
8431
|
|
|
8757
8432
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
8758
|
-
import * as
|
|
8433
|
+
import * as React112 from "react";
|
|
8759
8434
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
8760
|
-
import { Stack as
|
|
8761
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
8435
|
+
import { Stack as Stack21, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
|
|
8436
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React112.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React112.createElement(ItemLabelColor, { value })));
|
|
8762
8437
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
8763
|
-
return /* @__PURE__ */
|
|
8438
|
+
return /* @__PURE__ */ React112.createElement("span", null, color);
|
|
8764
8439
|
};
|
|
8765
8440
|
var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
|
|
8766
8441
|
width: "1em",
|
|
@@ -8771,20 +8446,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
|
|
|
8771
8446
|
}));
|
|
8772
8447
|
|
|
8773
8448
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
8774
|
-
import * as
|
|
8449
|
+
import * as React113 from "react";
|
|
8775
8450
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
8776
|
-
import { Stack as
|
|
8777
|
-
import { __ as
|
|
8778
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
8451
|
+
import { Stack as Stack22 } from "@elementor/ui";
|
|
8452
|
+
import { __ as __85 } from "@wordpress/i18n";
|
|
8453
|
+
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React113.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React113.createElement(ItemLabelGradient, { value })));
|
|
8779
8454
|
var ItemIconGradient = ({ value }) => {
|
|
8780
8455
|
const gradient = getGradientValue(value);
|
|
8781
|
-
return /* @__PURE__ */
|
|
8456
|
+
return /* @__PURE__ */ React113.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
8782
8457
|
};
|
|
8783
8458
|
var ItemLabelGradient = ({ value }) => {
|
|
8784
8459
|
if (value.type === "linear") {
|
|
8785
|
-
return /* @__PURE__ */
|
|
8460
|
+
return /* @__PURE__ */ React113.createElement("span", null, __85("Linear gradient", "elementor"));
|
|
8786
8461
|
}
|
|
8787
|
-
return /* @__PURE__ */
|
|
8462
|
+
return /* @__PURE__ */ React113.createElement("span", null, __85("Radial gradient", "elementor"));
|
|
8788
8463
|
};
|
|
8789
8464
|
var getGradientValue = (gradient) => {
|
|
8790
8465
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -8798,15 +8473,15 @@ var getGradientValue = (gradient) => {
|
|
|
8798
8473
|
};
|
|
8799
8474
|
|
|
8800
8475
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
8801
|
-
import * as
|
|
8476
|
+
import * as React114 from "react";
|
|
8802
8477
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
8803
8478
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
8804
|
-
import { CardMedia, Stack as
|
|
8479
|
+
import { CardMedia, Stack as Stack23 } from "@elementor/ui";
|
|
8805
8480
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
8806
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
8481
|
+
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React114.createElement(Stack23, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconImage, { value }), /* @__PURE__ */ React114.createElement(ItemLabelImage, { value })));
|
|
8807
8482
|
var ItemIconImage = ({ value }) => {
|
|
8808
8483
|
const { imageUrl } = useImage(value);
|
|
8809
|
-
return /* @__PURE__ */
|
|
8484
|
+
return /* @__PURE__ */ React114.createElement(
|
|
8810
8485
|
CardMedia,
|
|
8811
8486
|
{
|
|
8812
8487
|
image: imageUrl,
|
|
@@ -8822,7 +8497,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
8822
8497
|
};
|
|
8823
8498
|
var ItemLabelImage = ({ value }) => {
|
|
8824
8499
|
const { imageTitle } = useImage(value);
|
|
8825
|
-
return /* @__PURE__ */
|
|
8500
|
+
return /* @__PURE__ */ React114.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React114.createElement("span", null, imageTitle));
|
|
8826
8501
|
};
|
|
8827
8502
|
var useImage = (image) => {
|
|
8828
8503
|
let imageTitle, imageUrl = null;
|
|
@@ -8847,7 +8522,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
8847
8522
|
};
|
|
8848
8523
|
|
|
8849
8524
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
8850
|
-
import * as
|
|
8525
|
+
import * as React115 from "react";
|
|
8851
8526
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
8852
8527
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
8853
8528
|
if (!value) {
|
|
@@ -8857,13 +8532,13 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
8857
8532
|
const colorValue = color || "#000000";
|
|
8858
8533
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
8859
8534
|
const positionValue = position || "outset";
|
|
8860
|
-
return /* @__PURE__ */
|
|
8535
|
+
return /* @__PURE__ */ React115.createElement(React115.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
8861
8536
|
});
|
|
8862
8537
|
|
|
8863
8538
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
8864
|
-
import * as
|
|
8539
|
+
import * as React116 from "react";
|
|
8865
8540
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
8866
|
-
import { Stack as
|
|
8541
|
+
import { Stack as Stack24, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
8867
8542
|
function isValidCSSColor(value) {
|
|
8868
8543
|
if (!value.trim()) {
|
|
8869
8544
|
return false;
|
|
@@ -8881,7 +8556,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
8881
8556
|
if (!isValidCSSColor(value)) {
|
|
8882
8557
|
return value;
|
|
8883
8558
|
}
|
|
8884
|
-
return /* @__PURE__ */
|
|
8559
|
+
return /* @__PURE__ */ React116.createElement(Stack24, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React116.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React116.createElement("span", null, value));
|
|
8885
8560
|
});
|
|
8886
8561
|
|
|
8887
8562
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|
|
@@ -8951,7 +8626,6 @@ var init3 = () => {
|
|
|
8951
8626
|
|
|
8952
8627
|
// src/init.ts
|
|
8953
8628
|
function init4() {
|
|
8954
|
-
initEditorControls();
|
|
8955
8629
|
registerPanel(panel);
|
|
8956
8630
|
blockV1Panel();
|
|
8957
8631
|
injectIntoLogic({
|
|
@@ -8976,7 +8650,6 @@ export {
|
|
|
8976
8650
|
ControlLabel,
|
|
8977
8651
|
ControlTypeContainer,
|
|
8978
8652
|
CreatableAutocomplete,
|
|
8979
|
-
CustomCssHeaderSlot,
|
|
8980
8653
|
CustomCssIndicator,
|
|
8981
8654
|
DEFAULT_PSEUDO_STATES,
|
|
8982
8655
|
EditingPanelTabs,
|
|
@@ -9012,12 +8685,9 @@ export {
|
|
|
9012
8685
|
init4 as init,
|
|
9013
8686
|
injectIntoClassSelectorActions,
|
|
9014
8687
|
injectIntoCssClassConvert,
|
|
9015
|
-
injectIntoCustomCssHeader,
|
|
9016
8688
|
injectIntoGridFields,
|
|
9017
8689
|
injectIntoPanelHeaderTop,
|
|
9018
|
-
injectIntoStyleSectionHeader,
|
|
9019
8690
|
injectIntoStyleTab,
|
|
9020
|
-
injectIntoStyleTabHeader,
|
|
9021
8691
|
isDynamicPropValue,
|
|
9022
8692
|
registerEditingPanelReplacement,
|
|
9023
8693
|
registerElementPanelDefaults,
|