@elementor/editor-editing-panel 4.2.0-885 → 4.2.0-887
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1011 -963
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +832 -784
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/css-classes/css-class-menu.tsx +2 -2
- package/src/components/css-classes/css-class-selector.tsx +21 -4
- package/src/components/css-classes/duplicate-class-menu-item.tsx +2 -2
- package/src/components/css-classes/missing-classes-alert.tsx +25 -0
- package/src/components/css-classes/use-apply-and-unapply-class.ts +24 -21
- package/src/components/css-classes/use-missing-classes.ts +17 -0
- package/src/hooks/use-active-style-def-id.ts +11 -1
package/dist/index.mjs
CHANGED
|
@@ -148,12 +148,12 @@ var onConvert = (opts) => {
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
// src/components/css-classes/css-class-selector.tsx
|
|
151
|
-
import * as
|
|
152
|
-
import { useRef, useState as useState4 } from "react";
|
|
151
|
+
import * as React12 from "react";
|
|
152
|
+
import { useCallback as useCallback2, useRef, useState as useState4 } from "react";
|
|
153
153
|
import {
|
|
154
154
|
isElementsStylesProvider as isElementsStylesProvider4,
|
|
155
155
|
stylesRepository as stylesRepository7,
|
|
156
|
-
useProviders,
|
|
156
|
+
useProviders as useProviders2,
|
|
157
157
|
useUserStylesCapability as useUserStylesCapability5,
|
|
158
158
|
validateStyleLabel as validateStyleLabel2
|
|
159
159
|
} from "@elementor/editor-styles-repository";
|
|
@@ -167,9 +167,9 @@ import {
|
|
|
167
167
|
FormLabel,
|
|
168
168
|
Link,
|
|
169
169
|
Stack as Stack3,
|
|
170
|
-
Typography as
|
|
170
|
+
Typography as Typography4
|
|
171
171
|
} from "@elementor/ui";
|
|
172
|
-
import { __ as
|
|
172
|
+
import { __ as __7 } from "@wordpress/i18n";
|
|
173
173
|
|
|
174
174
|
// src/utils/get-styles-provider-color.ts
|
|
175
175
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY, isElementsStylesProvider } from "@elementor/editor-styles-repository";
|
|
@@ -671,11 +671,11 @@ function doUnapplyClass(elementId, classId, classesPropType = "classes") {
|
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
// src/components/css-classes/use-apply-and-unapply-class.ts
|
|
674
|
-
function
|
|
674
|
+
function useUndoableApplyClass() {
|
|
675
675
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
676
676
|
const { element } = useElement();
|
|
677
|
-
const applyClass =
|
|
678
|
-
const
|
|
677
|
+
const applyClass = useApplyClass();
|
|
678
|
+
const unapplyClasses = useUnapplyClasses();
|
|
679
679
|
return useMemo2(() => {
|
|
680
680
|
return undoable(
|
|
681
681
|
{
|
|
@@ -685,7 +685,7 @@ function useApplyClass() {
|
|
|
685
685
|
return prevActiveId;
|
|
686
686
|
},
|
|
687
687
|
undo: ({ classId }, prevActiveId) => {
|
|
688
|
-
|
|
688
|
+
unapplyClasses([classId]);
|
|
689
689
|
setActiveId(prevActiveId);
|
|
690
690
|
}
|
|
691
691
|
},
|
|
@@ -696,19 +696,19 @@ function useApplyClass() {
|
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
);
|
|
699
|
-
}, [activeId, applyClass, element.id,
|
|
699
|
+
}, [activeId, applyClass, element.id, unapplyClasses, setActiveId]);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function useUndoableUnapplyClass() {
|
|
702
702
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
703
703
|
const { element } = useElement();
|
|
704
|
-
const applyClass =
|
|
705
|
-
const
|
|
704
|
+
const applyClass = useApplyClass();
|
|
705
|
+
const unapplyClasses = useUnapplyClasses();
|
|
706
706
|
return useMemo2(() => {
|
|
707
707
|
return undoable(
|
|
708
708
|
{
|
|
709
709
|
do: ({ classId }) => {
|
|
710
710
|
const prevActiveId = activeId;
|
|
711
|
-
|
|
711
|
+
unapplyClasses([classId]);
|
|
712
712
|
return prevActiveId;
|
|
713
713
|
},
|
|
714
714
|
undo: ({ classId }, prevActiveId) => {
|
|
@@ -723,14 +723,14 @@ function useUnapplyClass() {
|
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
);
|
|
726
|
-
}, [activeId, applyClass, element.id,
|
|
726
|
+
}, [activeId, applyClass, element.id, unapplyClasses, setActiveId]);
|
|
727
727
|
}
|
|
728
728
|
function useCreateAndApplyClass() {
|
|
729
729
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
730
730
|
const [provider, createAction] = useGetStylesRepositoryCreateAction() ?? [null, null];
|
|
731
731
|
const deleteAction = provider?.actions.delete;
|
|
732
|
-
const applyClass =
|
|
733
|
-
const
|
|
732
|
+
const applyClass = useApplyClass();
|
|
733
|
+
const unapplyClasses = useUnapplyClasses();
|
|
734
734
|
const undoableCreateAndApply = useMemo2(() => {
|
|
735
735
|
if (!provider || !createAction) {
|
|
736
736
|
return;
|
|
@@ -744,7 +744,7 @@ function useCreateAndApplyClass() {
|
|
|
744
744
|
return { prevActiveId, createdId };
|
|
745
745
|
},
|
|
746
746
|
undo: (_, { prevActiveId, createdId }) => {
|
|
747
|
-
|
|
747
|
+
unapplyClasses([createdId]);
|
|
748
748
|
deleteAction?.(createdId);
|
|
749
749
|
setActiveId(prevActiveId);
|
|
750
750
|
},
|
|
@@ -762,13 +762,13 @@ function useCreateAndApplyClass() {
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
);
|
|
765
|
-
}, [activeId, applyClass, createAction, deleteAction, provider, setActiveId,
|
|
765
|
+
}, [activeId, applyClass, createAction, deleteAction, provider, setActiveId, unapplyClasses]);
|
|
766
766
|
if (!provider || !undoableCreateAndApply) {
|
|
767
767
|
return [null, null];
|
|
768
768
|
}
|
|
769
769
|
return [provider, undoableCreateAndApply];
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function useApplyClass() {
|
|
772
772
|
const { element } = useElement();
|
|
773
773
|
const { setId: setActiveId } = useStyle();
|
|
774
774
|
const { setClasses, getAppliedClasses } = useClasses();
|
|
@@ -787,21 +787,22 @@ function useApply() {
|
|
|
787
787
|
[element.id, getAppliedClasses, setActiveId, setClasses]
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function useUnapplyClasses() {
|
|
791
791
|
const { element } = useElement();
|
|
792
792
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
793
793
|
const { setClasses, getAppliedClasses } = useClasses();
|
|
794
794
|
return useCallback(
|
|
795
|
-
(
|
|
795
|
+
(classIDsToUnapply) => {
|
|
796
796
|
const appliedClasses = getAppliedClasses();
|
|
797
|
-
if (!appliedClasses.includes(
|
|
797
|
+
if (!classIDsToUnapply.every((classID) => appliedClasses.includes(classID))) {
|
|
798
|
+
const missingClasses = classIDsToUnapply.filter((classID) => !appliedClasses.includes(classID));
|
|
798
799
|
throw new Error(
|
|
799
|
-
`
|
|
800
|
+
`Classes ${missingClasses.join(", ")} are not applied to element ${element.id}, cannot unapply them.`
|
|
800
801
|
);
|
|
801
802
|
}
|
|
802
|
-
const updatedClassesIds = appliedClasses.filter((id) => id
|
|
803
|
+
const updatedClassesIds = appliedClasses.filter((id) => !classIDsToUnapply.includes(id));
|
|
803
804
|
setClasses(updatedClassesIds);
|
|
804
|
-
if (activeId
|
|
805
|
+
if (activeId && classIDsToUnapply.includes(activeId)) {
|
|
805
806
|
setActiveId(updatedClassesIds[0] ?? null);
|
|
806
807
|
}
|
|
807
808
|
},
|
|
@@ -834,7 +835,7 @@ function getUniqueDuplicateLabel(originalLabel, existingLabels) {
|
|
|
834
835
|
function DuplicateClassMenuItem({ closeMenu }) {
|
|
835
836
|
const { id: classId, provider } = useCssClass();
|
|
836
837
|
const { userCan } = useUserStylesCapability2();
|
|
837
|
-
const applyClass =
|
|
838
|
+
const applyClass = useUndoableApplyClass();
|
|
838
839
|
const [, setPendingEditId] = useSessionStorage2(PENDING_CLASS_RENAME_SESSION_KEY, "app");
|
|
839
840
|
if (!provider || !classId) {
|
|
840
841
|
return null;
|
|
@@ -1082,7 +1083,7 @@ function StateMenuItem({ state, label, closeMenu, ...props }) {
|
|
|
1082
1083
|
}
|
|
1083
1084
|
function UnapplyClassMenuItem({ closeMenu, ...props }) {
|
|
1084
1085
|
const { id: classId, label: classLabel, provider } = useCssClass();
|
|
1085
|
-
const unapplyClass =
|
|
1086
|
+
const unapplyClass = useUndoableUnapplyClass();
|
|
1086
1087
|
return classId ? /* @__PURE__ */ React9.createElement(
|
|
1087
1088
|
MenuListItem2,
|
|
1088
1089
|
{
|
|
@@ -1244,6 +1245,38 @@ var validateLabel = (newLabel) => {
|
|
|
1244
1245
|
return result.errorMessage;
|
|
1245
1246
|
};
|
|
1246
1247
|
|
|
1248
|
+
// src/components/css-classes/missing-classes-alert.tsx
|
|
1249
|
+
import * as React11 from "react";
|
|
1250
|
+
import { AlertTriangleFilledIcon } from "@elementor/icons";
|
|
1251
|
+
import { Alert, AlertTitle, Typography as Typography3 } from "@elementor/ui";
|
|
1252
|
+
import { __ as __6 } from "@wordpress/i18n";
|
|
1253
|
+
function MissingClassesAlert({ onDismiss }) {
|
|
1254
|
+
return /* @__PURE__ */ React11.createElement(
|
|
1255
|
+
Alert,
|
|
1256
|
+
{
|
|
1257
|
+
severity: "warning",
|
|
1258
|
+
onClose: onDismiss,
|
|
1259
|
+
size: "small",
|
|
1260
|
+
icon: /* @__PURE__ */ React11.createElement(AlertTriangleFilledIcon, { fontSize: "tiny" }),
|
|
1261
|
+
sx: { mt: 1 }
|
|
1262
|
+
},
|
|
1263
|
+
/* @__PURE__ */ React11.createElement(AlertTitle, null, __6("Some classes are missing", "elementor")),
|
|
1264
|
+
/* @__PURE__ */ React11.createElement(Typography3, { variant: "caption", textColor: "primary" }, __6("A class was removed from your site and is no longer active on this element", "elementor"))
|
|
1265
|
+
);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
// src/components/css-classes/use-missing-classes.ts
|
|
1269
|
+
import { useProviders } from "@elementor/editor-styles-repository";
|
|
1270
|
+
function useMissingClassesIds() {
|
|
1271
|
+
const providers = useProviders();
|
|
1272
|
+
const currentClassesProp = useClassesProp();
|
|
1273
|
+
const appliedIds = usePanelElementSetting(currentClassesProp)?.value ?? [];
|
|
1274
|
+
const allKnownIds = new Set(
|
|
1275
|
+
providers.flatMap((provider) => provider.actions.all().map((style) => style.id))
|
|
1276
|
+
);
|
|
1277
|
+
return appliedIds.filter((id) => !allKnownIds.has(id));
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1247
1280
|
// src/components/css-classes/css-class-selector.tsx
|
|
1248
1281
|
var ID = "elementor-css-class-selector";
|
|
1249
1282
|
var TAGS_LIMIT = 50;
|
|
@@ -1255,11 +1288,11 @@ function openClassManagerPanel() {
|
|
|
1255
1288
|
);
|
|
1256
1289
|
}
|
|
1257
1290
|
var EMPTY_OPTION = {
|
|
1258
|
-
label:
|
|
1291
|
+
label: __7("local", "elementor"),
|
|
1259
1292
|
value: null,
|
|
1260
1293
|
fixed: true,
|
|
1261
1294
|
color: getTempStylesProviderColorName("accent"),
|
|
1262
|
-
icon: /* @__PURE__ */
|
|
1295
|
+
icon: /* @__PURE__ */ React12.createElement(MapPinIcon, null),
|
|
1263
1296
|
provider: null
|
|
1264
1297
|
};
|
|
1265
1298
|
var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = createLocation2();
|
|
@@ -1275,7 +1308,13 @@ function CssClassSelector() {
|
|
|
1275
1308
|
const showPlaceholder = appliedOptions.every(({ fixed }) => fixed);
|
|
1276
1309
|
const { userCan } = useUserStylesCapability5();
|
|
1277
1310
|
const canEdit = active.provider ? userCan(active.provider).updateProps : true;
|
|
1278
|
-
|
|
1311
|
+
const missingClassesIds = useMissingClassesIds();
|
|
1312
|
+
const hasMissingClasses = missingClassesIds.length > 0;
|
|
1313
|
+
const unapplyClasses = useUnapplyClasses();
|
|
1314
|
+
const clearMissingClasses = useCallback2(() => {
|
|
1315
|
+
unapplyClasses(missingClassesIds);
|
|
1316
|
+
}, [missingClassesIds, unapplyClasses]);
|
|
1317
|
+
return /* @__PURE__ */ React12.createElement(Stack3, { p: 2 }, /* @__PURE__ */ React12.createElement(Stack3, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React12.createElement(FormLabel, { htmlFor: ID, size: "small" }, __7("Classes", "elementor")), /* @__PURE__ */ React12.createElement(Stack3, { direction: "row", gap: 1 }, /* @__PURE__ */ React12.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React12.createElement(
|
|
1279
1318
|
WarningInfotip,
|
|
1280
1319
|
{
|
|
1281
1320
|
open: Boolean(renameError),
|
|
@@ -1284,13 +1323,13 @@ function CssClassSelector() {
|
|
|
1284
1323
|
width: autocompleteRef.current?.getBoundingClientRect().width,
|
|
1285
1324
|
offset: [0, -15]
|
|
1286
1325
|
},
|
|
1287
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ React12.createElement(
|
|
1288
1327
|
CreatableAutocomplete,
|
|
1289
1328
|
{
|
|
1290
1329
|
id: ID,
|
|
1291
1330
|
ref: autocompleteRef,
|
|
1292
1331
|
size: "tiny",
|
|
1293
|
-
placeholder: showPlaceholder ?
|
|
1332
|
+
placeholder: showPlaceholder ? __7("Type class name", "elementor") : void 0,
|
|
1294
1333
|
options: options13,
|
|
1295
1334
|
selected: appliedOptions,
|
|
1296
1335
|
entityName,
|
|
@@ -1298,8 +1337,8 @@ function CssClassSelector() {
|
|
|
1298
1337
|
onCreate: create ?? void 0,
|
|
1299
1338
|
validate: validate ?? void 0,
|
|
1300
1339
|
limitTags: TAGS_LIMIT,
|
|
1301
|
-
renderEmptyState: isAtLimit && typeof limitCount === "number" ? (props) => /* @__PURE__ */
|
|
1302
|
-
getLimitTagsText: (more) => /* @__PURE__ */
|
|
1340
|
+
renderEmptyState: isAtLimit && typeof limitCount === "number" ? (props) => /* @__PURE__ */ React12.createElement(LimitReachedEmptyState, { limitCount, onClear: props.onClear }) : EmptyState,
|
|
1341
|
+
getLimitTagsText: (more) => /* @__PURE__ */ React12.createElement(Chip3, { size: "tiny", variant: "standard", label: `+${more}`, clickable: true }),
|
|
1303
1342
|
renderTags: (values, getTagProps) => values.map((value, index) => {
|
|
1304
1343
|
const chipProps = getTagProps({ index });
|
|
1305
1344
|
const isActive = value.value === active?.value;
|
|
@@ -1315,7 +1354,7 @@ function CssClassSelector() {
|
|
|
1315
1354
|
});
|
|
1316
1355
|
return updateClassByProvider(value.provider, { label: newLabel, id: value.value });
|
|
1317
1356
|
};
|
|
1318
|
-
return /* @__PURE__ */
|
|
1357
|
+
return /* @__PURE__ */ React12.createElement(
|
|
1319
1358
|
CssClassItem,
|
|
1320
1359
|
{
|
|
1321
1360
|
key: chipProps.key,
|
|
@@ -1335,9 +1374,9 @@ function CssClassSelector() {
|
|
|
1335
1374
|
})
|
|
1336
1375
|
}
|
|
1337
1376
|
)
|
|
1338
|
-
), !canEdit && /* @__PURE__ */
|
|
1377
|
+
), hasMissingClasses && /* @__PURE__ */ React12.createElement(MissingClassesAlert, { onDismiss: clearMissingClasses }), !canEdit && /* @__PURE__ */ React12.createElement(InfoAlert, { sx: { mt: 1 } }, __7("With your current role, you can use existing classes but can\u2019t modify them.", "elementor")));
|
|
1339
1378
|
}
|
|
1340
|
-
var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */
|
|
1379
|
+
var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ React12.createElement(Box2, { sx: { py: 4 } }, /* @__PURE__ */ React12.createElement(
|
|
1341
1380
|
Stack3,
|
|
1342
1381
|
{
|
|
1343
1382
|
gap: 1,
|
|
@@ -1346,16 +1385,16 @@ var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ R
|
|
|
1346
1385
|
justifyContent: "center",
|
|
1347
1386
|
sx: { px: 2, m: "auto", maxWidth: "236px" }
|
|
1348
1387
|
},
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1388
|
+
/* @__PURE__ */ React12.createElement(ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
|
|
1389
|
+
/* @__PURE__ */ React12.createElement(Typography4, { align: "center", variant: "subtitle2" }, __7("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React12.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
1351
1390
|
children,
|
|
1352
|
-
/* @__PURE__ */
|
|
1391
|
+
/* @__PURE__ */ React12.createElement(Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __7("Clear & try again", "elementor"))
|
|
1353
1392
|
));
|
|
1354
|
-
var EmptyState = (props) => /* @__PURE__ */
|
|
1393
|
+
var EmptyState = (props) => /* @__PURE__ */ React12.createElement(EmptyStateLayout, { ...props }, /* @__PURE__ */ React12.createElement(Typography4, { align: "center", variant: "caption", sx: { mb: 2 } }, __7("With your current role,", "elementor"), /* @__PURE__ */ React12.createElement("br", null), __7("you can only use existing classes.", "elementor")));
|
|
1355
1394
|
var LimitReachedEmptyState = ({
|
|
1356
1395
|
limitCount,
|
|
1357
1396
|
onClear
|
|
1358
|
-
}) => /* @__PURE__ */
|
|
1397
|
+
}) => /* @__PURE__ */ React12.createElement(Box2, { sx: { py: 4 } }, /* @__PURE__ */ React12.createElement(
|
|
1359
1398
|
Stack3,
|
|
1360
1399
|
{
|
|
1361
1400
|
gap: 1,
|
|
@@ -1364,14 +1403,14 @@ var LimitReachedEmptyState = ({
|
|
|
1364
1403
|
justifyContent: "center",
|
|
1365
1404
|
sx: { px: 1, m: "auto", maxWidth: "260px" }
|
|
1366
1405
|
},
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
|
|
1406
|
+
/* @__PURE__ */ React12.createElement(ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
|
|
1407
|
+
/* @__PURE__ */ React12.createElement(
|
|
1408
|
+
Typography4,
|
|
1370
1409
|
{ align: "center", variant: "subtitle2" },
|
|
1371
1410
|
/* translators: %s is the maximum number of classes */
|
|
1372
|
-
|
|
1411
|
+
__7("Limit of %s classes reached", "elementor").replace("%s", String(limitCount))
|
|
1373
1412
|
),
|
|
1374
|
-
/* @__PURE__ */
|
|
1413
|
+
/* @__PURE__ */ React12.createElement(Typography4, { align: "center", variant: "caption", component: "div" }, __7("Remove a class to create a new one.", "elementor"), " ", /* @__PURE__ */ React12.createElement(
|
|
1375
1414
|
Link,
|
|
1376
1415
|
{
|
|
1377
1416
|
color: "inherit",
|
|
@@ -1380,9 +1419,9 @@ var LimitReachedEmptyState = ({
|
|
|
1380
1419
|
onClick: onClear,
|
|
1381
1420
|
sx: { verticalAlign: "baseline" }
|
|
1382
1421
|
},
|
|
1383
|
-
|
|
1422
|
+
__7("Clear", "elementor")
|
|
1384
1423
|
)),
|
|
1385
|
-
/* @__PURE__ */
|
|
1424
|
+
/* @__PURE__ */ React12.createElement(
|
|
1386
1425
|
Button,
|
|
1387
1426
|
{
|
|
1388
1427
|
variant: "outlined",
|
|
@@ -1393,7 +1432,7 @@ var LimitReachedEmptyState = ({
|
|
|
1393
1432
|
onClear();
|
|
1394
1433
|
}
|
|
1395
1434
|
},
|
|
1396
|
-
|
|
1435
|
+
__7("Class Manager", "elementor")
|
|
1397
1436
|
)
|
|
1398
1437
|
));
|
|
1399
1438
|
var updateClassByProvider = (provider, data) => {
|
|
@@ -1409,7 +1448,7 @@ var updateClassByProvider = (provider, data) => {
|
|
|
1409
1448
|
function useOptions() {
|
|
1410
1449
|
const { element } = useElement();
|
|
1411
1450
|
const isProviderEditable = (provider) => !!provider.actions.updateProps;
|
|
1412
|
-
return
|
|
1451
|
+
return useProviders2().filter(isProviderEditable).flatMap((provider) => {
|
|
1413
1452
|
const isElements = isElementsStylesProvider4(provider.getKey());
|
|
1414
1453
|
const styleDefs = provider.actions.all({ elementId: element.id });
|
|
1415
1454
|
if (isElements && styleDefs.length === 0) {
|
|
@@ -1421,7 +1460,7 @@ function useOptions() {
|
|
|
1421
1460
|
value: styleDef.id,
|
|
1422
1461
|
fixed: isElements,
|
|
1423
1462
|
color: getTempStylesProviderColorName(getStylesProviderColorName(provider.getKey())),
|
|
1424
|
-
icon: isElements ? /* @__PURE__ */
|
|
1463
|
+
icon: isElements ? /* @__PURE__ */ React12.createElement(MapPinIcon, null) : null,
|
|
1425
1464
|
provider: provider.getKey()
|
|
1426
1465
|
};
|
|
1427
1466
|
});
|
|
@@ -1469,8 +1508,8 @@ function useAppliedOptions(options13) {
|
|
|
1469
1508
|
return appliedOptions;
|
|
1470
1509
|
}
|
|
1471
1510
|
function useHandleSelect() {
|
|
1472
|
-
const apply =
|
|
1473
|
-
const unapply =
|
|
1511
|
+
const apply = useUndoableApplyClass();
|
|
1512
|
+
const unapply = useUndoableUnapplyClass();
|
|
1474
1513
|
return (_selectedOptions, reason, option) => {
|
|
1475
1514
|
if (!option.value) {
|
|
1476
1515
|
return;
|
|
@@ -1495,7 +1534,7 @@ function useHandleSelect() {
|
|
|
1495
1534
|
}
|
|
1496
1535
|
|
|
1497
1536
|
// src/components/custom-css-indicator.tsx
|
|
1498
|
-
import * as
|
|
1537
|
+
import * as React13 from "react";
|
|
1499
1538
|
import { useMemo as useMemo6 } from "react";
|
|
1500
1539
|
import { getBreakpointsTree } from "@elementor/editor-responsive";
|
|
1501
1540
|
import { getVariantByMeta as getVariantByMeta3 } from "@elementor/editor-styles";
|
|
@@ -1527,7 +1566,7 @@ import { getVariantByMeta } from "@elementor/editor-styles";
|
|
|
1527
1566
|
import { isElementsStylesProvider as isElementsStylesProvider5 } from "@elementor/editor-styles-repository";
|
|
1528
1567
|
import { ELEMENTS_STYLES_RESERVED_LABEL } from "@elementor/editor-styles-repository";
|
|
1529
1568
|
import { undoable as undoable2 } from "@elementor/editor-v1-adapters";
|
|
1530
|
-
import { __ as
|
|
1569
|
+
import { __ as __8 } from "@wordpress/i18n";
|
|
1531
1570
|
|
|
1532
1571
|
// src/hooks/use-styles-rerender.ts
|
|
1533
1572
|
import { useEffect as useEffect2, useReducer } from "react";
|
|
@@ -1640,21 +1679,21 @@ function getCurrentProps(style, meta) {
|
|
|
1640
1679
|
var defaultHistoryTitles = {
|
|
1641
1680
|
title: ({ provider }) => {
|
|
1642
1681
|
const providerLabel = provider.labels?.singular;
|
|
1643
|
-
return providerLabel ? capitalize(providerLabel) :
|
|
1682
|
+
return providerLabel ? capitalize(providerLabel) : __8("Style", "elementor");
|
|
1644
1683
|
},
|
|
1645
1684
|
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
1646
1685
|
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
1647
1686
|
if (!styleLabel) {
|
|
1648
1687
|
throw new Error(`Style ${styleId} not found`);
|
|
1649
1688
|
}
|
|
1650
|
-
return
|
|
1689
|
+
return __8(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
1651
1690
|
}
|
|
1652
1691
|
};
|
|
1653
1692
|
var localStyleHistoryTitles = {
|
|
1654
1693
|
title: ({ elementId }) => getElementLabel2(elementId),
|
|
1655
1694
|
subtitle: ({ propDisplayName }) => (
|
|
1656
1695
|
// translators: %s is the name of the style property being edited
|
|
1657
|
-
|
|
1696
|
+
__8(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
1658
1697
|
)
|
|
1659
1698
|
};
|
|
1660
1699
|
function capitalize(str) {
|
|
@@ -1805,11 +1844,11 @@ var CustomCssIndicator = () => {
|
|
|
1805
1844
|
}, [hasContent, style, meta]);
|
|
1806
1845
|
if (!hasContent) {
|
|
1807
1846
|
if (hasInheritedContent) {
|
|
1808
|
-
return /* @__PURE__ */
|
|
1847
|
+
return /* @__PURE__ */ React13.createElement(StyleIndicator, null);
|
|
1809
1848
|
}
|
|
1810
1849
|
return null;
|
|
1811
1850
|
}
|
|
1812
|
-
return /* @__PURE__ */
|
|
1851
|
+
return /* @__PURE__ */ React13.createElement(StyleIndicator, { getColor: provider ? getStylesProviderThemeColor(provider.getKey()) : void 0 });
|
|
1813
1852
|
};
|
|
1814
1853
|
var hasInheritedCustomCss = (style, meta) => {
|
|
1815
1854
|
if (!style || !meta) {
|
|
@@ -1843,7 +1882,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1843
1882
|
};
|
|
1844
1883
|
|
|
1845
1884
|
// src/components/editing-panel.tsx
|
|
1846
|
-
import * as
|
|
1885
|
+
import * as React88 from "react";
|
|
1847
1886
|
import {
|
|
1848
1887
|
ControlActionsProvider,
|
|
1849
1888
|
ControlReplacementsProvider,
|
|
@@ -1857,7 +1896,7 @@ import { createLocation as createLocation4 } from "@elementor/locations";
|
|
|
1857
1896
|
import { controlActionsMenu } from "@elementor/menus";
|
|
1858
1897
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1859
1898
|
import { ErrorBoundary } from "@elementor/ui";
|
|
1860
|
-
import { __ as
|
|
1899
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
1861
1900
|
|
|
1862
1901
|
// src/editing-panel-replacement-registry.tsx
|
|
1863
1902
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -1872,22 +1911,22 @@ var registerEditingPanelReplacement = ({
|
|
|
1872
1911
|
var getEditingPanelReplacement = (element, elementType) => Array.from(registry.values()).filter(({ condition }) => condition(element, elementType)).sort((a, b) => a.priority - b.priority)?.[0] ?? null;
|
|
1873
1912
|
|
|
1874
1913
|
// src/components/editing-panel-error-fallback.tsx
|
|
1875
|
-
import * as
|
|
1876
|
-
import { Alert, Box as Box3 } from "@elementor/ui";
|
|
1914
|
+
import * as React14 from "react";
|
|
1915
|
+
import { Alert as Alert2, Box as Box3 } from "@elementor/ui";
|
|
1877
1916
|
function EditorPanelErrorFallback() {
|
|
1878
|
-
return /* @__PURE__ */
|
|
1917
|
+
return /* @__PURE__ */ React14.createElement(Box3, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React14.createElement(Alert2, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React14.createElement("strong", null, "Something went wrong")));
|
|
1879
1918
|
}
|
|
1880
1919
|
|
|
1881
1920
|
// src/components/editing-panel-tabs.tsx
|
|
1882
1921
|
import { Fragment as Fragment9 } from "react";
|
|
1883
|
-
import * as
|
|
1922
|
+
import * as React87 from "react";
|
|
1884
1923
|
import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
|
|
1885
1924
|
import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
|
|
1886
1925
|
import { Divider as Divider6, Stack as Stack13, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1887
|
-
import { __ as
|
|
1926
|
+
import { __ as __61 } from "@wordpress/i18n";
|
|
1888
1927
|
|
|
1889
1928
|
// src/contexts/scroll-context.tsx
|
|
1890
|
-
import * as
|
|
1929
|
+
import * as React15 from "react";
|
|
1891
1930
|
import { createContext as createContext5, useContext as useContext5, useEffect as useEffect3, useRef as useRef2, useState as useState5 } from "react";
|
|
1892
1931
|
import { styled as styled3 } from "@elementor/ui";
|
|
1893
1932
|
var ScrollContext = createContext5(void 0);
|
|
@@ -1919,7 +1958,7 @@ function ScrollProvider({ children }) {
|
|
|
1919
1958
|
scrollElement.removeEventListener("scroll", handleScroll);
|
|
1920
1959
|
};
|
|
1921
1960
|
});
|
|
1922
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ React15.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React15.createElement(ScrollPanel, { ref }, children));
|
|
1923
1962
|
}
|
|
1924
1963
|
function useScrollDirection() {
|
|
1925
1964
|
return useContext5(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
|
|
@@ -1974,24 +2013,24 @@ var useStateByElement = (key, initialValue) => {
|
|
|
1974
2013
|
};
|
|
1975
2014
|
|
|
1976
2015
|
// src/components/interactions-tab.tsx
|
|
1977
|
-
import * as
|
|
2016
|
+
import * as React17 from "react";
|
|
1978
2017
|
import { InteractionsTab as InteractionsTabContent } from "@elementor/editor-interactions";
|
|
1979
2018
|
|
|
1980
2019
|
// src/components/sections-list.tsx
|
|
1981
|
-
import * as
|
|
2020
|
+
import * as React16 from "react";
|
|
1982
2021
|
import { List } from "@elementor/ui";
|
|
1983
2022
|
function SectionsList(props) {
|
|
1984
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ React16.createElement(List, { disablePadding: true, component: "div", ...props });
|
|
1985
2024
|
}
|
|
1986
2025
|
|
|
1987
2026
|
// src/components/interactions-tab.tsx
|
|
1988
2027
|
var InteractionsTab = () => {
|
|
1989
2028
|
const { element } = useElement();
|
|
1990
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ React17.createElement(SectionsList, null, /* @__PURE__ */ React17.createElement(InteractionsTabContent, { elementId: element.id }));
|
|
1991
2030
|
};
|
|
1992
2031
|
|
|
1993
2032
|
// src/components/settings-tab.tsx
|
|
1994
|
-
import * as
|
|
2033
|
+
import * as React24 from "react";
|
|
1995
2034
|
import { SessionStorageProvider } from "@elementor/session";
|
|
1996
2035
|
|
|
1997
2036
|
// src/utils/prop-dependency-utils.ts
|
|
@@ -2208,7 +2247,7 @@ function removePreviousValueFromStorage({ path, elementId }) {
|
|
|
2208
2247
|
}
|
|
2209
2248
|
|
|
2210
2249
|
// src/components/section.tsx
|
|
2211
|
-
import * as
|
|
2250
|
+
import * as React18 from "react";
|
|
2212
2251
|
import { useId as useId2, useRef as useRef3 } from "react";
|
|
2213
2252
|
import { CollapseIcon, getCollapsibleValue, SectionRefContext } from "@elementor/editor-ui";
|
|
2214
2253
|
import { Collapse, Divider as Divider2, ListItemButton, ListItemText, Stack as Stack4 } from "@elementor/ui";
|
|
@@ -2226,7 +2265,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2226
2265
|
const id = useId2();
|
|
2227
2266
|
const labelId = `label-${id}`;
|
|
2228
2267
|
const contentId = `content-${id}`;
|
|
2229
|
-
return /* @__PURE__ */
|
|
2268
|
+
return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
|
|
2230
2269
|
ListItemButton,
|
|
2231
2270
|
{
|
|
2232
2271
|
id: labelId,
|
|
@@ -2235,7 +2274,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2235
2274
|
onClick: handleClick,
|
|
2236
2275
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2237
2276
|
},
|
|
2238
|
-
/* @__PURE__ */
|
|
2277
|
+
/* @__PURE__ */ React18.createElement(Stack4, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React18.createElement(
|
|
2239
2278
|
ListItemText,
|
|
2240
2279
|
{
|
|
2241
2280
|
secondary: title,
|
|
@@ -2244,7 +2283,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2244
2283
|
}
|
|
2245
2284
|
), getCollapsibleValue(titleEnd, isOpen)),
|
|
2246
2285
|
action?.component,
|
|
2247
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ React18.createElement(
|
|
2248
2287
|
CollapseIcon,
|
|
2249
2288
|
{
|
|
2250
2289
|
open: isOpen,
|
|
@@ -2254,7 +2293,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2254
2293
|
sx: { ml: 1 }
|
|
2255
2294
|
}
|
|
2256
2295
|
)
|
|
2257
|
-
), /* @__PURE__ */
|
|
2296
|
+
), /* @__PURE__ */ React18.createElement(
|
|
2258
2297
|
Collapse,
|
|
2259
2298
|
{
|
|
2260
2299
|
id: contentId,
|
|
@@ -2263,17 +2302,17 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2263
2302
|
timeout: "auto",
|
|
2264
2303
|
unmountOnExit
|
|
2265
2304
|
},
|
|
2266
|
-
/* @__PURE__ */
|
|
2267
|
-
), /* @__PURE__ */
|
|
2305
|
+
/* @__PURE__ */ React18.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React18.createElement(Stack4, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
|
|
2306
|
+
), /* @__PURE__ */ React18.createElement(Divider2, null));
|
|
2268
2307
|
}
|
|
2269
2308
|
|
|
2270
2309
|
// src/components/settings-control.tsx
|
|
2271
|
-
import * as
|
|
2310
|
+
import * as React23 from "react";
|
|
2272
2311
|
import { ControlAdornmentsProvider } from "@elementor/editor-controls";
|
|
2273
2312
|
import { Divider as Divider3, styled as styled5 } from "@elementor/ui";
|
|
2274
2313
|
|
|
2275
2314
|
// src/controls-registry/control.tsx
|
|
2276
|
-
import * as
|
|
2315
|
+
import * as React19 from "react";
|
|
2277
2316
|
|
|
2278
2317
|
// src/controls-registry/controls-registry.tsx
|
|
2279
2318
|
import {
|
|
@@ -2404,17 +2443,17 @@ var Control = ({ props, type }) => {
|
|
|
2404
2443
|
context: { controlType: type }
|
|
2405
2444
|
});
|
|
2406
2445
|
}
|
|
2407
|
-
return /* @__PURE__ */
|
|
2446
|
+
return /* @__PURE__ */ React19.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
2408
2447
|
};
|
|
2409
2448
|
|
|
2410
2449
|
// src/controls-registry/control-type-container.tsx
|
|
2411
|
-
import * as
|
|
2450
|
+
import * as React20 from "react";
|
|
2412
2451
|
import { Box as Box4, styled as styled4 } from "@elementor/ui";
|
|
2413
2452
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
2414
2453
|
if (layout === "custom") {
|
|
2415
2454
|
return children;
|
|
2416
2455
|
}
|
|
2417
|
-
return /* @__PURE__ */
|
|
2456
|
+
return /* @__PURE__ */ React20.createElement(StyledContainer, { layout }, children);
|
|
2418
2457
|
};
|
|
2419
2458
|
var StyledContainer = styled4(Box4, {
|
|
2420
2459
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
@@ -2442,13 +2481,13 @@ var getStyleByLayout = (layout) => {
|
|
|
2442
2481
|
};
|
|
2443
2482
|
|
|
2444
2483
|
// src/controls-registry/settings-field.tsx
|
|
2445
|
-
import * as
|
|
2484
|
+
import * as React21 from "react";
|
|
2446
2485
|
import { useMemo as useMemo7 } from "react";
|
|
2447
2486
|
import { PropKeyProvider, PropProvider } from "@elementor/editor-controls";
|
|
2448
2487
|
import { setDocumentModifiedStatus as setDocumentModifiedStatus2 } from "@elementor/editor-documents";
|
|
2449
2488
|
import { getElementLabel as getElementLabel3, getElementSettings, updateElementSettings as updateElementSettings3 } from "@elementor/editor-elements";
|
|
2450
2489
|
import { undoable as undoable4 } from "@elementor/editor-v1-adapters";
|
|
2451
|
-
import { __ as
|
|
2490
|
+
import { __ as __9 } from "@wordpress/i18n";
|
|
2452
2491
|
|
|
2453
2492
|
// src/controls-registry/create-top-level-object-type.ts
|
|
2454
2493
|
var createTopLevelObjectType = ({ schema }) => {
|
|
@@ -2492,7 +2531,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2492
2531
|
updateElementSettings3({ id: elementId, props: settings, withHistory: false });
|
|
2493
2532
|
}
|
|
2494
2533
|
};
|
|
2495
|
-
return /* @__PURE__ */
|
|
2534
|
+
return /* @__PURE__ */ React21.createElement(PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React21.createElement(PropKeyProvider, { bind }, children));
|
|
2496
2535
|
};
|
|
2497
2536
|
function useUndoableUpdateElementProp({
|
|
2498
2537
|
elementId,
|
|
@@ -2514,7 +2553,7 @@ function useUndoableUpdateElementProp({
|
|
|
2514
2553
|
{
|
|
2515
2554
|
title: getElementLabel3(elementId),
|
|
2516
2555
|
// translators: %s is the name of the property that was edited.
|
|
2517
|
-
subtitle:
|
|
2556
|
+
subtitle: __9("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2518
2557
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2519
2558
|
}
|
|
2520
2559
|
);
|
|
@@ -2542,11 +2581,11 @@ var registerFieldIndicator = ({
|
|
|
2542
2581
|
var getFieldIndicators = (fieldType) => Array.from(indicatorsRegistry[fieldType].values()).sort((a, b) => a.priority - b.priority).map(({ id, indicator: Adornment }) => ({ id, Adornment }));
|
|
2543
2582
|
|
|
2544
2583
|
// src/components/control-label.tsx
|
|
2545
|
-
import * as
|
|
2584
|
+
import * as React22 from "react";
|
|
2546
2585
|
import { ControlAdornments, ControlFormLabel } from "@elementor/editor-controls";
|
|
2547
2586
|
import { Stack as Stack5 } from "@elementor/ui";
|
|
2548
2587
|
var ControlLabel = ({ children }) => {
|
|
2549
|
-
return /* @__PURE__ */
|
|
2588
|
+
return /* @__PURE__ */ React22.createElement(Stack5, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React22.createElement(ControlFormLabel, null, children), /* @__PURE__ */ React22.createElement(ControlAdornments, null));
|
|
2550
2589
|
};
|
|
2551
2590
|
|
|
2552
2591
|
// src/components/settings-control.tsx
|
|
@@ -2563,9 +2602,9 @@ var SettingsControl = ({ control: { value, type } }) => {
|
|
|
2563
2602
|
controlProps.label = value.label;
|
|
2564
2603
|
}
|
|
2565
2604
|
if (type === "element-control") {
|
|
2566
|
-
return /* @__PURE__ */
|
|
2605
|
+
return /* @__PURE__ */ React23.createElement(ControlLayout, { control: value, layout, controlProps });
|
|
2567
2606
|
}
|
|
2568
|
-
return /* @__PURE__ */
|
|
2607
|
+
return /* @__PURE__ */ React23.createElement(SettingsField, { bind: value.bind, propDisplayName: value.label || value.bind }, /* @__PURE__ */ React23.createElement(ControlLayout, { control: value, layout, controlProps }));
|
|
2569
2608
|
};
|
|
2570
2609
|
var ControlLayout = ({
|
|
2571
2610
|
control,
|
|
@@ -2573,7 +2612,7 @@ var ControlLayout = ({
|
|
|
2573
2612
|
controlProps
|
|
2574
2613
|
}) => {
|
|
2575
2614
|
const controlType = control.type;
|
|
2576
|
-
return /* @__PURE__ */
|
|
2615
|
+
return /* @__PURE__ */ React23.createElement(ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React23.createElement(Divider3, null), /* @__PURE__ */ React23.createElement(Wrapper, { "data-type": "settings-field" }, /* @__PURE__ */ React23.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React23.createElement(ControlLabel, null, control.label) : null, /* @__PURE__ */ React23.createElement(Control, { type: controlType, props: controlProps }))));
|
|
2577
2616
|
};
|
|
2578
2617
|
function populateChildControlProps(props) {
|
|
2579
2618
|
if (props.childControlType) {
|
|
@@ -2597,9 +2636,9 @@ var SettingsTab = () => {
|
|
|
2597
2636
|
const settingsDefault = useDefaultPanelSettings();
|
|
2598
2637
|
const currentSettings = settings;
|
|
2599
2638
|
const isDefaultExpanded = (sectionId) => settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2600
|
-
return /* @__PURE__ */
|
|
2639
|
+
return /* @__PURE__ */ React24.createElement(SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React24.createElement(SectionsList, null, elementType.controls.map((control, index) => {
|
|
2601
2640
|
if (isControl(control)) {
|
|
2602
|
-
return /* @__PURE__ */
|
|
2641
|
+
return /* @__PURE__ */ React24.createElement(SettingsControl, { key: getKey(control, element), control });
|
|
2603
2642
|
}
|
|
2604
2643
|
const { type, value } = control;
|
|
2605
2644
|
if (type === "section") {
|
|
@@ -2612,7 +2651,7 @@ var SettingsTab = () => {
|
|
|
2612
2651
|
if (!sectionItems.length) {
|
|
2613
2652
|
return null;
|
|
2614
2653
|
}
|
|
2615
|
-
return /* @__PURE__ */
|
|
2654
|
+
return /* @__PURE__ */ React24.createElement(
|
|
2616
2655
|
Section,
|
|
2617
2656
|
{
|
|
2618
2657
|
title: value.label,
|
|
@@ -2647,7 +2686,7 @@ function renderSectionItems({
|
|
|
2647
2686
|
if (item.type === "control" && isControlHiddenByDependencies(item, propsSchema, settings)) {
|
|
2648
2687
|
return [];
|
|
2649
2688
|
}
|
|
2650
|
-
return [/* @__PURE__ */
|
|
2689
|
+
return [/* @__PURE__ */ React24.createElement(SettingsControl, { key: getKey(item, element), control: item })];
|
|
2651
2690
|
}) ?? [];
|
|
2652
2691
|
}
|
|
2653
2692
|
function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
@@ -2656,17 +2695,17 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2656
2695
|
}
|
|
2657
2696
|
|
|
2658
2697
|
// src/components/style-tab.tsx
|
|
2659
|
-
import * as
|
|
2698
|
+
import * as React86 from "react";
|
|
2660
2699
|
import { useState as useState9 } from "react";
|
|
2661
2700
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2662
2701
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
2663
2702
|
import { createLocation as createLocation3 } from "@elementor/locations";
|
|
2664
2703
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
2665
2704
|
import { Box as Box6, Divider as Divider5, Stack as Stack12 } from "@elementor/ui";
|
|
2666
|
-
import { __ as
|
|
2705
|
+
import { __ as __60 } from "@wordpress/i18n";
|
|
2667
2706
|
|
|
2668
2707
|
// src/contexts/styles-inheritance-context.tsx
|
|
2669
|
-
import * as
|
|
2708
|
+
import * as React25 from "react";
|
|
2670
2709
|
import { createContext as createContext7, useContext as useContext7, useMemo as useMemo8 } from "react";
|
|
2671
2710
|
import { getWidgetsCache } from "@elementor/editor-elements";
|
|
2672
2711
|
import { classesPropTypeUtil as classesPropTypeUtil3 } from "@elementor/editor-props";
|
|
@@ -2907,7 +2946,7 @@ function StyleInheritanceProvider({ children }) {
|
|
|
2907
2946
|
const styleDefs = useAppliedStyles();
|
|
2908
2947
|
const breakpointsTree = getBreakpointsTree2();
|
|
2909
2948
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
2910
|
-
return /* @__PURE__ */
|
|
2949
|
+
return /* @__PURE__ */ React25.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
2911
2950
|
}
|
|
2912
2951
|
function useStylesInheritanceSnapshot() {
|
|
2913
2952
|
const context = useContext7(Context4);
|
|
@@ -2960,16 +2999,25 @@ var useBaseStyles = () => {
|
|
|
2960
2999
|
|
|
2961
3000
|
// src/hooks/use-active-style-def-id.ts
|
|
2962
3001
|
import { getElementStyles } from "@elementor/editor-elements";
|
|
3002
|
+
import { useProviders as useProviders3 } from "@elementor/editor-styles-repository";
|
|
2963
3003
|
function useActiveStyleDefId(classProp) {
|
|
2964
3004
|
const [activeStyledDefId, setActiveStyledDefId] = useStateByElement(
|
|
2965
3005
|
"active-style-id",
|
|
2966
3006
|
null
|
|
2967
3007
|
);
|
|
2968
3008
|
const appliedClassesIds = usePanelElementSetting(classProp)?.value || [];
|
|
3009
|
+
const validAppliedClassesIds = useValidClassIds(appliedClassesIds);
|
|
2969
3010
|
const fallback = useFirstAppliedClass(appliedClassesIds);
|
|
2970
|
-
const activeAndAppliedClassId = useActiveAndAppliedClassId(activeStyledDefId,
|
|
3011
|
+
const activeAndAppliedClassId = useActiveAndAppliedClassId(activeStyledDefId, validAppliedClassesIds);
|
|
2971
3012
|
return [activeAndAppliedClassId || fallback?.id || null, setActiveStyledDefId];
|
|
2972
3013
|
}
|
|
3014
|
+
function useValidClassIds(appliedClassesIds) {
|
|
3015
|
+
const providers = useProviders3();
|
|
3016
|
+
const allKnownIds = new Set(
|
|
3017
|
+
providers.flatMap((provider) => provider.actions.all().map((style) => style.id))
|
|
3018
|
+
);
|
|
3019
|
+
return appliedClassesIds.filter((id) => allKnownIds.has(id));
|
|
3020
|
+
}
|
|
2973
3021
|
function useFirstAppliedClass(appliedClassesIds) {
|
|
2974
3022
|
const { element } = useElement();
|
|
2975
3023
|
const stylesDefs = getElementStyles(element.id) ?? {};
|
|
@@ -2981,12 +3029,12 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
2981
3029
|
}
|
|
2982
3030
|
|
|
2983
3031
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2984
|
-
import * as
|
|
3032
|
+
import * as React28 from "react";
|
|
2985
3033
|
import { BackgroundControl } from "@elementor/editor-controls";
|
|
2986
|
-
import { __ as
|
|
3034
|
+
import { __ as __10 } from "@wordpress/i18n";
|
|
2987
3035
|
|
|
2988
3036
|
// src/controls-registry/styles-field.tsx
|
|
2989
|
-
import * as
|
|
3037
|
+
import * as React26 from "react";
|
|
2990
3038
|
import { ControlAdornmentsProvider as ControlAdornmentsProvider2, PropKeyProvider as PropKeyProvider2, PropProvider as PropProvider2 } from "@elementor/editor-controls";
|
|
2991
3039
|
import { dimensionsPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil2 } from "@elementor/editor-props";
|
|
2992
3040
|
import { getStylesSchema as getStylesSchema2 } from "@elementor/editor-styles";
|
|
@@ -3131,7 +3179,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3131
3179
|
const setValue = (newValue) => {
|
|
3132
3180
|
fields.setValue(newValue[bind]);
|
|
3133
3181
|
};
|
|
3134
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ React26.createElement(ControlAdornmentsProvider2, { items: getFieldIndicators("styles") }, /* @__PURE__ */ React26.createElement(
|
|
3135
3183
|
PropProvider2,
|
|
3136
3184
|
{
|
|
3137
3185
|
propType,
|
|
@@ -3140,12 +3188,12 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3140
3188
|
placeholder: placeholderValues,
|
|
3141
3189
|
isDisabled: () => !canEdit
|
|
3142
3190
|
},
|
|
3143
|
-
/* @__PURE__ */
|
|
3191
|
+
/* @__PURE__ */ React26.createElement(PropKeyProvider2, { bind }, /* @__PURE__ */ React26.createElement(ConditionalField, null, children))
|
|
3144
3192
|
));
|
|
3145
3193
|
};
|
|
3146
3194
|
|
|
3147
3195
|
// src/components/section-content.tsx
|
|
3148
|
-
import * as
|
|
3196
|
+
import * as React27 from "react";
|
|
3149
3197
|
import { Stack as Stack6 } from "@elementor/ui";
|
|
3150
3198
|
var SectionContent = ({
|
|
3151
3199
|
gap = 2,
|
|
@@ -3153,33 +3201,33 @@ var SectionContent = ({
|
|
|
3153
3201
|
children,
|
|
3154
3202
|
"aria-label": ariaLabel,
|
|
3155
3203
|
className
|
|
3156
|
-
}) => /* @__PURE__ */
|
|
3204
|
+
}) => /* @__PURE__ */ React27.createElement(Stack6, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3157
3205
|
|
|
3158
3206
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3159
|
-
var BACKGROUND_LABEL =
|
|
3207
|
+
var BACKGROUND_LABEL = __10("Background", "elementor");
|
|
3160
3208
|
var BackgroundSection = () => {
|
|
3161
|
-
return /* @__PURE__ */
|
|
3209
|
+
return /* @__PURE__ */ React28.createElement(SectionContent, null, /* @__PURE__ */ React28.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React28.createElement(BackgroundControl, null)));
|
|
3162
3210
|
};
|
|
3163
3211
|
|
|
3164
3212
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3165
|
-
import * as
|
|
3213
|
+
import * as React35 from "react";
|
|
3166
3214
|
|
|
3167
3215
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3168
|
-
import * as
|
|
3216
|
+
import * as React30 from "react";
|
|
3169
3217
|
import { ColorControl } from "@elementor/editor-controls";
|
|
3170
|
-
import { __ as
|
|
3218
|
+
import { __ as __11 } from "@wordpress/i18n";
|
|
3171
3219
|
|
|
3172
3220
|
// src/components/styles-field-layout.tsx
|
|
3173
|
-
import * as
|
|
3221
|
+
import * as React29 from "react";
|
|
3174
3222
|
import { Grid, Stack as Stack7 } from "@elementor/ui";
|
|
3175
|
-
var StylesFieldLayout =
|
|
3223
|
+
var StylesFieldLayout = React29.forwardRef((props, ref) => {
|
|
3176
3224
|
const { direction = "row", children, label } = props;
|
|
3177
3225
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3178
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ React29.createElement(LayoutComponent, { label, ref, children });
|
|
3179
3227
|
});
|
|
3180
|
-
var Row =
|
|
3228
|
+
var Row = React29.forwardRef(
|
|
3181
3229
|
({ label, children }, ref) => {
|
|
3182
|
-
return /* @__PURE__ */
|
|
3230
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3183
3231
|
Grid,
|
|
3184
3232
|
{
|
|
3185
3233
|
container: true,
|
|
@@ -3189,8 +3237,8 @@ var Row = React28.forwardRef(
|
|
|
3189
3237
|
ref,
|
|
3190
3238
|
"aria-label": `${label} control`
|
|
3191
3239
|
},
|
|
3192
|
-
/* @__PURE__ */
|
|
3193
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ React29.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React29.createElement(ControlLabel, null, label)),
|
|
3241
|
+
/* @__PURE__ */ React29.createElement(
|
|
3194
3242
|
Grid,
|
|
3195
3243
|
{
|
|
3196
3244
|
item: true,
|
|
@@ -3204,18 +3252,18 @@ var Row = React28.forwardRef(
|
|
|
3204
3252
|
);
|
|
3205
3253
|
}
|
|
3206
3254
|
);
|
|
3207
|
-
var Column =
|
|
3255
|
+
var Column = React29.forwardRef(
|
|
3208
3256
|
({ label, children }, ref) => {
|
|
3209
|
-
return /* @__PURE__ */
|
|
3257
|
+
return /* @__PURE__ */ React29.createElement(Stack7, { gap: 0.75, ref }, /* @__PURE__ */ React29.createElement(ControlLabel, null, label), children);
|
|
3210
3258
|
}
|
|
3211
3259
|
);
|
|
3212
3260
|
|
|
3213
3261
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3214
|
-
var BORDER_COLOR_LABEL =
|
|
3215
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3262
|
+
var BORDER_COLOR_LABEL = __11("Border color", "elementor");
|
|
3263
|
+
var BorderColorField = () => /* @__PURE__ */ React30.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(ColorControl, null)));
|
|
3216
3264
|
|
|
3217
3265
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3218
|
-
import * as
|
|
3266
|
+
import * as React32 from "react";
|
|
3219
3267
|
import { EqualUnequalSizesControl } from "@elementor/editor-controls";
|
|
3220
3268
|
import { borderRadiusPropTypeUtil } from "@elementor/editor-props";
|
|
3221
3269
|
import {
|
|
@@ -3226,7 +3274,7 @@ import {
|
|
|
3226
3274
|
RadiusTopRightIcon
|
|
3227
3275
|
} from "@elementor/icons";
|
|
3228
3276
|
import { withDirection } from "@elementor/ui";
|
|
3229
|
-
import { __ as
|
|
3277
|
+
import { __ as __12 } from "@wordpress/i18n";
|
|
3230
3278
|
|
|
3231
3279
|
// src/hooks/use-direction.ts
|
|
3232
3280
|
import { getElementorFrontendConfig } from "@elementor/editor-v1-adapters";
|
|
@@ -3238,147 +3286,147 @@ function useDirection() {
|
|
|
3238
3286
|
}
|
|
3239
3287
|
|
|
3240
3288
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3241
|
-
import * as
|
|
3289
|
+
import * as React31 from "react";
|
|
3242
3290
|
import { DirectionProvider, ThemeProvider as ThemeProvider2 } from "@elementor/ui";
|
|
3243
3291
|
var UiProviders = ({ children }) => {
|
|
3244
3292
|
const { isSiteRtl } = useDirection();
|
|
3245
|
-
return /* @__PURE__ */
|
|
3293
|
+
return /* @__PURE__ */ React31.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React31.createElement(ThemeProvider2, null, children));
|
|
3246
3294
|
};
|
|
3247
3295
|
|
|
3248
3296
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3249
|
-
var BORDER_RADIUS_LABEL =
|
|
3297
|
+
var BORDER_RADIUS_LABEL = __12("Border radius", "elementor");
|
|
3250
3298
|
var StartStartIcon = withDirection(RadiusTopLeftIcon);
|
|
3251
3299
|
var StartEndIcon = withDirection(RadiusTopRightIcon);
|
|
3252
3300
|
var EndStartIcon = withDirection(RadiusBottomLeftIcon);
|
|
3253
3301
|
var EndEndIcon = withDirection(RadiusBottomRightIcon);
|
|
3254
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
3255
|
-
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3256
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
3257
|
-
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3258
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
3259
|
-
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3260
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
3261
|
-
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3302
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? __12("Top right", "elementor") : __12("Top left", "elementor");
|
|
3303
|
+
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? __12("Border top right radius", "elementor") : __12("Border top left radius", "elementor");
|
|
3304
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? __12("Top left", "elementor") : __12("Top right", "elementor");
|
|
3305
|
+
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? __12("Border top left radius", "elementor") : __12("Border top right radius", "elementor");
|
|
3306
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? __12("Bottom right", "elementor") : __12("Bottom left", "elementor");
|
|
3307
|
+
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? __12("Border bottom right radius", "elementor") : __12("Border bottom left radius", "elementor");
|
|
3308
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? __12("Bottom left", "elementor") : __12("Bottom right", "elementor");
|
|
3309
|
+
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? __12("Border bottom left radius", "elementor") : __12("Border bottom right radius", "elementor");
|
|
3262
3310
|
var getCorners = (isSiteRtl) => [
|
|
3263
3311
|
{
|
|
3264
3312
|
label: getStartStartLabel(isSiteRtl),
|
|
3265
3313
|
ariaLabel: getStartStartAriaLabel(isSiteRtl),
|
|
3266
|
-
icon: /* @__PURE__ */
|
|
3314
|
+
icon: /* @__PURE__ */ React32.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3267
3315
|
bind: "start-start"
|
|
3268
3316
|
},
|
|
3269
3317
|
{
|
|
3270
3318
|
label: getStartEndLabel(isSiteRtl),
|
|
3271
3319
|
ariaLabel: getStartEndAriaLabel(isSiteRtl),
|
|
3272
|
-
icon: /* @__PURE__ */
|
|
3320
|
+
icon: /* @__PURE__ */ React32.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3273
3321
|
bind: "start-end"
|
|
3274
3322
|
},
|
|
3275
3323
|
{
|
|
3276
3324
|
label: getEndStartLabel(isSiteRtl),
|
|
3277
3325
|
ariaLabel: getEndStartAriaLabel(isSiteRtl),
|
|
3278
|
-
icon: /* @__PURE__ */
|
|
3326
|
+
icon: /* @__PURE__ */ React32.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3279
3327
|
bind: "end-start"
|
|
3280
3328
|
},
|
|
3281
3329
|
{
|
|
3282
3330
|
label: getEndEndLabel(isSiteRtl),
|
|
3283
3331
|
ariaLabel: getEndEndAriaLabel(isSiteRtl),
|
|
3284
|
-
icon: /* @__PURE__ */
|
|
3332
|
+
icon: /* @__PURE__ */ React32.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3285
3333
|
bind: "end-end"
|
|
3286
3334
|
}
|
|
3287
3335
|
];
|
|
3288
3336
|
var BorderRadiusField = () => {
|
|
3289
3337
|
const { isSiteRtl } = useDirection();
|
|
3290
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ React32.createElement(UiProviders, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React32.createElement(
|
|
3291
3339
|
EqualUnequalSizesControl,
|
|
3292
3340
|
{
|
|
3293
3341
|
items: getCorners(isSiteRtl),
|
|
3294
3342
|
label: BORDER_RADIUS_LABEL,
|
|
3295
|
-
icon: /* @__PURE__ */
|
|
3296
|
-
tooltipLabel:
|
|
3343
|
+
icon: /* @__PURE__ */ React32.createElement(BorderCornersIcon, { fontSize: "tiny" }),
|
|
3344
|
+
tooltipLabel: __12("Adjust corners", "elementor"),
|
|
3297
3345
|
multiSizePropTypeUtil: borderRadiusPropTypeUtil
|
|
3298
3346
|
}
|
|
3299
3347
|
)));
|
|
3300
3348
|
};
|
|
3301
3349
|
|
|
3302
3350
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3303
|
-
import * as
|
|
3351
|
+
import * as React33 from "react";
|
|
3304
3352
|
import { SelectControl } from "@elementor/editor-controls";
|
|
3305
|
-
import { __ as
|
|
3306
|
-
var BORDER_TYPE_LABEL =
|
|
3353
|
+
import { __ as __13 } from "@wordpress/i18n";
|
|
3354
|
+
var BORDER_TYPE_LABEL = __13("Border type", "elementor");
|
|
3307
3355
|
var borderStyles = [
|
|
3308
|
-
{ value: "none", label:
|
|
3309
|
-
{ value: "solid", label:
|
|
3310
|
-
{ value: "dashed", label:
|
|
3311
|
-
{ value: "dotted", label:
|
|
3312
|
-
{ value: "double", label:
|
|
3313
|
-
{ value: "groove", label:
|
|
3314
|
-
{ value: "ridge", label:
|
|
3315
|
-
{ value: "inset", label:
|
|
3316
|
-
{ value: "outset", label:
|
|
3356
|
+
{ value: "none", label: __13("None", "elementor") },
|
|
3357
|
+
{ value: "solid", label: __13("Solid", "elementor") },
|
|
3358
|
+
{ value: "dashed", label: __13("Dashed", "elementor") },
|
|
3359
|
+
{ value: "dotted", label: __13("Dotted", "elementor") },
|
|
3360
|
+
{ value: "double", label: __13("Double", "elementor") },
|
|
3361
|
+
{ value: "groove", label: __13("Groove", "elementor") },
|
|
3362
|
+
{ value: "ridge", label: __13("Ridge", "elementor") },
|
|
3363
|
+
{ value: "inset", label: __13("Inset", "elementor") },
|
|
3364
|
+
{ value: "outset", label: __13("Outset", "elementor") }
|
|
3317
3365
|
];
|
|
3318
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3366
|
+
var BorderStyleField = () => /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(SelectControl, { options: borderStyles })));
|
|
3319
3367
|
|
|
3320
3368
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3321
|
-
import * as
|
|
3369
|
+
import * as React34 from "react";
|
|
3322
3370
|
import { EqualUnequalSizesControl as EqualUnequalSizesControl2 } from "@elementor/editor-controls";
|
|
3323
3371
|
import { borderWidthPropTypeUtil } from "@elementor/editor-props";
|
|
3324
3372
|
import { SideAllIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
3325
3373
|
import { withDirection as withDirection2 } from "@elementor/ui";
|
|
3326
|
-
import { __ as
|
|
3327
|
-
var BORDER_WIDTH_LABEL =
|
|
3374
|
+
import { __ as __14 } from "@wordpress/i18n";
|
|
3375
|
+
var BORDER_WIDTH_LABEL = __14("Border width", "elementor");
|
|
3328
3376
|
var InlineStartIcon = withDirection2(SideRightIcon);
|
|
3329
3377
|
var InlineEndIcon = withDirection2(SideLeftIcon);
|
|
3330
3378
|
var getEdges = (isSiteRtl) => [
|
|
3331
3379
|
{
|
|
3332
|
-
label:
|
|
3333
|
-
ariaLabel:
|
|
3334
|
-
icon: /* @__PURE__ */
|
|
3380
|
+
label: __14("Top", "elementor"),
|
|
3381
|
+
ariaLabel: __14("Border top width", "elementor"),
|
|
3382
|
+
icon: /* @__PURE__ */ React34.createElement(SideTopIcon, { fontSize: "tiny" }),
|
|
3335
3383
|
bind: "block-start"
|
|
3336
3384
|
},
|
|
3337
3385
|
{
|
|
3338
|
-
label: isSiteRtl ?
|
|
3339
|
-
ariaLabel: isSiteRtl ?
|
|
3340
|
-
icon: /* @__PURE__ */
|
|
3386
|
+
label: isSiteRtl ? __14("Left", "elementor") : __14("Right", "elementor"),
|
|
3387
|
+
ariaLabel: isSiteRtl ? __14("Border left width", "elementor") : __14("Border right width", "elementor"),
|
|
3388
|
+
icon: /* @__PURE__ */ React34.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3341
3389
|
bind: "inline-end"
|
|
3342
3390
|
},
|
|
3343
3391
|
{
|
|
3344
|
-
label:
|
|
3345
|
-
ariaLabel:
|
|
3346
|
-
icon: /* @__PURE__ */
|
|
3392
|
+
label: __14("Bottom", "elementor"),
|
|
3393
|
+
ariaLabel: __14("Border bottom width", "elementor"),
|
|
3394
|
+
icon: /* @__PURE__ */ React34.createElement(SideBottomIcon, { fontSize: "tiny" }),
|
|
3347
3395
|
bind: "block-end"
|
|
3348
3396
|
},
|
|
3349
3397
|
{
|
|
3350
|
-
label: isSiteRtl ?
|
|
3351
|
-
ariaLabel: isSiteRtl ?
|
|
3352
|
-
icon: /* @__PURE__ */
|
|
3398
|
+
label: isSiteRtl ? __14("Right", "elementor") : __14("Left", "elementor"),
|
|
3399
|
+
ariaLabel: isSiteRtl ? __14("Border right width", "elementor") : __14("Border left width", "elementor"),
|
|
3400
|
+
icon: /* @__PURE__ */ React34.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3353
3401
|
bind: "inline-start"
|
|
3354
3402
|
}
|
|
3355
3403
|
];
|
|
3356
3404
|
var BorderWidthField = () => {
|
|
3357
3405
|
const { isSiteRtl } = useDirection();
|
|
3358
|
-
return /* @__PURE__ */
|
|
3406
|
+
return /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React34.createElement(
|
|
3359
3407
|
EqualUnequalSizesControl2,
|
|
3360
3408
|
{
|
|
3361
3409
|
items: getEdges(isSiteRtl),
|
|
3362
3410
|
label: BORDER_WIDTH_LABEL,
|
|
3363
|
-
icon: /* @__PURE__ */
|
|
3364
|
-
tooltipLabel:
|
|
3411
|
+
icon: /* @__PURE__ */ React34.createElement(SideAllIcon, { fontSize: "tiny" }),
|
|
3412
|
+
tooltipLabel: __14("Adjust borders", "elementor"),
|
|
3365
3413
|
multiSizePropTypeUtil: borderWidthPropTypeUtil
|
|
3366
3414
|
}
|
|
3367
3415
|
));
|
|
3368
3416
|
};
|
|
3369
3417
|
|
|
3370
3418
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3371
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3419
|
+
var BorderSection = () => /* @__PURE__ */ React35.createElement(SectionContent, null, /* @__PURE__ */ React35.createElement(BorderWidthField, null), /* @__PURE__ */ React35.createElement(BorderColorField, null), /* @__PURE__ */ React35.createElement(BorderStyleField, null), /* @__PURE__ */ React35.createElement(BorderRadiusField, null));
|
|
3372
3420
|
|
|
3373
3421
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3374
|
-
import * as
|
|
3422
|
+
import * as React39 from "react";
|
|
3375
3423
|
import {
|
|
3376
3424
|
BoxShadowRepeaterControl,
|
|
3377
3425
|
FilterRepeaterControl,
|
|
3378
3426
|
TransformRepeaterControl,
|
|
3379
3427
|
TransitionRepeaterControl
|
|
3380
3428
|
} from "@elementor/editor-controls";
|
|
3381
|
-
import { __ as
|
|
3429
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
3382
3430
|
|
|
3383
3431
|
// src/utils/can-element-have-children.ts
|
|
3384
3432
|
import { getContainer } from "@elementor/editor-elements";
|
|
@@ -3419,73 +3467,73 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3419
3467
|
};
|
|
3420
3468
|
|
|
3421
3469
|
// src/components/panel-divider.tsx
|
|
3422
|
-
import * as
|
|
3470
|
+
import * as React36 from "react";
|
|
3423
3471
|
import { Divider as Divider4 } from "@elementor/ui";
|
|
3424
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3472
|
+
var PanelDivider = () => /* @__PURE__ */ React36.createElement(Divider4, { sx: { my: 0.5 } });
|
|
3425
3473
|
|
|
3426
3474
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3427
|
-
import * as
|
|
3475
|
+
import * as React37 from "react";
|
|
3428
3476
|
import { SelectControl as SelectControl2 } from "@elementor/editor-controls";
|
|
3429
|
-
import { __ as
|
|
3430
|
-
var BLEND_MODE_LABEL =
|
|
3477
|
+
import { __ as __15 } from "@wordpress/i18n";
|
|
3478
|
+
var BLEND_MODE_LABEL = __15("Blend mode", "elementor");
|
|
3431
3479
|
var blendModeOptions = [
|
|
3432
|
-
{ label:
|
|
3433
|
-
{ label:
|
|
3434
|
-
{ label:
|
|
3435
|
-
{ label:
|
|
3436
|
-
{ label:
|
|
3437
|
-
{ label:
|
|
3438
|
-
{ label:
|
|
3439
|
-
{ label:
|
|
3440
|
-
{ label:
|
|
3441
|
-
{ label:
|
|
3442
|
-
{ label:
|
|
3443
|
-
{ label:
|
|
3444
|
-
{ label:
|
|
3445
|
-
{ label:
|
|
3446
|
-
{ label:
|
|
3447
|
-
{ label:
|
|
3480
|
+
{ label: __15("Normal", "elementor"), value: "normal" },
|
|
3481
|
+
{ label: __15("Multiply", "elementor"), value: "multiply" },
|
|
3482
|
+
{ label: __15("Screen", "elementor"), value: "screen" },
|
|
3483
|
+
{ label: __15("Overlay", "elementor"), value: "overlay" },
|
|
3484
|
+
{ label: __15("Darken", "elementor"), value: "darken" },
|
|
3485
|
+
{ label: __15("Lighten", "elementor"), value: "lighten" },
|
|
3486
|
+
{ label: __15("Color dodge", "elementor"), value: "color-dodge" },
|
|
3487
|
+
{ label: __15("Color burn", "elementor"), value: "color-burn" },
|
|
3488
|
+
{ label: __15("Saturation", "elementor"), value: "saturation" },
|
|
3489
|
+
{ label: __15("Color", "elementor"), value: "color" },
|
|
3490
|
+
{ label: __15("Difference", "elementor"), value: "difference" },
|
|
3491
|
+
{ label: __15("Exclusion", "elementor"), value: "exclusion" },
|
|
3492
|
+
{ label: __15("Hue", "elementor"), value: "hue" },
|
|
3493
|
+
{ label: __15("Luminosity", "elementor"), value: "luminosity" },
|
|
3494
|
+
{ label: __15("Soft light", "elementor"), value: "soft-light" },
|
|
3495
|
+
{ label: __15("Hard light", "elementor"), value: "hard-light" }
|
|
3448
3496
|
];
|
|
3449
3497
|
var BlendModeField = () => {
|
|
3450
|
-
return /* @__PURE__ */
|
|
3498
|
+
return /* @__PURE__ */ React37.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(SelectControl2, { options: blendModeOptions })));
|
|
3451
3499
|
};
|
|
3452
3500
|
|
|
3453
3501
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3454
|
-
import * as
|
|
3502
|
+
import * as React38 from "react";
|
|
3455
3503
|
import { useRef as useRef5 } from "react";
|
|
3456
3504
|
import { SizeControl as SizeControl2 } from "@elementor/editor-controls";
|
|
3457
|
-
import { __ as
|
|
3458
|
-
var OPACITY_LABEL =
|
|
3505
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
3506
|
+
var OPACITY_LABEL = __16("Opacity", "elementor");
|
|
3459
3507
|
var OpacityControlField = () => {
|
|
3460
3508
|
const rowRef = useRef5(null);
|
|
3461
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(SizeControl2, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3462
3510
|
};
|
|
3463
3511
|
|
|
3464
3512
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3465
|
-
var BOX_SHADOW_LABEL =
|
|
3466
|
-
var FILTER_LABEL =
|
|
3467
|
-
var TRANSFORM_LABEL =
|
|
3468
|
-
var BACKDROP_FILTER_LABEL =
|
|
3469
|
-
var TRANSITIONS_LABEL =
|
|
3513
|
+
var BOX_SHADOW_LABEL = __17("Box shadow", "elementor");
|
|
3514
|
+
var FILTER_LABEL = __17("Filters", "elementor");
|
|
3515
|
+
var TRANSFORM_LABEL = __17("Transform", "elementor");
|
|
3516
|
+
var BACKDROP_FILTER_LABEL = __17("Backdrop filters", "elementor");
|
|
3517
|
+
var TRANSITIONS_LABEL = __17("Transitions", "elementor");
|
|
3470
3518
|
var EffectsSection = () => {
|
|
3471
3519
|
const { element } = useElement();
|
|
3472
3520
|
const { meta } = useStyle();
|
|
3473
3521
|
const canHaveChildren = canElementHaveChildren(element?.id ?? "");
|
|
3474
|
-
return /* @__PURE__ */
|
|
3522
|
+
return /* @__PURE__ */ React39.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React39.createElement(BlendModeField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(OpacityControlField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React39.createElement(BoxShadowRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React39.createElement(TransformRepeaterControl, { showChildrenPerspective: canHaveChildren })), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3475
3523
|
TransitionRepeaterControl,
|
|
3476
3524
|
{
|
|
3477
3525
|
currentStyleState: meta.state,
|
|
3478
3526
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3479
3527
|
}
|
|
3480
|
-
)), /* @__PURE__ */
|
|
3528
|
+
)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React39.createElement(FilterRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React39.createElement(FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3481
3529
|
};
|
|
3482
3530
|
|
|
3483
3531
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3484
|
-
import * as
|
|
3532
|
+
import * as React56 from "react";
|
|
3485
3533
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3486
3534
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3487
3535
|
import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
|
|
3488
|
-
import { __ as
|
|
3536
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
3489
3537
|
|
|
3490
3538
|
// src/hooks/use-computed-style.ts
|
|
3491
3539
|
import { __privateUseListenTo as useListenTo, commandEndEvent, windowEvent } from "@elementor/editor-v1-adapters";
|
|
@@ -3512,7 +3560,7 @@ function useComputedStyle(elementId) {
|
|
|
3512
3560
|
}
|
|
3513
3561
|
|
|
3514
3562
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3515
|
-
import * as
|
|
3563
|
+
import * as React41 from "react";
|
|
3516
3564
|
import { ToggleControl as ToggleControl2 } from "@elementor/editor-controls";
|
|
3517
3565
|
import {
|
|
3518
3566
|
JustifyBottomIcon,
|
|
@@ -3523,14 +3571,14 @@ import {
|
|
|
3523
3571
|
JustifyTopIcon
|
|
3524
3572
|
} from "@elementor/icons";
|
|
3525
3573
|
import { withDirection as withDirection3 } from "@elementor/ui";
|
|
3526
|
-
import { __ as
|
|
3574
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
3527
3575
|
|
|
3528
3576
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3529
|
-
import * as
|
|
3577
|
+
import * as React40 from "react";
|
|
3530
3578
|
import { useRef as useRef6 } from "react";
|
|
3531
3579
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
3532
|
-
import { __ as
|
|
3533
|
-
var FLEX_DIRECTION_LABEL =
|
|
3580
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
3581
|
+
var FLEX_DIRECTION_LABEL = __18("Flex direction", "elementor");
|
|
3534
3582
|
var CLOCKWISE_ANGLES = {
|
|
3535
3583
|
row: 0,
|
|
3536
3584
|
column: 90,
|
|
@@ -3552,7 +3600,7 @@ var RotatedIcon = ({
|
|
|
3552
3600
|
}) => {
|
|
3553
3601
|
const rotate = useRef6(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3554
3602
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3555
|
-
return /* @__PURE__ */
|
|
3603
|
+
return /* @__PURE__ */ React40.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3556
3604
|
};
|
|
3557
3605
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3558
3606
|
const { value: direction } = useStylesField("flex-direction", {
|
|
@@ -3573,7 +3621,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3573
3621
|
};
|
|
3574
3622
|
|
|
3575
3623
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3576
|
-
var ALIGN_CONTENT_LABEL =
|
|
3624
|
+
var ALIGN_CONTENT_LABEL = __19("Align content", "elementor");
|
|
3577
3625
|
var StartIcon = withDirection3(JustifyTopIcon);
|
|
3578
3626
|
var EndIcon = withDirection3(JustifyBottomIcon);
|
|
3579
3627
|
var iconProps = {
|
|
@@ -3584,45 +3632,45 @@ var iconProps = {
|
|
|
3584
3632
|
var options = [
|
|
3585
3633
|
{
|
|
3586
3634
|
value: "start",
|
|
3587
|
-
label:
|
|
3588
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3635
|
+
label: __19("Start", "elementor"),
|
|
3636
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3589
3637
|
showTooltip: true
|
|
3590
3638
|
},
|
|
3591
3639
|
{
|
|
3592
3640
|
value: "center",
|
|
3593
|
-
label:
|
|
3594
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3641
|
+
label: __19("Center", "elementor"),
|
|
3642
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
3595
3643
|
showTooltip: true
|
|
3596
3644
|
},
|
|
3597
3645
|
{
|
|
3598
3646
|
value: "end",
|
|
3599
|
-
label:
|
|
3600
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3647
|
+
label: __19("End", "elementor"),
|
|
3648
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3601
3649
|
showTooltip: true
|
|
3602
3650
|
},
|
|
3603
3651
|
{
|
|
3604
3652
|
value: "space-between",
|
|
3605
|
-
label:
|
|
3606
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3653
|
+
label: __19("Space between", "elementor"),
|
|
3654
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
3607
3655
|
showTooltip: true
|
|
3608
3656
|
},
|
|
3609
3657
|
{
|
|
3610
3658
|
value: "space-around",
|
|
3611
|
-
label:
|
|
3612
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3659
|
+
label: __19("Space around", "elementor"),
|
|
3660
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
3613
3661
|
showTooltip: true
|
|
3614
3662
|
},
|
|
3615
3663
|
{
|
|
3616
3664
|
value: "space-evenly",
|
|
3617
|
-
label:
|
|
3618
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3665
|
+
label: __19("Space evenly", "elementor"),
|
|
3666
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
3619
3667
|
showTooltip: true
|
|
3620
3668
|
}
|
|
3621
3669
|
];
|
|
3622
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3670
|
+
var AlignContentField = () => /* @__PURE__ */ React41.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React41.createElement(UiProviders, null, /* @__PURE__ */ React41.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React41.createElement(ToggleControl2, { options, fullWidth: true }))));
|
|
3623
3671
|
|
|
3624
3672
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3625
|
-
import * as
|
|
3673
|
+
import * as React42 from "react";
|
|
3626
3674
|
import { ToggleControl as ToggleControl3 } from "@elementor/editor-controls";
|
|
3627
3675
|
import {
|
|
3628
3676
|
LayoutAlignCenterIcon as CenterIcon2,
|
|
@@ -3631,8 +3679,8 @@ import {
|
|
|
3631
3679
|
LayoutDistributeVerticalIcon as JustifyIcon
|
|
3632
3680
|
} from "@elementor/icons";
|
|
3633
3681
|
import { withDirection as withDirection4 } from "@elementor/ui";
|
|
3634
|
-
import { __ as
|
|
3635
|
-
var ALIGN_ITEMS_LABEL =
|
|
3682
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
3683
|
+
var ALIGN_ITEMS_LABEL = __20("Align items", "elementor");
|
|
3636
3684
|
var StartIcon2 = withDirection4(LayoutAlignLeftIcon);
|
|
3637
3685
|
var EndIcon2 = withDirection4(LayoutAlignRightIcon);
|
|
3638
3686
|
var iconProps2 = {
|
|
@@ -3642,35 +3690,35 @@ var iconProps2 = {
|
|
|
3642
3690
|
var options2 = [
|
|
3643
3691
|
{
|
|
3644
3692
|
value: "start",
|
|
3645
|
-
label:
|
|
3646
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3693
|
+
label: __20("Start", "elementor"),
|
|
3694
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3647
3695
|
showTooltip: true
|
|
3648
3696
|
},
|
|
3649
3697
|
{
|
|
3650
3698
|
value: "center",
|
|
3651
|
-
label:
|
|
3652
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3699
|
+
label: __20("Center", "elementor"),
|
|
3700
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
3653
3701
|
showTooltip: true
|
|
3654
3702
|
},
|
|
3655
3703
|
{
|
|
3656
3704
|
value: "end",
|
|
3657
|
-
label:
|
|
3658
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3705
|
+
label: __20("End", "elementor"),
|
|
3706
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3659
3707
|
showTooltip: true
|
|
3660
3708
|
},
|
|
3661
3709
|
{
|
|
3662
3710
|
value: "stretch",
|
|
3663
|
-
label:
|
|
3664
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3711
|
+
label: __20("Stretch", "elementor"),
|
|
3712
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
3665
3713
|
showTooltip: true
|
|
3666
3714
|
}
|
|
3667
3715
|
];
|
|
3668
3716
|
var AlignItemsField = () => {
|
|
3669
|
-
return /* @__PURE__ */
|
|
3717
|
+
return /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(ToggleControl3, { options: options2 }))));
|
|
3670
3718
|
};
|
|
3671
3719
|
|
|
3672
3720
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3673
|
-
import * as
|
|
3721
|
+
import * as React43 from "react";
|
|
3674
3722
|
import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
|
|
3675
3723
|
import {
|
|
3676
3724
|
LayoutAlignCenterIcon as CenterIcon3,
|
|
@@ -3679,8 +3727,8 @@ import {
|
|
|
3679
3727
|
LayoutDistributeVerticalIcon as JustifyIcon2
|
|
3680
3728
|
} from "@elementor/icons";
|
|
3681
3729
|
import { withDirection as withDirection5 } from "@elementor/ui";
|
|
3682
|
-
import { __ as
|
|
3683
|
-
var ALIGN_SELF_LABEL =
|
|
3730
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
3731
|
+
var ALIGN_SELF_LABEL = __21("Align self", "elementor");
|
|
3684
3732
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3685
3733
|
row: 90,
|
|
3686
3734
|
"row-reverse": 90,
|
|
@@ -3695,8 +3743,8 @@ var iconProps3 = {
|
|
|
3695
3743
|
var getOptions = (parentStyleDirection) => [
|
|
3696
3744
|
{
|
|
3697
3745
|
value: "start",
|
|
3698
|
-
label:
|
|
3699
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3746
|
+
label: __21("Start", "elementor"),
|
|
3747
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3700
3748
|
RotatedIcon,
|
|
3701
3749
|
{
|
|
3702
3750
|
icon: StartIcon3,
|
|
@@ -3709,8 +3757,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3709
3757
|
},
|
|
3710
3758
|
{
|
|
3711
3759
|
value: "center",
|
|
3712
|
-
label:
|
|
3713
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3760
|
+
label: __21("Center", "elementor"),
|
|
3761
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3714
3762
|
RotatedIcon,
|
|
3715
3763
|
{
|
|
3716
3764
|
icon: CenterIcon3,
|
|
@@ -3723,8 +3771,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3723
3771
|
},
|
|
3724
3772
|
{
|
|
3725
3773
|
value: "end",
|
|
3726
|
-
label:
|
|
3727
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3774
|
+
label: __21("End", "elementor"),
|
|
3775
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3728
3776
|
RotatedIcon,
|
|
3729
3777
|
{
|
|
3730
3778
|
icon: EndIcon3,
|
|
@@ -3737,8 +3785,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3737
3785
|
},
|
|
3738
3786
|
{
|
|
3739
3787
|
value: "stretch",
|
|
3740
|
-
label:
|
|
3741
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3788
|
+
label: __21("Stretch", "elementor"),
|
|
3789
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3742
3790
|
RotatedIcon,
|
|
3743
3791
|
{
|
|
3744
3792
|
icon: JustifyIcon2,
|
|
@@ -3750,10 +3798,10 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3750
3798
|
showTooltip: true
|
|
3751
3799
|
}
|
|
3752
3800
|
];
|
|
3753
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3801
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React43.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(UiProviders, null, /* @__PURE__ */ React43.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(ToggleControl4, { options: getOptions(parentStyleDirection) }))));
|
|
3754
3802
|
|
|
3755
3803
|
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3756
|
-
import * as
|
|
3804
|
+
import * as React44 from "react";
|
|
3757
3805
|
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
3758
3806
|
import {
|
|
3759
3807
|
JustifyBottomIcon as JustifyBottomIcon2,
|
|
@@ -3761,90 +3809,90 @@ import {
|
|
|
3761
3809
|
JustifyTopIcon as JustifyTopIcon2,
|
|
3762
3810
|
LayoutDistributeVerticalIcon as JustifyIcon3
|
|
3763
3811
|
} from "@elementor/icons";
|
|
3764
|
-
import { __ as
|
|
3765
|
-
var ALIGN_SELF_LABEL2 =
|
|
3812
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3813
|
+
var ALIGN_SELF_LABEL2 = __22("Align self", "elementor");
|
|
3766
3814
|
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3767
3815
|
row: 0,
|
|
3768
3816
|
column: -90
|
|
3769
3817
|
};
|
|
3770
|
-
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3818
|
+
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */ React44.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React44.createElement(UiProviders, null, /* @__PURE__ */ React44.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL2 }, /* @__PURE__ */ React44.createElement(ToggleControl5, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3771
3819
|
var RotatedIcon2 = ({
|
|
3772
3820
|
icon: Icon,
|
|
3773
3821
|
size,
|
|
3774
3822
|
offset
|
|
3775
|
-
}) => /* @__PURE__ */
|
|
3823
|
+
}) => /* @__PURE__ */ React44.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3776
3824
|
var getOptions2 = (parentStyleDirection) => {
|
|
3777
3825
|
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3778
3826
|
return [
|
|
3779
3827
|
{
|
|
3780
3828
|
value: "start",
|
|
3781
|
-
label:
|
|
3782
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3829
|
+
label: __22("Start", "elementor"),
|
|
3830
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: JustifyTopIcon2, size, offset }),
|
|
3783
3831
|
showTooltip: true
|
|
3784
3832
|
},
|
|
3785
3833
|
{
|
|
3786
3834
|
value: "center",
|
|
3787
|
-
label:
|
|
3788
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3835
|
+
label: __22("Center", "elementor"),
|
|
3836
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: JustifyCenterIcon, size, offset }),
|
|
3789
3837
|
showTooltip: true
|
|
3790
3838
|
},
|
|
3791
3839
|
{
|
|
3792
3840
|
value: "end",
|
|
3793
|
-
label:
|
|
3794
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3841
|
+
label: __22("End", "elementor"),
|
|
3842
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: JustifyBottomIcon2, size, offset }),
|
|
3795
3843
|
showTooltip: true
|
|
3796
3844
|
},
|
|
3797
3845
|
{
|
|
3798
3846
|
value: "stretch",
|
|
3799
|
-
label:
|
|
3800
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3847
|
+
label: __22("Stretch", "elementor"),
|
|
3848
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: JustifyIcon3, size, offset }),
|
|
3801
3849
|
showTooltip: true
|
|
3802
3850
|
}
|
|
3803
3851
|
];
|
|
3804
3852
|
};
|
|
3805
3853
|
|
|
3806
3854
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3807
|
-
import * as
|
|
3855
|
+
import * as React45 from "react";
|
|
3808
3856
|
import { useMemo as useMemo9 } from "react";
|
|
3809
3857
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
3810
3858
|
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
3811
|
-
import { __ as
|
|
3812
|
-
var DISPLAY_LABEL =
|
|
3859
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3860
|
+
var DISPLAY_LABEL = __23("Display", "elementor");
|
|
3813
3861
|
var displayFieldItems = [
|
|
3814
3862
|
{
|
|
3815
3863
|
value: "block",
|
|
3816
|
-
renderContent: () =>
|
|
3817
|
-
label:
|
|
3864
|
+
renderContent: () => __23("Block", "elementor"),
|
|
3865
|
+
label: __23("Block", "elementor"),
|
|
3818
3866
|
showTooltip: true
|
|
3819
3867
|
},
|
|
3820
3868
|
{
|
|
3821
3869
|
value: "flex",
|
|
3822
|
-
renderContent: () =>
|
|
3823
|
-
label:
|
|
3870
|
+
renderContent: () => __23("Flex", "elementor"),
|
|
3871
|
+
label: __23("Flex", "elementor"),
|
|
3824
3872
|
showTooltip: true
|
|
3825
3873
|
},
|
|
3826
3874
|
{
|
|
3827
3875
|
value: "grid",
|
|
3828
|
-
renderContent: () =>
|
|
3829
|
-
label:
|
|
3876
|
+
renderContent: () => __23("Grid", "elementor"),
|
|
3877
|
+
label: __23("Grid", "elementor"),
|
|
3830
3878
|
showTooltip: true
|
|
3831
3879
|
},
|
|
3832
3880
|
{
|
|
3833
3881
|
value: "none",
|
|
3834
|
-
renderContent: () =>
|
|
3835
|
-
label:
|
|
3882
|
+
renderContent: () => __23("None", "elementor"),
|
|
3883
|
+
label: __23("None", "elementor"),
|
|
3836
3884
|
showTooltip: true
|
|
3837
3885
|
},
|
|
3838
3886
|
{
|
|
3839
3887
|
value: "inline-block",
|
|
3840
|
-
renderContent: () =>
|
|
3841
|
-
label:
|
|
3888
|
+
renderContent: () => __23("In-blk", "elementor"),
|
|
3889
|
+
label: __23("Inline-block", "elementor"),
|
|
3842
3890
|
showTooltip: true
|
|
3843
3891
|
},
|
|
3844
3892
|
{
|
|
3845
3893
|
value: "inline-flex",
|
|
3846
|
-
renderContent: () =>
|
|
3847
|
-
label:
|
|
3894
|
+
renderContent: () => __23("In-flx", "elementor"),
|
|
3895
|
+
label: __23("Inline-flex", "elementor"),
|
|
3848
3896
|
showTooltip: true
|
|
3849
3897
|
}
|
|
3850
3898
|
];
|
|
@@ -3855,55 +3903,55 @@ var DisplayField = () => {
|
|
|
3855
3903
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3856
3904
|
[isGridActive]
|
|
3857
3905
|
);
|
|
3858
|
-
return /* @__PURE__ */
|
|
3906
|
+
return /* @__PURE__ */ React45.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React45.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React45.createElement(ToggleControl6, { options: items3, maxItems: 4, fullWidth: true })));
|
|
3859
3907
|
};
|
|
3860
3908
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3861
3909
|
|
|
3862
3910
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3863
|
-
import * as
|
|
3911
|
+
import * as React46 from "react";
|
|
3864
3912
|
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
3865
3913
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
3866
3914
|
import { withDirection as withDirection6 } from "@elementor/ui";
|
|
3867
|
-
import { __ as
|
|
3868
|
-
var FLEX_DIRECTION_LABEL2 =
|
|
3915
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3916
|
+
var FLEX_DIRECTION_LABEL2 = __24("Direction", "elementor");
|
|
3869
3917
|
var options3 = [
|
|
3870
3918
|
{
|
|
3871
3919
|
value: "row",
|
|
3872
|
-
label:
|
|
3920
|
+
label: __24("Row", "elementor"),
|
|
3873
3921
|
renderContent: ({ size }) => {
|
|
3874
3922
|
const StartIcon7 = withDirection6(ArrowRightIcon);
|
|
3875
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ React46.createElement(StartIcon7, { fontSize: size });
|
|
3876
3924
|
},
|
|
3877
3925
|
showTooltip: true
|
|
3878
3926
|
},
|
|
3879
3927
|
{
|
|
3880
3928
|
value: "column",
|
|
3881
|
-
label:
|
|
3882
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3929
|
+
label: __24("Column", "elementor"),
|
|
3930
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
3883
3931
|
showTooltip: true
|
|
3884
3932
|
},
|
|
3885
3933
|
{
|
|
3886
3934
|
value: "row-reverse",
|
|
3887
|
-
label:
|
|
3935
|
+
label: __24("Reversed row", "elementor"),
|
|
3888
3936
|
renderContent: ({ size }) => {
|
|
3889
3937
|
const EndIcon6 = withDirection6(ArrowLeftIcon);
|
|
3890
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ React46.createElement(EndIcon6, { fontSize: size });
|
|
3891
3939
|
},
|
|
3892
3940
|
showTooltip: true
|
|
3893
3941
|
},
|
|
3894
3942
|
{
|
|
3895
3943
|
value: "column-reverse",
|
|
3896
|
-
label:
|
|
3897
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3944
|
+
label: __24("Reversed column", "elementor"),
|
|
3945
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
3898
3946
|
showTooltip: true
|
|
3899
3947
|
}
|
|
3900
3948
|
];
|
|
3901
3949
|
var FlexDirectionField = () => {
|
|
3902
|
-
return /* @__PURE__ */
|
|
3950
|
+
return /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-direction", propDisplayName: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React46.createElement(UiProviders, null, /* @__PURE__ */ React46.createElement(StylesFieldLayout, { label: FLEX_DIRECTION_LABEL2 }, /* @__PURE__ */ React46.createElement(ToggleControl7, { options: options3 }))));
|
|
3903
3951
|
};
|
|
3904
3952
|
|
|
3905
3953
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3906
|
-
import * as
|
|
3954
|
+
import * as React47 from "react";
|
|
3907
3955
|
import { useEffect as useEffect5, useMemo as useMemo10, useState as useState7 } from "react";
|
|
3908
3956
|
import {
|
|
3909
3957
|
ControlToggleButtonGroup,
|
|
@@ -3912,8 +3960,8 @@ import {
|
|
|
3912
3960
|
} from "@elementor/editor-controls";
|
|
3913
3961
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
3914
3962
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
3915
|
-
import { __ as
|
|
3916
|
-
var ORDER_LABEL =
|
|
3963
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
3964
|
+
var ORDER_LABEL = __25("Order", "elementor");
|
|
3917
3965
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3918
3966
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3919
3967
|
var FIRST = "first";
|
|
@@ -3926,25 +3974,25 @@ var orderValueMap = {
|
|
|
3926
3974
|
var items = [
|
|
3927
3975
|
{
|
|
3928
3976
|
value: FIRST,
|
|
3929
|
-
label:
|
|
3930
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3977
|
+
label: __25("First", "elementor"),
|
|
3978
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
3931
3979
|
showTooltip: true
|
|
3932
3980
|
},
|
|
3933
3981
|
{
|
|
3934
3982
|
value: LAST,
|
|
3935
|
-
label:
|
|
3936
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3983
|
+
label: __25("Last", "elementor"),
|
|
3984
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
3937
3985
|
showTooltip: true
|
|
3938
3986
|
},
|
|
3939
3987
|
{
|
|
3940
3988
|
value: CUSTOM,
|
|
3941
|
-
label:
|
|
3942
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3989
|
+
label: __25("Custom", "elementor"),
|
|
3990
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(PencilIcon, { fontSize: size }),
|
|
3943
3991
|
showTooltip: true
|
|
3944
3992
|
}
|
|
3945
3993
|
];
|
|
3946
3994
|
var FlexOrderField = () => {
|
|
3947
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ React47.createElement(StylesField, { bind: "order", propDisplayName: ORDER_LABEL }, /* @__PURE__ */ React47.createElement(UiProviders, null, /* @__PURE__ */ React47.createElement(SectionContent, null, /* @__PURE__ */ React47.createElement(FlexOrderFieldContent, null))));
|
|
3948
3996
|
};
|
|
3949
3997
|
function FlexOrderFieldContent() {
|
|
3950
3998
|
const {
|
|
@@ -3989,7 +4037,7 @@ function FlexOrderFieldContent() {
|
|
|
3989
4037
|
};
|
|
3990
4038
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
3991
4039
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
3992
|
-
return /* @__PURE__ */
|
|
4040
|
+
return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React47.createElement(
|
|
3993
4041
|
ControlToggleButtonGroup,
|
|
3994
4042
|
{
|
|
3995
4043
|
items,
|
|
@@ -3999,7 +4047,7 @@ function FlexOrderFieldContent() {
|
|
|
3999
4047
|
placeholder: groupPlaceholder,
|
|
4000
4048
|
disabled: !canEdit
|
|
4001
4049
|
}
|
|
4002
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4050
|
+
)), isCustomVisible && /* @__PURE__ */ React47.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, __25("Custom order", "elementor"))), /* @__PURE__ */ React47.createElement(Grid2, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React47.createElement(
|
|
4003
4051
|
NumberControl2,
|
|
4004
4052
|
{
|
|
4005
4053
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4023,7 +4071,7 @@ var getGroupControlValue = (order) => {
|
|
|
4023
4071
|
};
|
|
4024
4072
|
|
|
4025
4073
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
4026
|
-
import * as
|
|
4074
|
+
import * as React48 from "react";
|
|
4027
4075
|
import { useEffect as useEffect6, useMemo as useMemo11, useRef as useRef7, useState as useState8 } from "react";
|
|
4028
4076
|
import {
|
|
4029
4077
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
@@ -4035,31 +4083,31 @@ import {
|
|
|
4035
4083
|
} from "@elementor/editor-controls";
|
|
4036
4084
|
import { flexPropTypeUtil, numberPropTypeUtil as numberPropTypeUtil2, sizePropTypeUtil as sizePropTypeUtil3 } from "@elementor/editor-props";
|
|
4037
4085
|
import { ExpandIcon, PencilIcon as PencilIcon2, ShrinkIcon } from "@elementor/icons";
|
|
4038
|
-
import { __ as
|
|
4039
|
-
var FLEX_SIZE_LABEL =
|
|
4086
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
4087
|
+
var FLEX_SIZE_LABEL = __26("Flex Size", "elementor");
|
|
4040
4088
|
var DEFAULT = 1;
|
|
4041
4089
|
var items2 = [
|
|
4042
4090
|
{
|
|
4043
4091
|
value: "flex-grow",
|
|
4044
|
-
label:
|
|
4045
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4092
|
+
label: __26("Grow", "elementor"),
|
|
4093
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(ExpandIcon, { fontSize: size }),
|
|
4046
4094
|
showTooltip: true
|
|
4047
4095
|
},
|
|
4048
4096
|
{
|
|
4049
4097
|
value: "flex-shrink",
|
|
4050
|
-
label:
|
|
4051
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4098
|
+
label: __26("Shrink", "elementor"),
|
|
4099
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(ShrinkIcon, { fontSize: size }),
|
|
4052
4100
|
showTooltip: true
|
|
4053
4101
|
},
|
|
4054
4102
|
{
|
|
4055
4103
|
value: "custom",
|
|
4056
|
-
label:
|
|
4057
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4104
|
+
label: __26("Custom", "elementor"),
|
|
4105
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(PencilIcon2, { fontSize: size }),
|
|
4058
4106
|
showTooltip: true
|
|
4059
4107
|
}
|
|
4060
4108
|
];
|
|
4061
4109
|
var FlexSizeField = () => {
|
|
4062
|
-
return /* @__PURE__ */
|
|
4110
|
+
return /* @__PURE__ */ React48.createElement(UiProviders, null, /* @__PURE__ */ React48.createElement(SectionContent, null, /* @__PURE__ */ React48.createElement(StylesField, { bind: "flex", propDisplayName: FLEX_SIZE_LABEL }, /* @__PURE__ */ React48.createElement(FlexSizeFieldContent, null))));
|
|
4063
4111
|
};
|
|
4064
4112
|
var FlexSizeFieldContent = () => {
|
|
4065
4113
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -4088,7 +4136,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4088
4136
|
};
|
|
4089
4137
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4090
4138
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4091
|
-
return /* @__PURE__ */
|
|
4139
|
+
return /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React48.createElement(
|
|
4092
4140
|
ControlToggleButtonGroup2,
|
|
4093
4141
|
{
|
|
4094
4142
|
value: activeGroup ?? null,
|
|
@@ -4098,7 +4146,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4098
4146
|
items: items2,
|
|
4099
4147
|
exclusive: true
|
|
4100
4148
|
}
|
|
4101
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4149
|
+
)), isCustomVisible && /* @__PURE__ */ React48.createElement(FlexCustomField, null));
|
|
4102
4150
|
};
|
|
4103
4151
|
function extractFlexValues(source) {
|
|
4104
4152
|
return {
|
|
@@ -4140,7 +4188,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4140
4188
|
var FlexCustomField = () => {
|
|
4141
4189
|
const flexBasisRowRef = useRef7(null);
|
|
4142
4190
|
const context = useBoundProp3(flexPropTypeUtil);
|
|
4143
|
-
return /* @__PURE__ */
|
|
4191
|
+
return /* @__PURE__ */ React48.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: __26("Grow", "elementor") }, /* @__PURE__ */ React48.createElement(PropKeyProvider3, { bind: "flexGrow" }, /* @__PURE__ */ React48.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: __26("Shrink", "elementor") }, /* @__PURE__ */ React48.createElement(PropKeyProvider3, { bind: "flexShrink" }, /* @__PURE__ */ React48.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: __26("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React48.createElement(PropKeyProvider3, { bind: "flexBasis" }, /* @__PURE__ */ React48.createElement(SizeControl3, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4144
4192
|
};
|
|
4145
4193
|
var getActiveGroup = ({
|
|
4146
4194
|
grow,
|
|
@@ -4164,34 +4212,34 @@ var getActiveGroup = ({
|
|
|
4164
4212
|
};
|
|
4165
4213
|
|
|
4166
4214
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4167
|
-
import * as
|
|
4215
|
+
import * as React49 from "react";
|
|
4168
4216
|
import { GapControl } from "@elementor/editor-controls";
|
|
4169
|
-
import { __ as
|
|
4170
|
-
var GAPS_LABEL =
|
|
4217
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
4218
|
+
var GAPS_LABEL = __27("Gaps", "elementor");
|
|
4171
4219
|
var GapControlField = () => {
|
|
4172
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React49.createElement(GapControl, { label: GAPS_LABEL }));
|
|
4173
4221
|
};
|
|
4174
4222
|
|
|
4175
4223
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
4176
|
-
import * as
|
|
4224
|
+
import * as React50 from "react";
|
|
4177
4225
|
import { ControlToggleButtonGroup as ControlToggleButtonGroup3 } from "@elementor/editor-controls";
|
|
4178
4226
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon3, ArrowRightIcon as ArrowRightIcon2, LayoutDashboardIcon } from "@elementor/icons";
|
|
4179
4227
|
import { Grid as Grid3, ToggleButton, Tooltip, withDirection as withDirection7 } from "@elementor/ui";
|
|
4180
|
-
import { __ as
|
|
4181
|
-
var AUTO_FLOW_LABEL =
|
|
4182
|
-
var DENSE_LABEL =
|
|
4228
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
4229
|
+
var AUTO_FLOW_LABEL = __28("Auto flow", "elementor");
|
|
4230
|
+
var DENSE_LABEL = __28("Dense", "elementor");
|
|
4183
4231
|
var StartIcon4 = withDirection7(ArrowRightIcon2);
|
|
4184
4232
|
var directionOptions = [
|
|
4185
4233
|
{
|
|
4186
4234
|
value: "row",
|
|
4187
|
-
label:
|
|
4188
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4235
|
+
label: __28("Row", "elementor"),
|
|
4236
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(StartIcon4, { fontSize: size }),
|
|
4189
4237
|
showTooltip: true
|
|
4190
4238
|
},
|
|
4191
4239
|
{
|
|
4192
4240
|
value: "column",
|
|
4193
|
-
label:
|
|
4194
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4241
|
+
label: __28("Column", "elementor"),
|
|
4242
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ArrowDownSmallIcon3, { fontSize: size }),
|
|
4195
4243
|
showTooltip: true
|
|
4196
4244
|
}
|
|
4197
4245
|
];
|
|
@@ -4220,7 +4268,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4220
4268
|
const handleDenseToggle = () => {
|
|
4221
4269
|
setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
|
|
4222
4270
|
};
|
|
4223
|
-
return /* @__PURE__ */
|
|
4271
|
+
return /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React50.createElement(Grid3, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React50.createElement(Grid3, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React50.createElement(
|
|
4224
4272
|
ControlToggleButtonGroup3,
|
|
4225
4273
|
{
|
|
4226
4274
|
items: directionOptions,
|
|
@@ -4229,7 +4277,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4229
4277
|
exclusive: true,
|
|
4230
4278
|
fullWidth: true
|
|
4231
4279
|
}
|
|
4232
|
-
)), /* @__PURE__ */
|
|
4280
|
+
)), /* @__PURE__ */ React50.createElement(Grid3, { item: true }, /* @__PURE__ */ React50.createElement(Tooltip, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React50.createElement(
|
|
4233
4281
|
ToggleButton,
|
|
4234
4282
|
{
|
|
4235
4283
|
value: "dense",
|
|
@@ -4238,13 +4286,13 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4238
4286
|
size: "tiny",
|
|
4239
4287
|
"aria-label": DENSE_LABEL
|
|
4240
4288
|
},
|
|
4241
|
-
/* @__PURE__ */
|
|
4289
|
+
/* @__PURE__ */ React50.createElement(LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4242
4290
|
)))));
|
|
4243
4291
|
};
|
|
4244
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4292
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React50.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(GridAutoFlowFieldContent, null)));
|
|
4245
4293
|
|
|
4246
4294
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4247
|
-
import * as
|
|
4295
|
+
import * as React51 from "react";
|
|
4248
4296
|
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
4249
4297
|
import {
|
|
4250
4298
|
LayoutAlignCenterIcon as CenterIcon4,
|
|
@@ -4253,44 +4301,44 @@ import {
|
|
|
4253
4301
|
LayoutDistributeVerticalIcon as StretchIcon
|
|
4254
4302
|
} from "@elementor/icons";
|
|
4255
4303
|
import { withDirection as withDirection8 } from "@elementor/ui";
|
|
4256
|
-
import { __ as
|
|
4257
|
-
var JUSTIFY_ITEMS_LABEL =
|
|
4304
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
4305
|
+
var JUSTIFY_ITEMS_LABEL = __29("Justify items", "elementor");
|
|
4258
4306
|
var StartIcon5 = withDirection8(LayoutAlignLeftIcon3);
|
|
4259
4307
|
var EndIcon4 = withDirection8(LayoutAlignRightIcon3);
|
|
4260
4308
|
var options4 = [
|
|
4261
4309
|
{
|
|
4262
4310
|
value: "start",
|
|
4263
|
-
label:
|
|
4264
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4311
|
+
label: __29("Start", "elementor"),
|
|
4312
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(StartIcon5, { fontSize: size }),
|
|
4265
4313
|
showTooltip: true
|
|
4266
4314
|
},
|
|
4267
4315
|
{
|
|
4268
4316
|
value: "center",
|
|
4269
|
-
label:
|
|
4270
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4317
|
+
label: __29("Center", "elementor"),
|
|
4318
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(CenterIcon4, { fontSize: size }),
|
|
4271
4319
|
showTooltip: true
|
|
4272
4320
|
},
|
|
4273
4321
|
{
|
|
4274
4322
|
value: "end",
|
|
4275
|
-
label:
|
|
4276
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4323
|
+
label: __29("End", "elementor"),
|
|
4324
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(EndIcon4, { fontSize: size }),
|
|
4277
4325
|
showTooltip: true
|
|
4278
4326
|
},
|
|
4279
4327
|
{
|
|
4280
4328
|
value: "stretch",
|
|
4281
|
-
label:
|
|
4282
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4329
|
+
label: __29("Stretch", "elementor"),
|
|
4330
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(StretchIcon, { fontSize: size }),
|
|
4283
4331
|
showTooltip: true
|
|
4284
4332
|
}
|
|
4285
4333
|
];
|
|
4286
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4334
|
+
var GridJustifyItemsField = () => /* @__PURE__ */ React51.createElement(StylesField, { bind: "justify-items", propDisplayName: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React51.createElement(UiProviders, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: JUSTIFY_ITEMS_LABEL }, /* @__PURE__ */ React51.createElement(ToggleControl8, { options: options4 }))));
|
|
4287
4335
|
|
|
4288
4336
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4289
|
-
import * as
|
|
4337
|
+
import * as React52 from "react";
|
|
4290
4338
|
import { useRef as useRef8 } from "react";
|
|
4291
4339
|
import { ControlActions, createControl, SizeComponent, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
|
|
4292
4340
|
import { Grid as Grid4 } from "@elementor/ui";
|
|
4293
|
-
import { __ as
|
|
4341
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4294
4342
|
|
|
4295
4343
|
// src/components/style-sections/layout-section/utils/grid-track-value.ts
|
|
4296
4344
|
import {
|
|
@@ -4387,8 +4435,8 @@ var unitOf = (v, fallback = FR) => {
|
|
|
4387
4435
|
};
|
|
4388
4436
|
|
|
4389
4437
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4390
|
-
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */
|
|
4391
|
-
var GridTrackSizeInput = createControl((props) => /* @__PURE__ */
|
|
4438
|
+
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */ React52.createElement(ControlActions, null, children);
|
|
4439
|
+
var GridTrackSizeInput = createControl((props) => /* @__PURE__ */ React52.createElement(
|
|
4392
4440
|
SizeComponent,
|
|
4393
4441
|
{
|
|
4394
4442
|
units: UNITS,
|
|
@@ -4420,7 +4468,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4420
4468
|
}
|
|
4421
4469
|
setValue(toPropValue(next));
|
|
4422
4470
|
};
|
|
4423
|
-
return /* @__PURE__ */
|
|
4471
|
+
return /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React52.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React52.createElement(
|
|
4424
4472
|
GridTrackSizeInput,
|
|
4425
4473
|
{
|
|
4426
4474
|
value: displayValue,
|
|
@@ -4430,22 +4478,22 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4430
4478
|
}
|
|
4431
4479
|
)));
|
|
4432
4480
|
};
|
|
4433
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4434
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4481
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React52.createElement(UiProviders, null, /* @__PURE__ */ React52.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React52.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4482
|
+
var GridSizeFields = () => /* @__PURE__ */ React52.createElement(Grid4, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(GridTrackField, { cssProp: "grid-template-columns", label: __30("Columns", "elementor") })), /* @__PURE__ */ React52.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(GridTrackField, { cssProp: "grid-template-rows", label: __30("Rows", "elementor") })));
|
|
4435
4483
|
|
|
4436
4484
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4437
|
-
import * as
|
|
4485
|
+
import * as React53 from "react";
|
|
4438
4486
|
import { GridSpanControl } from "@elementor/editor-controls";
|
|
4439
4487
|
import { Grid as Grid5 } from "@elementor/ui";
|
|
4440
|
-
import { __ as
|
|
4488
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
4441
4489
|
var GridSpanFieldContent = ({ label }) => {
|
|
4442
|
-
return /* @__PURE__ */
|
|
4490
|
+
return /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React53.createElement(GridSpanControl, null));
|
|
4443
4491
|
};
|
|
4444
|
-
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4445
|
-
var GridSpanFields = () => /* @__PURE__ */
|
|
4492
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React53.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4493
|
+
var GridSpanFields = () => /* @__PURE__ */ React53.createElement(Grid5, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(GridSpanField, { cssProp: "grid-column", label: __31("Grid column", "elementor") })), /* @__PURE__ */ React53.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(GridSpanField, { cssProp: "grid-row", label: __31("Grid row", "elementor") })));
|
|
4446
4494
|
|
|
4447
4495
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4448
|
-
import * as
|
|
4496
|
+
import * as React54 from "react";
|
|
4449
4497
|
import { ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
4450
4498
|
import {
|
|
4451
4499
|
JustifyBottomIcon as JustifyBottomIcon3,
|
|
@@ -4456,8 +4504,8 @@ import {
|
|
|
4456
4504
|
JustifyTopIcon as JustifyTopIcon3
|
|
4457
4505
|
} from "@elementor/icons";
|
|
4458
4506
|
import { withDirection as withDirection9 } from "@elementor/ui";
|
|
4459
|
-
import { __ as
|
|
4460
|
-
var JUSTIFY_CONTENT_LABEL =
|
|
4507
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
4508
|
+
var JUSTIFY_CONTENT_LABEL = __32("Justify content", "elementor");
|
|
4461
4509
|
var StartIcon6 = withDirection9(JustifyTopIcon3);
|
|
4462
4510
|
var EndIcon5 = withDirection9(JustifyBottomIcon3);
|
|
4463
4511
|
var iconProps4 = {
|
|
@@ -4467,76 +4515,76 @@ var iconProps4 = {
|
|
|
4467
4515
|
var options5 = [
|
|
4468
4516
|
{
|
|
4469
4517
|
value: "flex-start",
|
|
4470
|
-
label:
|
|
4471
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4518
|
+
label: __32("Start", "elementor"),
|
|
4519
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4472
4520
|
showTooltip: true
|
|
4473
4521
|
},
|
|
4474
4522
|
{
|
|
4475
4523
|
value: "center",
|
|
4476
|
-
label:
|
|
4477
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4524
|
+
label: __32("Center", "elementor"),
|
|
4525
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: CenterIcon5, size, ...iconProps4 }),
|
|
4478
4526
|
showTooltip: true
|
|
4479
4527
|
},
|
|
4480
4528
|
{
|
|
4481
4529
|
value: "flex-end",
|
|
4482
|
-
label:
|
|
4483
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4530
|
+
label: __32("End", "elementor"),
|
|
4531
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4484
4532
|
showTooltip: true
|
|
4485
4533
|
},
|
|
4486
4534
|
{
|
|
4487
4535
|
value: "space-between",
|
|
4488
|
-
label:
|
|
4489
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4536
|
+
label: __32("Space between", "elementor"),
|
|
4537
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
4490
4538
|
showTooltip: true
|
|
4491
4539
|
},
|
|
4492
4540
|
{
|
|
4493
4541
|
value: "space-around",
|
|
4494
|
-
label:
|
|
4495
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4542
|
+
label: __32("Space around", "elementor"),
|
|
4543
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
4496
4544
|
showTooltip: true
|
|
4497
4545
|
},
|
|
4498
4546
|
{
|
|
4499
4547
|
value: "space-evenly",
|
|
4500
|
-
label:
|
|
4501
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4548
|
+
label: __32("Space evenly", "elementor"),
|
|
4549
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
4502
4550
|
showTooltip: true
|
|
4503
4551
|
}
|
|
4504
4552
|
];
|
|
4505
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4553
|
+
var JustifyContentField = () => /* @__PURE__ */ React54.createElement(StylesField, { bind: "justify-content", propDisplayName: JUSTIFY_CONTENT_LABEL }, /* @__PURE__ */ React54.createElement(UiProviders, null, /* @__PURE__ */ React54.createElement(StylesFieldLayout, { label: JUSTIFY_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React54.createElement(ToggleControl9, { options: options5, fullWidth: true }))));
|
|
4506
4554
|
|
|
4507
4555
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4508
|
-
import * as
|
|
4556
|
+
import * as React55 from "react";
|
|
4509
4557
|
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
4510
4558
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4511
|
-
import { __ as
|
|
4512
|
-
var FLEX_WRAP_LABEL =
|
|
4559
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
4560
|
+
var FLEX_WRAP_LABEL = __33("Wrap", "elementor");
|
|
4513
4561
|
var options6 = [
|
|
4514
4562
|
{
|
|
4515
4563
|
value: "nowrap",
|
|
4516
|
-
label:
|
|
4517
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4564
|
+
label: __33("No wrap", "elementor"),
|
|
4565
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(ArrowRightIcon3, { fontSize: size }),
|
|
4518
4566
|
showTooltip: true
|
|
4519
4567
|
},
|
|
4520
4568
|
{
|
|
4521
4569
|
value: "wrap",
|
|
4522
|
-
label:
|
|
4523
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4570
|
+
label: __33("Wrap", "elementor"),
|
|
4571
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(ArrowBackIcon, { fontSize: size }),
|
|
4524
4572
|
showTooltip: true
|
|
4525
4573
|
},
|
|
4526
4574
|
{
|
|
4527
4575
|
value: "wrap-reverse",
|
|
4528
|
-
label:
|
|
4529
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4576
|
+
label: __33("Reversed wrap", "elementor"),
|
|
4577
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
4530
4578
|
showTooltip: true
|
|
4531
4579
|
}
|
|
4532
4580
|
];
|
|
4533
4581
|
var WrapField = () => {
|
|
4534
|
-
return /* @__PURE__ */
|
|
4582
|
+
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "flex-wrap", propDisplayName: FLEX_WRAP_LABEL }, /* @__PURE__ */ React55.createElement(UiProviders, null, /* @__PURE__ */ React55.createElement(StylesFieldLayout, { label: FLEX_WRAP_LABEL }, /* @__PURE__ */ React55.createElement(ToggleControl10, { options: options6 }))));
|
|
4535
4583
|
};
|
|
4536
4584
|
|
|
4537
4585
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4538
|
-
var DISPLAY_LABEL2 =
|
|
4539
|
-
var FLEX_WRAP_LABEL2 =
|
|
4586
|
+
var DISPLAY_LABEL2 = __34("Display", "elementor");
|
|
4587
|
+
var FLEX_WRAP_LABEL2 = __34("Flex wrap", "elementor");
|
|
4540
4588
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4541
4589
|
var LayoutSection = () => {
|
|
4542
4590
|
const { value: display } = useStylesField("display", {
|
|
@@ -4558,17 +4606,17 @@ var LayoutSection = () => {
|
|
|
4558
4606
|
}
|
|
4559
4607
|
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4560
4608
|
};
|
|
4561
|
-
return /* @__PURE__ */
|
|
4609
|
+
return /* @__PURE__ */ React56.createElement(SectionContent, null, /* @__PURE__ */ React56.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React56.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React56.createElement(FlexChildFields, { parentStyleDirection: getParentStyleDirection() }), isGridExperimentActive && isDisplayGrid && /* @__PURE__ */ React56.createElement(GridFields, null), isGridExperimentActive && "grid" === parentStyle?.display && /* @__PURE__ */ React56.createElement(GridChildFields, { parentStyleDirection: getParentStyleDirection() }));
|
|
4562
4610
|
};
|
|
4563
4611
|
var FlexFields = () => {
|
|
4564
4612
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4565
4613
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4566
4614
|
});
|
|
4567
|
-
return /* @__PURE__ */
|
|
4615
|
+
return /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(FlexDirectionField, null), /* @__PURE__ */ React56.createElement(JustifyContentField, null), /* @__PURE__ */ React56.createElement(AlignItemsField, null), /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(GapControlField, null), /* @__PURE__ */ React56.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React56.createElement(AlignContentField, null));
|
|
4568
4616
|
};
|
|
4569
|
-
var GridFields = () => /* @__PURE__ */
|
|
4570
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4571
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4617
|
+
var GridFields = () => /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(GridSizeFields, null), /* @__PURE__ */ React56.createElement(GridAutoFlowField, null), /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(GapControlField, null), /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React56.createElement(AlignItemsField, null));
|
|
4618
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(ControlFormLabel2, null, __34("Flex child", "elementor")), /* @__PURE__ */ React56.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React56.createElement(FlexOrderField, null), /* @__PURE__ */ React56.createElement(FlexSizeField, null));
|
|
4619
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(ControlFormLabel2, null, __34("Grid child", "elementor")), /* @__PURE__ */ React56.createElement(GridSpanFields, null), /* @__PURE__ */ React56.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React56.createElement(FlexOrderField, null));
|
|
4572
4620
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4573
4621
|
const value = display?.value ?? local?.value;
|
|
4574
4622
|
if (!value) {
|
|
@@ -4578,40 +4626,40 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4578
4626
|
};
|
|
4579
4627
|
|
|
4580
4628
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4581
|
-
import * as
|
|
4629
|
+
import * as React61 from "react";
|
|
4582
4630
|
import { useEffect as useEffect7, useRef as useRef11 } from "react";
|
|
4583
4631
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
4584
4632
|
import { styled as styled6 } from "@elementor/ui";
|
|
4585
|
-
import { __ as
|
|
4633
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4586
4634
|
|
|
4587
4635
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4588
|
-
import * as
|
|
4636
|
+
import * as React57 from "react";
|
|
4589
4637
|
import { useRef as useRef9 } from "react";
|
|
4590
4638
|
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
4591
4639
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
4592
4640
|
import { Grid as Grid6, Stack as Stack8, withDirection as withDirection10 } from "@elementor/ui";
|
|
4593
|
-
import { __ as
|
|
4641
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
4594
4642
|
var InlineStartIcon2 = withDirection10(SideLeftIcon2);
|
|
4595
4643
|
var InlineEndIcon2 = withDirection10(SideRightIcon2);
|
|
4596
4644
|
var sideIcons = {
|
|
4597
|
-
"inset-block-start": /* @__PURE__ */
|
|
4598
|
-
"inset-block-end": /* @__PURE__ */
|
|
4599
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4600
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4645
|
+
"inset-block-start": /* @__PURE__ */ React57.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
4646
|
+
"inset-block-end": /* @__PURE__ */ React57.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
4647
|
+
"inset-inline-start": /* @__PURE__ */ React57.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4648
|
+
"inset-inline-end": /* @__PURE__ */ React57.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4601
4649
|
};
|
|
4602
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
4603
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
4650
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __35("Right", "elementor") : __35("Left", "elementor");
|
|
4651
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __35("Left", "elementor") : __35("Right", "elementor");
|
|
4604
4652
|
var DimensionsField = () => {
|
|
4605
4653
|
const { isSiteRtl } = useDirection();
|
|
4606
4654
|
const rowRefs = [useRef9(null), useRef9(null)];
|
|
4607
|
-
return /* @__PURE__ */
|
|
4655
|
+
return /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React57.createElement(DimensionField, { side: "inset-block-start", label: __35("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React57.createElement(
|
|
4608
4656
|
DimensionField,
|
|
4609
4657
|
{
|
|
4610
4658
|
side: "inset-inline-end",
|
|
4611
4659
|
label: getInlineEndLabel(isSiteRtl),
|
|
4612
4660
|
rowRef: rowRefs[0]
|
|
4613
4661
|
}
|
|
4614
|
-
)), /* @__PURE__ */
|
|
4662
|
+
)), /* @__PURE__ */ React57.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React57.createElement(DimensionField, { side: "inset-block-end", label: __35("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React57.createElement(
|
|
4615
4663
|
DimensionField,
|
|
4616
4664
|
{
|
|
4617
4665
|
side: "inset-inline-start",
|
|
@@ -4624,7 +4672,7 @@ var DimensionField = ({
|
|
|
4624
4672
|
side,
|
|
4625
4673
|
label,
|
|
4626
4674
|
rowRef
|
|
4627
|
-
}) => /* @__PURE__ */
|
|
4675
|
+
}) => /* @__PURE__ */ React57.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React57.createElement(Grid6, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React57.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, label)), /* @__PURE__ */ React57.createElement(Grid6, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(
|
|
4628
4676
|
SizeControl4,
|
|
4629
4677
|
{
|
|
4630
4678
|
startIcon: sideIcons[side],
|
|
@@ -4635,47 +4683,47 @@ var DimensionField = ({
|
|
|
4635
4683
|
))));
|
|
4636
4684
|
|
|
4637
4685
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4638
|
-
import * as
|
|
4686
|
+
import * as React58 from "react";
|
|
4639
4687
|
import { useRef as useRef10 } from "react";
|
|
4640
4688
|
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
4641
|
-
import { __ as
|
|
4642
|
-
var OFFSET_LABEL =
|
|
4689
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
4690
|
+
var OFFSET_LABEL = __36("Anchor offset", "elementor");
|
|
4643
4691
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4644
4692
|
var OffsetField = () => {
|
|
4645
4693
|
const rowRef = useRef10(null);
|
|
4646
|
-
return /* @__PURE__ */
|
|
4694
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React58.createElement(SizeControl5, { units: UNITS2, anchorRef: rowRef })));
|
|
4647
4695
|
};
|
|
4648
4696
|
|
|
4649
4697
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4650
|
-
import * as
|
|
4698
|
+
import * as React59 from "react";
|
|
4651
4699
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
4652
|
-
import { __ as
|
|
4653
|
-
var POSITION_LABEL =
|
|
4700
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
4701
|
+
var POSITION_LABEL = __37("Position", "elementor");
|
|
4654
4702
|
var positionOptions = [
|
|
4655
|
-
{ label:
|
|
4656
|
-
{ label:
|
|
4657
|
-
{ label:
|
|
4658
|
-
{ label:
|
|
4659
|
-
{ label:
|
|
4703
|
+
{ label: __37("Static", "elementor"), value: "static" },
|
|
4704
|
+
{ label: __37("Relative", "elementor"), value: "relative" },
|
|
4705
|
+
{ label: __37("Absolute", "elementor"), value: "absolute" },
|
|
4706
|
+
{ label: __37("Fixed", "elementor"), value: "fixed" },
|
|
4707
|
+
{ label: __37("Sticky", "elementor"), value: "sticky" }
|
|
4660
4708
|
];
|
|
4661
4709
|
var PositionField = () => {
|
|
4662
|
-
return /* @__PURE__ */
|
|
4710
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React59.createElement(SelectControl3, { options: positionOptions })));
|
|
4663
4711
|
};
|
|
4664
4712
|
|
|
4665
4713
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4666
|
-
import * as
|
|
4714
|
+
import * as React60 from "react";
|
|
4667
4715
|
import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
|
|
4668
4716
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
4669
|
-
import { Alert as
|
|
4670
|
-
import { __ as
|
|
4671
|
-
var Z_INDEX_LABEL =
|
|
4717
|
+
import { Alert as Alert3, AlertTitle as AlertTitle2, Box as Box5, Infotip } from "@elementor/ui";
|
|
4718
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
4719
|
+
var Z_INDEX_LABEL = __38("Z-index", "elementor");
|
|
4672
4720
|
var ZIndexField = ({ disabled }) => {
|
|
4673
|
-
const StyleField = /* @__PURE__ */
|
|
4674
|
-
const content = /* @__PURE__ */
|
|
4721
|
+
const StyleField = /* @__PURE__ */ React60.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React60.createElement(NumberControl4, { disabled })));
|
|
4722
|
+
const content = /* @__PURE__ */ React60.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React60.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React60.createElement(AlertTitle2, null, __38("Z-index", "elementor")), /* @__PURE__ */ React60.createElement(Box5, { component: "span" }, __38(
|
|
4675
4723
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4676
4724
|
"elementor"
|
|
4677
4725
|
)));
|
|
4678
|
-
return disabled ? /* @__PURE__ */
|
|
4726
|
+
return disabled ? /* @__PURE__ */ React60.createElement(
|
|
4679
4727
|
Infotip,
|
|
4680
4728
|
{
|
|
4681
4729
|
placement: "right",
|
|
@@ -4683,14 +4731,14 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4683
4731
|
color: "secondary",
|
|
4684
4732
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
4685
4733
|
},
|
|
4686
|
-
/* @__PURE__ */
|
|
4687
|
-
) : /* @__PURE__ */
|
|
4734
|
+
/* @__PURE__ */ React60.createElement(Box5, null, StyleField)
|
|
4735
|
+
) : /* @__PURE__ */ React60.createElement(React60.Fragment, null, StyleField);
|
|
4688
4736
|
};
|
|
4689
4737
|
|
|
4690
4738
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4691
4739
|
var POSITION_STATIC = "static";
|
|
4692
|
-
var POSITION_LABEL2 =
|
|
4693
|
-
var DIMENSIONS_LABEL =
|
|
4740
|
+
var POSITION_LABEL2 = __39("Position", "elementor");
|
|
4741
|
+
var DIMENSIONS_LABEL = __39("Dimensions", "elementor");
|
|
4694
4742
|
var DEPENDENT_PROP_NAMES = [
|
|
4695
4743
|
"inset-block-start",
|
|
4696
4744
|
"inset-block-end",
|
|
@@ -4716,7 +4764,7 @@ var PositionSection = () => {
|
|
|
4716
4764
|
}
|
|
4717
4765
|
positionPrevRef.current = position;
|
|
4718
4766
|
}, [position?.value]);
|
|
4719
|
-
return /* @__PURE__ */
|
|
4767
|
+
return /* @__PURE__ */ React61.createElement(StyledSectionContent, null, /* @__PURE__ */ React61.createElement(PositionField, null), /* @__PURE__ */ React61.createElement(DimensionsField, null), /* @__PURE__ */ React61.createElement(ZIndexField, { disabled: !position || position?.value === POSITION_STATIC }), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(OffsetField, null));
|
|
4720
4768
|
};
|
|
4721
4769
|
var usePersistDimensions = () => {
|
|
4722
4770
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4766,26 +4814,26 @@ var StyledSectionContent = styled6(SectionContent, {
|
|
|
4766
4814
|
}));
|
|
4767
4815
|
|
|
4768
4816
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4769
|
-
import * as
|
|
4817
|
+
import * as React66 from "react";
|
|
4770
4818
|
import { useRef as useRef12 } from "react";
|
|
4771
4819
|
import { AspectRatioControl, PositionControl, SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4772
4820
|
import { Grid as Grid7, Stack as Stack10 } from "@elementor/ui";
|
|
4773
|
-
import { __ as
|
|
4821
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4774
4822
|
|
|
4775
4823
|
// src/components/style-tab-collapsible-content.tsx
|
|
4776
|
-
import * as
|
|
4824
|
+
import * as React63 from "react";
|
|
4777
4825
|
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
4778
4826
|
|
|
4779
4827
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4780
|
-
import * as
|
|
4828
|
+
import * as React62 from "react";
|
|
4781
4829
|
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
4782
4830
|
import { Stack as Stack9, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
4783
|
-
import { __ as
|
|
4831
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4784
4832
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4785
4833
|
const { id, meta, provider } = useStyle();
|
|
4786
4834
|
const snapshot = useStylesInheritanceSnapshot();
|
|
4787
4835
|
if (fields.includes("custom_css")) {
|
|
4788
|
-
return /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ React62.createElement(CustomCssIndicator, null);
|
|
4789
4837
|
}
|
|
4790
4838
|
const snapshotFields = Object.fromEntries(
|
|
4791
4839
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -4794,9 +4842,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4794
4842
|
if (!hasValues && !hasOverrides) {
|
|
4795
4843
|
return null;
|
|
4796
4844
|
}
|
|
4797
|
-
const hasValueLabel =
|
|
4798
|
-
const hasOverridesLabel =
|
|
4799
|
-
return /* @__PURE__ */
|
|
4845
|
+
const hasValueLabel = __40("Has effective styles", "elementor");
|
|
4846
|
+
const hasOverridesLabel = __40("Has overridden styles", "elementor");
|
|
4847
|
+
return /* @__PURE__ */ React62.createElement(Tooltip2, { title: __40("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React62.createElement(Stack9, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React62.createElement(
|
|
4800
4848
|
StyleIndicator,
|
|
4801
4849
|
{
|
|
4802
4850
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4804,7 +4852,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4804
4852
|
role: "listitem",
|
|
4805
4853
|
"aria-label": hasValueLabel
|
|
4806
4854
|
}
|
|
4807
|
-
), hasOverrides && /* @__PURE__ */
|
|
4855
|
+
), hasOverrides && /* @__PURE__ */ React62.createElement(
|
|
4808
4856
|
StyleIndicator,
|
|
4809
4857
|
{
|
|
4810
4858
|
isOverridden: true,
|
|
@@ -4844,59 +4892,59 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
4844
4892
|
|
|
4845
4893
|
// src/components/style-tab-collapsible-content.tsx
|
|
4846
4894
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4847
|
-
return /* @__PURE__ */
|
|
4895
|
+
return /* @__PURE__ */ React63.createElement(CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4848
4896
|
};
|
|
4849
4897
|
function getStylesInheritanceIndicators(fields) {
|
|
4850
4898
|
if (fields.length === 0) {
|
|
4851
4899
|
return null;
|
|
4852
4900
|
}
|
|
4853
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
4901
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React63.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4854
4902
|
}
|
|
4855
4903
|
|
|
4856
4904
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4857
|
-
import * as
|
|
4905
|
+
import * as React64 from "react";
|
|
4858
4906
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4859
|
-
import { __ as
|
|
4860
|
-
var OBJECT_FIT_LABEL =
|
|
4907
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4908
|
+
var OBJECT_FIT_LABEL = __41("Object fit", "elementor");
|
|
4861
4909
|
var positionOptions2 = [
|
|
4862
|
-
{ label:
|
|
4863
|
-
{ label:
|
|
4864
|
-
{ label:
|
|
4865
|
-
{ label:
|
|
4866
|
-
{ label:
|
|
4910
|
+
{ label: __41("Fill", "elementor"), value: "fill" },
|
|
4911
|
+
{ label: __41("Cover", "elementor"), value: "cover" },
|
|
4912
|
+
{ label: __41("Contain", "elementor"), value: "contain" },
|
|
4913
|
+
{ label: __41("None", "elementor"), value: "none" },
|
|
4914
|
+
{ label: __41("Scale down", "elementor"), value: "scale-down" }
|
|
4867
4915
|
];
|
|
4868
4916
|
var ObjectFitField = () => {
|
|
4869
|
-
return /* @__PURE__ */
|
|
4917
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React64.createElement(SelectControl4, { options: positionOptions2 })));
|
|
4870
4918
|
};
|
|
4871
4919
|
|
|
4872
4920
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4873
|
-
import * as
|
|
4921
|
+
import * as React65 from "react";
|
|
4874
4922
|
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
4875
4923
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
4876
|
-
import { __ as
|
|
4877
|
-
var OVERFLOW_LABEL =
|
|
4924
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4925
|
+
var OVERFLOW_LABEL = __42("Overflow", "elementor");
|
|
4878
4926
|
var options7 = [
|
|
4879
4927
|
{
|
|
4880
4928
|
value: "visible",
|
|
4881
|
-
label:
|
|
4882
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4929
|
+
label: __42("Visible", "elementor"),
|
|
4930
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(EyeIcon, { fontSize: size }),
|
|
4883
4931
|
showTooltip: true
|
|
4884
4932
|
},
|
|
4885
4933
|
{
|
|
4886
4934
|
value: "hidden",
|
|
4887
|
-
label:
|
|
4888
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4935
|
+
label: __42("Hidden", "elementor"),
|
|
4936
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(EyeOffIcon, { fontSize: size }),
|
|
4889
4937
|
showTooltip: true
|
|
4890
4938
|
},
|
|
4891
4939
|
{
|
|
4892
4940
|
value: "auto",
|
|
4893
|
-
label:
|
|
4894
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4941
|
+
label: __42("Auto", "elementor"),
|
|
4942
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(LetterAIcon, { fontSize: size }),
|
|
4895
4943
|
showTooltip: true
|
|
4896
4944
|
}
|
|
4897
4945
|
];
|
|
4898
4946
|
var OverflowField = () => {
|
|
4899
|
-
return /* @__PURE__ */
|
|
4947
|
+
return /* @__PURE__ */ React65.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React65.createElement(ToggleControl11, { options: options7 })));
|
|
4900
4948
|
};
|
|
4901
4949
|
|
|
4902
4950
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4904,97 +4952,97 @@ var CssSizeProps = [
|
|
|
4904
4952
|
[
|
|
4905
4953
|
{
|
|
4906
4954
|
bind: "width",
|
|
4907
|
-
label:
|
|
4955
|
+
label: __43("Width", "elementor")
|
|
4908
4956
|
},
|
|
4909
4957
|
{
|
|
4910
4958
|
bind: "height",
|
|
4911
|
-
label:
|
|
4959
|
+
label: __43("Height", "elementor")
|
|
4912
4960
|
}
|
|
4913
4961
|
],
|
|
4914
4962
|
[
|
|
4915
4963
|
{
|
|
4916
4964
|
bind: "min-width",
|
|
4917
|
-
label:
|
|
4965
|
+
label: __43("Min width", "elementor")
|
|
4918
4966
|
},
|
|
4919
4967
|
{
|
|
4920
4968
|
bind: "min-height",
|
|
4921
|
-
label:
|
|
4969
|
+
label: __43("Min height", "elementor")
|
|
4922
4970
|
}
|
|
4923
4971
|
],
|
|
4924
4972
|
[
|
|
4925
4973
|
{
|
|
4926
4974
|
bind: "max-width",
|
|
4927
|
-
label:
|
|
4975
|
+
label: __43("Max width", "elementor")
|
|
4928
4976
|
},
|
|
4929
4977
|
{
|
|
4930
4978
|
bind: "max-height",
|
|
4931
|
-
label:
|
|
4979
|
+
label: __43("Max height", "elementor")
|
|
4932
4980
|
}
|
|
4933
4981
|
]
|
|
4934
4982
|
];
|
|
4935
|
-
var ASPECT_RATIO_LABEL =
|
|
4983
|
+
var ASPECT_RATIO_LABEL = __43("Aspect Ratio", "elementor");
|
|
4936
4984
|
var SizeSection = () => {
|
|
4937
4985
|
const gridRowRefs = [useRef12(null), useRef12(null), useRef12(null)];
|
|
4938
|
-
return /* @__PURE__ */
|
|
4986
|
+
return /* @__PURE__ */ React66.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React66.createElement(Grid7, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React66.createElement(Grid7, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React66.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React66.createElement(PanelDivider, null), /* @__PURE__ */ React66.createElement(Stack10, null, /* @__PURE__ */ React66.createElement(OverflowField, null)), /* @__PURE__ */ React66.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React66.createElement(Stack10, { gap: 2, pt: 2 }, /* @__PURE__ */ React66.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React66.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React66.createElement(PanelDivider, null), /* @__PURE__ */ React66.createElement(ObjectFitField, null), /* @__PURE__ */ React66.createElement(StylesField, { bind: "object-position", propDisplayName: __43("Object position", "elementor") }, /* @__PURE__ */ React66.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(PositionControl, null))))));
|
|
4939
4987
|
};
|
|
4940
4988
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4941
|
-
return /* @__PURE__ */
|
|
4989
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React66.createElement(Grid7, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React66.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React66.createElement(ControlLabel, null, label)), /* @__PURE__ */ React66.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React66.createElement(SizeControl6, { extendedOptions, anchorRef: rowRef }))));
|
|
4942
4990
|
};
|
|
4943
4991
|
|
|
4944
4992
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4945
|
-
import * as
|
|
4993
|
+
import * as React67 from "react";
|
|
4946
4994
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
4947
|
-
import { __ as
|
|
4948
|
-
var MARGIN_LABEL =
|
|
4949
|
-
var PADDING_LABEL =
|
|
4995
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
4996
|
+
var MARGIN_LABEL = __44("Margin", "elementor");
|
|
4997
|
+
var PADDING_LABEL = __44("Padding", "elementor");
|
|
4950
4998
|
var SpacingSection = () => {
|
|
4951
4999
|
const { isSiteRtl } = useDirection();
|
|
4952
|
-
return /* @__PURE__ */
|
|
5000
|
+
return /* @__PURE__ */ React67.createElement(SectionContent, null, /* @__PURE__ */ React67.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React67.createElement(
|
|
4953
5001
|
LinkedDimensionsControl,
|
|
4954
5002
|
{
|
|
4955
5003
|
label: MARGIN_LABEL,
|
|
4956
5004
|
isSiteRtl,
|
|
4957
5005
|
min: -Number.MAX_SAFE_INTEGER
|
|
4958
5006
|
}
|
|
4959
|
-
)), /* @__PURE__ */
|
|
5007
|
+
)), /* @__PURE__ */ React67.createElement(PanelDivider, null), /* @__PURE__ */ React67.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React67.createElement(LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4960
5008
|
};
|
|
4961
5009
|
|
|
4962
5010
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4963
|
-
import * as
|
|
5011
|
+
import * as React84 from "react";
|
|
4964
5012
|
|
|
4965
5013
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4966
|
-
import * as
|
|
5014
|
+
import * as React68 from "react";
|
|
4967
5015
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
4968
|
-
import { __ as
|
|
4969
|
-
var COLUMN_COUNT_LABEL =
|
|
5016
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
5017
|
+
var COLUMN_COUNT_LABEL = __45("Columns", "elementor");
|
|
4970
5018
|
var ColumnCountField = () => {
|
|
4971
|
-
return /* @__PURE__ */
|
|
5019
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React68.createElement(NumberControl5, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4972
5020
|
};
|
|
4973
5021
|
|
|
4974
5022
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4975
|
-
import * as
|
|
5023
|
+
import * as React69 from "react";
|
|
4976
5024
|
import { useRef as useRef13 } from "react";
|
|
4977
5025
|
import { SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4978
|
-
import { __ as
|
|
4979
|
-
var COLUMN_GAP_LABEL =
|
|
5026
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
5027
|
+
var COLUMN_GAP_LABEL = __46("Column gap", "elementor");
|
|
4980
5028
|
var ColumnGapField = () => {
|
|
4981
5029
|
const rowRef = useRef13(null);
|
|
4982
|
-
return /* @__PURE__ */
|
|
5030
|
+
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React69.createElement(SizeControl7, { anchorRef: rowRef })));
|
|
4983
5031
|
};
|
|
4984
5032
|
|
|
4985
5033
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4986
|
-
import * as
|
|
5034
|
+
import * as React70 from "react";
|
|
4987
5035
|
import { FontFamilyControl, useFontFamilies } from "@elementor/editor-controls";
|
|
4988
5036
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
4989
|
-
import { __ as
|
|
4990
|
-
var FONT_FAMILY_LABEL =
|
|
5037
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
5038
|
+
var FONT_FAMILY_LABEL = __47("Font family", "elementor");
|
|
4991
5039
|
var FontFamilyField = () => {
|
|
4992
5040
|
const fontFamilies = useFontFamilies();
|
|
4993
5041
|
const sectionWidth = useSectionWidth();
|
|
4994
5042
|
if (fontFamilies.length === 0) {
|
|
4995
5043
|
return null;
|
|
4996
5044
|
}
|
|
4997
|
-
return /* @__PURE__ */
|
|
5045
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React70.createElement(
|
|
4998
5046
|
FontFamilyControl,
|
|
4999
5047
|
{
|
|
5000
5048
|
fontFamilies,
|
|
@@ -5005,196 +5053,196 @@ var FontFamilyField = () => {
|
|
|
5005
5053
|
};
|
|
5006
5054
|
|
|
5007
5055
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
5008
|
-
import * as
|
|
5056
|
+
import * as React71 from "react";
|
|
5009
5057
|
import { useRef as useRef14 } from "react";
|
|
5010
5058
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
5011
|
-
import { __ as
|
|
5012
|
-
var FONT_SIZE_LABEL =
|
|
5059
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
5060
|
+
var FONT_SIZE_LABEL = __48("Font size", "elementor");
|
|
5013
5061
|
var FontSizeField = () => {
|
|
5014
5062
|
const rowRef = useRef14(null);
|
|
5015
|
-
return /* @__PURE__ */
|
|
5063
|
+
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React71.createElement(SizeControl8, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
5016
5064
|
};
|
|
5017
5065
|
|
|
5018
5066
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
5019
|
-
import * as
|
|
5067
|
+
import * as React72 from "react";
|
|
5020
5068
|
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
5021
5069
|
import { ItalicIcon, MinusIcon } from "@elementor/icons";
|
|
5022
|
-
import { __ as
|
|
5023
|
-
var FONT_STYLE_LABEL =
|
|
5070
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
5071
|
+
var FONT_STYLE_LABEL = __49("Font style", "elementor");
|
|
5024
5072
|
var options8 = [
|
|
5025
5073
|
{
|
|
5026
5074
|
value: "normal",
|
|
5027
|
-
label:
|
|
5028
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5075
|
+
label: __49("Normal", "elementor"),
|
|
5076
|
+
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(MinusIcon, { fontSize: size }),
|
|
5029
5077
|
showTooltip: true
|
|
5030
5078
|
},
|
|
5031
5079
|
{
|
|
5032
5080
|
value: "italic",
|
|
5033
|
-
label:
|
|
5034
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5081
|
+
label: __49("Italic", "elementor"),
|
|
5082
|
+
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(ItalicIcon, { fontSize: size }),
|
|
5035
5083
|
showTooltip: true
|
|
5036
5084
|
}
|
|
5037
5085
|
];
|
|
5038
5086
|
var FontStyleField = () => {
|
|
5039
|
-
return /* @__PURE__ */
|
|
5087
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React72.createElement(ToggleControl12, { options: options8 })));
|
|
5040
5088
|
};
|
|
5041
5089
|
|
|
5042
5090
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5043
|
-
import * as
|
|
5091
|
+
import * as React73 from "react";
|
|
5044
5092
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
5045
|
-
import { __ as
|
|
5046
|
-
var FONT_WEIGHT_LABEL =
|
|
5093
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
5094
|
+
var FONT_WEIGHT_LABEL = __50("Font weight", "elementor");
|
|
5047
5095
|
var fontWeightOptions = [
|
|
5048
|
-
{ value: "100", label:
|
|
5049
|
-
{ value: "200", label:
|
|
5050
|
-
{ value: "300", label:
|
|
5051
|
-
{ value: "400", label:
|
|
5052
|
-
{ value: "500", label:
|
|
5053
|
-
{ value: "600", label:
|
|
5054
|
-
{ value: "700", label:
|
|
5055
|
-
{ value: "800", label:
|
|
5056
|
-
{ value: "900", label:
|
|
5096
|
+
{ value: "100", label: __50("100 - Thin", "elementor") },
|
|
5097
|
+
{ value: "200", label: __50("200 - Extra light", "elementor") },
|
|
5098
|
+
{ value: "300", label: __50("300 - Light", "elementor") },
|
|
5099
|
+
{ value: "400", label: __50("400 - Normal", "elementor") },
|
|
5100
|
+
{ value: "500", label: __50("500 - Medium", "elementor") },
|
|
5101
|
+
{ value: "600", label: __50("600 - Semi bold", "elementor") },
|
|
5102
|
+
{ value: "700", label: __50("700 - Bold", "elementor") },
|
|
5103
|
+
{ value: "800", label: __50("800 - Extra bold", "elementor") },
|
|
5104
|
+
{ value: "900", label: __50("900 - Black", "elementor") }
|
|
5057
5105
|
];
|
|
5058
5106
|
var FontWeightField = () => {
|
|
5059
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React73.createElement(SelectControl5, { options: fontWeightOptions })));
|
|
5060
5108
|
};
|
|
5061
5109
|
|
|
5062
5110
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
5063
|
-
import * as
|
|
5111
|
+
import * as React74 from "react";
|
|
5064
5112
|
import { useRef as useRef15 } from "react";
|
|
5065
5113
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
5066
|
-
import { __ as
|
|
5067
|
-
var LETTER_SPACING_LABEL =
|
|
5114
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
5115
|
+
var LETTER_SPACING_LABEL = __51("Letter spacing", "elementor");
|
|
5068
5116
|
var LetterSpacingField = () => {
|
|
5069
5117
|
const rowRef = useRef15(null);
|
|
5070
|
-
return /* @__PURE__ */
|
|
5118
|
+
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React74.createElement(SizeControl9, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5071
5119
|
};
|
|
5072
5120
|
|
|
5073
5121
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
5074
|
-
import * as
|
|
5122
|
+
import * as React75 from "react";
|
|
5075
5123
|
import { useRef as useRef16 } from "react";
|
|
5076
5124
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
5077
|
-
import { __ as
|
|
5078
|
-
var LINE_HEIGHT_LABEL =
|
|
5125
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
5126
|
+
var LINE_HEIGHT_LABEL = __52("Line height", "elementor");
|
|
5079
5127
|
var LineHeightField = () => {
|
|
5080
5128
|
const rowRef = useRef16(null);
|
|
5081
|
-
return /* @__PURE__ */
|
|
5129
|
+
return /* @__PURE__ */ React75.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React75.createElement(SizeControl10, { anchorRef: rowRef })));
|
|
5082
5130
|
};
|
|
5083
5131
|
|
|
5084
5132
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
5085
|
-
import * as
|
|
5133
|
+
import * as React76 from "react";
|
|
5086
5134
|
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
5087
5135
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
5088
5136
|
import { withDirection as withDirection11 } from "@elementor/ui";
|
|
5089
|
-
import { __ as
|
|
5090
|
-
var TEXT_ALIGNMENT_LABEL =
|
|
5137
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
5138
|
+
var TEXT_ALIGNMENT_LABEL = __53("Text align", "elementor");
|
|
5091
5139
|
var AlignStartIcon = withDirection11(AlignLeftIcon);
|
|
5092
5140
|
var AlignEndIcon = withDirection11(AlignRightIcon);
|
|
5093
5141
|
var options9 = [
|
|
5094
5142
|
{
|
|
5095
5143
|
value: "start",
|
|
5096
|
-
label:
|
|
5097
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5144
|
+
label: __53("Start", "elementor"),
|
|
5145
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(AlignStartIcon, { fontSize: size }),
|
|
5098
5146
|
showTooltip: true
|
|
5099
5147
|
},
|
|
5100
5148
|
{
|
|
5101
5149
|
value: "center",
|
|
5102
|
-
label:
|
|
5103
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5150
|
+
label: __53("Center", "elementor"),
|
|
5151
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(AlignCenterIcon, { fontSize: size }),
|
|
5104
5152
|
showTooltip: true
|
|
5105
5153
|
},
|
|
5106
5154
|
{
|
|
5107
5155
|
value: "end",
|
|
5108
|
-
label:
|
|
5109
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5156
|
+
label: __53("End", "elementor"),
|
|
5157
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(AlignEndIcon, { fontSize: size }),
|
|
5110
5158
|
showTooltip: true
|
|
5111
5159
|
},
|
|
5112
5160
|
{
|
|
5113
5161
|
value: "justify",
|
|
5114
|
-
label:
|
|
5115
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5162
|
+
label: __53("Justify", "elementor"),
|
|
5163
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
5116
5164
|
showTooltip: true
|
|
5117
5165
|
}
|
|
5118
5166
|
];
|
|
5119
5167
|
var TextAlignmentField = () => {
|
|
5120
|
-
return /* @__PURE__ */
|
|
5168
|
+
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "text-align", propDisplayName: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React76.createElement(UiProviders, null, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: TEXT_ALIGNMENT_LABEL }, /* @__PURE__ */ React76.createElement(ToggleControl13, { options: options9 }))));
|
|
5121
5169
|
};
|
|
5122
5170
|
|
|
5123
5171
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5124
|
-
import * as
|
|
5172
|
+
import * as React77 from "react";
|
|
5125
5173
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
5126
|
-
import { __ as
|
|
5127
|
-
var TEXT_COLOR_LABEL =
|
|
5174
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
5175
|
+
var TEXT_COLOR_LABEL = __54("Text color", "elementor");
|
|
5128
5176
|
var TextColorField = () => {
|
|
5129
|
-
return /* @__PURE__ */
|
|
5177
|
+
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React77.createElement(ColorControl2, { id: "text-color-control" })));
|
|
5130
5178
|
};
|
|
5131
5179
|
|
|
5132
5180
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
5133
|
-
import * as
|
|
5181
|
+
import * as React78 from "react";
|
|
5134
5182
|
import { ToggleControl as ToggleControl14 } from "@elementor/editor-controls";
|
|
5135
5183
|
import { MinusIcon as MinusIcon2, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
5136
|
-
import { __ as
|
|
5137
|
-
var TEXT_DECORATION_LABEL =
|
|
5184
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
5185
|
+
var TEXT_DECORATION_LABEL = __55("Line decoration", "elementor");
|
|
5138
5186
|
var options10 = [
|
|
5139
5187
|
{
|
|
5140
5188
|
value: "none",
|
|
5141
|
-
label:
|
|
5142
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5189
|
+
label: __55("None", "elementor"),
|
|
5190
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(MinusIcon2, { fontSize: size }),
|
|
5143
5191
|
showTooltip: true,
|
|
5144
5192
|
exclusive: true
|
|
5145
5193
|
},
|
|
5146
5194
|
{
|
|
5147
5195
|
value: "underline",
|
|
5148
|
-
label:
|
|
5149
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5196
|
+
label: __55("Underline", "elementor"),
|
|
5197
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(UnderlineIcon, { fontSize: size }),
|
|
5150
5198
|
showTooltip: true
|
|
5151
5199
|
},
|
|
5152
5200
|
{
|
|
5153
5201
|
value: "line-through",
|
|
5154
|
-
label:
|
|
5155
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5202
|
+
label: __55("Line-through", "elementor"),
|
|
5203
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(StrikethroughIcon, { fontSize: size }),
|
|
5156
5204
|
showTooltip: true
|
|
5157
5205
|
},
|
|
5158
5206
|
{
|
|
5159
5207
|
value: "overline",
|
|
5160
|
-
label:
|
|
5161
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5208
|
+
label: __55("Overline", "elementor"),
|
|
5209
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(OverlineIcon, { fontSize: size }),
|
|
5162
5210
|
showTooltip: true
|
|
5163
5211
|
}
|
|
5164
5212
|
];
|
|
5165
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
5213
|
+
var TextDecorationField = () => /* @__PURE__ */ React78.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React78.createElement(ToggleControl14, { options: options10, exclusive: false })));
|
|
5166
5214
|
|
|
5167
5215
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
5168
|
-
import * as
|
|
5216
|
+
import * as React79 from "react";
|
|
5169
5217
|
import { ToggleControl as ToggleControl15 } from "@elementor/editor-controls";
|
|
5170
5218
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
5171
|
-
import { __ as
|
|
5172
|
-
var TEXT_DIRECTION_LABEL =
|
|
5219
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
5220
|
+
var TEXT_DIRECTION_LABEL = __56("Direction", "elementor");
|
|
5173
5221
|
var options11 = [
|
|
5174
5222
|
{
|
|
5175
5223
|
value: "ltr",
|
|
5176
|
-
label:
|
|
5177
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5224
|
+
label: __56("Left to right", "elementor"),
|
|
5225
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
5178
5226
|
showTooltip: true
|
|
5179
5227
|
},
|
|
5180
5228
|
{
|
|
5181
5229
|
value: "rtl",
|
|
5182
|
-
label:
|
|
5183
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5230
|
+
label: __56("Right to left", "elementor"),
|
|
5231
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
5184
5232
|
showTooltip: true
|
|
5185
5233
|
}
|
|
5186
5234
|
];
|
|
5187
5235
|
var TextDirectionField = () => {
|
|
5188
|
-
return /* @__PURE__ */
|
|
5236
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React79.createElement(ToggleControl15, { options: options11 })));
|
|
5189
5237
|
};
|
|
5190
5238
|
|
|
5191
5239
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5192
|
-
import * as
|
|
5240
|
+
import * as React81 from "react";
|
|
5193
5241
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
5194
|
-
import { __ as
|
|
5242
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
5195
5243
|
|
|
5196
5244
|
// src/components/add-or-remove-content.tsx
|
|
5197
|
-
import * as
|
|
5245
|
+
import * as React80 from "react";
|
|
5198
5246
|
import { MinusIcon as MinusIcon3, PlusIcon } from "@elementor/icons";
|
|
5199
5247
|
import { Collapse as Collapse2, IconButton, Stack as Stack11 } from "@elementor/ui";
|
|
5200
5248
|
var SIZE = "tiny";
|
|
@@ -5206,7 +5254,7 @@ var AddOrRemoveContent = ({
|
|
|
5206
5254
|
disabled,
|
|
5207
5255
|
renderLabel
|
|
5208
5256
|
}) => {
|
|
5209
|
-
return /* @__PURE__ */
|
|
5257
|
+
return /* @__PURE__ */ React80.createElement(SectionContent, null, /* @__PURE__ */ React80.createElement(
|
|
5210
5258
|
Stack11,
|
|
5211
5259
|
{
|
|
5212
5260
|
direction: "row",
|
|
@@ -5217,8 +5265,8 @@ var AddOrRemoveContent = ({
|
|
|
5217
5265
|
}
|
|
5218
5266
|
},
|
|
5219
5267
|
renderLabel(),
|
|
5220
|
-
isAdded ? /* @__PURE__ */
|
|
5221
|
-
), /* @__PURE__ */
|
|
5268
|
+
isAdded ? /* @__PURE__ */ React80.createElement(IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React80.createElement(MinusIcon3, { fontSize: SIZE })) : /* @__PURE__ */ React80.createElement(IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React80.createElement(PlusIcon, { fontSize: SIZE }))
|
|
5269
|
+
), /* @__PURE__ */ React80.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React80.createElement(SectionContent, null, children)));
|
|
5222
5270
|
};
|
|
5223
5271
|
|
|
5224
5272
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5238,7 +5286,7 @@ var initTextStroke = {
|
|
|
5238
5286
|
}
|
|
5239
5287
|
}
|
|
5240
5288
|
};
|
|
5241
|
-
var TEXT_STROKE_LABEL =
|
|
5289
|
+
var TEXT_STROKE_LABEL = __57("Text stroke", "elementor");
|
|
5242
5290
|
var TextStrokeField = () => {
|
|
5243
5291
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
5244
5292
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -5250,67 +5298,67 @@ var TextStrokeField = () => {
|
|
|
5250
5298
|
setValue(null);
|
|
5251
5299
|
};
|
|
5252
5300
|
const hasTextStroke = Boolean(value);
|
|
5253
|
-
return /* @__PURE__ */
|
|
5301
|
+
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React81.createElement(
|
|
5254
5302
|
AddOrRemoveContent,
|
|
5255
5303
|
{
|
|
5256
5304
|
isAdded: hasTextStroke,
|
|
5257
5305
|
onAdd: addTextStroke,
|
|
5258
5306
|
onRemove: removeTextStroke,
|
|
5259
5307
|
disabled: !canEdit,
|
|
5260
|
-
renderLabel: () => /* @__PURE__ */
|
|
5308
|
+
renderLabel: () => /* @__PURE__ */ React81.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
5261
5309
|
},
|
|
5262
|
-
/* @__PURE__ */
|
|
5310
|
+
/* @__PURE__ */ React81.createElement(StrokeControl, null)
|
|
5263
5311
|
));
|
|
5264
5312
|
};
|
|
5265
5313
|
|
|
5266
5314
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
5267
|
-
import * as
|
|
5315
|
+
import * as React82 from "react";
|
|
5268
5316
|
import { ToggleControl as ToggleControl16 } from "@elementor/editor-controls";
|
|
5269
5317
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
5270
|
-
import { __ as
|
|
5271
|
-
var TEXT_TRANSFORM_LABEL =
|
|
5318
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
5319
|
+
var TEXT_TRANSFORM_LABEL = __58("Text transform", "elementor");
|
|
5272
5320
|
var options12 = [
|
|
5273
5321
|
{
|
|
5274
5322
|
value: "none",
|
|
5275
|
-
label:
|
|
5276
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5323
|
+
label: __58("None", "elementor"),
|
|
5324
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(MinusIcon4, { fontSize: size }),
|
|
5277
5325
|
showTooltip: true
|
|
5278
5326
|
},
|
|
5279
5327
|
{
|
|
5280
5328
|
value: "capitalize",
|
|
5281
|
-
label:
|
|
5282
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5329
|
+
label: __58("Capitalize", "elementor"),
|
|
5330
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(LetterCaseIcon, { fontSize: size }),
|
|
5283
5331
|
showTooltip: true
|
|
5284
5332
|
},
|
|
5285
5333
|
{
|
|
5286
5334
|
value: "uppercase",
|
|
5287
|
-
label:
|
|
5288
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5335
|
+
label: __58("Uppercase", "elementor"),
|
|
5336
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
5289
5337
|
showTooltip: true
|
|
5290
5338
|
},
|
|
5291
5339
|
{
|
|
5292
5340
|
value: "lowercase",
|
|
5293
|
-
label:
|
|
5294
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5341
|
+
label: __58("Lowercase", "elementor"),
|
|
5342
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
5295
5343
|
showTooltip: true
|
|
5296
5344
|
}
|
|
5297
5345
|
];
|
|
5298
|
-
var TransformField = () => /* @__PURE__ */
|
|
5346
|
+
var TransformField = () => /* @__PURE__ */ React82.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React82.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React82.createElement(ToggleControl16, { options: options12 })));
|
|
5299
5347
|
|
|
5300
5348
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
5301
|
-
import * as
|
|
5349
|
+
import * as React83 from "react";
|
|
5302
5350
|
import { useRef as useRef17 } from "react";
|
|
5303
5351
|
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
5304
|
-
import { __ as
|
|
5305
|
-
var WORD_SPACING_LABEL =
|
|
5352
|
+
import { __ as __59 } from "@wordpress/i18n";
|
|
5353
|
+
var WORD_SPACING_LABEL = __59("Word spacing", "elementor");
|
|
5306
5354
|
var WordSpacingField = () => {
|
|
5307
5355
|
const rowRef = useRef17(null);
|
|
5308
|
-
return /* @__PURE__ */
|
|
5356
|
+
return /* @__PURE__ */ React83.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React83.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React83.createElement(SizeControl11, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5309
5357
|
};
|
|
5310
5358
|
|
|
5311
5359
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5312
5360
|
var TypographySection = () => {
|
|
5313
|
-
return /* @__PURE__ */
|
|
5361
|
+
return /* @__PURE__ */ React84.createElement(SectionContent, null, /* @__PURE__ */ React84.createElement(FontFamilyField, null), /* @__PURE__ */ React84.createElement(FontWeightField, null), /* @__PURE__ */ React84.createElement(FontSizeField, null), /* @__PURE__ */ React84.createElement(PanelDivider, null), /* @__PURE__ */ React84.createElement(TextAlignmentField, null), /* @__PURE__ */ React84.createElement(TextColorField, null), /* @__PURE__ */ React84.createElement(
|
|
5314
5362
|
StyleTabCollapsibleContent,
|
|
5315
5363
|
{
|
|
5316
5364
|
fields: [
|
|
@@ -5325,18 +5373,18 @@ var TypographySection = () => {
|
|
|
5325
5373
|
"stroke"
|
|
5326
5374
|
]
|
|
5327
5375
|
},
|
|
5328
|
-
/* @__PURE__ */
|
|
5376
|
+
/* @__PURE__ */ React84.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React84.createElement(LineHeightField, null), /* @__PURE__ */ React84.createElement(LetterSpacingField, null), /* @__PURE__ */ React84.createElement(WordSpacingField, null), /* @__PURE__ */ React84.createElement(ColumnCountField, null), /* @__PURE__ */ React84.createElement(ColumnGapField, null), /* @__PURE__ */ React84.createElement(PanelDivider, null), /* @__PURE__ */ React84.createElement(TextDecorationField, null), /* @__PURE__ */ React84.createElement(TransformField, null), /* @__PURE__ */ React84.createElement(TextDirectionField, null), /* @__PURE__ */ React84.createElement(FontStyleField, null), /* @__PURE__ */ React84.createElement(TextStrokeField, null))
|
|
5329
5377
|
));
|
|
5330
5378
|
};
|
|
5331
5379
|
|
|
5332
5380
|
// src/components/style-tab-section.tsx
|
|
5333
|
-
import * as
|
|
5381
|
+
import * as React85 from "react";
|
|
5334
5382
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5335
5383
|
const { component, name, title, action } = section;
|
|
5336
5384
|
const tabDefaults = useDefaultPanelSettings();
|
|
5337
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5385
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React85.createElement(React85.Fragment, null));
|
|
5338
5386
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
5339
|
-
return /* @__PURE__ */
|
|
5387
|
+
return /* @__PURE__ */ React85.createElement(
|
|
5340
5388
|
Section,
|
|
5341
5389
|
{
|
|
5342
5390
|
title,
|
|
@@ -5345,7 +5393,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5345
5393
|
unmountOnExit,
|
|
5346
5394
|
action
|
|
5347
5395
|
},
|
|
5348
|
-
/* @__PURE__ */
|
|
5396
|
+
/* @__PURE__ */ React85.createElement(SectionComponent, null)
|
|
5349
5397
|
);
|
|
5350
5398
|
};
|
|
5351
5399
|
|
|
@@ -5367,7 +5415,7 @@ var StyleTab = () => {
|
|
|
5367
5415
|
if (!currentClassesProp) {
|
|
5368
5416
|
return null;
|
|
5369
5417
|
}
|
|
5370
|
-
return /* @__PURE__ */
|
|
5418
|
+
return /* @__PURE__ */ React86.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React86.createElement(
|
|
5371
5419
|
StyleProvider,
|
|
5372
5420
|
{
|
|
5373
5421
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5378,13 +5426,13 @@ var StyleTab = () => {
|
|
|
5378
5426
|
},
|
|
5379
5427
|
setMetaState: setActiveStyleState
|
|
5380
5428
|
},
|
|
5381
|
-
/* @__PURE__ */
|
|
5429
|
+
/* @__PURE__ */ React86.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React86.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React86.createElement(ClassesHeader, null, /* @__PURE__ */ React86.createElement(CssClassSelector, null), /* @__PURE__ */ React86.createElement(Divider5, null)), /* @__PURE__ */ React86.createElement(SectionsList, null, /* @__PURE__ */ React86.createElement(
|
|
5382
5430
|
StyleTabSection,
|
|
5383
5431
|
{
|
|
5384
5432
|
section: {
|
|
5385
5433
|
component: LayoutSection,
|
|
5386
5434
|
name: "Layout",
|
|
5387
|
-
title:
|
|
5435
|
+
title: __60("Layout", "elementor")
|
|
5388
5436
|
},
|
|
5389
5437
|
fields: [
|
|
5390
5438
|
"display",
|
|
@@ -5400,23 +5448,23 @@ var StyleTab = () => {
|
|
|
5400
5448
|
"grid-row"
|
|
5401
5449
|
]
|
|
5402
5450
|
}
|
|
5403
|
-
), /* @__PURE__ */
|
|
5451
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5404
5452
|
StyleTabSection,
|
|
5405
5453
|
{
|
|
5406
5454
|
section: {
|
|
5407
5455
|
component: SpacingSection,
|
|
5408
5456
|
name: "Spacing",
|
|
5409
|
-
title:
|
|
5457
|
+
title: __60("Spacing", "elementor")
|
|
5410
5458
|
},
|
|
5411
5459
|
fields: ["margin", "padding"]
|
|
5412
5460
|
}
|
|
5413
|
-
), /* @__PURE__ */
|
|
5461
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5414
5462
|
StyleTabSection,
|
|
5415
5463
|
{
|
|
5416
5464
|
section: {
|
|
5417
5465
|
component: SizeSection,
|
|
5418
5466
|
name: "Size",
|
|
5419
|
-
title:
|
|
5467
|
+
title: __60("Size", "elementor")
|
|
5420
5468
|
},
|
|
5421
5469
|
fields: [
|
|
5422
5470
|
"width",
|
|
@@ -5430,23 +5478,23 @@ var StyleTab = () => {
|
|
|
5430
5478
|
"object-fit"
|
|
5431
5479
|
]
|
|
5432
5480
|
}
|
|
5433
|
-
), /* @__PURE__ */
|
|
5481
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5434
5482
|
StyleTabSection,
|
|
5435
5483
|
{
|
|
5436
5484
|
section: {
|
|
5437
5485
|
component: PositionSection,
|
|
5438
5486
|
name: "Position",
|
|
5439
|
-
title:
|
|
5487
|
+
title: __60("Position", "elementor")
|
|
5440
5488
|
},
|
|
5441
5489
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5442
5490
|
}
|
|
5443
|
-
), /* @__PURE__ */
|
|
5491
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5444
5492
|
StyleTabSection,
|
|
5445
5493
|
{
|
|
5446
5494
|
section: {
|
|
5447
5495
|
component: TypographySection,
|
|
5448
5496
|
name: "Typography",
|
|
5449
|
-
title:
|
|
5497
|
+
title: __60("Typography", "elementor")
|
|
5450
5498
|
},
|
|
5451
5499
|
fields: [
|
|
5452
5500
|
"font-family",
|
|
@@ -5465,33 +5513,33 @@ var StyleTab = () => {
|
|
|
5465
5513
|
"stroke"
|
|
5466
5514
|
]
|
|
5467
5515
|
}
|
|
5468
|
-
), /* @__PURE__ */
|
|
5516
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5469
5517
|
StyleTabSection,
|
|
5470
5518
|
{
|
|
5471
5519
|
section: {
|
|
5472
5520
|
component: BackgroundSection,
|
|
5473
5521
|
name: "Background",
|
|
5474
|
-
title:
|
|
5522
|
+
title: __60("Background", "elementor")
|
|
5475
5523
|
},
|
|
5476
5524
|
fields: ["background"]
|
|
5477
5525
|
}
|
|
5478
|
-
), /* @__PURE__ */
|
|
5526
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5479
5527
|
StyleTabSection,
|
|
5480
5528
|
{
|
|
5481
5529
|
section: {
|
|
5482
5530
|
component: BorderSection,
|
|
5483
5531
|
name: "Border",
|
|
5484
|
-
title:
|
|
5532
|
+
title: __60("Border", "elementor")
|
|
5485
5533
|
},
|
|
5486
5534
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5487
5535
|
}
|
|
5488
|
-
), /* @__PURE__ */
|
|
5536
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5489
5537
|
StyleTabSection,
|
|
5490
5538
|
{
|
|
5491
5539
|
section: {
|
|
5492
5540
|
component: EffectsSection,
|
|
5493
5541
|
name: "Effects",
|
|
5494
|
-
title:
|
|
5542
|
+
title: __60("Effects", "elementor")
|
|
5495
5543
|
},
|
|
5496
5544
|
fields: [
|
|
5497
5545
|
"mix-blend-mode",
|
|
@@ -5504,12 +5552,12 @@ var StyleTab = () => {
|
|
|
5504
5552
|
"transition"
|
|
5505
5553
|
]
|
|
5506
5554
|
}
|
|
5507
|
-
), /* @__PURE__ */
|
|
5555
|
+
), /* @__PURE__ */ React86.createElement(StyleTabSlot, null)), /* @__PURE__ */ React86.createElement(Box6, { sx: { height: "150px" } })))
|
|
5508
5556
|
));
|
|
5509
5557
|
};
|
|
5510
5558
|
function ClassesHeader({ children }) {
|
|
5511
5559
|
const scrollDirection = useScrollDirection();
|
|
5512
|
-
return /* @__PURE__ */
|
|
5560
|
+
return /* @__PURE__ */ React86.createElement(Stack12, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5513
5561
|
}
|
|
5514
5562
|
function useCurrentClassesProp() {
|
|
5515
5563
|
const { elementType } = useElement();
|
|
@@ -5528,7 +5576,7 @@ var EditingPanelTabs = () => {
|
|
|
5528
5576
|
return (
|
|
5529
5577
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5530
5578
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5531
|
-
/* @__PURE__ */
|
|
5579
|
+
/* @__PURE__ */ React87.createElement(Fragment9, { key: element.id }, /* @__PURE__ */ React87.createElement(PanelTabContent, null))
|
|
5532
5580
|
);
|
|
5533
5581
|
};
|
|
5534
5582
|
var PanelTabContent = () => {
|
|
@@ -5540,7 +5588,7 @@ var PanelTabContent = () => {
|
|
|
5540
5588
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5541
5589
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5542
5590
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5543
|
-
return /* @__PURE__ */
|
|
5591
|
+
return /* @__PURE__ */ React87.createElement(ScrollProvider, null, /* @__PURE__ */ React87.createElement(Stack13, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React87.createElement(Stack13, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React87.createElement(
|
|
5544
5592
|
Tabs,
|
|
5545
5593
|
{
|
|
5546
5594
|
variant: "fullWidth",
|
|
@@ -5552,10 +5600,10 @@ var PanelTabContent = () => {
|
|
|
5552
5600
|
setCurrentTab(newValue);
|
|
5553
5601
|
}
|
|
5554
5602
|
},
|
|
5555
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5556
|
-
/* @__PURE__ */
|
|
5557
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5558
|
-
), /* @__PURE__ */
|
|
5603
|
+
!isPromotedElement && /* @__PURE__ */ React87.createElement(Tab, { label: __61("General", "elementor"), ...getTabProps("settings") }),
|
|
5604
|
+
/* @__PURE__ */ React87.createElement(Tab, { label: __61("Style", "elementor"), ...getTabProps("style") }),
|
|
5605
|
+
isInteractionsActive && /* @__PURE__ */ React87.createElement(Tab, { label: __61("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5606
|
+
), /* @__PURE__ */ React87.createElement(Divider6, null)), !isPromotedElement && /* @__PURE__ */ React87.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React87.createElement(SettingsTab, null)), /* @__PURE__ */ React87.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React87.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React87.createElement(TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React87.createElement(InteractionsTab, null))));
|
|
5559
5607
|
};
|
|
5560
5608
|
|
|
5561
5609
|
// src/components/editing-panel.tsx
|
|
@@ -5568,13 +5616,13 @@ var EditingPanel = () => {
|
|
|
5568
5616
|
if (!element || !elementType) {
|
|
5569
5617
|
return null;
|
|
5570
5618
|
}
|
|
5571
|
-
const panelTitle =
|
|
5619
|
+
const panelTitle = __62("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5572
5620
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5573
|
-
let panelContent = /* @__PURE__ */
|
|
5621
|
+
let panelContent = /* @__PURE__ */ React88.createElement(React88.Fragment, null, /* @__PURE__ */ React88.createElement(PanelHeader, null, /* @__PURE__ */ React88.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React88.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React88.createElement(PanelBody, null, /* @__PURE__ */ React88.createElement(EditingPanelTabs, null)));
|
|
5574
5622
|
if (ReplacementComponent) {
|
|
5575
|
-
panelContent = /* @__PURE__ */
|
|
5623
|
+
panelContent = /* @__PURE__ */ React88.createElement(ReplacementComponent, null);
|
|
5576
5624
|
}
|
|
5577
|
-
return /* @__PURE__ */
|
|
5625
|
+
return /* @__PURE__ */ React88.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React88.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React88.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React88.createElement(ThemeProvider3, null, /* @__PURE__ */ React88.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React88.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React88.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React88.createElement(Panel, null, /* @__PURE__ */ React88.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5578
5626
|
};
|
|
5579
5627
|
|
|
5580
5628
|
// src/init.ts
|
|
@@ -5626,21 +5674,21 @@ var EditingPanelHooks = () => {
|
|
|
5626
5674
|
import { AttributesControl, DisplayConditionsControl } from "@elementor/editor-controls";
|
|
5627
5675
|
|
|
5628
5676
|
// src/components/promotions/custom-css.tsx
|
|
5629
|
-
import * as
|
|
5677
|
+
import * as React89 from "react";
|
|
5630
5678
|
import { useRef as useRef18 } from "react";
|
|
5631
5679
|
import { PromotionTrigger } from "@elementor/editor-controls";
|
|
5632
|
-
import { __ as
|
|
5680
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
5633
5681
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5634
5682
|
var CustomCssSection = () => {
|
|
5635
5683
|
const triggerRef = useRef18(null);
|
|
5636
|
-
return /* @__PURE__ */
|
|
5684
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5637
5685
|
StyleTabSection,
|
|
5638
5686
|
{
|
|
5639
5687
|
section: {
|
|
5640
5688
|
name: "Custom CSS",
|
|
5641
|
-
title:
|
|
5689
|
+
title: __63("Custom CSS", "elementor"),
|
|
5642
5690
|
action: {
|
|
5643
|
-
component: /* @__PURE__ */
|
|
5691
|
+
component: /* @__PURE__ */ React89.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5644
5692
|
onClick: () => triggerRef.current?.toggle()
|
|
5645
5693
|
}
|
|
5646
5694
|
}
|
|
@@ -5662,7 +5710,7 @@ var init = () => {
|
|
|
5662
5710
|
};
|
|
5663
5711
|
|
|
5664
5712
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5665
|
-
import * as
|
|
5713
|
+
import * as React90 from "react";
|
|
5666
5714
|
import {
|
|
5667
5715
|
ControlFormLabel as ControlFormLabel3,
|
|
5668
5716
|
Repeater,
|
|
@@ -5675,8 +5723,8 @@ import {
|
|
|
5675
5723
|
} from "@elementor/editor-elements";
|
|
5676
5724
|
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
5677
5725
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
5678
|
-
import { Alert as
|
|
5679
|
-
import { __ as
|
|
5726
|
+
import { Alert as Alert4, Chip as Chip4, Infotip as Infotip2, Stack as Stack14, Switch, TextField as TextField2, Typography as Typography5 } from "@elementor/ui";
|
|
5727
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
5680
5728
|
|
|
5681
5729
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5682
5730
|
import { getContainer as getContainer2 } from "@elementor/editor-elements";
|
|
@@ -5701,7 +5749,7 @@ import {
|
|
|
5701
5749
|
removeElements
|
|
5702
5750
|
} from "@elementor/editor-elements";
|
|
5703
5751
|
import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
|
|
5704
|
-
import { __ as
|
|
5752
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
5705
5753
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5706
5754
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5707
5755
|
var useActions = () => {
|
|
@@ -5724,7 +5772,7 @@ var useActions = () => {
|
|
|
5724
5772
|
}
|
|
5725
5773
|
duplicateElements({
|
|
5726
5774
|
elementIds: [tabId, tabContentId],
|
|
5727
|
-
title:
|
|
5775
|
+
title: __64("Duplicate Tab", "elementor"),
|
|
5728
5776
|
onDuplicateElements: () => {
|
|
5729
5777
|
if (newDefault !== defaultActiveTab) {
|
|
5730
5778
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5761,7 +5809,7 @@ var useActions = () => {
|
|
|
5761
5809
|
defaultActiveTab
|
|
5762
5810
|
});
|
|
5763
5811
|
moveElements({
|
|
5764
|
-
title:
|
|
5812
|
+
title: __64("Reorder Tabs", "elementor"),
|
|
5765
5813
|
moves: [
|
|
5766
5814
|
{
|
|
5767
5815
|
element: movedElement,
|
|
@@ -5795,7 +5843,7 @@ var useActions = () => {
|
|
|
5795
5843
|
defaultActiveTab
|
|
5796
5844
|
});
|
|
5797
5845
|
removeElements({
|
|
5798
|
-
title:
|
|
5846
|
+
title: __64("Tabs", "elementor"),
|
|
5799
5847
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5800
5848
|
const tabId = item.id;
|
|
5801
5849
|
const tabContentContainer = getContainer3(tabContentAreaId);
|
|
@@ -5830,7 +5878,7 @@ var useActions = () => {
|
|
|
5830
5878
|
items3.forEach(({ index }) => {
|
|
5831
5879
|
const position = index + 1;
|
|
5832
5880
|
createElements({
|
|
5833
|
-
title:
|
|
5881
|
+
title: __64("Tabs", "elementor"),
|
|
5834
5882
|
elements: [
|
|
5835
5883
|
{
|
|
5836
5884
|
container: tabContentArea,
|
|
@@ -5899,7 +5947,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5899
5947
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5900
5948
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5901
5949
|
var TabsControl = ({ label }) => {
|
|
5902
|
-
return /* @__PURE__ */
|
|
5950
|
+
return /* @__PURE__ */ React90.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __65("Tabs", "elementor") }, /* @__PURE__ */ React90.createElement(TabsControlContent, { label }));
|
|
5903
5951
|
};
|
|
5904
5952
|
var TabsControlContent = ({ label }) => {
|
|
5905
5953
|
const { element } = useElement();
|
|
@@ -5943,7 +5991,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5943
5991
|
});
|
|
5944
5992
|
}
|
|
5945
5993
|
};
|
|
5946
|
-
return /* @__PURE__ */
|
|
5994
|
+
return /* @__PURE__ */ React90.createElement(
|
|
5947
5995
|
Repeater,
|
|
5948
5996
|
{
|
|
5949
5997
|
showToggle: false,
|
|
@@ -5963,7 +6011,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5963
6011
|
};
|
|
5964
6012
|
var ItemLabel = ({ value, index }) => {
|
|
5965
6013
|
const elementTitle = value?.title;
|
|
5966
|
-
return /* @__PURE__ */
|
|
6014
|
+
return /* @__PURE__ */ React90.createElement(Stack14, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React90.createElement("span", null, elementTitle), /* @__PURE__ */ React90.createElement(ItemDefaultTab, { index }));
|
|
5967
6015
|
};
|
|
5968
6016
|
var ItemDefaultTab = ({ index }) => {
|
|
5969
6017
|
const { value: defaultItem } = useBoundProp6(numberPropTypeUtil4);
|
|
@@ -5971,18 +6019,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5971
6019
|
if (!isDefault) {
|
|
5972
6020
|
return null;
|
|
5973
6021
|
}
|
|
5974
|
-
return /* @__PURE__ */
|
|
6022
|
+
return /* @__PURE__ */ React90.createElement(Chip4, { size: "tiny", shape: "rounded", label: __65("Default", "elementor") });
|
|
5975
6023
|
};
|
|
5976
6024
|
var ItemContent = ({ value, index }) => {
|
|
5977
6025
|
if (!value.id) {
|
|
5978
6026
|
return null;
|
|
5979
6027
|
}
|
|
5980
|
-
return /* @__PURE__ */
|
|
6028
|
+
return /* @__PURE__ */ React90.createElement(Stack14, { p: 2, gap: 1.5 }, /* @__PURE__ */ React90.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React90.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __65("Tabs", "elementor") }, /* @__PURE__ */ React90.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5981
6029
|
};
|
|
5982
6030
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5983
6031
|
const { value, setValue } = useBoundProp6(numberPropTypeUtil4);
|
|
5984
6032
|
const isDefault = value === tabIndex;
|
|
5985
|
-
return /* @__PURE__ */
|
|
6033
|
+
return /* @__PURE__ */ React90.createElement(Stack14, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React90.createElement(ControlFormLabel3, null, __65("Set as default tab", "elementor")), /* @__PURE__ */ React90.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React90.createElement(
|
|
5986
6034
|
Switch,
|
|
5987
6035
|
{
|
|
5988
6036
|
size: "small",
|
|
@@ -6000,7 +6048,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6000
6048
|
var TabLabelControl = ({ elementId }) => {
|
|
6001
6049
|
const editorSettings = useElementEditorSettings(elementId);
|
|
6002
6050
|
const label = editorSettings?.title ?? "";
|
|
6003
|
-
return /* @__PURE__ */
|
|
6051
|
+
return /* @__PURE__ */ React90.createElement(Stack14, { gap: 1 }, /* @__PURE__ */ React90.createElement(ControlFormLabel3, null, __65("Tab name", "elementor")), /* @__PURE__ */ React90.createElement(
|
|
6004
6052
|
TextField2,
|
|
6005
6053
|
{
|
|
6006
6054
|
size: "tiny",
|
|
@@ -6021,22 +6069,22 @@ var ConditionalTooltip = ({
|
|
|
6021
6069
|
if (!showTooltip) {
|
|
6022
6070
|
return children;
|
|
6023
6071
|
}
|
|
6024
|
-
return /* @__PURE__ */
|
|
6072
|
+
return /* @__PURE__ */ React90.createElement(
|
|
6025
6073
|
Infotip2,
|
|
6026
6074
|
{
|
|
6027
6075
|
arrow: false,
|
|
6028
|
-
content: /* @__PURE__ */
|
|
6029
|
-
|
|
6076
|
+
content: /* @__PURE__ */ React90.createElement(
|
|
6077
|
+
Alert4,
|
|
6030
6078
|
{
|
|
6031
6079
|
color: "secondary",
|
|
6032
|
-
icon: /* @__PURE__ */
|
|
6080
|
+
icon: /* @__PURE__ */ React90.createElement(InfoCircleFilledIcon2, { fontSize: "tiny" }),
|
|
6033
6081
|
size: "small",
|
|
6034
6082
|
sx: { width: 288 }
|
|
6035
6083
|
},
|
|
6036
|
-
/* @__PURE__ */
|
|
6084
|
+
/* @__PURE__ */ React90.createElement(Typography5, { variant: "body2" }, __65("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6037
6085
|
)
|
|
6038
6086
|
},
|
|
6039
|
-
/* @__PURE__ */
|
|
6087
|
+
/* @__PURE__ */ React90.createElement("span", null, children)
|
|
6040
6088
|
);
|
|
6041
6089
|
};
|
|
6042
6090
|
|
|
@@ -6062,7 +6110,7 @@ import {
|
|
|
6062
6110
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
6063
6111
|
|
|
6064
6112
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6065
|
-
import * as
|
|
6113
|
+
import * as React91 from "react";
|
|
6066
6114
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp8 } from "@elementor/editor-controls";
|
|
6067
6115
|
import {
|
|
6068
6116
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -6205,24 +6253,24 @@ var useDynamicTag = (tagName) => {
|
|
|
6205
6253
|
};
|
|
6206
6254
|
|
|
6207
6255
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6208
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6256
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React91.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
6209
6257
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6210
6258
|
const context = useBoundProp8(backgroundImageOverlayPropTypeUtil);
|
|
6211
|
-
return /* @__PURE__ */
|
|
6259
|
+
return /* @__PURE__ */ React91.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React91.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React91.createElement(Wrapper2, { rawValue: value.value })));
|
|
6212
6260
|
};
|
|
6213
6261
|
var Wrapper2 = ({ rawValue }) => {
|
|
6214
6262
|
const { propType } = useBoundProp8();
|
|
6215
6263
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6216
|
-
return /* @__PURE__ */
|
|
6264
|
+
return /* @__PURE__ */ React91.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React91.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React91.createElement(Content, { rawValue: rawValue.image })));
|
|
6217
6265
|
};
|
|
6218
6266
|
var Content = ({ rawValue }) => {
|
|
6219
6267
|
const src = rawValue.value.src;
|
|
6220
6268
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6221
|
-
return /* @__PURE__ */
|
|
6269
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, dynamicTag?.label);
|
|
6222
6270
|
};
|
|
6223
6271
|
|
|
6224
6272
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6225
|
-
import * as
|
|
6273
|
+
import * as React95 from "react";
|
|
6226
6274
|
import {
|
|
6227
6275
|
ControlFormLabel as ControlFormLabel4,
|
|
6228
6276
|
PropKeyProvider as PropKeyProvider6,
|
|
@@ -6247,7 +6295,7 @@ import {
|
|
|
6247
6295
|
usePopupState as usePopupState2,
|
|
6248
6296
|
useTabs as useTabs2
|
|
6249
6297
|
} from "@elementor/ui";
|
|
6250
|
-
import { __ as
|
|
6298
|
+
import { __ as __67 } from "@wordpress/i18n";
|
|
6251
6299
|
|
|
6252
6300
|
// src/hooks/use-persist-dynamic-value.ts
|
|
6253
6301
|
import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
|
|
@@ -6258,11 +6306,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6258
6306
|
};
|
|
6259
6307
|
|
|
6260
6308
|
// src/dynamics/dynamic-control.tsx
|
|
6261
|
-
import * as
|
|
6309
|
+
import * as React93 from "react";
|
|
6262
6310
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
6263
6311
|
|
|
6264
6312
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6265
|
-
import * as
|
|
6313
|
+
import * as React92 from "react";
|
|
6266
6314
|
import { useMemo as useMemo14 } from "react";
|
|
6267
6315
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
6268
6316
|
var DynamicConditionalControl = ({
|
|
@@ -6304,10 +6352,10 @@ var DynamicConditionalControl = ({
|
|
|
6304
6352
|
return { ...defaults, ...convertedSettings };
|
|
6305
6353
|
}, [defaults, convertedSettings]);
|
|
6306
6354
|
if (!propType?.dependencies?.terms.length) {
|
|
6307
|
-
return /* @__PURE__ */
|
|
6355
|
+
return /* @__PURE__ */ React92.createElement(React92.Fragment, null, children);
|
|
6308
6356
|
}
|
|
6309
6357
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
6310
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6358
|
+
return isHidden ? null : /* @__PURE__ */ React92.createElement(React92.Fragment, null, children);
|
|
6311
6359
|
};
|
|
6312
6360
|
|
|
6313
6361
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6332,7 +6380,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6332
6380
|
});
|
|
6333
6381
|
};
|
|
6334
6382
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6335
|
-
return /* @__PURE__ */
|
|
6383
|
+
return /* @__PURE__ */ React93.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React93.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React93.createElement(
|
|
6336
6384
|
DynamicConditionalControl,
|
|
6337
6385
|
{
|
|
6338
6386
|
propType: dynamicPropType,
|
|
@@ -6344,13 +6392,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6344
6392
|
};
|
|
6345
6393
|
|
|
6346
6394
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6347
|
-
import * as
|
|
6395
|
+
import * as React94 from "react";
|
|
6348
6396
|
import { Fragment as Fragment14, useEffect as useEffect9, useState as useState10 } from "react";
|
|
6349
6397
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
|
|
6350
6398
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
6351
6399
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
6352
|
-
import { Divider as Divider7, Link as Link2, Stack as Stack15, Typography as
|
|
6353
|
-
import { __ as
|
|
6400
|
+
import { Divider as Divider7, Link as Link2, Stack as Stack15, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
|
|
6401
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
6354
6402
|
var SIZE2 = "tiny";
|
|
6355
6403
|
var PROMO_TEXT_WIDTH = 170;
|
|
6356
6404
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6397,19 +6445,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6397
6445
|
]);
|
|
6398
6446
|
const getPopOverContent = () => {
|
|
6399
6447
|
if (hasNoDynamicTags) {
|
|
6400
|
-
return /* @__PURE__ */
|
|
6448
|
+
return /* @__PURE__ */ React94.createElement(NoDynamicTags, null);
|
|
6401
6449
|
}
|
|
6402
6450
|
if (expired) {
|
|
6403
|
-
return /* @__PURE__ */
|
|
6451
|
+
return /* @__PURE__ */ React94.createElement(ExpiredDynamicTags, null);
|
|
6404
6452
|
}
|
|
6405
|
-
return /* @__PURE__ */
|
|
6453
|
+
return /* @__PURE__ */ React94.createElement(Fragment14, null, /* @__PURE__ */ React94.createElement(
|
|
6406
6454
|
SearchField,
|
|
6407
6455
|
{
|
|
6408
6456
|
value: searchValue,
|
|
6409
6457
|
onSearch: handleSearch,
|
|
6410
|
-
placeholder:
|
|
6458
|
+
placeholder: __66("Search dynamic tags\u2026", "elementor")
|
|
6411
6459
|
}
|
|
6412
|
-
), /* @__PURE__ */
|
|
6460
|
+
), /* @__PURE__ */ React94.createElement(Divider7, null), /* @__PURE__ */ React94.createElement(
|
|
6413
6461
|
PopoverMenuList,
|
|
6414
6462
|
{
|
|
6415
6463
|
items: virtualizedItems,
|
|
@@ -6417,20 +6465,20 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6417
6465
|
onClose: closePopover,
|
|
6418
6466
|
selectedValue: dynamicValue?.name,
|
|
6419
6467
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6420
|
-
noResultsComponent: /* @__PURE__ */
|
|
6468
|
+
noResultsComponent: /* @__PURE__ */ React94.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6421
6469
|
}
|
|
6422
6470
|
));
|
|
6423
6471
|
};
|
|
6424
|
-
return /* @__PURE__ */
|
|
6472
|
+
return /* @__PURE__ */ React94.createElement(SectionPopoverBody, { "aria-label": __66("Dynamic tags", "elementor") }, /* @__PURE__ */ React94.createElement(
|
|
6425
6473
|
PopoverHeader,
|
|
6426
6474
|
{
|
|
6427
|
-
title:
|
|
6475
|
+
title: __66("Dynamic tags", "elementor"),
|
|
6428
6476
|
onClose: closePopover,
|
|
6429
|
-
icon: /* @__PURE__ */
|
|
6477
|
+
icon: /* @__PURE__ */ React94.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
6430
6478
|
}
|
|
6431
6479
|
), getPopOverContent());
|
|
6432
6480
|
};
|
|
6433
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6481
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React94.createElement(
|
|
6434
6482
|
Stack15,
|
|
6435
6483
|
{
|
|
6436
6484
|
gap: 1,
|
|
@@ -6441,11 +6489,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React93.createElem
|
|
|
6441
6489
|
color: "text.secondary",
|
|
6442
6490
|
sx: { pb: 3.5 }
|
|
6443
6491
|
},
|
|
6444
|
-
/* @__PURE__ */
|
|
6445
|
-
/* @__PURE__ */
|
|
6446
|
-
/* @__PURE__ */
|
|
6492
|
+
/* @__PURE__ */ React94.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6493
|
+
/* @__PURE__ */ React94.createElement(Typography6, { align: "center", variant: "subtitle2" }, __66("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React94.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6494
|
+
/* @__PURE__ */ React94.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __66("Try something else.", "elementor"), /* @__PURE__ */ React94.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __66("Clear & try again", "elementor")))
|
|
6447
6495
|
);
|
|
6448
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6496
|
+
var NoDynamicTags = () => /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(Divider7, null), /* @__PURE__ */ React94.createElement(
|
|
6449
6497
|
Stack15,
|
|
6450
6498
|
{
|
|
6451
6499
|
gap: 1,
|
|
@@ -6456,10 +6504,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment
|
|
|
6456
6504
|
color: "text.secondary",
|
|
6457
6505
|
sx: { pb: 3.5 }
|
|
6458
6506
|
},
|
|
6459
|
-
/* @__PURE__ */
|
|
6460
|
-
/* @__PURE__ */
|
|
6461
|
-
/* @__PURE__ */
|
|
6462
|
-
/* @__PURE__ */
|
|
6507
|
+
/* @__PURE__ */ React94.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6508
|
+
/* @__PURE__ */ React94.createElement(Typography6, { align: "center", variant: "subtitle2" }, __66("Streamline your workflow with dynamic tags", "elementor")),
|
|
6509
|
+
/* @__PURE__ */ React94.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __66("Upgrade now to display your content dynamically.", "elementor")),
|
|
6510
|
+
/* @__PURE__ */ React94.createElement(
|
|
6463
6511
|
CtaButton,
|
|
6464
6512
|
{
|
|
6465
6513
|
size: "small",
|
|
@@ -6468,7 +6516,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment
|
|
|
6468
6516
|
}
|
|
6469
6517
|
)
|
|
6470
6518
|
));
|
|
6471
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6519
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(Divider7, null), /* @__PURE__ */ React94.createElement(
|
|
6472
6520
|
Stack15,
|
|
6473
6521
|
{
|
|
6474
6522
|
gap: 1,
|
|
@@ -6479,16 +6527,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fra
|
|
|
6479
6527
|
color: "text.secondary",
|
|
6480
6528
|
sx: { pb: 3.5 }
|
|
6481
6529
|
},
|
|
6482
|
-
/* @__PURE__ */
|
|
6483
|
-
/* @__PURE__ */
|
|
6484
|
-
/* @__PURE__ */
|
|
6485
|
-
/* @__PURE__ */
|
|
6530
|
+
/* @__PURE__ */ React94.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6531
|
+
/* @__PURE__ */ React94.createElement(Typography6, { align: "center", variant: "subtitle2" }, __66("Unlock your Dynamic tags again", "elementor")),
|
|
6532
|
+
/* @__PURE__ */ React94.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __66("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6533
|
+
/* @__PURE__ */ React94.createElement(
|
|
6486
6534
|
CtaButton,
|
|
6487
6535
|
{
|
|
6488
6536
|
size: "small",
|
|
6489
6537
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6490
6538
|
onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
|
|
6491
|
-
children:
|
|
6539
|
+
children: __66("Renew Now", "elementor")
|
|
6492
6540
|
}
|
|
6493
6541
|
)
|
|
6494
6542
|
));
|
|
@@ -6525,7 +6573,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6525
6573
|
const { name: tagName = "" } = value;
|
|
6526
6574
|
const dynamicTag = useDynamicTag(tagName);
|
|
6527
6575
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6528
|
-
return /* @__PURE__ */
|
|
6576
|
+
return /* @__PURE__ */ React95.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React95.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React95.createElement(OriginalControl, { ...props })));
|
|
6529
6577
|
}
|
|
6530
6578
|
const removeDynamicTag = () => {
|
|
6531
6579
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6533,25 +6581,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6533
6581
|
if (!dynamicTag) {
|
|
6534
6582
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6535
6583
|
}
|
|
6536
|
-
return /* @__PURE__ */
|
|
6584
|
+
return /* @__PURE__ */ React95.createElement(Box7, null, /* @__PURE__ */ React95.createElement(
|
|
6537
6585
|
Tag,
|
|
6538
6586
|
{
|
|
6539
6587
|
fullWidth: true,
|
|
6540
6588
|
showActionsOnHover: true,
|
|
6541
6589
|
label: dynamicTag.label,
|
|
6542
|
-
startIcon: /* @__PURE__ */
|
|
6590
|
+
startIcon: /* @__PURE__ */ React95.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
6543
6591
|
...bindTrigger2(selectionPopoverState),
|
|
6544
|
-
actions: /* @__PURE__ */
|
|
6592
|
+
actions: /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React95.createElement(
|
|
6545
6593
|
IconButton2,
|
|
6546
6594
|
{
|
|
6547
6595
|
size: SIZE3,
|
|
6548
6596
|
onClick: removeDynamicTag,
|
|
6549
|
-
"aria-label":
|
|
6597
|
+
"aria-label": __67("Remove dynamic value", "elementor")
|
|
6550
6598
|
},
|
|
6551
|
-
/* @__PURE__ */
|
|
6599
|
+
/* @__PURE__ */ React95.createElement(XIcon, { fontSize: SIZE3 })
|
|
6552
6600
|
))
|
|
6553
6601
|
}
|
|
6554
|
-
), /* @__PURE__ */
|
|
6602
|
+
), /* @__PURE__ */ React95.createElement(
|
|
6555
6603
|
Popover,
|
|
6556
6604
|
{
|
|
6557
6605
|
disablePortal: true,
|
|
@@ -6563,7 +6611,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6563
6611
|
},
|
|
6564
6612
|
...bindPopover(selectionPopoverState)
|
|
6565
6613
|
},
|
|
6566
|
-
/* @__PURE__ */
|
|
6614
|
+
/* @__PURE__ */ React95.createElement(SectionPopoverBody2, { "aria-label": __67("Dynamic tags", "elementor") }, /* @__PURE__ */ React95.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6567
6615
|
));
|
|
6568
6616
|
};
|
|
6569
6617
|
var DynamicSettingsPopover = ({
|
|
@@ -6575,16 +6623,16 @@ var DynamicSettingsPopover = ({
|
|
|
6575
6623
|
if (!hasDynamicSettings) {
|
|
6576
6624
|
return null;
|
|
6577
6625
|
}
|
|
6578
|
-
return /* @__PURE__ */
|
|
6626
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(
|
|
6579
6627
|
IconButton2,
|
|
6580
6628
|
{
|
|
6581
6629
|
size: SIZE3,
|
|
6582
6630
|
disabled,
|
|
6583
6631
|
...!disabled && bindTrigger2(popupState),
|
|
6584
|
-
"aria-label":
|
|
6632
|
+
"aria-label": __67("Dynamic settings", "elementor")
|
|
6585
6633
|
},
|
|
6586
|
-
/* @__PURE__ */
|
|
6587
|
-
), /* @__PURE__ */
|
|
6634
|
+
/* @__PURE__ */ React95.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
6635
|
+
), /* @__PURE__ */ React95.createElement(
|
|
6588
6636
|
Popover,
|
|
6589
6637
|
{
|
|
6590
6638
|
disablePortal: true,
|
|
@@ -6596,14 +6644,14 @@ var DynamicSettingsPopover = ({
|
|
|
6596
6644
|
},
|
|
6597
6645
|
...bindPopover(popupState)
|
|
6598
6646
|
},
|
|
6599
|
-
/* @__PURE__ */
|
|
6647
|
+
/* @__PURE__ */ React95.createElement(SectionPopoverBody2, { "aria-label": __67("Dynamic settings", "elementor") }, /* @__PURE__ */ React95.createElement(
|
|
6600
6648
|
PopoverHeader2,
|
|
6601
6649
|
{
|
|
6602
6650
|
title: dynamicTag.label,
|
|
6603
6651
|
onClose: popupState.close,
|
|
6604
|
-
icon: /* @__PURE__ */
|
|
6652
|
+
icon: /* @__PURE__ */ React95.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
6605
6653
|
}
|
|
6606
|
-
), /* @__PURE__ */
|
|
6654
|
+
), /* @__PURE__ */ React95.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6607
6655
|
));
|
|
6608
6656
|
};
|
|
6609
6657
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6614,9 +6662,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6614
6662
|
}
|
|
6615
6663
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6616
6664
|
const singleTab = tabs[0];
|
|
6617
|
-
return /* @__PURE__ */
|
|
6665
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(Divider8, null), /* @__PURE__ */ React95.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6618
6666
|
}
|
|
6619
|
-
return /* @__PURE__ */
|
|
6667
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React95.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React95.createElement(
|
|
6620
6668
|
Tab2,
|
|
6621
6669
|
{
|
|
6622
6670
|
key: index,
|
|
@@ -6624,15 +6672,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6624
6672
|
sx: { px: 1, py: 0.5 },
|
|
6625
6673
|
...getTabProps(index)
|
|
6626
6674
|
}
|
|
6627
|
-
))), /* @__PURE__ */
|
|
6628
|
-
return /* @__PURE__ */
|
|
6675
|
+
))), /* @__PURE__ */ React95.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
6676
|
+
return /* @__PURE__ */ React95.createElement(
|
|
6629
6677
|
TabPanel2,
|
|
6630
6678
|
{
|
|
6631
6679
|
key: index,
|
|
6632
6680
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6633
6681
|
...getTabPanelProps(index)
|
|
6634
6682
|
},
|
|
6635
|
-
/* @__PURE__ */
|
|
6683
|
+
/* @__PURE__ */ React95.createElement(ControlsItemsStack, { items: value.items })
|
|
6636
6684
|
);
|
|
6637
6685
|
}));
|
|
6638
6686
|
};
|
|
@@ -6674,11 +6722,11 @@ var Control2 = ({ control }) => {
|
|
|
6674
6722
|
display: "grid",
|
|
6675
6723
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6676
6724
|
} : {};
|
|
6677
|
-
return /* @__PURE__ */
|
|
6725
|
+
return /* @__PURE__ */ React95.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React95.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React95.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React95.createElement(ControlFormLabel4, null, control.label)) : null, /* @__PURE__ */ React95.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React95.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6678
6726
|
};
|
|
6679
6727
|
function ControlsItemsStack({ items: items3 }) {
|
|
6680
|
-
return /* @__PURE__ */
|
|
6681
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6728
|
+
return /* @__PURE__ */ React95.createElement(Stack16, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6729
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React95.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6682
6730
|
));
|
|
6683
6731
|
}
|
|
6684
6732
|
|
|
@@ -6731,18 +6779,18 @@ function getDynamicValue(name, settings) {
|
|
|
6731
6779
|
}
|
|
6732
6780
|
|
|
6733
6781
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6734
|
-
import * as
|
|
6782
|
+
import * as React96 from "react";
|
|
6735
6783
|
import { useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
|
|
6736
6784
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
6737
|
-
import { __ as
|
|
6785
|
+
import { __ as __68 } from "@wordpress/i18n";
|
|
6738
6786
|
var usePropDynamicAction = () => {
|
|
6739
6787
|
const { propType } = useBoundProp12();
|
|
6740
6788
|
const visible = !!propType && supportsDynamic(propType);
|
|
6741
6789
|
return {
|
|
6742
6790
|
visible,
|
|
6743
6791
|
icon: DatabaseIcon4,
|
|
6744
|
-
title:
|
|
6745
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6792
|
+
title: __68("Dynamic tags", "elementor"),
|
|
6793
|
+
content: ({ close }) => /* @__PURE__ */ React96.createElement(DynamicSelection, { close })
|
|
6746
6794
|
};
|
|
6747
6795
|
};
|
|
6748
6796
|
|
|
@@ -6777,7 +6825,7 @@ import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
|
|
|
6777
6825
|
import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
|
|
6778
6826
|
import { BrushBigIcon } from "@elementor/icons";
|
|
6779
6827
|
import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
|
|
6780
|
-
import { __ as
|
|
6828
|
+
import { __ as __69 } from "@wordpress/i18n";
|
|
6781
6829
|
|
|
6782
6830
|
// src/utils/is-equal.ts
|
|
6783
6831
|
function isEqual(a, b) {
|
|
@@ -6853,21 +6901,21 @@ function useResetStyleValueProps() {
|
|
|
6853
6901
|
const visible = calculateVisibility();
|
|
6854
6902
|
return {
|
|
6855
6903
|
visible,
|
|
6856
|
-
title:
|
|
6904
|
+
title: __69("Clear", "elementor"),
|
|
6857
6905
|
icon: BrushBigIcon,
|
|
6858
6906
|
onClick: () => resetValue()
|
|
6859
6907
|
};
|
|
6860
6908
|
}
|
|
6861
6909
|
|
|
6862
6910
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6863
|
-
import * as
|
|
6911
|
+
import * as React102 from "react";
|
|
6864
6912
|
import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
|
|
6865
6913
|
import { isEmpty as isEmpty2 } from "@elementor/editor-props";
|
|
6866
6914
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
6867
|
-
import { __ as
|
|
6915
|
+
import { __ as __73 } from "@wordpress/i18n";
|
|
6868
6916
|
|
|
6869
6917
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6870
|
-
import * as
|
|
6918
|
+
import * as React101 from "react";
|
|
6871
6919
|
import { useMemo as useMemo15, useRef as useRef19, useState as useState12 } from "react";
|
|
6872
6920
|
import {
|
|
6873
6921
|
createPropsResolver as createPropsResolver2,
|
|
@@ -6885,7 +6933,7 @@ import {
|
|
|
6885
6933
|
Stack as Stack17,
|
|
6886
6934
|
Tooltip as Tooltip6
|
|
6887
6935
|
} from "@elementor/ui";
|
|
6888
|
-
import { __ as
|
|
6936
|
+
import { __ as __72 } from "@wordpress/i18n";
|
|
6889
6937
|
|
|
6890
6938
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6891
6939
|
import { isValidElement, useEffect as useEffect10, useState as useState11 } from "react";
|
|
@@ -6895,7 +6943,7 @@ import {
|
|
|
6895
6943
|
isPseudoState
|
|
6896
6944
|
} from "@elementor/editor-styles";
|
|
6897
6945
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
6898
|
-
import { __ as
|
|
6946
|
+
import { __ as __70 } from "@wordpress/i18n";
|
|
6899
6947
|
var MAXIMUM_ITEMS = 2;
|
|
6900
6948
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6901
6949
|
const [items3, setItems] = useState11([]);
|
|
@@ -6906,7 +6954,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
6906
6954
|
);
|
|
6907
6955
|
const validItems = normalizedItems.map((item) => ({
|
|
6908
6956
|
...item,
|
|
6909
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
6957
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __70("Base", "elementor")
|
|
6910
6958
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6911
6959
|
setItems(validItems);
|
|
6912
6960
|
})();
|
|
@@ -6963,7 +7011,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6963
7011
|
};
|
|
6964
7012
|
|
|
6965
7013
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6966
|
-
import * as
|
|
7014
|
+
import * as React97 from "react";
|
|
6967
7015
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
6968
7016
|
import {
|
|
6969
7017
|
DesktopIcon,
|
|
@@ -6994,20 +7042,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6994
7042
|
return null;
|
|
6995
7043
|
}
|
|
6996
7044
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6997
|
-
return /* @__PURE__ */
|
|
7045
|
+
return /* @__PURE__ */ React97.createElement(Tooltip3, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React97.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6998
7046
|
};
|
|
6999
7047
|
|
|
7000
7048
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
7001
|
-
import * as
|
|
7049
|
+
import * as React98 from "react";
|
|
7002
7050
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
7003
7051
|
import { InfoCircleIcon } from "@elementor/icons";
|
|
7004
7052
|
import { Chip as Chip5, Tooltip as Tooltip4 } from "@elementor/ui";
|
|
7005
|
-
import { __ as
|
|
7053
|
+
import { __ as __71 } from "@wordpress/i18n";
|
|
7006
7054
|
var SIZE5 = "tiny";
|
|
7007
7055
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
7008
7056
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
7009
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
7010
|
-
return /* @__PURE__ */
|
|
7057
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React98.createElement(Tooltip4, { title: __71("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React98.createElement(InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
7058
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7011
7059
|
Chip5,
|
|
7012
7060
|
{
|
|
7013
7061
|
label: displayLabel,
|
|
@@ -7033,11 +7081,11 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
7033
7081
|
};
|
|
7034
7082
|
|
|
7035
7083
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
7036
|
-
import * as
|
|
7037
|
-
import { Tooltip as Tooltip5, Typography as
|
|
7084
|
+
import * as React99 from "react";
|
|
7085
|
+
import { Tooltip as Tooltip5, Typography as Typography7 } from "@elementor/ui";
|
|
7038
7086
|
var ValueComponent = ({ index, value }) => {
|
|
7039
|
-
return /* @__PURE__ */
|
|
7040
|
-
|
|
7087
|
+
return /* @__PURE__ */ React99.createElement(Tooltip5, { title: value, placement: "top" }, /* @__PURE__ */ React99.createElement(
|
|
7088
|
+
Typography7,
|
|
7041
7089
|
{
|
|
7042
7090
|
variant: "caption",
|
|
7043
7091
|
color: "text.tertiary",
|
|
@@ -7058,9 +7106,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7058
7106
|
};
|
|
7059
7107
|
|
|
7060
7108
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7061
|
-
import * as
|
|
7109
|
+
import * as React100 from "react";
|
|
7062
7110
|
import { Box as Box8 } from "@elementor/ui";
|
|
7063
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7111
|
+
var ActionIcons = () => /* @__PURE__ */ React100.createElement(Box8, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7064
7112
|
|
|
7065
7113
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7066
7114
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7096,7 +7144,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7096
7144
|
});
|
|
7097
7145
|
}, [key, propType]);
|
|
7098
7146
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7099
|
-
const infotipContent = /* @__PURE__ */
|
|
7147
|
+
const infotipContent = /* @__PURE__ */ React101.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React101.createElement(
|
|
7100
7148
|
Card,
|
|
7101
7149
|
{
|
|
7102
7150
|
elevation: 0,
|
|
@@ -7109,7 +7157,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7109
7157
|
flexDirection: "column"
|
|
7110
7158
|
}
|
|
7111
7159
|
},
|
|
7112
|
-
/* @__PURE__ */
|
|
7160
|
+
/* @__PURE__ */ React101.createElement(
|
|
7113
7161
|
Box9,
|
|
7114
7162
|
{
|
|
7115
7163
|
sx: {
|
|
@@ -7119,9 +7167,9 @@ var StylesInheritanceInfotip = ({
|
|
|
7119
7167
|
backgroundColor: "background.paper"
|
|
7120
7168
|
}
|
|
7121
7169
|
},
|
|
7122
|
-
/* @__PURE__ */
|
|
7170
|
+
/* @__PURE__ */ React101.createElement(PopoverHeader3, { title: __72("Style origin", "elementor"), onClose: closeInfotip })
|
|
7123
7171
|
),
|
|
7124
|
-
/* @__PURE__ */
|
|
7172
|
+
/* @__PURE__ */ React101.createElement(
|
|
7125
7173
|
CardContent,
|
|
7126
7174
|
{
|
|
7127
7175
|
sx: {
|
|
@@ -7135,39 +7183,39 @@ var StylesInheritanceInfotip = ({
|
|
|
7135
7183
|
}
|
|
7136
7184
|
}
|
|
7137
7185
|
},
|
|
7138
|
-
/* @__PURE__ */
|
|
7139
|
-
return /* @__PURE__ */
|
|
7186
|
+
/* @__PURE__ */ React101.createElement(Stack17, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7187
|
+
return /* @__PURE__ */ React101.createElement(
|
|
7140
7188
|
Box9,
|
|
7141
7189
|
{
|
|
7142
7190
|
key: item.id,
|
|
7143
7191
|
display: "flex",
|
|
7144
7192
|
gap: 0.5,
|
|
7145
7193
|
role: "listitem",
|
|
7146
|
-
"aria-label":
|
|
7194
|
+
"aria-label": __72("Inheritance item: %s", "elementor").replace(
|
|
7147
7195
|
"%s",
|
|
7148
7196
|
item.displayLabel
|
|
7149
7197
|
)
|
|
7150
7198
|
},
|
|
7151
|
-
/* @__PURE__ */
|
|
7199
|
+
/* @__PURE__ */ React101.createElement(
|
|
7152
7200
|
Box9,
|
|
7153
7201
|
{
|
|
7154
7202
|
display: "flex",
|
|
7155
7203
|
gap: 0.5,
|
|
7156
7204
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7157
7205
|
},
|
|
7158
|
-
/* @__PURE__ */
|
|
7159
|
-
/* @__PURE__ */
|
|
7160
|
-
/* @__PURE__ */
|
|
7206
|
+
/* @__PURE__ */ React101.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7207
|
+
/* @__PURE__ */ React101.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7208
|
+
/* @__PURE__ */ React101.createElement(ValueComponent, { index, value: item.value })
|
|
7161
7209
|
),
|
|
7162
|
-
/* @__PURE__ */
|
|
7210
|
+
/* @__PURE__ */ React101.createElement(ActionIcons, null)
|
|
7163
7211
|
);
|
|
7164
7212
|
}))
|
|
7165
7213
|
)
|
|
7166
7214
|
));
|
|
7167
7215
|
if (isDisabled) {
|
|
7168
|
-
return /* @__PURE__ */
|
|
7216
|
+
return /* @__PURE__ */ React101.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
7169
7217
|
}
|
|
7170
|
-
return /* @__PURE__ */
|
|
7218
|
+
return /* @__PURE__ */ React101.createElement(Box9, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React101.createElement(
|
|
7171
7219
|
TooltipOrInfotip,
|
|
7172
7220
|
{
|
|
7173
7221
|
showInfotip,
|
|
@@ -7175,7 +7223,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7175
7223
|
infotipContent,
|
|
7176
7224
|
isDisabled
|
|
7177
7225
|
},
|
|
7178
|
-
/* @__PURE__ */
|
|
7226
|
+
/* @__PURE__ */ React101.createElement(
|
|
7179
7227
|
IconButton3,
|
|
7180
7228
|
{
|
|
7181
7229
|
onClick: toggleInfotip,
|
|
@@ -7195,10 +7243,10 @@ function TooltipOrInfotip({
|
|
|
7195
7243
|
isDisabled
|
|
7196
7244
|
}) {
|
|
7197
7245
|
if (isDisabled) {
|
|
7198
|
-
return /* @__PURE__ */
|
|
7246
|
+
return /* @__PURE__ */ React101.createElement(Box9, { sx: { display: "inline-flex" } }, children);
|
|
7199
7247
|
}
|
|
7200
7248
|
if (showInfotip) {
|
|
7201
|
-
return /* @__PURE__ */
|
|
7249
|
+
return /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
|
|
7202
7250
|
Backdrop,
|
|
7203
7251
|
{
|
|
7204
7252
|
open: showInfotip,
|
|
@@ -7208,7 +7256,7 @@ function TooltipOrInfotip({
|
|
|
7208
7256
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7209
7257
|
}
|
|
7210
7258
|
}
|
|
7211
|
-
), /* @__PURE__ */
|
|
7259
|
+
), /* @__PURE__ */ React101.createElement(
|
|
7212
7260
|
Infotip3,
|
|
7213
7261
|
{
|
|
7214
7262
|
placement: "top-end",
|
|
@@ -7220,7 +7268,7 @@ function TooltipOrInfotip({
|
|
|
7220
7268
|
children
|
|
7221
7269
|
));
|
|
7222
7270
|
}
|
|
7223
|
-
return /* @__PURE__ */
|
|
7271
|
+
return /* @__PURE__ */ React101.createElement(Tooltip6, { title: __72("Style origin", "elementor"), placement: "top" }, children);
|
|
7224
7272
|
}
|
|
7225
7273
|
|
|
7226
7274
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7233,7 +7281,7 @@ var StylesInheritanceIndicator = ({
|
|
|
7233
7281
|
if (!path || !inheritanceChain.length) {
|
|
7234
7282
|
return null;
|
|
7235
7283
|
}
|
|
7236
|
-
return /* @__PURE__ */
|
|
7284
|
+
return /* @__PURE__ */ React102.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7237
7285
|
};
|
|
7238
7286
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7239
7287
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -7249,7 +7297,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7249
7297
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7250
7298
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7251
7299
|
};
|
|
7252
|
-
return /* @__PURE__ */
|
|
7300
|
+
return /* @__PURE__ */ React102.createElement(
|
|
7253
7301
|
StylesInheritanceInfotip,
|
|
7254
7302
|
{
|
|
7255
7303
|
inheritanceChain,
|
|
@@ -7258,17 +7306,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7258
7306
|
label,
|
|
7259
7307
|
isDisabled
|
|
7260
7308
|
},
|
|
7261
|
-
/* @__PURE__ */
|
|
7309
|
+
/* @__PURE__ */ React102.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7262
7310
|
);
|
|
7263
7311
|
};
|
|
7264
7312
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
7265
7313
|
if (isFinalValue) {
|
|
7266
|
-
return
|
|
7314
|
+
return __73("This is the final value", "elementor");
|
|
7267
7315
|
}
|
|
7268
7316
|
if (hasValue) {
|
|
7269
|
-
return
|
|
7317
|
+
return __73("This value is overridden by another style", "elementor");
|
|
7270
7318
|
}
|
|
7271
|
-
return
|
|
7319
|
+
return __73("This has value from another style", "elementor");
|
|
7272
7320
|
};
|
|
7273
7321
|
|
|
7274
7322
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -7293,7 +7341,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7293
7341
|
]);
|
|
7294
7342
|
|
|
7295
7343
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7296
|
-
import * as
|
|
7344
|
+
import * as React103 from "react";
|
|
7297
7345
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
7298
7346
|
var arrayTransformer = createTransformer2((values) => {
|
|
7299
7347
|
if (!values || values.length === 0) {
|
|
@@ -7303,16 +7351,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
7303
7351
|
if (allStrings) {
|
|
7304
7352
|
return values.join(" ");
|
|
7305
7353
|
}
|
|
7306
|
-
return /* @__PURE__ */
|
|
7354
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, values.map((item, index) => /* @__PURE__ */ React103.createElement(React103.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7307
7355
|
});
|
|
7308
7356
|
|
|
7309
7357
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7310
|
-
import * as
|
|
7358
|
+
import * as React104 from "react";
|
|
7311
7359
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
7312
7360
|
import { Stack as Stack18, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
|
|
7313
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
7361
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React104.createElement(Stack18, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React104.createElement(ItemLabelColor, { value })));
|
|
7314
7362
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7315
|
-
return /* @__PURE__ */
|
|
7363
|
+
return /* @__PURE__ */ React104.createElement("span", null, color);
|
|
7316
7364
|
};
|
|
7317
7365
|
var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
|
|
7318
7366
|
width: "1em",
|
|
@@ -7323,20 +7371,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
|
|
|
7323
7371
|
}));
|
|
7324
7372
|
|
|
7325
7373
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7326
|
-
import * as
|
|
7374
|
+
import * as React105 from "react";
|
|
7327
7375
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
7328
7376
|
import { Stack as Stack19 } from "@elementor/ui";
|
|
7329
|
-
import { __ as
|
|
7330
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
7377
|
+
import { __ as __74 } from "@wordpress/i18n";
|
|
7378
|
+
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React105.createElement(Stack19, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React105.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React105.createElement(ItemLabelGradient, { value })));
|
|
7331
7379
|
var ItemIconGradient = ({ value }) => {
|
|
7332
7380
|
const gradient = getGradientValue(value);
|
|
7333
|
-
return /* @__PURE__ */
|
|
7381
|
+
return /* @__PURE__ */ React105.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7334
7382
|
};
|
|
7335
7383
|
var ItemLabelGradient = ({ value }) => {
|
|
7336
7384
|
if (value.type === "linear") {
|
|
7337
|
-
return /* @__PURE__ */
|
|
7385
|
+
return /* @__PURE__ */ React105.createElement("span", null, __74("Linear gradient", "elementor"));
|
|
7338
7386
|
}
|
|
7339
|
-
return /* @__PURE__ */
|
|
7387
|
+
return /* @__PURE__ */ React105.createElement("span", null, __74("Radial gradient", "elementor"));
|
|
7340
7388
|
};
|
|
7341
7389
|
var getGradientValue = (gradient) => {
|
|
7342
7390
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7347,15 +7395,15 @@ var getGradientValue = (gradient) => {
|
|
|
7347
7395
|
};
|
|
7348
7396
|
|
|
7349
7397
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7350
|
-
import * as
|
|
7398
|
+
import * as React106 from "react";
|
|
7351
7399
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
7352
7400
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
7353
7401
|
import { CardMedia, Stack as Stack20 } from "@elementor/ui";
|
|
7354
7402
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
7355
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
7403
|
+
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React106.createElement(Stack20, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React106.createElement(ItemIconImage, { value }), /* @__PURE__ */ React106.createElement(ItemLabelImage, { value })));
|
|
7356
7404
|
var ItemIconImage = ({ value }) => {
|
|
7357
7405
|
const { imageUrl } = useImage(value);
|
|
7358
|
-
return /* @__PURE__ */
|
|
7406
|
+
return /* @__PURE__ */ React106.createElement(
|
|
7359
7407
|
CardMedia,
|
|
7360
7408
|
{
|
|
7361
7409
|
image: imageUrl,
|
|
@@ -7371,7 +7419,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7371
7419
|
};
|
|
7372
7420
|
var ItemLabelImage = ({ value }) => {
|
|
7373
7421
|
const { imageTitle } = useImage(value);
|
|
7374
|
-
return /* @__PURE__ */
|
|
7422
|
+
return /* @__PURE__ */ React106.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React106.createElement("span", null, imageTitle));
|
|
7375
7423
|
};
|
|
7376
7424
|
var useImage = (image) => {
|
|
7377
7425
|
let imageTitle, imageUrl = null;
|
|
@@ -7396,7 +7444,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7396
7444
|
};
|
|
7397
7445
|
|
|
7398
7446
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7399
|
-
import * as
|
|
7447
|
+
import * as React107 from "react";
|
|
7400
7448
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
7401
7449
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
7402
7450
|
if (!value) {
|
|
@@ -7406,11 +7454,11 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
7406
7454
|
const colorValue = color || "#000000";
|
|
7407
7455
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7408
7456
|
const positionValue = position || "outset";
|
|
7409
|
-
return /* @__PURE__ */
|
|
7457
|
+
return /* @__PURE__ */ React107.createElement(React107.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7410
7458
|
});
|
|
7411
7459
|
|
|
7412
7460
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7413
|
-
import * as
|
|
7461
|
+
import * as React108 from "react";
|
|
7414
7462
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
7415
7463
|
import { Stack as Stack21, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
7416
7464
|
function isValidCSSColor(value) {
|
|
@@ -7430,7 +7478,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
7430
7478
|
if (!isValidCSSColor(value)) {
|
|
7431
7479
|
return value;
|
|
7432
7480
|
}
|
|
7433
|
-
return /* @__PURE__ */
|
|
7481
|
+
return /* @__PURE__ */ React108.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React108.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React108.createElement("span", null, value));
|
|
7434
7482
|
});
|
|
7435
7483
|
|
|
7436
7484
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|