@elementor/editor-editing-panel 4.2.0-884 → 4.2.0-886
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.js
CHANGED
|
@@ -225,14 +225,14 @@ var onConvert = (opts) => {
|
|
|
225
225
|
};
|
|
226
226
|
|
|
227
227
|
// src/components/css-classes/css-class-selector.tsx
|
|
228
|
-
var
|
|
228
|
+
var React12 = __toESM(require("react"));
|
|
229
229
|
var import_react10 = require("react");
|
|
230
|
-
var
|
|
230
|
+
var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
|
|
231
231
|
var import_editor_ui4 = require("@elementor/editor-ui");
|
|
232
|
-
var
|
|
232
|
+
var import_icons3 = require("@elementor/icons");
|
|
233
233
|
var import_locations2 = require("@elementor/locations");
|
|
234
|
-
var
|
|
235
|
-
var
|
|
234
|
+
var import_ui8 = require("@elementor/ui");
|
|
235
|
+
var import_i18n7 = require("@wordpress/i18n");
|
|
236
236
|
|
|
237
237
|
// src/utils/get-styles-provider-color.ts
|
|
238
238
|
var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
|
|
@@ -715,11 +715,11 @@ function doUnapplyClass(elementId, classId, classesPropType = "classes") {
|
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
// src/components/css-classes/use-apply-and-unapply-class.ts
|
|
718
|
-
function
|
|
718
|
+
function useUndoableApplyClass() {
|
|
719
719
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
720
720
|
const { element } = useElement();
|
|
721
|
-
const applyClass =
|
|
722
|
-
const
|
|
721
|
+
const applyClass = useApplyClass();
|
|
722
|
+
const unapplyClasses = useUnapplyClasses();
|
|
723
723
|
return (0, import_react8.useMemo)(() => {
|
|
724
724
|
return (0, import_editor_v1_adapters.undoable)(
|
|
725
725
|
{
|
|
@@ -729,7 +729,7 @@ function useApplyClass() {
|
|
|
729
729
|
return prevActiveId;
|
|
730
730
|
},
|
|
731
731
|
undo: ({ classId }, prevActiveId) => {
|
|
732
|
-
|
|
732
|
+
unapplyClasses([classId]);
|
|
733
733
|
setActiveId(prevActiveId);
|
|
734
734
|
}
|
|
735
735
|
},
|
|
@@ -740,19 +740,19 @@ function useApplyClass() {
|
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
|
-
}, [activeId, applyClass, element.id,
|
|
743
|
+
}, [activeId, applyClass, element.id, unapplyClasses, setActiveId]);
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function useUndoableUnapplyClass() {
|
|
746
746
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
747
747
|
const { element } = useElement();
|
|
748
|
-
const applyClass =
|
|
749
|
-
const
|
|
748
|
+
const applyClass = useApplyClass();
|
|
749
|
+
const unapplyClasses = useUnapplyClasses();
|
|
750
750
|
return (0, import_react8.useMemo)(() => {
|
|
751
751
|
return (0, import_editor_v1_adapters.undoable)(
|
|
752
752
|
{
|
|
753
753
|
do: ({ classId }) => {
|
|
754
754
|
const prevActiveId = activeId;
|
|
755
|
-
|
|
755
|
+
unapplyClasses([classId]);
|
|
756
756
|
return prevActiveId;
|
|
757
757
|
},
|
|
758
758
|
undo: ({ classId }, prevActiveId) => {
|
|
@@ -767,14 +767,14 @@ function useUnapplyClass() {
|
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
);
|
|
770
|
-
}, [activeId, applyClass, element.id,
|
|
770
|
+
}, [activeId, applyClass, element.id, unapplyClasses, setActiveId]);
|
|
771
771
|
}
|
|
772
772
|
function useCreateAndApplyClass() {
|
|
773
773
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
774
774
|
const [provider, createAction] = (0, import_editor_styles_repository5.useGetStylesRepositoryCreateAction)() ?? [null, null];
|
|
775
775
|
const deleteAction = provider?.actions.delete;
|
|
776
|
-
const applyClass =
|
|
777
|
-
const
|
|
776
|
+
const applyClass = useApplyClass();
|
|
777
|
+
const unapplyClasses = useUnapplyClasses();
|
|
778
778
|
const undoableCreateAndApply = (0, import_react8.useMemo)(() => {
|
|
779
779
|
if (!provider || !createAction) {
|
|
780
780
|
return;
|
|
@@ -788,7 +788,7 @@ function useCreateAndApplyClass() {
|
|
|
788
788
|
return { prevActiveId, createdId };
|
|
789
789
|
},
|
|
790
790
|
undo: (_, { prevActiveId, createdId }) => {
|
|
791
|
-
|
|
791
|
+
unapplyClasses([createdId]);
|
|
792
792
|
deleteAction?.(createdId);
|
|
793
793
|
setActiveId(prevActiveId);
|
|
794
794
|
},
|
|
@@ -806,13 +806,13 @@ function useCreateAndApplyClass() {
|
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
);
|
|
809
|
-
}, [activeId, applyClass, createAction, deleteAction, provider, setActiveId,
|
|
809
|
+
}, [activeId, applyClass, createAction, deleteAction, provider, setActiveId, unapplyClasses]);
|
|
810
810
|
if (!provider || !undoableCreateAndApply) {
|
|
811
811
|
return [null, null];
|
|
812
812
|
}
|
|
813
813
|
return [provider, undoableCreateAndApply];
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function useApplyClass() {
|
|
816
816
|
const { element } = useElement();
|
|
817
817
|
const { setId: setActiveId } = useStyle();
|
|
818
818
|
const { setClasses, getAppliedClasses } = useClasses();
|
|
@@ -831,21 +831,22 @@ function useApply() {
|
|
|
831
831
|
[element.id, getAppliedClasses, setActiveId, setClasses]
|
|
832
832
|
);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function useUnapplyClasses() {
|
|
835
835
|
const { element } = useElement();
|
|
836
836
|
const { id: activeId, setId: setActiveId } = useStyle();
|
|
837
837
|
const { setClasses, getAppliedClasses } = useClasses();
|
|
838
838
|
return (0, import_react8.useCallback)(
|
|
839
|
-
(
|
|
839
|
+
(classIDsToUnapply) => {
|
|
840
840
|
const appliedClasses = getAppliedClasses();
|
|
841
|
-
if (!appliedClasses.includes(
|
|
841
|
+
if (!classIDsToUnapply.every((classID) => appliedClasses.includes(classID))) {
|
|
842
|
+
const missingClasses = classIDsToUnapply.filter((classID) => !appliedClasses.includes(classID));
|
|
842
843
|
throw new Error(
|
|
843
|
-
`
|
|
844
|
+
`Classes ${missingClasses.join(", ")} are not applied to element ${element.id}, cannot unapply them.`
|
|
844
845
|
);
|
|
845
846
|
}
|
|
846
|
-
const updatedClassesIds = appliedClasses.filter((id) => id
|
|
847
|
+
const updatedClassesIds = appliedClasses.filter((id) => !classIDsToUnapply.includes(id));
|
|
847
848
|
setClasses(updatedClassesIds);
|
|
848
|
-
if (activeId
|
|
849
|
+
if (activeId && classIDsToUnapply.includes(activeId)) {
|
|
849
850
|
setActiveId(updatedClassesIds[0] ?? null);
|
|
850
851
|
}
|
|
851
852
|
},
|
|
@@ -878,7 +879,7 @@ function getUniqueDuplicateLabel(originalLabel, existingLabels) {
|
|
|
878
879
|
function DuplicateClassMenuItem({ closeMenu }) {
|
|
879
880
|
const { id: classId, provider } = useCssClass();
|
|
880
881
|
const { userCan } = (0, import_editor_styles_repository6.useUserStylesCapability)();
|
|
881
|
-
const applyClass =
|
|
882
|
+
const applyClass = useUndoableApplyClass();
|
|
882
883
|
const [, setPendingEditId] = (0, import_session2.useSessionStorage)(PENDING_CLASS_RENAME_SESSION_KEY, "app");
|
|
883
884
|
if (!provider || !classId) {
|
|
884
885
|
return null;
|
|
@@ -1126,7 +1127,7 @@ function StateMenuItem({ state, label, closeMenu, ...props }) {
|
|
|
1126
1127
|
}
|
|
1127
1128
|
function UnapplyClassMenuItem({ closeMenu, ...props }) {
|
|
1128
1129
|
const { id: classId, label: classLabel, provider } = useCssClass();
|
|
1129
|
-
const unapplyClass =
|
|
1130
|
+
const unapplyClass = useUndoableUnapplyClass();
|
|
1130
1131
|
return classId ? /* @__PURE__ */ React9.createElement(
|
|
1131
1132
|
import_editor_ui2.MenuListItem,
|
|
1132
1133
|
{
|
|
@@ -1288,6 +1289,38 @@ var validateLabel = (newLabel) => {
|
|
|
1288
1289
|
return result.errorMessage;
|
|
1289
1290
|
};
|
|
1290
1291
|
|
|
1292
|
+
// src/components/css-classes/missing-classes-alert.tsx
|
|
1293
|
+
var React11 = __toESM(require("react"));
|
|
1294
|
+
var import_icons2 = require("@elementor/icons");
|
|
1295
|
+
var import_ui7 = require("@elementor/ui");
|
|
1296
|
+
var import_i18n6 = require("@wordpress/i18n");
|
|
1297
|
+
function MissingClassesAlert({ onDismiss }) {
|
|
1298
|
+
return /* @__PURE__ */ React11.createElement(
|
|
1299
|
+
import_ui7.Alert,
|
|
1300
|
+
{
|
|
1301
|
+
severity: "warning",
|
|
1302
|
+
onClose: onDismiss,
|
|
1303
|
+
size: "small",
|
|
1304
|
+
icon: /* @__PURE__ */ React11.createElement(import_icons2.AlertTriangleFilledIcon, { fontSize: "tiny" }),
|
|
1305
|
+
sx: { mt: 1 }
|
|
1306
|
+
},
|
|
1307
|
+
/* @__PURE__ */ React11.createElement(import_ui7.AlertTitle, null, (0, import_i18n6.__)("Some classes are missing", "elementor")),
|
|
1308
|
+
/* @__PURE__ */ React11.createElement(import_ui7.Typography, { variant: "caption", textColor: "primary" }, (0, import_i18n6.__)("A class was removed from your site and is no longer active on this element", "elementor"))
|
|
1309
|
+
);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
// src/components/css-classes/use-missing-classes.ts
|
|
1313
|
+
var import_editor_styles_repository10 = require("@elementor/editor-styles-repository");
|
|
1314
|
+
function useMissingClassesIds() {
|
|
1315
|
+
const providers = (0, import_editor_styles_repository10.useProviders)();
|
|
1316
|
+
const currentClassesProp = useClassesProp();
|
|
1317
|
+
const appliedIds = usePanelElementSetting(currentClassesProp)?.value ?? [];
|
|
1318
|
+
const allKnownIds = new Set(
|
|
1319
|
+
providers.flatMap((provider) => provider.actions.all().map((style) => style.id))
|
|
1320
|
+
);
|
|
1321
|
+
return appliedIds.filter((id) => !allKnownIds.has(id));
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1291
1324
|
// src/components/css-classes/css-class-selector.tsx
|
|
1292
1325
|
var ID = "elementor-css-class-selector";
|
|
1293
1326
|
var TAGS_LIMIT = 50;
|
|
@@ -1299,11 +1332,11 @@ function openClassManagerPanel() {
|
|
|
1299
1332
|
);
|
|
1300
1333
|
}
|
|
1301
1334
|
var EMPTY_OPTION = {
|
|
1302
|
-
label: (0,
|
|
1335
|
+
label: (0, import_i18n7.__)("local", "elementor"),
|
|
1303
1336
|
value: null,
|
|
1304
1337
|
fixed: true,
|
|
1305
1338
|
color: getTempStylesProviderColorName("accent"),
|
|
1306
|
-
icon: /* @__PURE__ */
|
|
1339
|
+
icon: /* @__PURE__ */ React12.createElement(import_icons3.MapPinIcon, null),
|
|
1307
1340
|
provider: null
|
|
1308
1341
|
};
|
|
1309
1342
|
var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = (0, import_locations2.createLocation)();
|
|
@@ -1317,9 +1350,15 @@ function CssClassSelector() {
|
|
|
1317
1350
|
const appliedOptions = useAppliedOptions(options13);
|
|
1318
1351
|
const active = appliedOptions.find((option) => option.value === activeId) ?? EMPTY_OPTION;
|
|
1319
1352
|
const showPlaceholder = appliedOptions.every(({ fixed }) => fixed);
|
|
1320
|
-
const { userCan } = (0,
|
|
1353
|
+
const { userCan } = (0, import_editor_styles_repository11.useUserStylesCapability)();
|
|
1321
1354
|
const canEdit = active.provider ? userCan(active.provider).updateProps : true;
|
|
1322
|
-
|
|
1355
|
+
const missingClassesIds = useMissingClassesIds();
|
|
1356
|
+
const hasMissingClasses = missingClassesIds.length > 0;
|
|
1357
|
+
const unapplyClasses = useUnapplyClasses();
|
|
1358
|
+
const clearMissingClasses = (0, import_react10.useCallback)(() => {
|
|
1359
|
+
unapplyClasses(missingClassesIds);
|
|
1360
|
+
}, [missingClassesIds, unapplyClasses]);
|
|
1361
|
+
return /* @__PURE__ */ React12.createElement(import_ui8.Stack, { p: 2 }, /* @__PURE__ */ React12.createElement(import_ui8.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React12.createElement(import_ui8.FormLabel, { htmlFor: ID, size: "small" }, (0, import_i18n7.__)("Classes", "elementor")), /* @__PURE__ */ React12.createElement(import_ui8.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React12.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React12.createElement(
|
|
1323
1362
|
import_editor_ui4.WarningInfotip,
|
|
1324
1363
|
{
|
|
1325
1364
|
open: Boolean(renameError),
|
|
@@ -1328,13 +1367,13 @@ function CssClassSelector() {
|
|
|
1328
1367
|
width: autocompleteRef.current?.getBoundingClientRect().width,
|
|
1329
1368
|
offset: [0, -15]
|
|
1330
1369
|
},
|
|
1331
|
-
/* @__PURE__ */
|
|
1370
|
+
/* @__PURE__ */ React12.createElement(
|
|
1332
1371
|
CreatableAutocomplete,
|
|
1333
1372
|
{
|
|
1334
1373
|
id: ID,
|
|
1335
1374
|
ref: autocompleteRef,
|
|
1336
1375
|
size: "tiny",
|
|
1337
|
-
placeholder: showPlaceholder ? (0,
|
|
1376
|
+
placeholder: showPlaceholder ? (0, import_i18n7.__)("Type class name", "elementor") : void 0,
|
|
1338
1377
|
options: options13,
|
|
1339
1378
|
selected: appliedOptions,
|
|
1340
1379
|
entityName,
|
|
@@ -1342,8 +1381,8 @@ function CssClassSelector() {
|
|
|
1342
1381
|
onCreate: create ?? void 0,
|
|
1343
1382
|
validate: validate ?? void 0,
|
|
1344
1383
|
limitTags: TAGS_LIMIT,
|
|
1345
|
-
renderEmptyState: isAtLimit && typeof limitCount === "number" ? (props) => /* @__PURE__ */
|
|
1346
|
-
getLimitTagsText: (more) => /* @__PURE__ */
|
|
1384
|
+
renderEmptyState: isAtLimit && typeof limitCount === "number" ? (props) => /* @__PURE__ */ React12.createElement(LimitReachedEmptyState, { limitCount, onClear: props.onClear }) : EmptyState,
|
|
1385
|
+
getLimitTagsText: (more) => /* @__PURE__ */ React12.createElement(import_ui8.Chip, { size: "tiny", variant: "standard", label: `+${more}`, clickable: true }),
|
|
1347
1386
|
renderTags: (values, getTagProps) => values.map((value, index) => {
|
|
1348
1387
|
const chipProps = getTagProps({ index });
|
|
1349
1388
|
const isActive = value.value === active?.value;
|
|
@@ -1359,7 +1398,7 @@ function CssClassSelector() {
|
|
|
1359
1398
|
});
|
|
1360
1399
|
return updateClassByProvider(value.provider, { label: newLabel, id: value.value });
|
|
1361
1400
|
};
|
|
1362
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ React12.createElement(
|
|
1363
1402
|
CssClassItem,
|
|
1364
1403
|
{
|
|
1365
1404
|
key: chipProps.key,
|
|
@@ -1379,10 +1418,10 @@ function CssClassSelector() {
|
|
|
1379
1418
|
})
|
|
1380
1419
|
}
|
|
1381
1420
|
)
|
|
1382
|
-
), !canEdit && /* @__PURE__ */
|
|
1421
|
+
), hasMissingClasses && /* @__PURE__ */ React12.createElement(MissingClassesAlert, { onDismiss: clearMissingClasses }), !canEdit && /* @__PURE__ */ React12.createElement(import_editor_ui4.InfoAlert, { sx: { mt: 1 } }, (0, import_i18n7.__)("With your current role, you can use existing classes but can\u2019t modify them.", "elementor")));
|
|
1383
1422
|
}
|
|
1384
|
-
var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */
|
|
1385
|
-
|
|
1423
|
+
var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ React12.createElement(import_ui8.Box, { sx: { py: 4 } }, /* @__PURE__ */ React12.createElement(
|
|
1424
|
+
import_ui8.Stack,
|
|
1386
1425
|
{
|
|
1387
1426
|
gap: 1,
|
|
1388
1427
|
alignItems: "center",
|
|
@@ -1390,17 +1429,17 @@ var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ R
|
|
|
1390
1429
|
justifyContent: "center",
|
|
1391
1430
|
sx: { px: 2, m: "auto", maxWidth: "236px" }
|
|
1392
1431
|
},
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ React12.createElement(import_icons3.ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
|
|
1433
|
+
/* @__PURE__ */ React12.createElement(import_ui8.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n7.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React12.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
1395
1434
|
children,
|
|
1396
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ React12.createElement(import_ui8.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n7.__)("Clear & try again", "elementor"))
|
|
1397
1436
|
));
|
|
1398
|
-
var EmptyState = (props) => /* @__PURE__ */
|
|
1437
|
+
var EmptyState = (props) => /* @__PURE__ */ React12.createElement(EmptyStateLayout, { ...props }, /* @__PURE__ */ React12.createElement(import_ui8.Typography, { align: "center", variant: "caption", sx: { mb: 2 } }, (0, import_i18n7.__)("With your current role,", "elementor"), /* @__PURE__ */ React12.createElement("br", null), (0, import_i18n7.__)("you can only use existing classes.", "elementor")));
|
|
1399
1438
|
var LimitReachedEmptyState = ({
|
|
1400
1439
|
limitCount,
|
|
1401
1440
|
onClear
|
|
1402
|
-
}) => /* @__PURE__ */
|
|
1403
|
-
|
|
1441
|
+
}) => /* @__PURE__ */ React12.createElement(import_ui8.Box, { sx: { py: 4 } }, /* @__PURE__ */ React12.createElement(
|
|
1442
|
+
import_ui8.Stack,
|
|
1404
1443
|
{
|
|
1405
1444
|
gap: 1,
|
|
1406
1445
|
alignItems: "center",
|
|
@@ -1408,15 +1447,15 @@ var LimitReachedEmptyState = ({
|
|
|
1408
1447
|
justifyContent: "center",
|
|
1409
1448
|
sx: { px: 1, m: "auto", maxWidth: "260px" }
|
|
1410
1449
|
},
|
|
1411
|
-
/* @__PURE__ */
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
|
|
1450
|
+
/* @__PURE__ */ React12.createElement(import_icons3.ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
|
|
1451
|
+
/* @__PURE__ */ React12.createElement(
|
|
1452
|
+
import_ui8.Typography,
|
|
1414
1453
|
{ align: "center", variant: "subtitle2" },
|
|
1415
1454
|
/* translators: %s is the maximum number of classes */
|
|
1416
|
-
(0,
|
|
1455
|
+
(0, import_i18n7.__)("Limit of %s classes reached", "elementor").replace("%s", String(limitCount))
|
|
1417
1456
|
),
|
|
1418
|
-
/* @__PURE__ */
|
|
1419
|
-
|
|
1457
|
+
/* @__PURE__ */ React12.createElement(import_ui8.Typography, { align: "center", variant: "caption", component: "div" }, (0, import_i18n7.__)("Remove a class to create a new one.", "elementor"), " ", /* @__PURE__ */ React12.createElement(
|
|
1458
|
+
import_ui8.Link,
|
|
1420
1459
|
{
|
|
1421
1460
|
color: "inherit",
|
|
1422
1461
|
variant: "caption",
|
|
@@ -1424,10 +1463,10 @@ var LimitReachedEmptyState = ({
|
|
|
1424
1463
|
onClick: onClear,
|
|
1425
1464
|
sx: { verticalAlign: "baseline" }
|
|
1426
1465
|
},
|
|
1427
|
-
(0,
|
|
1466
|
+
(0, import_i18n7.__)("Clear", "elementor")
|
|
1428
1467
|
)),
|
|
1429
|
-
/* @__PURE__ */
|
|
1430
|
-
|
|
1468
|
+
/* @__PURE__ */ React12.createElement(
|
|
1469
|
+
import_ui8.Button,
|
|
1431
1470
|
{
|
|
1432
1471
|
variant: "outlined",
|
|
1433
1472
|
color: "secondary",
|
|
@@ -1437,14 +1476,14 @@ var LimitReachedEmptyState = ({
|
|
|
1437
1476
|
onClear();
|
|
1438
1477
|
}
|
|
1439
1478
|
},
|
|
1440
|
-
(0,
|
|
1479
|
+
(0, import_i18n7.__)("Class Manager", "elementor")
|
|
1441
1480
|
)
|
|
1442
1481
|
));
|
|
1443
1482
|
var updateClassByProvider = (provider, data) => {
|
|
1444
1483
|
if (!provider) {
|
|
1445
1484
|
return;
|
|
1446
1485
|
}
|
|
1447
|
-
const providerInstance =
|
|
1486
|
+
const providerInstance = import_editor_styles_repository11.stylesRepository.getProviderByKey(provider);
|
|
1448
1487
|
if (!providerInstance) {
|
|
1449
1488
|
return;
|
|
1450
1489
|
}
|
|
@@ -1453,8 +1492,8 @@ var updateClassByProvider = (provider, data) => {
|
|
|
1453
1492
|
function useOptions() {
|
|
1454
1493
|
const { element } = useElement();
|
|
1455
1494
|
const isProviderEditable = (provider) => !!provider.actions.updateProps;
|
|
1456
|
-
return (0,
|
|
1457
|
-
const isElements = (0,
|
|
1495
|
+
return (0, import_editor_styles_repository11.useProviders)().filter(isProviderEditable).flatMap((provider) => {
|
|
1496
|
+
const isElements = (0, import_editor_styles_repository11.isElementsStylesProvider)(provider.getKey());
|
|
1458
1497
|
const styleDefs = provider.actions.all({ elementId: element.id });
|
|
1459
1498
|
if (isElements && styleDefs.length === 0) {
|
|
1460
1499
|
return [EMPTY_OPTION];
|
|
@@ -1465,7 +1504,7 @@ function useOptions() {
|
|
|
1465
1504
|
value: styleDef.id,
|
|
1466
1505
|
fixed: isElements,
|
|
1467
1506
|
color: getTempStylesProviderColorName(getStylesProviderColorName(provider.getKey())),
|
|
1468
|
-
icon: isElements ? /* @__PURE__ */
|
|
1507
|
+
icon: isElements ? /* @__PURE__ */ React12.createElement(import_icons3.MapPinIcon, null) : null,
|
|
1469
1508
|
provider: provider.getKey()
|
|
1470
1509
|
};
|
|
1471
1510
|
});
|
|
@@ -1483,7 +1522,7 @@ function useCreateAction() {
|
|
|
1483
1522
|
return {};
|
|
1484
1523
|
}
|
|
1485
1524
|
const entityName = provider.labels.singular && provider.labels.plural ? provider.labels : void 0;
|
|
1486
|
-
const validate = (newClassLabel, event) => (0,
|
|
1525
|
+
const validate = (newClassLabel, event) => (0, import_editor_styles_repository11.validateStyleLabel)(newClassLabel, event);
|
|
1487
1526
|
if (hasReachedLimit(provider)) {
|
|
1488
1527
|
return { entityName, isAtLimit: true, limitCount: provider.limit, validate };
|
|
1489
1528
|
}
|
|
@@ -1505,7 +1544,7 @@ function useAppliedOptions(options13) {
|
|
|
1505
1544
|
const appliedIds = usePanelElementSetting(currentClassesProp)?.value ?? [];
|
|
1506
1545
|
const appliedOptions = options13.filter((option) => option.value && appliedIds.includes(option.value));
|
|
1507
1546
|
const hasElementsProviderStyleApplied = appliedOptions.some(
|
|
1508
|
-
(option) => option.provider && (0,
|
|
1547
|
+
(option) => option.provider && (0, import_editor_styles_repository11.isElementsStylesProvider)(option.provider)
|
|
1509
1548
|
);
|
|
1510
1549
|
if (!hasElementsProviderStyleApplied) {
|
|
1511
1550
|
appliedOptions.unshift(EMPTY_OPTION);
|
|
@@ -1513,8 +1552,8 @@ function useAppliedOptions(options13) {
|
|
|
1513
1552
|
return appliedOptions;
|
|
1514
1553
|
}
|
|
1515
1554
|
function useHandleSelect() {
|
|
1516
|
-
const apply =
|
|
1517
|
-
const unapply =
|
|
1555
|
+
const apply = useUndoableApplyClass();
|
|
1556
|
+
const unapply = useUndoableUnapplyClass();
|
|
1518
1557
|
return (_selectedOptions, reason, option) => {
|
|
1519
1558
|
if (!option.value) {
|
|
1520
1559
|
return;
|
|
@@ -1539,7 +1578,7 @@ function useHandleSelect() {
|
|
|
1539
1578
|
}
|
|
1540
1579
|
|
|
1541
1580
|
// src/components/custom-css-indicator.tsx
|
|
1542
|
-
var
|
|
1581
|
+
var React13 = __toESM(require("react"));
|
|
1543
1582
|
var import_react14 = require("react");
|
|
1544
1583
|
var import_editor_responsive = require("@elementor/editor-responsive");
|
|
1545
1584
|
var import_editor_styles4 = require("@elementor/editor-styles");
|
|
@@ -1549,7 +1588,7 @@ var import_react13 = require("react");
|
|
|
1549
1588
|
var import_editor_elements5 = require("@elementor/editor-elements");
|
|
1550
1589
|
var import_editor_props3 = require("@elementor/editor-props");
|
|
1551
1590
|
var import_editor_styles3 = require("@elementor/editor-styles");
|
|
1552
|
-
var
|
|
1591
|
+
var import_editor_styles_repository14 = require("@elementor/editor-styles-repository");
|
|
1553
1592
|
var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
|
|
1554
1593
|
var import_utils2 = require("@elementor/utils");
|
|
1555
1594
|
|
|
@@ -1557,10 +1596,10 @@ var import_utils2 = require("@elementor/utils");
|
|
|
1557
1596
|
var import_react12 = require("react");
|
|
1558
1597
|
var import_editor_elements4 = require("@elementor/editor-elements");
|
|
1559
1598
|
var import_editor_styles2 = require("@elementor/editor-styles");
|
|
1560
|
-
var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
|
|
1561
1599
|
var import_editor_styles_repository12 = require("@elementor/editor-styles-repository");
|
|
1600
|
+
var import_editor_styles_repository13 = require("@elementor/editor-styles-repository");
|
|
1562
1601
|
var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
|
|
1563
|
-
var
|
|
1602
|
+
var import_i18n8 = require("@wordpress/i18n");
|
|
1564
1603
|
|
|
1565
1604
|
// src/hooks/use-styles-rerender.ts
|
|
1566
1605
|
var import_react11 = require("react");
|
|
@@ -1609,7 +1648,7 @@ function useUndoableActions({
|
|
|
1609
1648
|
const classesProp = useClassesProp();
|
|
1610
1649
|
return (0, import_react12.useMemo)(() => {
|
|
1611
1650
|
const meta = { breakpoint, state };
|
|
1612
|
-
const createStyleArgs = { elementId, classesProp, meta, label:
|
|
1651
|
+
const createStyleArgs = { elementId, classesProp, meta, label: import_editor_styles_repository13.ELEMENTS_STYLES_RESERVED_LABEL };
|
|
1613
1652
|
return (0, import_editor_v1_adapters2.undoable)(
|
|
1614
1653
|
{
|
|
1615
1654
|
do: (payload) => {
|
|
@@ -1673,27 +1712,27 @@ function getCurrentProps(style, meta) {
|
|
|
1673
1712
|
var defaultHistoryTitles = {
|
|
1674
1713
|
title: ({ provider }) => {
|
|
1675
1714
|
const providerLabel = provider.labels?.singular;
|
|
1676
|
-
return providerLabel ? capitalize(providerLabel) : (0,
|
|
1715
|
+
return providerLabel ? capitalize(providerLabel) : (0, import_i18n8.__)("Style", "elementor");
|
|
1677
1716
|
},
|
|
1678
1717
|
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
1679
1718
|
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
1680
1719
|
if (!styleLabel) {
|
|
1681
1720
|
throw new Error(`Style ${styleId} not found`);
|
|
1682
1721
|
}
|
|
1683
|
-
return (0,
|
|
1722
|
+
return (0, import_i18n8.__)(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
1684
1723
|
}
|
|
1685
1724
|
};
|
|
1686
1725
|
var localStyleHistoryTitles = {
|
|
1687
1726
|
title: ({ elementId }) => (0, import_editor_elements4.getElementLabel)(elementId),
|
|
1688
1727
|
subtitle: ({ propDisplayName }) => (
|
|
1689
1728
|
// translators: %s is the name of the style property being edited
|
|
1690
|
-
(0,
|
|
1729
|
+
(0, import_i18n8.__)(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
1691
1730
|
)
|
|
1692
1731
|
};
|
|
1693
1732
|
function capitalize(str) {
|
|
1694
1733
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
1695
1734
|
}
|
|
1696
|
-
var isLocalStyle = (provider, styleId) => !provider || !styleId || (0,
|
|
1735
|
+
var isLocalStyle = (provider, styleId) => !provider || !styleId || (0, import_editor_styles_repository12.isElementsStylesProvider)(provider.getKey());
|
|
1697
1736
|
var getTitle = ({ provider, styleId, elementId }) => {
|
|
1698
1737
|
const isLocal = isLocalStyle(provider, styleId);
|
|
1699
1738
|
if (isLocal) {
|
|
@@ -1748,7 +1787,7 @@ function useUndoableActions2({
|
|
|
1748
1787
|
const classesProp = useClassesProp();
|
|
1749
1788
|
return (0, import_react13.useMemo)(() => {
|
|
1750
1789
|
const meta = { breakpoint, state };
|
|
1751
|
-
const createStyleArgs = { elementId, classesProp, meta, label:
|
|
1790
|
+
const createStyleArgs = { elementId, classesProp, meta, label: import_editor_styles_repository14.ELEMENTS_STYLES_RESERVED_LABEL };
|
|
1752
1791
|
return (0, import_editor_v1_adapters3.undoable)(
|
|
1753
1792
|
{
|
|
1754
1793
|
do: (payload) => {
|
|
@@ -1838,11 +1877,11 @@ var CustomCssIndicator = () => {
|
|
|
1838
1877
|
}, [hasContent, style, meta]);
|
|
1839
1878
|
if (!hasContent) {
|
|
1840
1879
|
if (hasInheritedContent) {
|
|
1841
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ React13.createElement(StyleIndicator, null);
|
|
1842
1881
|
}
|
|
1843
1882
|
return null;
|
|
1844
1883
|
}
|
|
1845
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ React13.createElement(StyleIndicator, { getColor: provider ? getStylesProviderThemeColor(provider.getKey()) : void 0 });
|
|
1846
1885
|
};
|
|
1847
1886
|
var hasInheritedCustomCss = (style, meta) => {
|
|
1848
1887
|
if (!style || !meta) {
|
|
@@ -1876,17 +1915,17 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1876
1915
|
};
|
|
1877
1916
|
|
|
1878
1917
|
// src/components/editing-panel.tsx
|
|
1879
|
-
var
|
|
1918
|
+
var React88 = __toESM(require("react"));
|
|
1880
1919
|
var import_editor_controls54 = require("@elementor/editor-controls");
|
|
1881
1920
|
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
1882
1921
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1883
1922
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
1884
|
-
var
|
|
1923
|
+
var import_icons26 = require("@elementor/icons");
|
|
1885
1924
|
var import_locations4 = require("@elementor/locations");
|
|
1886
1925
|
var import_menus = require("@elementor/menus");
|
|
1887
1926
|
var import_session9 = require("@elementor/session");
|
|
1888
|
-
var
|
|
1889
|
-
var
|
|
1927
|
+
var import_ui43 = require("@elementor/ui");
|
|
1928
|
+
var import_i18n62 = require("@wordpress/i18n");
|
|
1890
1929
|
|
|
1891
1930
|
// src/editing-panel-replacement-registry.tsx
|
|
1892
1931
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -1901,26 +1940,26 @@ var registerEditingPanelReplacement = ({
|
|
|
1901
1940
|
var getEditingPanelReplacement = (element, elementType) => Array.from(registry.values()).filter(({ condition }) => condition(element, elementType)).sort((a, b) => a.priority - b.priority)?.[0] ?? null;
|
|
1902
1941
|
|
|
1903
1942
|
// src/components/editing-panel-error-fallback.tsx
|
|
1904
|
-
var
|
|
1905
|
-
var
|
|
1943
|
+
var React14 = __toESM(require("react"));
|
|
1944
|
+
var import_ui9 = require("@elementor/ui");
|
|
1906
1945
|
function EditorPanelErrorFallback() {
|
|
1907
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ React14.createElement(import_ui9.Box, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React14.createElement(import_ui9.Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React14.createElement("strong", null, "Something went wrong")));
|
|
1908
1947
|
}
|
|
1909
1948
|
|
|
1910
1949
|
// src/components/editing-panel-tabs.tsx
|
|
1911
1950
|
var import_react38 = require("react");
|
|
1912
|
-
var
|
|
1951
|
+
var React87 = __toESM(require("react"));
|
|
1913
1952
|
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
1914
1953
|
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
1915
|
-
var
|
|
1916
|
-
var
|
|
1954
|
+
var import_ui42 = require("@elementor/ui");
|
|
1955
|
+
var import_i18n61 = require("@wordpress/i18n");
|
|
1917
1956
|
|
|
1918
1957
|
// src/contexts/scroll-context.tsx
|
|
1919
|
-
var
|
|
1958
|
+
var React15 = __toESM(require("react"));
|
|
1920
1959
|
var import_react15 = require("react");
|
|
1921
|
-
var
|
|
1960
|
+
var import_ui10 = require("@elementor/ui");
|
|
1922
1961
|
var ScrollContext = (0, import_react15.createContext)(void 0);
|
|
1923
|
-
var ScrollPanel = (0,
|
|
1962
|
+
var ScrollPanel = (0, import_ui10.styled)("div")`
|
|
1924
1963
|
height: 100%;
|
|
1925
1964
|
overflow-y: auto;
|
|
1926
1965
|
`;
|
|
@@ -1948,7 +1987,7 @@ function ScrollProvider({ children }) {
|
|
|
1948
1987
|
scrollElement.removeEventListener("scroll", handleScroll);
|
|
1949
1988
|
};
|
|
1950
1989
|
});
|
|
1951
|
-
return /* @__PURE__ */
|
|
1990
|
+
return /* @__PURE__ */ React15.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React15.createElement(ScrollPanel, { ref }, children));
|
|
1952
1991
|
}
|
|
1953
1992
|
function useScrollDirection() {
|
|
1954
1993
|
return (0, import_react15.useContext)(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
|
|
@@ -2003,24 +2042,24 @@ var useStateByElement = (key, initialValue) => {
|
|
|
2003
2042
|
};
|
|
2004
2043
|
|
|
2005
2044
|
// src/components/interactions-tab.tsx
|
|
2006
|
-
var
|
|
2045
|
+
var React17 = __toESM(require("react"));
|
|
2007
2046
|
var import_editor_interactions = require("@elementor/editor-interactions");
|
|
2008
2047
|
|
|
2009
2048
|
// src/components/sections-list.tsx
|
|
2010
|
-
var
|
|
2011
|
-
var
|
|
2049
|
+
var React16 = __toESM(require("react"));
|
|
2050
|
+
var import_ui11 = require("@elementor/ui");
|
|
2012
2051
|
function SectionsList(props) {
|
|
2013
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ React16.createElement(import_ui11.List, { disablePadding: true, component: "div", ...props });
|
|
2014
2053
|
}
|
|
2015
2054
|
|
|
2016
2055
|
// src/components/interactions-tab.tsx
|
|
2017
2056
|
var InteractionsTab = () => {
|
|
2018
2057
|
const { element } = useElement();
|
|
2019
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ React17.createElement(SectionsList, null, /* @__PURE__ */ React17.createElement(import_editor_interactions.InteractionsTab, { elementId: element.id }));
|
|
2020
2059
|
};
|
|
2021
2060
|
|
|
2022
2061
|
// src/components/settings-tab.tsx
|
|
2023
|
-
var
|
|
2062
|
+
var React24 = __toESM(require("react"));
|
|
2024
2063
|
var import_session6 = require("@elementor/session");
|
|
2025
2064
|
|
|
2026
2065
|
// src/utils/prop-dependency-utils.ts
|
|
@@ -2230,10 +2269,10 @@ function removePreviousValueFromStorage({ path, elementId }) {
|
|
|
2230
2269
|
}
|
|
2231
2270
|
|
|
2232
2271
|
// src/components/section.tsx
|
|
2233
|
-
var
|
|
2272
|
+
var React18 = __toESM(require("react"));
|
|
2234
2273
|
var import_react18 = require("react");
|
|
2235
2274
|
var import_editor_ui5 = require("@elementor/editor-ui");
|
|
2236
|
-
var
|
|
2275
|
+
var import_ui12 = require("@elementor/ui");
|
|
2237
2276
|
function Section({ title, children, defaultExpanded = false, titleEnd, unmountOnExit = true, action }) {
|
|
2238
2277
|
const [isOpen, setIsOpen] = useStateByElement(title, !!defaultExpanded);
|
|
2239
2278
|
const ref = (0, import_react18.useRef)(null);
|
|
@@ -2248,8 +2287,8 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2248
2287
|
const id = (0, import_react18.useId)();
|
|
2249
2288
|
const labelId = `label-${id}`;
|
|
2250
2289
|
const contentId = `content-${id}`;
|
|
2251
|
-
return /* @__PURE__ */
|
|
2252
|
-
|
|
2290
|
+
return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
|
|
2291
|
+
import_ui12.ListItemButton,
|
|
2253
2292
|
{
|
|
2254
2293
|
id: labelId,
|
|
2255
2294
|
"aria-controls": contentId,
|
|
@@ -2257,8 +2296,8 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2257
2296
|
onClick: handleClick,
|
|
2258
2297
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
2259
2298
|
},
|
|
2260
|
-
/* @__PURE__ */
|
|
2261
|
-
|
|
2299
|
+
/* @__PURE__ */ React18.createElement(import_ui12.Stack, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React18.createElement(
|
|
2300
|
+
import_ui12.ListItemText,
|
|
2262
2301
|
{
|
|
2263
2302
|
secondary: title,
|
|
2264
2303
|
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
|
|
@@ -2266,7 +2305,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2266
2305
|
}
|
|
2267
2306
|
), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen)),
|
|
2268
2307
|
action?.component,
|
|
2269
|
-
/* @__PURE__ */
|
|
2308
|
+
/* @__PURE__ */ React18.createElement(
|
|
2270
2309
|
import_editor_ui5.CollapseIcon,
|
|
2271
2310
|
{
|
|
2272
2311
|
open: isOpen,
|
|
@@ -2276,8 +2315,8 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2276
2315
|
sx: { ml: 1 }
|
|
2277
2316
|
}
|
|
2278
2317
|
)
|
|
2279
|
-
), /* @__PURE__ */
|
|
2280
|
-
|
|
2318
|
+
), /* @__PURE__ */ React18.createElement(
|
|
2319
|
+
import_ui12.Collapse,
|
|
2281
2320
|
{
|
|
2282
2321
|
id: contentId,
|
|
2283
2322
|
"aria-labelledby": labelId,
|
|
@@ -2285,17 +2324,17 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
|
|
|
2285
2324
|
timeout: "auto",
|
|
2286
2325
|
unmountOnExit
|
|
2287
2326
|
},
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
), /* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ React18.createElement(import_editor_ui5.SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React18.createElement(import_ui12.Stack, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
|
|
2328
|
+
), /* @__PURE__ */ React18.createElement(import_ui12.Divider, null));
|
|
2290
2329
|
}
|
|
2291
2330
|
|
|
2292
2331
|
// src/components/settings-control.tsx
|
|
2293
|
-
var
|
|
2332
|
+
var React23 = __toESM(require("react"));
|
|
2294
2333
|
var import_editor_controls4 = require("@elementor/editor-controls");
|
|
2295
|
-
var
|
|
2334
|
+
var import_ui15 = require("@elementor/ui");
|
|
2296
2335
|
|
|
2297
2336
|
// src/controls-registry/control.tsx
|
|
2298
|
-
var
|
|
2337
|
+
var React19 = __toESM(require("react"));
|
|
2299
2338
|
|
|
2300
2339
|
// src/controls-registry/controls-registry.tsx
|
|
2301
2340
|
var import_editor_controls = require("@elementor/editor-controls");
|
|
@@ -2381,19 +2420,19 @@ var Control = ({ props, type }) => {
|
|
|
2381
2420
|
context: { controlType: type }
|
|
2382
2421
|
});
|
|
2383
2422
|
}
|
|
2384
|
-
return /* @__PURE__ */
|
|
2423
|
+
return /* @__PURE__ */ React19.createElement(ControlByType, { ...props, context: { elementId: element.id } });
|
|
2385
2424
|
};
|
|
2386
2425
|
|
|
2387
2426
|
// src/controls-registry/control-type-container.tsx
|
|
2388
|
-
var
|
|
2389
|
-
var
|
|
2427
|
+
var React20 = __toESM(require("react"));
|
|
2428
|
+
var import_ui13 = require("@elementor/ui");
|
|
2390
2429
|
var ControlTypeContainer = ({ children, layout }) => {
|
|
2391
2430
|
if (layout === "custom") {
|
|
2392
2431
|
return children;
|
|
2393
2432
|
}
|
|
2394
|
-
return /* @__PURE__ */
|
|
2433
|
+
return /* @__PURE__ */ React20.createElement(StyledContainer, { layout }, children);
|
|
2395
2434
|
};
|
|
2396
|
-
var StyledContainer = (0,
|
|
2435
|
+
var StyledContainer = (0, import_ui13.styled)(import_ui13.Box, {
|
|
2397
2436
|
shouldForwardProp: (prop) => !["layout"].includes(prop)
|
|
2398
2437
|
})(({ layout, theme }) => ({
|
|
2399
2438
|
display: "grid",
|
|
@@ -2419,13 +2458,13 @@ var getStyleByLayout = (layout) => {
|
|
|
2419
2458
|
};
|
|
2420
2459
|
|
|
2421
2460
|
// src/controls-registry/settings-field.tsx
|
|
2422
|
-
var
|
|
2461
|
+
var React21 = __toESM(require("react"));
|
|
2423
2462
|
var import_react19 = require("react");
|
|
2424
2463
|
var import_editor_controls2 = require("@elementor/editor-controls");
|
|
2425
2464
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
2426
2465
|
var import_editor_elements6 = require("@elementor/editor-elements");
|
|
2427
2466
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
2428
|
-
var
|
|
2467
|
+
var import_i18n9 = require("@wordpress/i18n");
|
|
2429
2468
|
|
|
2430
2469
|
// src/controls-registry/create-top-level-object-type.ts
|
|
2431
2470
|
var createTopLevelObjectType = ({ schema }) => {
|
|
@@ -2469,7 +2508,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2469
2508
|
(0, import_editor_elements6.updateElementSettings)({ id: elementId, props: settings, withHistory: false });
|
|
2470
2509
|
}
|
|
2471
2510
|
};
|
|
2472
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ React21.createElement(import_editor_controls2.PropProvider, { propType, value, setValue, isDisabled }, /* @__PURE__ */ React21.createElement(import_editor_controls2.PropKeyProvider, { bind }, children));
|
|
2473
2512
|
};
|
|
2474
2513
|
function useUndoableUpdateElementProp({
|
|
2475
2514
|
elementId,
|
|
@@ -2491,7 +2530,7 @@ function useUndoableUpdateElementProp({
|
|
|
2491
2530
|
{
|
|
2492
2531
|
title: (0, import_editor_elements6.getElementLabel)(elementId),
|
|
2493
2532
|
// translators: %s is the name of the property that was edited.
|
|
2494
|
-
subtitle: (0,
|
|
2533
|
+
subtitle: (0, import_i18n9.__)("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2495
2534
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2496
2535
|
}
|
|
2497
2536
|
);
|
|
@@ -2519,15 +2558,15 @@ var registerFieldIndicator = ({
|
|
|
2519
2558
|
var getFieldIndicators = (fieldType) => Array.from(indicatorsRegistry[fieldType].values()).sort((a, b) => a.priority - b.priority).map(({ id, indicator: Adornment }) => ({ id, Adornment }));
|
|
2520
2559
|
|
|
2521
2560
|
// src/components/control-label.tsx
|
|
2522
|
-
var
|
|
2561
|
+
var React22 = __toESM(require("react"));
|
|
2523
2562
|
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
2524
|
-
var
|
|
2563
|
+
var import_ui14 = require("@elementor/ui");
|
|
2525
2564
|
var ControlLabel = ({ children }) => {
|
|
2526
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ React22.createElement(import_ui14.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React22.createElement(import_editor_controls3.ControlFormLabel, null, children), /* @__PURE__ */ React22.createElement(import_editor_controls3.ControlAdornments, null));
|
|
2527
2566
|
};
|
|
2528
2567
|
|
|
2529
2568
|
// src/components/settings-control.tsx
|
|
2530
|
-
var Wrapper = (0,
|
|
2569
|
+
var Wrapper = (0, import_ui15.styled)("span")`
|
|
2531
2570
|
display: contents;
|
|
2532
2571
|
`;
|
|
2533
2572
|
var SettingsControl = ({ control: { value, type } }) => {
|
|
@@ -2540,9 +2579,9 @@ var SettingsControl = ({ control: { value, type } }) => {
|
|
|
2540
2579
|
controlProps.label = value.label;
|
|
2541
2580
|
}
|
|
2542
2581
|
if (type === "element-control") {
|
|
2543
|
-
return /* @__PURE__ */
|
|
2582
|
+
return /* @__PURE__ */ React23.createElement(ControlLayout, { control: value, layout, controlProps });
|
|
2544
2583
|
}
|
|
2545
|
-
return /* @__PURE__ */
|
|
2584
|
+
return /* @__PURE__ */ React23.createElement(SettingsField, { bind: value.bind, propDisplayName: value.label || value.bind }, /* @__PURE__ */ React23.createElement(ControlLayout, { control: value, layout, controlProps }));
|
|
2546
2585
|
};
|
|
2547
2586
|
var ControlLayout = ({
|
|
2548
2587
|
control,
|
|
@@ -2550,7 +2589,7 @@ var ControlLayout = ({
|
|
|
2550
2589
|
controlProps
|
|
2551
2590
|
}) => {
|
|
2552
2591
|
const controlType = control.type;
|
|
2553
|
-
return /* @__PURE__ */
|
|
2592
|
+
return /* @__PURE__ */ React23.createElement(import_editor_controls4.ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, control.meta?.topDivider && /* @__PURE__ */ React23.createElement(import_ui15.Divider, null), /* @__PURE__ */ React23.createElement(Wrapper, { "data-type": "settings-field" }, /* @__PURE__ */ React23.createElement(ControlTypeContainer, { layout }, control.label && layout !== "custom" ? /* @__PURE__ */ React23.createElement(ControlLabel, null, control.label) : null, /* @__PURE__ */ React23.createElement(Control, { type: controlType, props: controlProps }))));
|
|
2554
2593
|
};
|
|
2555
2594
|
function populateChildControlProps(props) {
|
|
2556
2595
|
if (props.childControlType) {
|
|
@@ -2574,9 +2613,9 @@ var SettingsTab = () => {
|
|
|
2574
2613
|
const settingsDefault = useDefaultPanelSettings();
|
|
2575
2614
|
const currentSettings = settings;
|
|
2576
2615
|
const isDefaultExpanded = (sectionId) => settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId);
|
|
2577
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ React24.createElement(import_session6.SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React24.createElement(SectionsList, null, elementType.controls.map((control, index) => {
|
|
2578
2617
|
if (isControl(control)) {
|
|
2579
|
-
return /* @__PURE__ */
|
|
2618
|
+
return /* @__PURE__ */ React24.createElement(SettingsControl, { key: getKey(control, element), control });
|
|
2580
2619
|
}
|
|
2581
2620
|
const { type, value } = control;
|
|
2582
2621
|
if (type === "section") {
|
|
@@ -2589,7 +2628,7 @@ var SettingsTab = () => {
|
|
|
2589
2628
|
if (!sectionItems.length) {
|
|
2590
2629
|
return null;
|
|
2591
2630
|
}
|
|
2592
|
-
return /* @__PURE__ */
|
|
2631
|
+
return /* @__PURE__ */ React24.createElement(
|
|
2593
2632
|
Section,
|
|
2594
2633
|
{
|
|
2595
2634
|
title: value.label,
|
|
@@ -2624,7 +2663,7 @@ function renderSectionItems({
|
|
|
2624
2663
|
if (item.type === "control" && isControlHiddenByDependencies(item, propsSchema, settings)) {
|
|
2625
2664
|
return [];
|
|
2626
2665
|
}
|
|
2627
|
-
return [/* @__PURE__ */
|
|
2666
|
+
return [/* @__PURE__ */ React24.createElement(SettingsControl, { key: getKey(item, element), control: item })];
|
|
2628
2667
|
}) ?? [];
|
|
2629
2668
|
}
|
|
2630
2669
|
function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
@@ -2633,23 +2672,23 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2633
2672
|
}
|
|
2634
2673
|
|
|
2635
2674
|
// src/components/style-tab.tsx
|
|
2636
|
-
var
|
|
2675
|
+
var React86 = __toESM(require("react"));
|
|
2637
2676
|
var import_react37 = require("react");
|
|
2638
2677
|
var import_editor_props15 = require("@elementor/editor-props");
|
|
2639
2678
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2640
2679
|
var import_locations3 = require("@elementor/locations");
|
|
2641
2680
|
var import_session8 = require("@elementor/session");
|
|
2642
|
-
var
|
|
2643
|
-
var
|
|
2681
|
+
var import_ui41 = require("@elementor/ui");
|
|
2682
|
+
var import_i18n60 = require("@wordpress/i18n");
|
|
2644
2683
|
|
|
2645
2684
|
// src/contexts/styles-inheritance-context.tsx
|
|
2646
|
-
var
|
|
2685
|
+
var React25 = __toESM(require("react"));
|
|
2647
2686
|
var import_react20 = require("react");
|
|
2648
2687
|
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
2649
2688
|
var import_editor_props8 = require("@elementor/editor-props");
|
|
2650
2689
|
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
2651
2690
|
var import_editor_styles5 = require("@elementor/editor-styles");
|
|
2652
|
-
var
|
|
2691
|
+
var import_editor_styles_repository15 = require("@elementor/editor-styles-repository");
|
|
2653
2692
|
|
|
2654
2693
|
// src/styles-inheritance/create-styles-inheritance.ts
|
|
2655
2694
|
var import_editor_props7 = require("@elementor/editor-props");
|
|
@@ -2881,7 +2920,7 @@ function StyleInheritanceProvider({ children }) {
|
|
|
2881
2920
|
const styleDefs = useAppliedStyles();
|
|
2882
2921
|
const breakpointsTree = (0, import_editor_responsive2.getBreakpointsTree)();
|
|
2883
2922
|
const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
|
|
2884
|
-
return /* @__PURE__ */
|
|
2923
|
+
return /* @__PURE__ */ React25.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
|
|
2885
2924
|
}
|
|
2886
2925
|
function useStylesInheritanceSnapshot() {
|
|
2887
2926
|
const context = (0, import_react20.useContext)(Context4);
|
|
@@ -2923,7 +2962,7 @@ var useAppliedStyles = () => {
|
|
|
2923
2962
|
useStylesRerender();
|
|
2924
2963
|
const classesProp = usePanelElementSetting(currentClassesProp);
|
|
2925
2964
|
const appliedStyles = import_editor_props8.classesPropTypeUtil.extract(classesProp) ?? [];
|
|
2926
|
-
return
|
|
2965
|
+
return import_editor_styles_repository15.stylesRepository.all().filter((style) => [...baseStyles, ...appliedStyles].includes(style.id));
|
|
2927
2966
|
};
|
|
2928
2967
|
var useBaseStyles = () => {
|
|
2929
2968
|
const { elementType } = useElement();
|
|
@@ -2934,16 +2973,25 @@ var useBaseStyles = () => {
|
|
|
2934
2973
|
|
|
2935
2974
|
// src/hooks/use-active-style-def-id.ts
|
|
2936
2975
|
var import_editor_elements8 = require("@elementor/editor-elements");
|
|
2976
|
+
var import_editor_styles_repository16 = require("@elementor/editor-styles-repository");
|
|
2937
2977
|
function useActiveStyleDefId(classProp) {
|
|
2938
2978
|
const [activeStyledDefId, setActiveStyledDefId] = useStateByElement(
|
|
2939
2979
|
"active-style-id",
|
|
2940
2980
|
null
|
|
2941
2981
|
);
|
|
2942
2982
|
const appliedClassesIds = usePanelElementSetting(classProp)?.value || [];
|
|
2983
|
+
const validAppliedClassesIds = useValidClassIds(appliedClassesIds);
|
|
2943
2984
|
const fallback = useFirstAppliedClass(appliedClassesIds);
|
|
2944
|
-
const activeAndAppliedClassId = useActiveAndAppliedClassId(activeStyledDefId,
|
|
2985
|
+
const activeAndAppliedClassId = useActiveAndAppliedClassId(activeStyledDefId, validAppliedClassesIds);
|
|
2945
2986
|
return [activeAndAppliedClassId || fallback?.id || null, setActiveStyledDefId];
|
|
2946
2987
|
}
|
|
2988
|
+
function useValidClassIds(appliedClassesIds) {
|
|
2989
|
+
const providers = (0, import_editor_styles_repository16.useProviders)();
|
|
2990
|
+
const allKnownIds = new Set(
|
|
2991
|
+
providers.flatMap((provider) => provider.actions.all().map((style) => style.id))
|
|
2992
|
+
);
|
|
2993
|
+
return appliedClassesIds.filter((id) => allKnownIds.has(id));
|
|
2994
|
+
}
|
|
2947
2995
|
function useFirstAppliedClass(appliedClassesIds) {
|
|
2948
2996
|
const { element } = useElement();
|
|
2949
2997
|
const stylesDefs = (0, import_editor_elements8.getElementStyles)(element.id) ?? {};
|
|
@@ -2955,12 +3003,12 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
2955
3003
|
}
|
|
2956
3004
|
|
|
2957
3005
|
// src/components/style-sections/background-section/background-section.tsx
|
|
2958
|
-
var
|
|
3006
|
+
var React28 = __toESM(require("react"));
|
|
2959
3007
|
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
2960
|
-
var
|
|
3008
|
+
var import_i18n10 = require("@wordpress/i18n");
|
|
2961
3009
|
|
|
2962
3010
|
// src/controls-registry/styles-field.tsx
|
|
2963
|
-
var
|
|
3011
|
+
var React26 = __toESM(require("react"));
|
|
2964
3012
|
var import_editor_controls6 = require("@elementor/editor-controls");
|
|
2965
3013
|
var import_editor_props10 = require("@elementor/editor-props");
|
|
2966
3014
|
var import_editor_styles6 = require("@elementor/editor-styles");
|
|
@@ -3105,7 +3153,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3105
3153
|
const setValue = (newValue) => {
|
|
3106
3154
|
fields.setValue(newValue[bind]);
|
|
3107
3155
|
};
|
|
3108
|
-
return /* @__PURE__ */
|
|
3156
|
+
return /* @__PURE__ */ React26.createElement(import_editor_controls6.ControlAdornmentsProvider, { items: getFieldIndicators("styles") }, /* @__PURE__ */ React26.createElement(
|
|
3109
3157
|
import_editor_controls6.PropProvider,
|
|
3110
3158
|
{
|
|
3111
3159
|
propType,
|
|
@@ -3114,47 +3162,47 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3114
3162
|
placeholder: placeholderValues,
|
|
3115
3163
|
isDisabled: () => !canEdit
|
|
3116
3164
|
},
|
|
3117
|
-
/* @__PURE__ */
|
|
3165
|
+
/* @__PURE__ */ React26.createElement(import_editor_controls6.PropKeyProvider, { bind }, /* @__PURE__ */ React26.createElement(ConditionalField, null, children))
|
|
3118
3166
|
));
|
|
3119
3167
|
};
|
|
3120
3168
|
|
|
3121
3169
|
// src/components/section-content.tsx
|
|
3122
|
-
var
|
|
3123
|
-
var
|
|
3170
|
+
var React27 = __toESM(require("react"));
|
|
3171
|
+
var import_ui16 = require("@elementor/ui");
|
|
3124
3172
|
var SectionContent = ({
|
|
3125
3173
|
gap = 2,
|
|
3126
3174
|
sx,
|
|
3127
3175
|
children,
|
|
3128
3176
|
"aria-label": ariaLabel,
|
|
3129
3177
|
className
|
|
3130
|
-
}) => /* @__PURE__ */
|
|
3178
|
+
}) => /* @__PURE__ */ React27.createElement(import_ui16.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3131
3179
|
|
|
3132
3180
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3133
|
-
var BACKGROUND_LABEL = (0,
|
|
3181
|
+
var BACKGROUND_LABEL = (0, import_i18n10.__)("Background", "elementor");
|
|
3134
3182
|
var BackgroundSection = () => {
|
|
3135
|
-
return /* @__PURE__ */
|
|
3183
|
+
return /* @__PURE__ */ React28.createElement(SectionContent, null, /* @__PURE__ */ React28.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React28.createElement(import_editor_controls7.BackgroundControl, null)));
|
|
3136
3184
|
};
|
|
3137
3185
|
|
|
3138
3186
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3139
|
-
var
|
|
3187
|
+
var React35 = __toESM(require("react"));
|
|
3140
3188
|
|
|
3141
3189
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3142
|
-
var
|
|
3190
|
+
var React30 = __toESM(require("react"));
|
|
3143
3191
|
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
3144
|
-
var
|
|
3192
|
+
var import_i18n11 = require("@wordpress/i18n");
|
|
3145
3193
|
|
|
3146
3194
|
// src/components/styles-field-layout.tsx
|
|
3147
|
-
var
|
|
3148
|
-
var
|
|
3149
|
-
var StylesFieldLayout =
|
|
3195
|
+
var React29 = __toESM(require("react"));
|
|
3196
|
+
var import_ui17 = require("@elementor/ui");
|
|
3197
|
+
var StylesFieldLayout = React29.forwardRef((props, ref) => {
|
|
3150
3198
|
const { direction = "row", children, label } = props;
|
|
3151
3199
|
const LayoutComponent = direction === "row" ? Row : Column;
|
|
3152
|
-
return /* @__PURE__ */
|
|
3200
|
+
return /* @__PURE__ */ React29.createElement(LayoutComponent, { label, ref, children });
|
|
3153
3201
|
});
|
|
3154
|
-
var Row =
|
|
3202
|
+
var Row = React29.forwardRef(
|
|
3155
3203
|
({ label, children }, ref) => {
|
|
3156
|
-
return /* @__PURE__ */
|
|
3157
|
-
|
|
3204
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3205
|
+
import_ui17.Grid,
|
|
3158
3206
|
{
|
|
3159
3207
|
container: true,
|
|
3160
3208
|
gap: 2,
|
|
@@ -3163,9 +3211,9 @@ var Row = React28.forwardRef(
|
|
|
3163
3211
|
ref,
|
|
3164
3212
|
"aria-label": `${label} control`
|
|
3165
3213
|
},
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
/* @__PURE__ */
|
|
3168
|
-
|
|
3214
|
+
/* @__PURE__ */ React29.createElement(import_ui17.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React29.createElement(ControlLabel, null, label)),
|
|
3215
|
+
/* @__PURE__ */ React29.createElement(
|
|
3216
|
+
import_ui17.Grid,
|
|
3169
3217
|
{
|
|
3170
3218
|
item: true,
|
|
3171
3219
|
xs: 6,
|
|
@@ -3178,170 +3226,170 @@ var Row = React28.forwardRef(
|
|
|
3178
3226
|
);
|
|
3179
3227
|
}
|
|
3180
3228
|
);
|
|
3181
|
-
var Column =
|
|
3229
|
+
var Column = React29.forwardRef(
|
|
3182
3230
|
({ label, children }, ref) => {
|
|
3183
|
-
return /* @__PURE__ */
|
|
3231
|
+
return /* @__PURE__ */ React29.createElement(import_ui17.Stack, { gap: 0.75, ref }, /* @__PURE__ */ React29.createElement(ControlLabel, null, label), children);
|
|
3184
3232
|
}
|
|
3185
3233
|
);
|
|
3186
3234
|
|
|
3187
3235
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3188
|
-
var BORDER_COLOR_LABEL = (0,
|
|
3189
|
-
var BorderColorField = () => /* @__PURE__ */
|
|
3236
|
+
var BORDER_COLOR_LABEL = (0, import_i18n11.__)("Border color", "elementor");
|
|
3237
|
+
var BorderColorField = () => /* @__PURE__ */ React30.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React30.createElement(import_editor_controls8.ColorControl, null)));
|
|
3190
3238
|
|
|
3191
3239
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3192
|
-
var
|
|
3240
|
+
var React32 = __toESM(require("react"));
|
|
3193
3241
|
var import_editor_controls9 = require("@elementor/editor-controls");
|
|
3194
3242
|
var import_editor_props11 = require("@elementor/editor-props");
|
|
3195
|
-
var
|
|
3196
|
-
var
|
|
3197
|
-
var
|
|
3243
|
+
var import_icons4 = require("@elementor/icons");
|
|
3244
|
+
var import_ui20 = require("@elementor/ui");
|
|
3245
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
3198
3246
|
|
|
3199
3247
|
// src/hooks/use-direction.ts
|
|
3200
3248
|
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
3201
|
-
var
|
|
3249
|
+
var import_ui18 = require("@elementor/ui");
|
|
3202
3250
|
function useDirection() {
|
|
3203
|
-
const theme = (0,
|
|
3251
|
+
const theme = (0, import_ui18.useTheme)();
|
|
3204
3252
|
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!(0, import_editor_v1_adapters5.getElementorFrontendConfig)()?.is_rtl;
|
|
3205
3253
|
return { isSiteRtl, isUiRtl };
|
|
3206
3254
|
}
|
|
3207
3255
|
|
|
3208
3256
|
// src/styles-inheritance/components/ui-providers.tsx
|
|
3209
|
-
var
|
|
3210
|
-
var
|
|
3257
|
+
var React31 = __toESM(require("react"));
|
|
3258
|
+
var import_ui19 = require("@elementor/ui");
|
|
3211
3259
|
var UiProviders = ({ children }) => {
|
|
3212
3260
|
const { isSiteRtl } = useDirection();
|
|
3213
|
-
return /* @__PURE__ */
|
|
3261
|
+
return /* @__PURE__ */ React31.createElement(import_ui19.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React31.createElement(import_ui19.ThemeProvider, null, children));
|
|
3214
3262
|
};
|
|
3215
3263
|
|
|
3216
3264
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3217
|
-
var BORDER_RADIUS_LABEL = (0,
|
|
3218
|
-
var StartStartIcon = (0,
|
|
3219
|
-
var StartEndIcon = (0,
|
|
3220
|
-
var EndStartIcon = (0,
|
|
3221
|
-
var EndEndIcon = (0,
|
|
3222
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3223
|
-
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3224
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3225
|
-
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3226
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3227
|
-
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3228
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3229
|
-
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3265
|
+
var BORDER_RADIUS_LABEL = (0, import_i18n12.__)("Border radius", "elementor");
|
|
3266
|
+
var StartStartIcon = (0, import_ui20.withDirection)(import_icons4.RadiusTopLeftIcon);
|
|
3267
|
+
var StartEndIcon = (0, import_ui20.withDirection)(import_icons4.RadiusTopRightIcon);
|
|
3268
|
+
var EndStartIcon = (0, import_ui20.withDirection)(import_icons4.RadiusBottomLeftIcon);
|
|
3269
|
+
var EndEndIcon = (0, import_ui20.withDirection)(import_icons4.RadiusBottomRightIcon);
|
|
3270
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Top right", "elementor") : (0, import_i18n12.__)("Top left", "elementor");
|
|
3271
|
+
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Border top right radius", "elementor") : (0, import_i18n12.__)("Border top left radius", "elementor");
|
|
3272
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Top left", "elementor") : (0, import_i18n12.__)("Top right", "elementor");
|
|
3273
|
+
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Border top left radius", "elementor") : (0, import_i18n12.__)("Border top right radius", "elementor");
|
|
3274
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Bottom right", "elementor") : (0, import_i18n12.__)("Bottom left", "elementor");
|
|
3275
|
+
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Border bottom right radius", "elementor") : (0, import_i18n12.__)("Border bottom left radius", "elementor");
|
|
3276
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Bottom left", "elementor") : (0, import_i18n12.__)("Bottom right", "elementor");
|
|
3277
|
+
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n12.__)("Border bottom left radius", "elementor") : (0, import_i18n12.__)("Border bottom right radius", "elementor");
|
|
3230
3278
|
var getCorners = (isSiteRtl) => [
|
|
3231
3279
|
{
|
|
3232
3280
|
label: getStartStartLabel(isSiteRtl),
|
|
3233
3281
|
ariaLabel: getStartStartAriaLabel(isSiteRtl),
|
|
3234
|
-
icon: /* @__PURE__ */
|
|
3282
|
+
icon: /* @__PURE__ */ React32.createElement(StartStartIcon, { fontSize: "tiny" }),
|
|
3235
3283
|
bind: "start-start"
|
|
3236
3284
|
},
|
|
3237
3285
|
{
|
|
3238
3286
|
label: getStartEndLabel(isSiteRtl),
|
|
3239
3287
|
ariaLabel: getStartEndAriaLabel(isSiteRtl),
|
|
3240
|
-
icon: /* @__PURE__ */
|
|
3288
|
+
icon: /* @__PURE__ */ React32.createElement(StartEndIcon, { fontSize: "tiny" }),
|
|
3241
3289
|
bind: "start-end"
|
|
3242
3290
|
},
|
|
3243
3291
|
{
|
|
3244
3292
|
label: getEndStartLabel(isSiteRtl),
|
|
3245
3293
|
ariaLabel: getEndStartAriaLabel(isSiteRtl),
|
|
3246
|
-
icon: /* @__PURE__ */
|
|
3294
|
+
icon: /* @__PURE__ */ React32.createElement(EndStartIcon, { fontSize: "tiny" }),
|
|
3247
3295
|
bind: "end-start"
|
|
3248
3296
|
},
|
|
3249
3297
|
{
|
|
3250
3298
|
label: getEndEndLabel(isSiteRtl),
|
|
3251
3299
|
ariaLabel: getEndEndAriaLabel(isSiteRtl),
|
|
3252
|
-
icon: /* @__PURE__ */
|
|
3300
|
+
icon: /* @__PURE__ */ React32.createElement(EndEndIcon, { fontSize: "tiny" }),
|
|
3253
3301
|
bind: "end-end"
|
|
3254
3302
|
}
|
|
3255
3303
|
];
|
|
3256
3304
|
var BorderRadiusField = () => {
|
|
3257
3305
|
const { isSiteRtl } = useDirection();
|
|
3258
|
-
return /* @__PURE__ */
|
|
3306
|
+
return /* @__PURE__ */ React32.createElement(UiProviders, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "border-radius", propDisplayName: BORDER_RADIUS_LABEL }, /* @__PURE__ */ React32.createElement(
|
|
3259
3307
|
import_editor_controls9.EqualUnequalSizesControl,
|
|
3260
3308
|
{
|
|
3261
3309
|
items: getCorners(isSiteRtl),
|
|
3262
3310
|
label: BORDER_RADIUS_LABEL,
|
|
3263
|
-
icon: /* @__PURE__ */
|
|
3264
|
-
tooltipLabel: (0,
|
|
3311
|
+
icon: /* @__PURE__ */ React32.createElement(import_icons4.BorderCornersIcon, { fontSize: "tiny" }),
|
|
3312
|
+
tooltipLabel: (0, import_i18n12.__)("Adjust corners", "elementor"),
|
|
3265
3313
|
multiSizePropTypeUtil: import_editor_props11.borderRadiusPropTypeUtil
|
|
3266
3314
|
}
|
|
3267
3315
|
)));
|
|
3268
3316
|
};
|
|
3269
3317
|
|
|
3270
3318
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3271
|
-
var
|
|
3319
|
+
var React33 = __toESM(require("react"));
|
|
3272
3320
|
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
3273
|
-
var
|
|
3274
|
-
var BORDER_TYPE_LABEL = (0,
|
|
3321
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
3322
|
+
var BORDER_TYPE_LABEL = (0, import_i18n13.__)("Border type", "elementor");
|
|
3275
3323
|
var borderStyles = [
|
|
3276
|
-
{ value: "none", label: (0,
|
|
3277
|
-
{ value: "solid", label: (0,
|
|
3278
|
-
{ value: "dashed", label: (0,
|
|
3279
|
-
{ value: "dotted", label: (0,
|
|
3280
|
-
{ value: "double", label: (0,
|
|
3281
|
-
{ value: "groove", label: (0,
|
|
3282
|
-
{ value: "ridge", label: (0,
|
|
3283
|
-
{ value: "inset", label: (0,
|
|
3284
|
-
{ value: "outset", label: (0,
|
|
3324
|
+
{ value: "none", label: (0, import_i18n13.__)("None", "elementor") },
|
|
3325
|
+
{ value: "solid", label: (0, import_i18n13.__)("Solid", "elementor") },
|
|
3326
|
+
{ value: "dashed", label: (0, import_i18n13.__)("Dashed", "elementor") },
|
|
3327
|
+
{ value: "dotted", label: (0, import_i18n13.__)("Dotted", "elementor") },
|
|
3328
|
+
{ value: "double", label: (0, import_i18n13.__)("Double", "elementor") },
|
|
3329
|
+
{ value: "groove", label: (0, import_i18n13.__)("Groove", "elementor") },
|
|
3330
|
+
{ value: "ridge", label: (0, import_i18n13.__)("Ridge", "elementor") },
|
|
3331
|
+
{ value: "inset", label: (0, import_i18n13.__)("Inset", "elementor") },
|
|
3332
|
+
{ value: "outset", label: (0, import_i18n13.__)("Outset", "elementor") }
|
|
3285
3333
|
];
|
|
3286
|
-
var BorderStyleField = () => /* @__PURE__ */
|
|
3334
|
+
var BorderStyleField = () => /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React33.createElement(import_editor_controls10.SelectControl, { options: borderStyles })));
|
|
3287
3335
|
|
|
3288
3336
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
3289
|
-
var
|
|
3337
|
+
var React34 = __toESM(require("react"));
|
|
3290
3338
|
var import_editor_controls11 = require("@elementor/editor-controls");
|
|
3291
3339
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
3292
|
-
var
|
|
3293
|
-
var
|
|
3294
|
-
var
|
|
3295
|
-
var BORDER_WIDTH_LABEL = (0,
|
|
3296
|
-
var InlineStartIcon = (0,
|
|
3297
|
-
var InlineEndIcon = (0,
|
|
3340
|
+
var import_icons5 = require("@elementor/icons");
|
|
3341
|
+
var import_ui21 = require("@elementor/ui");
|
|
3342
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
3343
|
+
var BORDER_WIDTH_LABEL = (0, import_i18n14.__)("Border width", "elementor");
|
|
3344
|
+
var InlineStartIcon = (0, import_ui21.withDirection)(import_icons5.SideRightIcon);
|
|
3345
|
+
var InlineEndIcon = (0, import_ui21.withDirection)(import_icons5.SideLeftIcon);
|
|
3298
3346
|
var getEdges = (isSiteRtl) => [
|
|
3299
3347
|
{
|
|
3300
|
-
label: (0,
|
|
3301
|
-
ariaLabel: (0,
|
|
3302
|
-
icon: /* @__PURE__ */
|
|
3348
|
+
label: (0, import_i18n14.__)("Top", "elementor"),
|
|
3349
|
+
ariaLabel: (0, import_i18n14.__)("Border top width", "elementor"),
|
|
3350
|
+
icon: /* @__PURE__ */ React34.createElement(import_icons5.SideTopIcon, { fontSize: "tiny" }),
|
|
3303
3351
|
bind: "block-start"
|
|
3304
3352
|
},
|
|
3305
3353
|
{
|
|
3306
|
-
label: isSiteRtl ? (0,
|
|
3307
|
-
ariaLabel: isSiteRtl ? (0,
|
|
3308
|
-
icon: /* @__PURE__ */
|
|
3354
|
+
label: isSiteRtl ? (0, import_i18n14.__)("Left", "elementor") : (0, import_i18n14.__)("Right", "elementor"),
|
|
3355
|
+
ariaLabel: isSiteRtl ? (0, import_i18n14.__)("Border left width", "elementor") : (0, import_i18n14.__)("Border right width", "elementor"),
|
|
3356
|
+
icon: /* @__PURE__ */ React34.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3309
3357
|
bind: "inline-end"
|
|
3310
3358
|
},
|
|
3311
3359
|
{
|
|
3312
|
-
label: (0,
|
|
3313
|
-
ariaLabel: (0,
|
|
3314
|
-
icon: /* @__PURE__ */
|
|
3360
|
+
label: (0, import_i18n14.__)("Bottom", "elementor"),
|
|
3361
|
+
ariaLabel: (0, import_i18n14.__)("Border bottom width", "elementor"),
|
|
3362
|
+
icon: /* @__PURE__ */ React34.createElement(import_icons5.SideBottomIcon, { fontSize: "tiny" }),
|
|
3315
3363
|
bind: "block-end"
|
|
3316
3364
|
},
|
|
3317
3365
|
{
|
|
3318
|
-
label: isSiteRtl ? (0,
|
|
3319
|
-
ariaLabel: isSiteRtl ? (0,
|
|
3320
|
-
icon: /* @__PURE__ */
|
|
3366
|
+
label: isSiteRtl ? (0, import_i18n14.__)("Right", "elementor") : (0, import_i18n14.__)("Left", "elementor"),
|
|
3367
|
+
ariaLabel: isSiteRtl ? (0, import_i18n14.__)("Border right width", "elementor") : (0, import_i18n14.__)("Border left width", "elementor"),
|
|
3368
|
+
icon: /* @__PURE__ */ React34.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3321
3369
|
bind: "inline-start"
|
|
3322
3370
|
}
|
|
3323
3371
|
];
|
|
3324
3372
|
var BorderWidthField = () => {
|
|
3325
3373
|
const { isSiteRtl } = useDirection();
|
|
3326
|
-
return /* @__PURE__ */
|
|
3374
|
+
return /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-width", propDisplayName: BORDER_WIDTH_LABEL }, /* @__PURE__ */ React34.createElement(
|
|
3327
3375
|
import_editor_controls11.EqualUnequalSizesControl,
|
|
3328
3376
|
{
|
|
3329
3377
|
items: getEdges(isSiteRtl),
|
|
3330
3378
|
label: BORDER_WIDTH_LABEL,
|
|
3331
|
-
icon: /* @__PURE__ */
|
|
3332
|
-
tooltipLabel: (0,
|
|
3379
|
+
icon: /* @__PURE__ */ React34.createElement(import_icons5.SideAllIcon, { fontSize: "tiny" }),
|
|
3380
|
+
tooltipLabel: (0, import_i18n14.__)("Adjust borders", "elementor"),
|
|
3333
3381
|
multiSizePropTypeUtil: import_editor_props12.borderWidthPropTypeUtil
|
|
3334
3382
|
}
|
|
3335
3383
|
));
|
|
3336
3384
|
};
|
|
3337
3385
|
|
|
3338
3386
|
// src/components/style-sections/border-section/border-section.tsx
|
|
3339
|
-
var BorderSection = () => /* @__PURE__ */
|
|
3387
|
+
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));
|
|
3340
3388
|
|
|
3341
3389
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3342
|
-
var
|
|
3390
|
+
var React39 = __toESM(require("react"));
|
|
3343
3391
|
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
3344
|
-
var
|
|
3392
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
3345
3393
|
|
|
3346
3394
|
// src/utils/can-element-have-children.ts
|
|
3347
3395
|
var import_editor_elements9 = require("@elementor/editor-elements");
|
|
@@ -3382,73 +3430,73 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3382
3430
|
};
|
|
3383
3431
|
|
|
3384
3432
|
// src/components/panel-divider.tsx
|
|
3385
|
-
var
|
|
3386
|
-
var
|
|
3387
|
-
var PanelDivider = () => /* @__PURE__ */
|
|
3433
|
+
var React36 = __toESM(require("react"));
|
|
3434
|
+
var import_ui22 = require("@elementor/ui");
|
|
3435
|
+
var PanelDivider = () => /* @__PURE__ */ React36.createElement(import_ui22.Divider, { sx: { my: 0.5 } });
|
|
3388
3436
|
|
|
3389
3437
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3390
|
-
var
|
|
3438
|
+
var React37 = __toESM(require("react"));
|
|
3391
3439
|
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
3392
|
-
var
|
|
3393
|
-
var BLEND_MODE_LABEL = (0,
|
|
3440
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
3441
|
+
var BLEND_MODE_LABEL = (0, import_i18n15.__)("Blend mode", "elementor");
|
|
3394
3442
|
var blendModeOptions = [
|
|
3395
|
-
{ label: (0,
|
|
3396
|
-
{ label: (0,
|
|
3397
|
-
{ label: (0,
|
|
3398
|
-
{ label: (0,
|
|
3399
|
-
{ label: (0,
|
|
3400
|
-
{ label: (0,
|
|
3401
|
-
{ label: (0,
|
|
3402
|
-
{ label: (0,
|
|
3403
|
-
{ label: (0,
|
|
3404
|
-
{ label: (0,
|
|
3405
|
-
{ label: (0,
|
|
3406
|
-
{ label: (0,
|
|
3407
|
-
{ label: (0,
|
|
3408
|
-
{ label: (0,
|
|
3409
|
-
{ label: (0,
|
|
3410
|
-
{ label: (0,
|
|
3443
|
+
{ label: (0, import_i18n15.__)("Normal", "elementor"), value: "normal" },
|
|
3444
|
+
{ label: (0, import_i18n15.__)("Multiply", "elementor"), value: "multiply" },
|
|
3445
|
+
{ label: (0, import_i18n15.__)("Screen", "elementor"), value: "screen" },
|
|
3446
|
+
{ label: (0, import_i18n15.__)("Overlay", "elementor"), value: "overlay" },
|
|
3447
|
+
{ label: (0, import_i18n15.__)("Darken", "elementor"), value: "darken" },
|
|
3448
|
+
{ label: (0, import_i18n15.__)("Lighten", "elementor"), value: "lighten" },
|
|
3449
|
+
{ label: (0, import_i18n15.__)("Color dodge", "elementor"), value: "color-dodge" },
|
|
3450
|
+
{ label: (0, import_i18n15.__)("Color burn", "elementor"), value: "color-burn" },
|
|
3451
|
+
{ label: (0, import_i18n15.__)("Saturation", "elementor"), value: "saturation" },
|
|
3452
|
+
{ label: (0, import_i18n15.__)("Color", "elementor"), value: "color" },
|
|
3453
|
+
{ label: (0, import_i18n15.__)("Difference", "elementor"), value: "difference" },
|
|
3454
|
+
{ label: (0, import_i18n15.__)("Exclusion", "elementor"), value: "exclusion" },
|
|
3455
|
+
{ label: (0, import_i18n15.__)("Hue", "elementor"), value: "hue" },
|
|
3456
|
+
{ label: (0, import_i18n15.__)("Luminosity", "elementor"), value: "luminosity" },
|
|
3457
|
+
{ label: (0, import_i18n15.__)("Soft light", "elementor"), value: "soft-light" },
|
|
3458
|
+
{ label: (0, import_i18n15.__)("Hard light", "elementor"), value: "hard-light" }
|
|
3411
3459
|
];
|
|
3412
3460
|
var BlendModeField = () => {
|
|
3413
|
-
return /* @__PURE__ */
|
|
3461
|
+
return /* @__PURE__ */ React37.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React37.createElement(import_editor_controls12.SelectControl, { options: blendModeOptions })));
|
|
3414
3462
|
};
|
|
3415
3463
|
|
|
3416
3464
|
// src/components/style-sections/effects-section/opacity-control-field.tsx
|
|
3417
|
-
var
|
|
3465
|
+
var React38 = __toESM(require("react"));
|
|
3418
3466
|
var import_react22 = require("react");
|
|
3419
3467
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3420
|
-
var
|
|
3421
|
-
var OPACITY_LABEL = (0,
|
|
3468
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
3469
|
+
var OPACITY_LABEL = (0, import_i18n16.__)("Opacity", "elementor");
|
|
3422
3470
|
var OpacityControlField = () => {
|
|
3423
3471
|
const rowRef = (0, import_react22.useRef)(null);
|
|
3424
|
-
return /* @__PURE__ */
|
|
3472
|
+
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React38.createElement(import_editor_controls13.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3425
3473
|
};
|
|
3426
3474
|
|
|
3427
3475
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3428
|
-
var BOX_SHADOW_LABEL = (0,
|
|
3429
|
-
var FILTER_LABEL = (0,
|
|
3430
|
-
var TRANSFORM_LABEL = (0,
|
|
3431
|
-
var BACKDROP_FILTER_LABEL = (0,
|
|
3432
|
-
var TRANSITIONS_LABEL = (0,
|
|
3476
|
+
var BOX_SHADOW_LABEL = (0, import_i18n17.__)("Box shadow", "elementor");
|
|
3477
|
+
var FILTER_LABEL = (0, import_i18n17.__)("Filters", "elementor");
|
|
3478
|
+
var TRANSFORM_LABEL = (0, import_i18n17.__)("Transform", "elementor");
|
|
3479
|
+
var BACKDROP_FILTER_LABEL = (0, import_i18n17.__)("Backdrop filters", "elementor");
|
|
3480
|
+
var TRANSITIONS_LABEL = (0, import_i18n17.__)("Transitions", "elementor");
|
|
3433
3481
|
var EffectsSection = () => {
|
|
3434
3482
|
const { element } = useElement();
|
|
3435
3483
|
const { meta } = useStyle();
|
|
3436
3484
|
const canHaveChildren = canElementHaveChildren(element?.id ?? "");
|
|
3437
|
-
return /* @__PURE__ */
|
|
3485
|
+
return /* @__PURE__ */ React39.createElement(SectionContent, { gap: 1 }, /* @__PURE__ */ React39.createElement(BlendModeField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(OpacityControlField, null), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "box-shadow", propDisplayName: BOX_SHADOW_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.BoxShadowRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "transform", propDisplayName: TRANSFORM_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.TransformRepeaterControl, { showChildrenPerspective: canHaveChildren })), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "transition", propDisplayName: TRANSITIONS_LABEL }, /* @__PURE__ */ React39.createElement(
|
|
3438
3486
|
import_editor_controls14.TransitionRepeaterControl,
|
|
3439
3487
|
{
|
|
3440
3488
|
currentStyleState: meta.state,
|
|
3441
3489
|
recentlyUsedListGetter: () => getRecentlyUsedList(element?.id ?? "")
|
|
3442
3490
|
}
|
|
3443
|
-
)), /* @__PURE__ */
|
|
3491
|
+
)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "filter", propDisplayName: FILTER_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.FilterRepeaterControl, null)), /* @__PURE__ */ React39.createElement(PanelDivider, null), /* @__PURE__ */ React39.createElement(StylesField, { bind: "backdrop-filter", propDisplayName: BACKDROP_FILTER_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls14.FilterRepeaterControl, { filterPropName: "backdrop-filter" })));
|
|
3444
3492
|
};
|
|
3445
3493
|
|
|
3446
3494
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3447
|
-
var
|
|
3495
|
+
var React56 = __toESM(require("react"));
|
|
3448
3496
|
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
3449
3497
|
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3450
3498
|
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
3451
|
-
var
|
|
3499
|
+
var import_i18n34 = require("@wordpress/i18n");
|
|
3452
3500
|
|
|
3453
3501
|
// src/hooks/use-computed-style.ts
|
|
3454
3502
|
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
@@ -3475,18 +3523,18 @@ function useComputedStyle(elementId) {
|
|
|
3475
3523
|
}
|
|
3476
3524
|
|
|
3477
3525
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3478
|
-
var
|
|
3526
|
+
var React41 = __toESM(require("react"));
|
|
3479
3527
|
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
3480
|
-
var
|
|
3481
|
-
var
|
|
3482
|
-
var
|
|
3528
|
+
var import_icons6 = require("@elementor/icons");
|
|
3529
|
+
var import_ui24 = require("@elementor/ui");
|
|
3530
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
3483
3531
|
|
|
3484
3532
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3485
|
-
var
|
|
3533
|
+
var React40 = __toESM(require("react"));
|
|
3486
3534
|
var import_react23 = require("react");
|
|
3487
|
-
var
|
|
3488
|
-
var
|
|
3489
|
-
var FLEX_DIRECTION_LABEL = (0,
|
|
3535
|
+
var import_ui23 = require("@elementor/ui");
|
|
3536
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
3537
|
+
var FLEX_DIRECTION_LABEL = (0, import_i18n18.__)("Flex direction", "elementor");
|
|
3490
3538
|
var CLOCKWISE_ANGLES = {
|
|
3491
3539
|
row: 0,
|
|
3492
3540
|
column: 90,
|
|
@@ -3508,13 +3556,13 @@ var RotatedIcon = ({
|
|
|
3508
3556
|
}) => {
|
|
3509
3557
|
const rotate = (0, import_react23.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
3510
3558
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
3511
|
-
return /* @__PURE__ */
|
|
3559
|
+
return /* @__PURE__ */ React40.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
3512
3560
|
};
|
|
3513
3561
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
3514
3562
|
const { value: direction } = useStylesField("flex-direction", {
|
|
3515
3563
|
history: { propDisplayName: FLEX_DIRECTION_LABEL }
|
|
3516
3564
|
});
|
|
3517
|
-
const isRtl = "rtl" === (0,
|
|
3565
|
+
const isRtl = "rtl" === (0, import_ui23.useTheme)().direction;
|
|
3518
3566
|
const rotationMultiplier = isRtl ? -1 : 1;
|
|
3519
3567
|
const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
|
|
3520
3568
|
const currentDirection = direction?.value || "row";
|
|
@@ -3529,9 +3577,9 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3529
3577
|
};
|
|
3530
3578
|
|
|
3531
3579
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3532
|
-
var ALIGN_CONTENT_LABEL = (0,
|
|
3533
|
-
var StartIcon = (0,
|
|
3534
|
-
var EndIcon = (0,
|
|
3580
|
+
var ALIGN_CONTENT_LABEL = (0, import_i18n19.__)("Align content", "elementor");
|
|
3581
|
+
var StartIcon = (0, import_ui24.withDirection)(import_icons6.JustifyTopIcon);
|
|
3582
|
+
var EndIcon = (0, import_ui24.withDirection)(import_icons6.JustifyBottomIcon);
|
|
3535
3583
|
var iconProps = {
|
|
3536
3584
|
isClockwise: false,
|
|
3537
3585
|
offset: 0,
|
|
@@ -3540,52 +3588,52 @@ var iconProps = {
|
|
|
3540
3588
|
var options = [
|
|
3541
3589
|
{
|
|
3542
3590
|
value: "start",
|
|
3543
|
-
label: (0,
|
|
3544
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3591
|
+
label: (0, import_i18n19.__)("Start", "elementor"),
|
|
3592
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3545
3593
|
showTooltip: true
|
|
3546
3594
|
},
|
|
3547
3595
|
{
|
|
3548
3596
|
value: "center",
|
|
3549
|
-
label: (0,
|
|
3550
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3597
|
+
label: (0, import_i18n19.__)("Center", "elementor"),
|
|
3598
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons6.JustifyCenterIcon, size, ...iconProps }),
|
|
3551
3599
|
showTooltip: true
|
|
3552
3600
|
},
|
|
3553
3601
|
{
|
|
3554
3602
|
value: "end",
|
|
3555
|
-
label: (0,
|
|
3556
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3603
|
+
label: (0, import_i18n19.__)("End", "elementor"),
|
|
3604
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3557
3605
|
showTooltip: true
|
|
3558
3606
|
},
|
|
3559
3607
|
{
|
|
3560
3608
|
value: "space-between",
|
|
3561
|
-
label: (0,
|
|
3562
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3609
|
+
label: (0, import_i18n19.__)("Space between", "elementor"),
|
|
3610
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons6.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
3563
3611
|
showTooltip: true
|
|
3564
3612
|
},
|
|
3565
3613
|
{
|
|
3566
3614
|
value: "space-around",
|
|
3567
|
-
label: (0,
|
|
3568
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3615
|
+
label: (0, import_i18n19.__)("Space around", "elementor"),
|
|
3616
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons6.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
3569
3617
|
showTooltip: true
|
|
3570
3618
|
},
|
|
3571
3619
|
{
|
|
3572
3620
|
value: "space-evenly",
|
|
3573
|
-
label: (0,
|
|
3574
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3621
|
+
label: (0, import_i18n19.__)("Space evenly", "elementor"),
|
|
3622
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons6.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
3575
3623
|
showTooltip: true
|
|
3576
3624
|
}
|
|
3577
3625
|
];
|
|
3578
|
-
var AlignContentField = () => /* @__PURE__ */
|
|
3626
|
+
var AlignContentField = () => /* @__PURE__ */ React41.createElement(StylesField, { bind: "align-content", propDisplayName: ALIGN_CONTENT_LABEL }, /* @__PURE__ */ React41.createElement(UiProviders, null, /* @__PURE__ */ React41.createElement(StylesFieldLayout, { label: ALIGN_CONTENT_LABEL, direction: "column" }, /* @__PURE__ */ React41.createElement(import_editor_controls15.ToggleControl, { options, fullWidth: true }))));
|
|
3579
3627
|
|
|
3580
3628
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
3581
|
-
var
|
|
3629
|
+
var React42 = __toESM(require("react"));
|
|
3582
3630
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
3583
|
-
var
|
|
3584
|
-
var
|
|
3585
|
-
var
|
|
3586
|
-
var ALIGN_ITEMS_LABEL = (0,
|
|
3587
|
-
var StartIcon2 = (0,
|
|
3588
|
-
var EndIcon2 = (0,
|
|
3631
|
+
var import_icons7 = require("@elementor/icons");
|
|
3632
|
+
var import_ui25 = require("@elementor/ui");
|
|
3633
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
3634
|
+
var ALIGN_ITEMS_LABEL = (0, import_i18n20.__)("Align items", "elementor");
|
|
3635
|
+
var StartIcon2 = (0, import_ui25.withDirection)(import_icons7.LayoutAlignLeftIcon);
|
|
3636
|
+
var EndIcon2 = (0, import_ui25.withDirection)(import_icons7.LayoutAlignRightIcon);
|
|
3589
3637
|
var iconProps2 = {
|
|
3590
3638
|
isClockwise: false,
|
|
3591
3639
|
offset: 90
|
|
@@ -3593,56 +3641,56 @@ var iconProps2 = {
|
|
|
3593
3641
|
var options2 = [
|
|
3594
3642
|
{
|
|
3595
3643
|
value: "start",
|
|
3596
|
-
label: (0,
|
|
3597
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3644
|
+
label: (0, import_i18n20.__)("Start", "elementor"),
|
|
3645
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3598
3646
|
showTooltip: true
|
|
3599
3647
|
},
|
|
3600
3648
|
{
|
|
3601
3649
|
value: "center",
|
|
3602
|
-
label: (0,
|
|
3603
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3650
|
+
label: (0, import_i18n20.__)("Center", "elementor"),
|
|
3651
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons7.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
3604
3652
|
showTooltip: true
|
|
3605
3653
|
},
|
|
3606
3654
|
{
|
|
3607
3655
|
value: "end",
|
|
3608
|
-
label: (0,
|
|
3609
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3656
|
+
label: (0, import_i18n20.__)("End", "elementor"),
|
|
3657
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3610
3658
|
showTooltip: true
|
|
3611
3659
|
},
|
|
3612
3660
|
{
|
|
3613
3661
|
value: "stretch",
|
|
3614
|
-
label: (0,
|
|
3615
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3662
|
+
label: (0, import_i18n20.__)("Stretch", "elementor"),
|
|
3663
|
+
renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(RotatedIcon, { icon: import_icons7.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
3616
3664
|
showTooltip: true
|
|
3617
3665
|
}
|
|
3618
3666
|
];
|
|
3619
3667
|
var AlignItemsField = () => {
|
|
3620
|
-
return /* @__PURE__ */
|
|
3668
|
+
return /* @__PURE__ */ React42.createElement(UiProviders, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-items", propDisplayName: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(StylesFieldLayout, { label: ALIGN_ITEMS_LABEL }, /* @__PURE__ */ React42.createElement(import_editor_controls16.ToggleControl, { options: options2 }))));
|
|
3621
3669
|
};
|
|
3622
3670
|
|
|
3623
3671
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
3624
|
-
var
|
|
3672
|
+
var React43 = __toESM(require("react"));
|
|
3625
3673
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3626
|
-
var
|
|
3627
|
-
var
|
|
3628
|
-
var
|
|
3629
|
-
var ALIGN_SELF_LABEL = (0,
|
|
3674
|
+
var import_icons8 = require("@elementor/icons");
|
|
3675
|
+
var import_ui26 = require("@elementor/ui");
|
|
3676
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
3677
|
+
var ALIGN_SELF_LABEL = (0, import_i18n21.__)("Align self", "elementor");
|
|
3630
3678
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3631
3679
|
row: 90,
|
|
3632
3680
|
"row-reverse": 90,
|
|
3633
3681
|
column: 0,
|
|
3634
3682
|
"column-reverse": 0
|
|
3635
3683
|
};
|
|
3636
|
-
var StartIcon3 = (0,
|
|
3637
|
-
var EndIcon3 = (0,
|
|
3684
|
+
var StartIcon3 = (0, import_ui26.withDirection)(import_icons8.LayoutAlignLeftIcon);
|
|
3685
|
+
var EndIcon3 = (0, import_ui26.withDirection)(import_icons8.LayoutAlignRightIcon);
|
|
3638
3686
|
var iconProps3 = {
|
|
3639
3687
|
isClockwise: false
|
|
3640
3688
|
};
|
|
3641
3689
|
var getOptions = (parentStyleDirection) => [
|
|
3642
3690
|
{
|
|
3643
3691
|
value: "start",
|
|
3644
|
-
label: (0,
|
|
3645
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3692
|
+
label: (0, import_i18n21.__)("Start", "elementor"),
|
|
3693
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3646
3694
|
RotatedIcon,
|
|
3647
3695
|
{
|
|
3648
3696
|
icon: StartIcon3,
|
|
@@ -3655,11 +3703,11 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3655
3703
|
},
|
|
3656
3704
|
{
|
|
3657
3705
|
value: "center",
|
|
3658
|
-
label: (0,
|
|
3659
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3706
|
+
label: (0, import_i18n21.__)("Center", "elementor"),
|
|
3707
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3660
3708
|
RotatedIcon,
|
|
3661
3709
|
{
|
|
3662
|
-
icon:
|
|
3710
|
+
icon: import_icons8.LayoutAlignCenterIcon,
|
|
3663
3711
|
size,
|
|
3664
3712
|
offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
|
|
3665
3713
|
...iconProps3
|
|
@@ -3669,8 +3717,8 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3669
3717
|
},
|
|
3670
3718
|
{
|
|
3671
3719
|
value: "end",
|
|
3672
|
-
label: (0,
|
|
3673
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3720
|
+
label: (0, import_i18n21.__)("End", "elementor"),
|
|
3721
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3674
3722
|
RotatedIcon,
|
|
3675
3723
|
{
|
|
3676
3724
|
icon: EndIcon3,
|
|
@@ -3683,11 +3731,11 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3683
3731
|
},
|
|
3684
3732
|
{
|
|
3685
3733
|
value: "stretch",
|
|
3686
|
-
label: (0,
|
|
3687
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3734
|
+
label: (0, import_i18n21.__)("Stretch", "elementor"),
|
|
3735
|
+
renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(
|
|
3688
3736
|
RotatedIcon,
|
|
3689
3737
|
{
|
|
3690
|
-
icon:
|
|
3738
|
+
icon: import_icons8.LayoutDistributeVerticalIcon,
|
|
3691
3739
|
size,
|
|
3692
3740
|
offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
|
|
3693
3741
|
...iconProps3
|
|
@@ -3696,96 +3744,96 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3696
3744
|
showTooltip: true
|
|
3697
3745
|
}
|
|
3698
3746
|
];
|
|
3699
|
-
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3747
|
+
var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React43.createElement(StylesField, { bind: "align-self", propDisplayName: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(UiProviders, null, /* @__PURE__ */ React43.createElement(StylesFieldLayout, { label: ALIGN_SELF_LABEL }, /* @__PURE__ */ React43.createElement(import_editor_controls17.ToggleControl, { options: getOptions(parentStyleDirection) }))));
|
|
3700
3748
|
|
|
3701
3749
|
// src/components/style-sections/layout-section/align-self-grid-child-field.tsx
|
|
3702
|
-
var
|
|
3750
|
+
var React44 = __toESM(require("react"));
|
|
3703
3751
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3704
|
-
var
|
|
3705
|
-
var
|
|
3706
|
-
var ALIGN_SELF_LABEL2 = (0,
|
|
3752
|
+
var import_icons9 = require("@elementor/icons");
|
|
3753
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
3754
|
+
var ALIGN_SELF_LABEL2 = (0, import_i18n22.__)("Align self", "elementor");
|
|
3707
3755
|
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3708
3756
|
row: 0,
|
|
3709
3757
|
column: -90
|
|
3710
3758
|
};
|
|
3711
|
-
var AlignSelfGridChild = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
3759
|
+
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(import_editor_controls18.ToggleControl, { options: getOptions2(parentStyleDirection ?? "row") }))));
|
|
3712
3760
|
var RotatedIcon2 = ({
|
|
3713
3761
|
icon: Icon,
|
|
3714
3762
|
size,
|
|
3715
3763
|
offset
|
|
3716
|
-
}) => /* @__PURE__ */
|
|
3764
|
+
}) => /* @__PURE__ */ React44.createElement(Icon, { fontSize: size, sx: { rotate: `${offset}deg` } });
|
|
3717
3765
|
var getOptions2 = (parentStyleDirection) => {
|
|
3718
3766
|
const offset = ALIGN_SELF_CHILD_OFFSET_MAP2[parentStyleDirection.replace("dense", "").trim()];
|
|
3719
3767
|
return [
|
|
3720
3768
|
{
|
|
3721
3769
|
value: "start",
|
|
3722
|
-
label: (0,
|
|
3723
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3770
|
+
label: (0, import_i18n22.__)("Start", "elementor"),
|
|
3771
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: import_icons9.JustifyTopIcon, size, offset }),
|
|
3724
3772
|
showTooltip: true
|
|
3725
3773
|
},
|
|
3726
3774
|
{
|
|
3727
3775
|
value: "center",
|
|
3728
|
-
label: (0,
|
|
3729
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3776
|
+
label: (0, import_i18n22.__)("Center", "elementor"),
|
|
3777
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: import_icons9.JustifyCenterIcon, size, offset }),
|
|
3730
3778
|
showTooltip: true
|
|
3731
3779
|
},
|
|
3732
3780
|
{
|
|
3733
3781
|
value: "end",
|
|
3734
|
-
label: (0,
|
|
3735
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3782
|
+
label: (0, import_i18n22.__)("End", "elementor"),
|
|
3783
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: import_icons9.JustifyBottomIcon, size, offset }),
|
|
3736
3784
|
showTooltip: true
|
|
3737
3785
|
},
|
|
3738
3786
|
{
|
|
3739
3787
|
value: "stretch",
|
|
3740
|
-
label: (0,
|
|
3741
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3788
|
+
label: (0, import_i18n22.__)("Stretch", "elementor"),
|
|
3789
|
+
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon2, { icon: import_icons9.LayoutDistributeVerticalIcon, size, offset }),
|
|
3742
3790
|
showTooltip: true
|
|
3743
3791
|
}
|
|
3744
3792
|
];
|
|
3745
3793
|
};
|
|
3746
3794
|
|
|
3747
3795
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3748
|
-
var
|
|
3796
|
+
var React45 = __toESM(require("react"));
|
|
3749
3797
|
var import_react24 = require("react");
|
|
3750
3798
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3751
3799
|
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
3752
|
-
var
|
|
3753
|
-
var DISPLAY_LABEL = (0,
|
|
3800
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
3801
|
+
var DISPLAY_LABEL = (0, import_i18n23.__)("Display", "elementor");
|
|
3754
3802
|
var displayFieldItems = [
|
|
3755
3803
|
{
|
|
3756
3804
|
value: "block",
|
|
3757
|
-
renderContent: () => (0,
|
|
3758
|
-
label: (0,
|
|
3805
|
+
renderContent: () => (0, import_i18n23.__)("Block", "elementor"),
|
|
3806
|
+
label: (0, import_i18n23.__)("Block", "elementor"),
|
|
3759
3807
|
showTooltip: true
|
|
3760
3808
|
},
|
|
3761
3809
|
{
|
|
3762
3810
|
value: "flex",
|
|
3763
|
-
renderContent: () => (0,
|
|
3764
|
-
label: (0,
|
|
3811
|
+
renderContent: () => (0, import_i18n23.__)("Flex", "elementor"),
|
|
3812
|
+
label: (0, import_i18n23.__)("Flex", "elementor"),
|
|
3765
3813
|
showTooltip: true
|
|
3766
3814
|
},
|
|
3767
3815
|
{
|
|
3768
3816
|
value: "grid",
|
|
3769
|
-
renderContent: () => (0,
|
|
3770
|
-
label: (0,
|
|
3817
|
+
renderContent: () => (0, import_i18n23.__)("Grid", "elementor"),
|
|
3818
|
+
label: (0, import_i18n23.__)("Grid", "elementor"),
|
|
3771
3819
|
showTooltip: true
|
|
3772
3820
|
},
|
|
3773
3821
|
{
|
|
3774
3822
|
value: "none",
|
|
3775
|
-
renderContent: () => (0,
|
|
3776
|
-
label: (0,
|
|
3823
|
+
renderContent: () => (0, import_i18n23.__)("None", "elementor"),
|
|
3824
|
+
label: (0, import_i18n23.__)("None", "elementor"),
|
|
3777
3825
|
showTooltip: true
|
|
3778
3826
|
},
|
|
3779
3827
|
{
|
|
3780
3828
|
value: "inline-block",
|
|
3781
|
-
renderContent: () => (0,
|
|
3782
|
-
label: (0,
|
|
3829
|
+
renderContent: () => (0, import_i18n23.__)("In-blk", "elementor"),
|
|
3830
|
+
label: (0, import_i18n23.__)("Inline-block", "elementor"),
|
|
3783
3831
|
showTooltip: true
|
|
3784
3832
|
},
|
|
3785
3833
|
{
|
|
3786
3834
|
value: "inline-flex",
|
|
3787
|
-
renderContent: () => (0,
|
|
3788
|
-
label: (0,
|
|
3835
|
+
renderContent: () => (0, import_i18n23.__)("In-flx", "elementor"),
|
|
3836
|
+
label: (0, import_i18n23.__)("Inline-flex", "elementor"),
|
|
3789
3837
|
showTooltip: true
|
|
3790
3838
|
}
|
|
3791
3839
|
];
|
|
@@ -3796,61 +3844,61 @@ var DisplayField = () => {
|
|
|
3796
3844
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3797
3845
|
[isGridActive]
|
|
3798
3846
|
);
|
|
3799
|
-
return /* @__PURE__ */
|
|
3847
|
+
return /* @__PURE__ */ React45.createElement(StylesField, { bind: "display", propDisplayName: DISPLAY_LABEL, placeholder }, /* @__PURE__ */ React45.createElement(StylesFieldLayout, { label: DISPLAY_LABEL, direction: "column" }, /* @__PURE__ */ React45.createElement(import_editor_controls19.ToggleControl, { options: items3, maxItems: 4, fullWidth: true })));
|
|
3800
3848
|
};
|
|
3801
3849
|
var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
|
|
3802
3850
|
|
|
3803
3851
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
3804
|
-
var
|
|
3852
|
+
var React46 = __toESM(require("react"));
|
|
3805
3853
|
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
3806
|
-
var
|
|
3807
|
-
var
|
|
3808
|
-
var
|
|
3809
|
-
var FLEX_DIRECTION_LABEL2 = (0,
|
|
3854
|
+
var import_icons10 = require("@elementor/icons");
|
|
3855
|
+
var import_ui27 = require("@elementor/ui");
|
|
3856
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
3857
|
+
var FLEX_DIRECTION_LABEL2 = (0, import_i18n24.__)("Direction", "elementor");
|
|
3810
3858
|
var options3 = [
|
|
3811
3859
|
{
|
|
3812
3860
|
value: "row",
|
|
3813
|
-
label: (0,
|
|
3861
|
+
label: (0, import_i18n24.__)("Row", "elementor"),
|
|
3814
3862
|
renderContent: ({ size }) => {
|
|
3815
|
-
const StartIcon7 = (0,
|
|
3816
|
-
return /* @__PURE__ */
|
|
3863
|
+
const StartIcon7 = (0, import_ui27.withDirection)(import_icons10.ArrowRightIcon);
|
|
3864
|
+
return /* @__PURE__ */ React46.createElement(StartIcon7, { fontSize: size });
|
|
3817
3865
|
},
|
|
3818
3866
|
showTooltip: true
|
|
3819
3867
|
},
|
|
3820
3868
|
{
|
|
3821
3869
|
value: "column",
|
|
3822
|
-
label: (0,
|
|
3823
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3870
|
+
label: (0, import_i18n24.__)("Column", "elementor"),
|
|
3871
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons10.ArrowDownSmallIcon, { fontSize: size }),
|
|
3824
3872
|
showTooltip: true
|
|
3825
3873
|
},
|
|
3826
3874
|
{
|
|
3827
3875
|
value: "row-reverse",
|
|
3828
|
-
label: (0,
|
|
3876
|
+
label: (0, import_i18n24.__)("Reversed row", "elementor"),
|
|
3829
3877
|
renderContent: ({ size }) => {
|
|
3830
|
-
const EndIcon6 = (0,
|
|
3831
|
-
return /* @__PURE__ */
|
|
3878
|
+
const EndIcon6 = (0, import_ui27.withDirection)(import_icons10.ArrowLeftIcon);
|
|
3879
|
+
return /* @__PURE__ */ React46.createElement(EndIcon6, { fontSize: size });
|
|
3832
3880
|
},
|
|
3833
3881
|
showTooltip: true
|
|
3834
3882
|
},
|
|
3835
3883
|
{
|
|
3836
3884
|
value: "column-reverse",
|
|
3837
|
-
label: (0,
|
|
3838
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3885
|
+
label: (0, import_i18n24.__)("Reversed column", "elementor"),
|
|
3886
|
+
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons10.ArrowUpSmallIcon, { fontSize: size }),
|
|
3839
3887
|
showTooltip: true
|
|
3840
3888
|
}
|
|
3841
3889
|
];
|
|
3842
3890
|
var FlexDirectionField = () => {
|
|
3843
|
-
return /* @__PURE__ */
|
|
3891
|
+
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(import_editor_controls20.ToggleControl, { options: options3 }))));
|
|
3844
3892
|
};
|
|
3845
3893
|
|
|
3846
3894
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
3847
|
-
var
|
|
3895
|
+
var React47 = __toESM(require("react"));
|
|
3848
3896
|
var import_react25 = require("react");
|
|
3849
3897
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3850
|
-
var
|
|
3851
|
-
var
|
|
3852
|
-
var
|
|
3853
|
-
var ORDER_LABEL = (0,
|
|
3898
|
+
var import_icons11 = require("@elementor/icons");
|
|
3899
|
+
var import_ui28 = require("@elementor/ui");
|
|
3900
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
3901
|
+
var ORDER_LABEL = (0, import_i18n25.__)("Order", "elementor");
|
|
3854
3902
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3855
3903
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3856
3904
|
var FIRST = "first";
|
|
@@ -3863,25 +3911,25 @@ var orderValueMap = {
|
|
|
3863
3911
|
var items = [
|
|
3864
3912
|
{
|
|
3865
3913
|
value: FIRST,
|
|
3866
|
-
label: (0,
|
|
3867
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3914
|
+
label: (0, import_i18n25.__)("First", "elementor"),
|
|
3915
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
|
|
3868
3916
|
showTooltip: true
|
|
3869
3917
|
},
|
|
3870
3918
|
{
|
|
3871
3919
|
value: LAST,
|
|
3872
|
-
label: (0,
|
|
3873
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3920
|
+
label: (0, import_i18n25.__)("Last", "elementor"),
|
|
3921
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
|
|
3874
3922
|
showTooltip: true
|
|
3875
3923
|
},
|
|
3876
3924
|
{
|
|
3877
3925
|
value: CUSTOM,
|
|
3878
|
-
label: (0,
|
|
3879
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3926
|
+
label: (0, import_i18n25.__)("Custom", "elementor"),
|
|
3927
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(import_icons11.PencilIcon, { fontSize: size }),
|
|
3880
3928
|
showTooltip: true
|
|
3881
3929
|
}
|
|
3882
3930
|
];
|
|
3883
3931
|
var FlexOrderField = () => {
|
|
3884
|
-
return /* @__PURE__ */
|
|
3932
|
+
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))));
|
|
3885
3933
|
};
|
|
3886
3934
|
function FlexOrderFieldContent() {
|
|
3887
3935
|
const {
|
|
@@ -3926,7 +3974,7 @@ function FlexOrderFieldContent() {
|
|
|
3926
3974
|
};
|
|
3927
3975
|
const isCustomVisible = CUSTOM === activeGroup || CUSTOM === groupPlaceholder;
|
|
3928
3976
|
const orderPlaceholder = CUSTOM === groupPlaceholder ? String(placeholderValue?.value ?? null) : "";
|
|
3929
|
-
return /* @__PURE__ */
|
|
3977
|
+
return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(StylesFieldLayout, { label: ORDER_LABEL }, /* @__PURE__ */ React47.createElement(
|
|
3930
3978
|
import_editor_controls21.ControlToggleButtonGroup,
|
|
3931
3979
|
{
|
|
3932
3980
|
items,
|
|
@@ -3936,7 +3984,7 @@ function FlexOrderFieldContent() {
|
|
|
3936
3984
|
placeholder: groupPlaceholder,
|
|
3937
3985
|
disabled: !canEdit
|
|
3938
3986
|
}
|
|
3939
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
3987
|
+
)), isCustomVisible && /* @__PURE__ */ React47.createElement(import_ui28.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui28.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, (0, import_i18n25.__)("Custom order", "elementor"))), /* @__PURE__ */ React47.createElement(import_ui28.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React47.createElement(
|
|
3940
3988
|
import_editor_controls21.NumberControl,
|
|
3941
3989
|
{
|
|
3942
3990
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -3960,36 +4008,36 @@ var getGroupControlValue = (order) => {
|
|
|
3960
4008
|
};
|
|
3961
4009
|
|
|
3962
4010
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
3963
|
-
var
|
|
4011
|
+
var React48 = __toESM(require("react"));
|
|
3964
4012
|
var import_react26 = require("react");
|
|
3965
4013
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
3966
4014
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3967
|
-
var
|
|
3968
|
-
var
|
|
3969
|
-
var FLEX_SIZE_LABEL = (0,
|
|
4015
|
+
var import_icons12 = require("@elementor/icons");
|
|
4016
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
4017
|
+
var FLEX_SIZE_LABEL = (0, import_i18n26.__)("Flex Size", "elementor");
|
|
3970
4018
|
var DEFAULT = 1;
|
|
3971
4019
|
var items2 = [
|
|
3972
4020
|
{
|
|
3973
4021
|
value: "flex-grow",
|
|
3974
|
-
label: (0,
|
|
3975
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4022
|
+
label: (0, import_i18n26.__)("Grow", "elementor"),
|
|
4023
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons12.ExpandIcon, { fontSize: size }),
|
|
3976
4024
|
showTooltip: true
|
|
3977
4025
|
},
|
|
3978
4026
|
{
|
|
3979
4027
|
value: "flex-shrink",
|
|
3980
|
-
label: (0,
|
|
3981
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4028
|
+
label: (0, import_i18n26.__)("Shrink", "elementor"),
|
|
4029
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons12.ShrinkIcon, { fontSize: size }),
|
|
3982
4030
|
showTooltip: true
|
|
3983
4031
|
},
|
|
3984
4032
|
{
|
|
3985
4033
|
value: "custom",
|
|
3986
|
-
label: (0,
|
|
3987
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4034
|
+
label: (0, import_i18n26.__)("Custom", "elementor"),
|
|
4035
|
+
renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(import_icons12.PencilIcon, { fontSize: size }),
|
|
3988
4036
|
showTooltip: true
|
|
3989
4037
|
}
|
|
3990
4038
|
];
|
|
3991
4039
|
var FlexSizeField = () => {
|
|
3992
|
-
return /* @__PURE__ */
|
|
4040
|
+
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))));
|
|
3993
4041
|
};
|
|
3994
4042
|
var FlexSizeFieldContent = () => {
|
|
3995
4043
|
const { value, setValue, canEdit } = useStylesField("flex", {
|
|
@@ -4018,7 +4066,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4018
4066
|
};
|
|
4019
4067
|
const groupPlaceholder = getActiveGroup(extractFlexValues(placeholder));
|
|
4020
4068
|
const isCustomVisible = "custom" === activeGroup || "custom" === groupPlaceholder;
|
|
4021
|
-
return /* @__PURE__ */
|
|
4069
|
+
return /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: FLEX_SIZE_LABEL }, /* @__PURE__ */ React48.createElement(
|
|
4022
4070
|
import_editor_controls22.ControlToggleButtonGroup,
|
|
4023
4071
|
{
|
|
4024
4072
|
value: activeGroup ?? null,
|
|
@@ -4028,7 +4076,7 @@ var FlexSizeFieldContent = () => {
|
|
|
4028
4076
|
items: items2,
|
|
4029
4077
|
exclusive: true
|
|
4030
4078
|
}
|
|
4031
|
-
)), isCustomVisible && /* @__PURE__ */
|
|
4079
|
+
)), isCustomVisible && /* @__PURE__ */ React48.createElement(FlexCustomField, null));
|
|
4032
4080
|
};
|
|
4033
4081
|
function extractFlexValues(source) {
|
|
4034
4082
|
return {
|
|
@@ -4070,7 +4118,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4070
4118
|
var FlexCustomField = () => {
|
|
4071
4119
|
const flexBasisRowRef = (0, import_react26.useRef)(null);
|
|
4072
4120
|
const context = (0, import_editor_controls22.useBoundProp)(import_editor_props13.flexPropTypeUtil);
|
|
4073
|
-
return /* @__PURE__ */
|
|
4121
|
+
return /* @__PURE__ */ React48.createElement(import_editor_controls22.PropProvider, { ...context }, /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: (0, import_i18n26.__)("Grow", "elementor") }, /* @__PURE__ */ React48.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React48.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: (0, import_i18n26.__)("Shrink", "elementor") }, /* @__PURE__ */ React48.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React48.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React48.createElement(StylesFieldLayout, { label: (0, import_i18n26.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React48.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React48.createElement(import_editor_controls22.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4074
4122
|
};
|
|
4075
4123
|
var getActiveGroup = ({
|
|
4076
4124
|
grow,
|
|
@@ -4094,34 +4142,34 @@ var getActiveGroup = ({
|
|
|
4094
4142
|
};
|
|
4095
4143
|
|
|
4096
4144
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4097
|
-
var
|
|
4145
|
+
var React49 = __toESM(require("react"));
|
|
4098
4146
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
4099
|
-
var
|
|
4100
|
-
var GAPS_LABEL = (0,
|
|
4147
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
4148
|
+
var GAPS_LABEL = (0, import_i18n27.__)("Gaps", "elementor");
|
|
4101
4149
|
var GapControlField = () => {
|
|
4102
|
-
return /* @__PURE__ */
|
|
4150
|
+
return /* @__PURE__ */ React49.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React49.createElement(import_editor_controls23.GapControl, { label: GAPS_LABEL }));
|
|
4103
4151
|
};
|
|
4104
4152
|
|
|
4105
4153
|
// src/components/style-sections/layout-section/grid-auto-flow-field.tsx
|
|
4106
|
-
var
|
|
4154
|
+
var React50 = __toESM(require("react"));
|
|
4107
4155
|
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
4108
|
-
var
|
|
4109
|
-
var
|
|
4110
|
-
var
|
|
4111
|
-
var AUTO_FLOW_LABEL = (0,
|
|
4112
|
-
var DENSE_LABEL = (0,
|
|
4113
|
-
var StartIcon4 = (0,
|
|
4156
|
+
var import_icons13 = require("@elementor/icons");
|
|
4157
|
+
var import_ui29 = require("@elementor/ui");
|
|
4158
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
4159
|
+
var AUTO_FLOW_LABEL = (0, import_i18n28.__)("Auto flow", "elementor");
|
|
4160
|
+
var DENSE_LABEL = (0, import_i18n28.__)("Dense", "elementor");
|
|
4161
|
+
var StartIcon4 = (0, import_ui29.withDirection)(import_icons13.ArrowRightIcon);
|
|
4114
4162
|
var directionOptions = [
|
|
4115
4163
|
{
|
|
4116
4164
|
value: "row",
|
|
4117
|
-
label: (0,
|
|
4118
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4165
|
+
label: (0, import_i18n28.__)("Row", "elementor"),
|
|
4166
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(StartIcon4, { fontSize: size }),
|
|
4119
4167
|
showTooltip: true
|
|
4120
4168
|
},
|
|
4121
4169
|
{
|
|
4122
4170
|
value: "column",
|
|
4123
|
-
label: (0,
|
|
4124
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4171
|
+
label: (0, import_i18n28.__)("Column", "elementor"),
|
|
4172
|
+
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons13.ArrowDownSmallIcon, { fontSize: size }),
|
|
4125
4173
|
showTooltip: true
|
|
4126
4174
|
}
|
|
4127
4175
|
];
|
|
@@ -4150,7 +4198,7 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4150
4198
|
const handleDenseToggle = () => {
|
|
4151
4199
|
setValue({ $$type: "string", value: composeAutoFlow(direction, !dense) });
|
|
4152
4200
|
};
|
|
4153
|
-
return /* @__PURE__ */
|
|
4201
|
+
return /* @__PURE__ */ React50.createElement(StylesFieldLayout, { label: AUTO_FLOW_LABEL }, /* @__PURE__ */ React50.createElement(import_ui29.Grid, { container: true, gap: 1, flexWrap: "nowrap", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true, sx: { width: 64, maxWidth: "100%" } }, /* @__PURE__ */ React50.createElement(
|
|
4154
4202
|
import_editor_controls24.ControlToggleButtonGroup,
|
|
4155
4203
|
{
|
|
4156
4204
|
items: directionOptions,
|
|
@@ -4159,8 +4207,8 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4159
4207
|
exclusive: true,
|
|
4160
4208
|
fullWidth: true
|
|
4161
4209
|
}
|
|
4162
|
-
)), /* @__PURE__ */
|
|
4163
|
-
|
|
4210
|
+
)), /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true }, /* @__PURE__ */ React50.createElement(import_ui29.Tooltip, { title: DENSE_LABEL, placement: "top" }, /* @__PURE__ */ React50.createElement(
|
|
4211
|
+
import_ui29.ToggleButton,
|
|
4164
4212
|
{
|
|
4165
4213
|
value: "dense",
|
|
4166
4214
|
selected: dense,
|
|
@@ -4168,54 +4216,54 @@ var GridAutoFlowFieldContent = () => {
|
|
|
4168
4216
|
size: "tiny",
|
|
4169
4217
|
"aria-label": DENSE_LABEL
|
|
4170
4218
|
},
|
|
4171
|
-
/* @__PURE__ */
|
|
4219
|
+
/* @__PURE__ */ React50.createElement(import_icons13.LayoutDashboardIcon, { fontSize: "tiny" })
|
|
4172
4220
|
)))));
|
|
4173
4221
|
};
|
|
4174
|
-
var GridAutoFlowField = () => /* @__PURE__ */
|
|
4222
|
+
var GridAutoFlowField = () => /* @__PURE__ */ React50.createElement(StylesField, { bind: "grid-auto-flow", propDisplayName: AUTO_FLOW_LABEL }, /* @__PURE__ */ React50.createElement(UiProviders, null, /* @__PURE__ */ React50.createElement(GridAutoFlowFieldContent, null)));
|
|
4175
4223
|
|
|
4176
4224
|
// src/components/style-sections/layout-section/grid-justify-items-field.tsx
|
|
4177
|
-
var
|
|
4225
|
+
var React51 = __toESM(require("react"));
|
|
4178
4226
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
4179
|
-
var
|
|
4180
|
-
var
|
|
4181
|
-
var
|
|
4182
|
-
var JUSTIFY_ITEMS_LABEL = (0,
|
|
4183
|
-
var StartIcon5 = (0,
|
|
4184
|
-
var EndIcon4 = (0,
|
|
4227
|
+
var import_icons14 = require("@elementor/icons");
|
|
4228
|
+
var import_ui30 = require("@elementor/ui");
|
|
4229
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
4230
|
+
var JUSTIFY_ITEMS_LABEL = (0, import_i18n29.__)("Justify items", "elementor");
|
|
4231
|
+
var StartIcon5 = (0, import_ui30.withDirection)(import_icons14.LayoutAlignLeftIcon);
|
|
4232
|
+
var EndIcon4 = (0, import_ui30.withDirection)(import_icons14.LayoutAlignRightIcon);
|
|
4185
4233
|
var options4 = [
|
|
4186
4234
|
{
|
|
4187
4235
|
value: "start",
|
|
4188
|
-
label: (0,
|
|
4189
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4236
|
+
label: (0, import_i18n29.__)("Start", "elementor"),
|
|
4237
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(StartIcon5, { fontSize: size }),
|
|
4190
4238
|
showTooltip: true
|
|
4191
4239
|
},
|
|
4192
4240
|
{
|
|
4193
4241
|
value: "center",
|
|
4194
|
-
label: (0,
|
|
4195
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4242
|
+
label: (0, import_i18n29.__)("Center", "elementor"),
|
|
4243
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons14.LayoutAlignCenterIcon, { fontSize: size }),
|
|
4196
4244
|
showTooltip: true
|
|
4197
4245
|
},
|
|
4198
4246
|
{
|
|
4199
4247
|
value: "end",
|
|
4200
|
-
label: (0,
|
|
4201
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4248
|
+
label: (0, import_i18n29.__)("End", "elementor"),
|
|
4249
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(EndIcon4, { fontSize: size }),
|
|
4202
4250
|
showTooltip: true
|
|
4203
4251
|
},
|
|
4204
4252
|
{
|
|
4205
4253
|
value: "stretch",
|
|
4206
|
-
label: (0,
|
|
4207
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4254
|
+
label: (0, import_i18n29.__)("Stretch", "elementor"),
|
|
4255
|
+
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons14.LayoutDistributeVerticalIcon, { fontSize: size }),
|
|
4208
4256
|
showTooltip: true
|
|
4209
4257
|
}
|
|
4210
4258
|
];
|
|
4211
|
-
var GridJustifyItemsField = () => /* @__PURE__ */
|
|
4259
|
+
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(import_editor_controls25.ToggleControl, { options: options4 }))));
|
|
4212
4260
|
|
|
4213
4261
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4214
|
-
var
|
|
4262
|
+
var React52 = __toESM(require("react"));
|
|
4215
4263
|
var import_react27 = require("react");
|
|
4216
4264
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
4217
|
-
var
|
|
4218
|
-
var
|
|
4265
|
+
var import_ui31 = require("@elementor/ui");
|
|
4266
|
+
var import_i18n30 = require("@wordpress/i18n");
|
|
4219
4267
|
|
|
4220
4268
|
// src/components/style-sections/layout-section/utils/grid-track-value.ts
|
|
4221
4269
|
var import_editor_props14 = require("@elementor/editor-props");
|
|
@@ -4309,8 +4357,8 @@ var unitOf = (v, fallback = FR) => {
|
|
|
4309
4357
|
};
|
|
4310
4358
|
|
|
4311
4359
|
// src/components/style-sections/layout-section/grid-size-field.tsx
|
|
4312
|
-
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */
|
|
4313
|
-
var GridTrackSizeInput = (0, import_editor_controls26.createControl)((props) => /* @__PURE__ */
|
|
4360
|
+
var SizeFieldWrapper = ({ children }) => /* @__PURE__ */ React52.createElement(import_editor_controls26.ControlActions, null, children);
|
|
4361
|
+
var GridTrackSizeInput = (0, import_editor_controls26.createControl)((props) => /* @__PURE__ */ React52.createElement(
|
|
4314
4362
|
import_editor_controls26.SizeComponent,
|
|
4315
4363
|
{
|
|
4316
4364
|
units: UNITS,
|
|
@@ -4342,7 +4390,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4342
4390
|
}
|
|
4343
4391
|
setValue(toPropValue(next));
|
|
4344
4392
|
};
|
|
4345
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React52.createElement("div", { ref: anchorRef }, /* @__PURE__ */ React52.createElement(
|
|
4346
4394
|
GridTrackSizeInput,
|
|
4347
4395
|
{
|
|
4348
4396
|
value: displayValue,
|
|
@@ -4352,29 +4400,29 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4352
4400
|
}
|
|
4353
4401
|
)));
|
|
4354
4402
|
};
|
|
4355
|
-
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4356
|
-
var GridSizeFields = () => /* @__PURE__ */
|
|
4403
|
+
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React52.createElement(UiProviders, null, /* @__PURE__ */ React52.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React52.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4404
|
+
var GridSizeFields = () => /* @__PURE__ */ React52.createElement(import_ui31.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui31.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(GridTrackField, { cssProp: "grid-template-columns", label: (0, import_i18n30.__)("Columns", "elementor") })), /* @__PURE__ */ React52.createElement(import_ui31.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(GridTrackField, { cssProp: "grid-template-rows", label: (0, import_i18n30.__)("Rows", "elementor") })));
|
|
4357
4405
|
|
|
4358
4406
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4359
|
-
var
|
|
4407
|
+
var React53 = __toESM(require("react"));
|
|
4360
4408
|
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
4361
|
-
var
|
|
4362
|
-
var
|
|
4409
|
+
var import_ui32 = require("@elementor/ui");
|
|
4410
|
+
var import_i18n31 = require("@wordpress/i18n");
|
|
4363
4411
|
var GridSpanFieldContent = ({ label }) => {
|
|
4364
|
-
return /* @__PURE__ */
|
|
4412
|
+
return /* @__PURE__ */ React53.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React53.createElement(import_editor_controls27.GridSpanControl, null));
|
|
4365
4413
|
};
|
|
4366
|
-
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */
|
|
4367
|
-
var GridSpanFields = () => /* @__PURE__ */
|
|
4414
|
+
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React53.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React53.createElement(UiProviders, null, /* @__PURE__ */ React53.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4415
|
+
var GridSpanFields = () => /* @__PURE__ */ React53.createElement(import_ui32.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(GridSpanField, { cssProp: "grid-column", label: (0, import_i18n31.__)("Grid column", "elementor") })), /* @__PURE__ */ React53.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(GridSpanField, { cssProp: "grid-row", label: (0, import_i18n31.__)("Grid row", "elementor") })));
|
|
4368
4416
|
|
|
4369
4417
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4370
|
-
var
|
|
4418
|
+
var React54 = __toESM(require("react"));
|
|
4371
4419
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
4372
|
-
var
|
|
4373
|
-
var
|
|
4374
|
-
var
|
|
4375
|
-
var JUSTIFY_CONTENT_LABEL = (0,
|
|
4376
|
-
var StartIcon6 = (0,
|
|
4377
|
-
var EndIcon5 = (0,
|
|
4420
|
+
var import_icons15 = require("@elementor/icons");
|
|
4421
|
+
var import_ui33 = require("@elementor/ui");
|
|
4422
|
+
var import_i18n32 = require("@wordpress/i18n");
|
|
4423
|
+
var JUSTIFY_CONTENT_LABEL = (0, import_i18n32.__)("Justify content", "elementor");
|
|
4424
|
+
var StartIcon6 = (0, import_ui33.withDirection)(import_icons15.JustifyTopIcon);
|
|
4425
|
+
var EndIcon5 = (0, import_ui33.withDirection)(import_icons15.JustifyBottomIcon);
|
|
4378
4426
|
var iconProps4 = {
|
|
4379
4427
|
isClockwise: true,
|
|
4380
4428
|
offset: -90
|
|
@@ -4382,76 +4430,76 @@ var iconProps4 = {
|
|
|
4382
4430
|
var options5 = [
|
|
4383
4431
|
{
|
|
4384
4432
|
value: "flex-start",
|
|
4385
|
-
label: (0,
|
|
4386
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4433
|
+
label: (0, import_i18n32.__)("Start", "elementor"),
|
|
4434
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4387
4435
|
showTooltip: true
|
|
4388
4436
|
},
|
|
4389
4437
|
{
|
|
4390
4438
|
value: "center",
|
|
4391
|
-
label: (0,
|
|
4392
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4439
|
+
label: (0, import_i18n32.__)("Center", "elementor"),
|
|
4440
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: import_icons15.JustifyCenterIcon, size, ...iconProps4 }),
|
|
4393
4441
|
showTooltip: true
|
|
4394
4442
|
},
|
|
4395
4443
|
{
|
|
4396
4444
|
value: "flex-end",
|
|
4397
|
-
label: (0,
|
|
4398
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4445
|
+
label: (0, import_i18n32.__)("End", "elementor"),
|
|
4446
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4399
4447
|
showTooltip: true
|
|
4400
4448
|
},
|
|
4401
4449
|
{
|
|
4402
4450
|
value: "space-between",
|
|
4403
|
-
label: (0,
|
|
4404
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4451
|
+
label: (0, import_i18n32.__)("Space between", "elementor"),
|
|
4452
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: import_icons15.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
4405
4453
|
showTooltip: true
|
|
4406
4454
|
},
|
|
4407
4455
|
{
|
|
4408
4456
|
value: "space-around",
|
|
4409
|
-
label: (0,
|
|
4410
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4457
|
+
label: (0, import_i18n32.__)("Space around", "elementor"),
|
|
4458
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: import_icons15.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
4411
4459
|
showTooltip: true
|
|
4412
4460
|
},
|
|
4413
4461
|
{
|
|
4414
4462
|
value: "space-evenly",
|
|
4415
|
-
label: (0,
|
|
4416
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4463
|
+
label: (0, import_i18n32.__)("Space evenly", "elementor"),
|
|
4464
|
+
renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(RotatedIcon, { icon: import_icons15.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
4417
4465
|
showTooltip: true
|
|
4418
4466
|
}
|
|
4419
4467
|
];
|
|
4420
|
-
var JustifyContentField = () => /* @__PURE__ */
|
|
4468
|
+
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(import_editor_controls28.ToggleControl, { options: options5, fullWidth: true }))));
|
|
4421
4469
|
|
|
4422
4470
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
4423
|
-
var
|
|
4471
|
+
var React55 = __toESM(require("react"));
|
|
4424
4472
|
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
4425
|
-
var
|
|
4426
|
-
var
|
|
4427
|
-
var FLEX_WRAP_LABEL = (0,
|
|
4473
|
+
var import_icons16 = require("@elementor/icons");
|
|
4474
|
+
var import_i18n33 = require("@wordpress/i18n");
|
|
4475
|
+
var FLEX_WRAP_LABEL = (0, import_i18n33.__)("Wrap", "elementor");
|
|
4428
4476
|
var options6 = [
|
|
4429
4477
|
{
|
|
4430
4478
|
value: "nowrap",
|
|
4431
|
-
label: (0,
|
|
4432
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4479
|
+
label: (0, import_i18n33.__)("No wrap", "elementor"),
|
|
4480
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons16.ArrowRightIcon, { fontSize: size }),
|
|
4433
4481
|
showTooltip: true
|
|
4434
4482
|
},
|
|
4435
4483
|
{
|
|
4436
4484
|
value: "wrap",
|
|
4437
|
-
label: (0,
|
|
4438
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4485
|
+
label: (0, import_i18n33.__)("Wrap", "elementor"),
|
|
4486
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons16.ArrowBackIcon, { fontSize: size }),
|
|
4439
4487
|
showTooltip: true
|
|
4440
4488
|
},
|
|
4441
4489
|
{
|
|
4442
4490
|
value: "wrap-reverse",
|
|
4443
|
-
label: (0,
|
|
4444
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4491
|
+
label: (0, import_i18n33.__)("Reversed wrap", "elementor"),
|
|
4492
|
+
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons16.ArrowForwardIcon, { fontSize: size }),
|
|
4445
4493
|
showTooltip: true
|
|
4446
4494
|
}
|
|
4447
4495
|
];
|
|
4448
4496
|
var WrapField = () => {
|
|
4449
|
-
return /* @__PURE__ */
|
|
4497
|
+
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(import_editor_controls29.ToggleControl, { options: options6 }))));
|
|
4450
4498
|
};
|
|
4451
4499
|
|
|
4452
4500
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4453
|
-
var DISPLAY_LABEL2 = (0,
|
|
4454
|
-
var FLEX_WRAP_LABEL2 = (0,
|
|
4501
|
+
var DISPLAY_LABEL2 = (0, import_i18n34.__)("Display", "elementor");
|
|
4502
|
+
var FLEX_WRAP_LABEL2 = (0, import_i18n34.__)("Flex wrap", "elementor");
|
|
4455
4503
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4456
4504
|
var LayoutSection = () => {
|
|
4457
4505
|
const { value: display } = useStylesField("display", {
|
|
@@ -4473,17 +4521,17 @@ var LayoutSection = () => {
|
|
|
4473
4521
|
}
|
|
4474
4522
|
return DEFAULT_PARENT_FLOW_DIRECTION;
|
|
4475
4523
|
};
|
|
4476
|
-
return /* @__PURE__ */
|
|
4524
|
+
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() }));
|
|
4477
4525
|
};
|
|
4478
4526
|
var FlexFields = () => {
|
|
4479
4527
|
const { value: flexWrap } = useStylesField("flex-wrap", {
|
|
4480
4528
|
history: { propDisplayName: FLEX_WRAP_LABEL2 }
|
|
4481
4529
|
});
|
|
4482
|
-
return /* @__PURE__ */
|
|
4530
|
+
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));
|
|
4483
4531
|
};
|
|
4484
|
-
var GridFields = () => /* @__PURE__ */
|
|
4485
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4486
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */
|
|
4532
|
+
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));
|
|
4533
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(import_editor_controls30.ControlFormLabel, null, (0, import_i18n34.__)("Flex child", "elementor")), /* @__PURE__ */ React56.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React56.createElement(FlexOrderField, null), /* @__PURE__ */ React56.createElement(FlexSizeField, null));
|
|
4534
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(import_editor_controls30.ControlFormLabel, null, (0, import_i18n34.__)("Grid child", "elementor")), /* @__PURE__ */ React56.createElement(GridSpanFields, null), /* @__PURE__ */ React56.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React56.createElement(FlexOrderField, null));
|
|
4487
4535
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4488
4536
|
const value = display?.value ?? local?.value;
|
|
4489
4537
|
if (!value) {
|
|
@@ -4493,40 +4541,40 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4493
4541
|
};
|
|
4494
4542
|
|
|
4495
4543
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4496
|
-
var
|
|
4544
|
+
var React61 = __toESM(require("react"));
|
|
4497
4545
|
var import_react30 = require("react");
|
|
4498
4546
|
var import_session7 = require("@elementor/session");
|
|
4499
|
-
var
|
|
4500
|
-
var
|
|
4547
|
+
var import_ui36 = require("@elementor/ui");
|
|
4548
|
+
var import_i18n39 = require("@wordpress/i18n");
|
|
4501
4549
|
|
|
4502
4550
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4503
|
-
var
|
|
4551
|
+
var React57 = __toESM(require("react"));
|
|
4504
4552
|
var import_react28 = require("react");
|
|
4505
4553
|
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
4506
|
-
var
|
|
4507
|
-
var
|
|
4508
|
-
var
|
|
4509
|
-
var InlineStartIcon2 = (0,
|
|
4510
|
-
var InlineEndIcon2 = (0,
|
|
4554
|
+
var import_icons17 = require("@elementor/icons");
|
|
4555
|
+
var import_ui34 = require("@elementor/ui");
|
|
4556
|
+
var import_i18n35 = require("@wordpress/i18n");
|
|
4557
|
+
var InlineStartIcon2 = (0, import_ui34.withDirection)(import_icons17.SideLeftIcon);
|
|
4558
|
+
var InlineEndIcon2 = (0, import_ui34.withDirection)(import_icons17.SideRightIcon);
|
|
4511
4559
|
var sideIcons = {
|
|
4512
|
-
"inset-block-start": /* @__PURE__ */
|
|
4513
|
-
"inset-block-end": /* @__PURE__ */
|
|
4514
|
-
"inset-inline-start": /* @__PURE__ */
|
|
4515
|
-
"inset-inline-end": /* @__PURE__ */
|
|
4560
|
+
"inset-block-start": /* @__PURE__ */ React57.createElement(import_icons17.SideTopIcon, { fontSize: "tiny" }),
|
|
4561
|
+
"inset-block-end": /* @__PURE__ */ React57.createElement(import_icons17.SideBottomIcon, { fontSize: "tiny" }),
|
|
4562
|
+
"inset-inline-start": /* @__PURE__ */ React57.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4563
|
+
"inset-inline-end": /* @__PURE__ */ React57.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4516
4564
|
};
|
|
4517
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4518
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4565
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n35.__)("Right", "elementor") : (0, import_i18n35.__)("Left", "elementor");
|
|
4566
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n35.__)("Left", "elementor") : (0, import_i18n35.__)("Right", "elementor");
|
|
4519
4567
|
var DimensionsField = () => {
|
|
4520
4568
|
const { isSiteRtl } = useDirection();
|
|
4521
4569
|
const rowRefs = [(0, import_react28.useRef)(null), (0, import_react28.useRef)(null)];
|
|
4522
|
-
return /* @__PURE__ */
|
|
4570
|
+
return /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(import_ui34.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React57.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n35.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React57.createElement(
|
|
4523
4571
|
DimensionField,
|
|
4524
4572
|
{
|
|
4525
4573
|
side: "inset-inline-end",
|
|
4526
4574
|
label: getInlineEndLabel(isSiteRtl),
|
|
4527
4575
|
rowRef: rowRefs[0]
|
|
4528
4576
|
}
|
|
4529
|
-
)), /* @__PURE__ */
|
|
4577
|
+
)), /* @__PURE__ */ React57.createElement(import_ui34.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React57.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n35.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React57.createElement(
|
|
4530
4578
|
DimensionField,
|
|
4531
4579
|
{
|
|
4532
4580
|
side: "inset-inline-start",
|
|
@@ -4539,7 +4587,7 @@ var DimensionField = ({
|
|
|
4539
4587
|
side,
|
|
4540
4588
|
label,
|
|
4541
4589
|
rowRef
|
|
4542
|
-
}) => /* @__PURE__ */
|
|
4590
|
+
}) => /* @__PURE__ */ React57.createElement(StylesField, { bind: side, propDisplayName: label }, /* @__PURE__ */ React57.createElement(import_ui34.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React57.createElement(import_ui34.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, label)), /* @__PURE__ */ React57.createElement(import_ui34.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(
|
|
4543
4591
|
import_editor_controls31.SizeControl,
|
|
4544
4592
|
{
|
|
4545
4593
|
startIcon: sideIcons[side],
|
|
@@ -4550,62 +4598,62 @@ var DimensionField = ({
|
|
|
4550
4598
|
))));
|
|
4551
4599
|
|
|
4552
4600
|
// src/components/style-sections/position-section/offset-field.tsx
|
|
4553
|
-
var
|
|
4601
|
+
var React58 = __toESM(require("react"));
|
|
4554
4602
|
var import_react29 = require("react");
|
|
4555
4603
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
4556
|
-
var
|
|
4557
|
-
var OFFSET_LABEL = (0,
|
|
4604
|
+
var import_i18n36 = require("@wordpress/i18n");
|
|
4605
|
+
var OFFSET_LABEL = (0, import_i18n36.__)("Anchor offset", "elementor");
|
|
4558
4606
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4559
4607
|
var OffsetField = () => {
|
|
4560
4608
|
const rowRef = (0, import_react29.useRef)(null);
|
|
4561
|
-
return /* @__PURE__ */
|
|
4609
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React58.createElement(import_editor_controls32.SizeControl, { units: UNITS2, anchorRef: rowRef })));
|
|
4562
4610
|
};
|
|
4563
4611
|
|
|
4564
4612
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4565
|
-
var
|
|
4613
|
+
var React59 = __toESM(require("react"));
|
|
4566
4614
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4567
|
-
var
|
|
4568
|
-
var POSITION_LABEL = (0,
|
|
4615
|
+
var import_i18n37 = require("@wordpress/i18n");
|
|
4616
|
+
var POSITION_LABEL = (0, import_i18n37.__)("Position", "elementor");
|
|
4569
4617
|
var positionOptions = [
|
|
4570
|
-
{ label: (0,
|
|
4571
|
-
{ label: (0,
|
|
4572
|
-
{ label: (0,
|
|
4573
|
-
{ label: (0,
|
|
4574
|
-
{ label: (0,
|
|
4618
|
+
{ label: (0, import_i18n37.__)("Static", "elementor"), value: "static" },
|
|
4619
|
+
{ label: (0, import_i18n37.__)("Relative", "elementor"), value: "relative" },
|
|
4620
|
+
{ label: (0, import_i18n37.__)("Absolute", "elementor"), value: "absolute" },
|
|
4621
|
+
{ label: (0, import_i18n37.__)("Fixed", "elementor"), value: "fixed" },
|
|
4622
|
+
{ label: (0, import_i18n37.__)("Sticky", "elementor"), value: "sticky" }
|
|
4575
4623
|
];
|
|
4576
4624
|
var PositionField = () => {
|
|
4577
|
-
return /* @__PURE__ */
|
|
4625
|
+
return /* @__PURE__ */ React59.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React59.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React59.createElement(import_editor_controls33.SelectControl, { options: positionOptions })));
|
|
4578
4626
|
};
|
|
4579
4627
|
|
|
4580
4628
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
4581
|
-
var
|
|
4629
|
+
var React60 = __toESM(require("react"));
|
|
4582
4630
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4583
|
-
var
|
|
4584
|
-
var
|
|
4585
|
-
var
|
|
4586
|
-
var Z_INDEX_LABEL = (0,
|
|
4631
|
+
var import_icons18 = require("@elementor/icons");
|
|
4632
|
+
var import_ui35 = require("@elementor/ui");
|
|
4633
|
+
var import_i18n38 = require("@wordpress/i18n");
|
|
4634
|
+
var Z_INDEX_LABEL = (0, import_i18n38.__)("Z-index", "elementor");
|
|
4587
4635
|
var ZIndexField = ({ disabled }) => {
|
|
4588
|
-
const StyleField = /* @__PURE__ */
|
|
4589
|
-
const content = /* @__PURE__ */
|
|
4636
|
+
const StyleField = /* @__PURE__ */ React60.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React60.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React60.createElement(import_editor_controls34.NumberControl, { disabled })));
|
|
4637
|
+
const content = /* @__PURE__ */ React60.createElement(import_ui35.Alert, { color: "secondary", icon: /* @__PURE__ */ React60.createElement(import_icons18.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React60.createElement(import_ui35.AlertTitle, null, (0, import_i18n38.__)("Z-index", "elementor")), /* @__PURE__ */ React60.createElement(import_ui35.Box, { component: "span" }, (0, import_i18n38.__)(
|
|
4590
4638
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4591
4639
|
"elementor"
|
|
4592
4640
|
)));
|
|
4593
|
-
return disabled ? /* @__PURE__ */
|
|
4594
|
-
|
|
4641
|
+
return disabled ? /* @__PURE__ */ React60.createElement(
|
|
4642
|
+
import_ui35.Infotip,
|
|
4595
4643
|
{
|
|
4596
4644
|
placement: "right",
|
|
4597
4645
|
content,
|
|
4598
4646
|
color: "secondary",
|
|
4599
4647
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
4600
4648
|
},
|
|
4601
|
-
/* @__PURE__ */
|
|
4602
|
-
) : /* @__PURE__ */
|
|
4649
|
+
/* @__PURE__ */ React60.createElement(import_ui35.Box, null, StyleField)
|
|
4650
|
+
) : /* @__PURE__ */ React60.createElement(React60.Fragment, null, StyleField);
|
|
4603
4651
|
};
|
|
4604
4652
|
|
|
4605
4653
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4606
4654
|
var POSITION_STATIC = "static";
|
|
4607
|
-
var POSITION_LABEL2 = (0,
|
|
4608
|
-
var DIMENSIONS_LABEL = (0,
|
|
4655
|
+
var POSITION_LABEL2 = (0, import_i18n39.__)("Position", "elementor");
|
|
4656
|
+
var DIMENSIONS_LABEL = (0, import_i18n39.__)("Dimensions", "elementor");
|
|
4609
4657
|
var DEPENDENT_PROP_NAMES = [
|
|
4610
4658
|
"inset-block-start",
|
|
4611
4659
|
"inset-block-end",
|
|
@@ -4631,7 +4679,7 @@ var PositionSection = () => {
|
|
|
4631
4679
|
}
|
|
4632
4680
|
positionPrevRef.current = position;
|
|
4633
4681
|
}, [position?.value]);
|
|
4634
|
-
return /* @__PURE__ */
|
|
4682
|
+
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));
|
|
4635
4683
|
};
|
|
4636
4684
|
var usePersistDimensions = () => {
|
|
4637
4685
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4659,7 +4707,7 @@ var extractDimensions = (values) => {
|
|
|
4659
4707
|
};
|
|
4660
4708
|
}, {});
|
|
4661
4709
|
};
|
|
4662
|
-
var StyledSectionContent = (0,
|
|
4710
|
+
var StyledSectionContent = (0, import_ui36.styled)(SectionContent, {
|
|
4663
4711
|
shouldForwardProp: (prop) => prop !== "gap"
|
|
4664
4712
|
})(({ gap = 2, theme }) => ({
|
|
4665
4713
|
gap: 0,
|
|
@@ -4681,26 +4729,26 @@ var StyledSectionContent = (0, import_ui35.styled)(SectionContent, {
|
|
|
4681
4729
|
}));
|
|
4682
4730
|
|
|
4683
4731
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4684
|
-
var
|
|
4732
|
+
var React66 = __toESM(require("react"));
|
|
4685
4733
|
var import_react31 = require("react");
|
|
4686
4734
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4687
|
-
var
|
|
4688
|
-
var
|
|
4735
|
+
var import_ui38 = require("@elementor/ui");
|
|
4736
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
4689
4737
|
|
|
4690
4738
|
// src/components/style-tab-collapsible-content.tsx
|
|
4691
|
-
var
|
|
4739
|
+
var React63 = __toESM(require("react"));
|
|
4692
4740
|
var import_editor_ui6 = require("@elementor/editor-ui");
|
|
4693
4741
|
|
|
4694
4742
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4695
|
-
var
|
|
4696
|
-
var
|
|
4697
|
-
var
|
|
4698
|
-
var
|
|
4743
|
+
var React62 = __toESM(require("react"));
|
|
4744
|
+
var import_editor_styles_repository17 = require("@elementor/editor-styles-repository");
|
|
4745
|
+
var import_ui37 = require("@elementor/ui");
|
|
4746
|
+
var import_i18n40 = require("@wordpress/i18n");
|
|
4699
4747
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4700
4748
|
const { id, meta, provider } = useStyle();
|
|
4701
4749
|
const snapshot = useStylesInheritanceSnapshot();
|
|
4702
4750
|
if (fields.includes("custom_css")) {
|
|
4703
|
-
return /* @__PURE__ */
|
|
4751
|
+
return /* @__PURE__ */ React62.createElement(CustomCssIndicator, null);
|
|
4704
4752
|
}
|
|
4705
4753
|
const snapshotFields = Object.fromEntries(
|
|
4706
4754
|
Object.entries(snapshot ?? {}).filter(([key]) => fields.includes(key))
|
|
@@ -4709,17 +4757,17 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4709
4757
|
if (!hasValues && !hasOverrides) {
|
|
4710
4758
|
return null;
|
|
4711
4759
|
}
|
|
4712
|
-
const hasValueLabel = (0,
|
|
4713
|
-
const hasOverridesLabel = (0,
|
|
4714
|
-
return /* @__PURE__ */
|
|
4760
|
+
const hasValueLabel = (0, import_i18n40.__)("Has effective styles", "elementor");
|
|
4761
|
+
const hasOverridesLabel = (0, import_i18n40.__)("Has overridden styles", "elementor");
|
|
4762
|
+
return /* @__PURE__ */ React62.createElement(import_ui37.Tooltip, { title: (0, import_i18n40.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React62.createElement(import_ui37.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React62.createElement(
|
|
4715
4763
|
StyleIndicator,
|
|
4716
4764
|
{
|
|
4717
4765
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
4718
|
-
"data-variant": (0,
|
|
4766
|
+
"data-variant": (0, import_editor_styles_repository17.isElementsStylesProvider)(provider.getKey()) ? "local" : "global",
|
|
4719
4767
|
role: "listitem",
|
|
4720
4768
|
"aria-label": hasValueLabel
|
|
4721
4769
|
}
|
|
4722
|
-
), hasOverrides && /* @__PURE__ */
|
|
4770
|
+
), hasOverrides && /* @__PURE__ */ React62.createElement(
|
|
4723
4771
|
StyleIndicator,
|
|
4724
4772
|
{
|
|
4725
4773
|
isOverridden: true,
|
|
@@ -4759,59 +4807,59 @@ function getCurrentStyleFromChain(chain, styleId, meta) {
|
|
|
4759
4807
|
|
|
4760
4808
|
// src/components/style-tab-collapsible-content.tsx
|
|
4761
4809
|
var StyleTabCollapsibleContent = ({ fields = [], children }) => {
|
|
4762
|
-
return /* @__PURE__ */
|
|
4810
|
+
return /* @__PURE__ */ React63.createElement(import_editor_ui6.CollapsibleContent, { titleEnd: getStylesInheritanceIndicators(fields) }, children);
|
|
4763
4811
|
};
|
|
4764
4812
|
function getStylesInheritanceIndicators(fields) {
|
|
4765
4813
|
if (fields.length === 0) {
|
|
4766
4814
|
return null;
|
|
4767
4815
|
}
|
|
4768
|
-
return (isOpen) => !isOpen ? /* @__PURE__ */
|
|
4816
|
+
return (isOpen) => !isOpen ? /* @__PURE__ */ React63.createElement(StylesInheritanceSectionIndicators, { fields }) : null;
|
|
4769
4817
|
}
|
|
4770
4818
|
|
|
4771
4819
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4772
|
-
var
|
|
4820
|
+
var React64 = __toESM(require("react"));
|
|
4773
4821
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
4774
|
-
var
|
|
4775
|
-
var OBJECT_FIT_LABEL = (0,
|
|
4822
|
+
var import_i18n41 = require("@wordpress/i18n");
|
|
4823
|
+
var OBJECT_FIT_LABEL = (0, import_i18n41.__)("Object fit", "elementor");
|
|
4776
4824
|
var positionOptions2 = [
|
|
4777
|
-
{ label: (0,
|
|
4778
|
-
{ label: (0,
|
|
4779
|
-
{ label: (0,
|
|
4780
|
-
{ label: (0,
|
|
4781
|
-
{ label: (0,
|
|
4825
|
+
{ label: (0, import_i18n41.__)("Fill", "elementor"), value: "fill" },
|
|
4826
|
+
{ label: (0, import_i18n41.__)("Cover", "elementor"), value: "cover" },
|
|
4827
|
+
{ label: (0, import_i18n41.__)("Contain", "elementor"), value: "contain" },
|
|
4828
|
+
{ label: (0, import_i18n41.__)("None", "elementor"), value: "none" },
|
|
4829
|
+
{ label: (0, import_i18n41.__)("Scale down", "elementor"), value: "scale-down" }
|
|
4782
4830
|
];
|
|
4783
4831
|
var ObjectFitField = () => {
|
|
4784
|
-
return /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React64.createElement(import_editor_controls35.SelectControl, { options: positionOptions2 })));
|
|
4785
4833
|
};
|
|
4786
4834
|
|
|
4787
4835
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
4788
|
-
var
|
|
4836
|
+
var React65 = __toESM(require("react"));
|
|
4789
4837
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
4790
|
-
var
|
|
4791
|
-
var
|
|
4792
|
-
var OVERFLOW_LABEL = (0,
|
|
4838
|
+
var import_icons19 = require("@elementor/icons");
|
|
4839
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
4840
|
+
var OVERFLOW_LABEL = (0, import_i18n42.__)("Overflow", "elementor");
|
|
4793
4841
|
var options7 = [
|
|
4794
4842
|
{
|
|
4795
4843
|
value: "visible",
|
|
4796
|
-
label: (0,
|
|
4797
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4844
|
+
label: (0, import_i18n42.__)("Visible", "elementor"),
|
|
4845
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.EyeIcon, { fontSize: size }),
|
|
4798
4846
|
showTooltip: true
|
|
4799
4847
|
},
|
|
4800
4848
|
{
|
|
4801
4849
|
value: "hidden",
|
|
4802
|
-
label: (0,
|
|
4803
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4850
|
+
label: (0, import_i18n42.__)("Hidden", "elementor"),
|
|
4851
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.EyeOffIcon, { fontSize: size }),
|
|
4804
4852
|
showTooltip: true
|
|
4805
4853
|
},
|
|
4806
4854
|
{
|
|
4807
4855
|
value: "auto",
|
|
4808
|
-
label: (0,
|
|
4809
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4856
|
+
label: (0, import_i18n42.__)("Auto", "elementor"),
|
|
4857
|
+
renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.LetterAIcon, { fontSize: size }),
|
|
4810
4858
|
showTooltip: true
|
|
4811
4859
|
}
|
|
4812
4860
|
];
|
|
4813
4861
|
var OverflowField = () => {
|
|
4814
|
-
return /* @__PURE__ */
|
|
4862
|
+
return /* @__PURE__ */ React65.createElement(StylesField, { bind: "overflow", propDisplayName: OVERFLOW_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: OVERFLOW_LABEL }, /* @__PURE__ */ React65.createElement(import_editor_controls36.ToggleControl, { options: options7 })));
|
|
4815
4863
|
};
|
|
4816
4864
|
|
|
4817
4865
|
// src/components/style-sections/size-section/size-section.tsx
|
|
@@ -4819,97 +4867,97 @@ var CssSizeProps = [
|
|
|
4819
4867
|
[
|
|
4820
4868
|
{
|
|
4821
4869
|
bind: "width",
|
|
4822
|
-
label: (0,
|
|
4870
|
+
label: (0, import_i18n43.__)("Width", "elementor")
|
|
4823
4871
|
},
|
|
4824
4872
|
{
|
|
4825
4873
|
bind: "height",
|
|
4826
|
-
label: (0,
|
|
4874
|
+
label: (0, import_i18n43.__)("Height", "elementor")
|
|
4827
4875
|
}
|
|
4828
4876
|
],
|
|
4829
4877
|
[
|
|
4830
4878
|
{
|
|
4831
4879
|
bind: "min-width",
|
|
4832
|
-
label: (0,
|
|
4880
|
+
label: (0, import_i18n43.__)("Min width", "elementor")
|
|
4833
4881
|
},
|
|
4834
4882
|
{
|
|
4835
4883
|
bind: "min-height",
|
|
4836
|
-
label: (0,
|
|
4884
|
+
label: (0, import_i18n43.__)("Min height", "elementor")
|
|
4837
4885
|
}
|
|
4838
4886
|
],
|
|
4839
4887
|
[
|
|
4840
4888
|
{
|
|
4841
4889
|
bind: "max-width",
|
|
4842
|
-
label: (0,
|
|
4890
|
+
label: (0, import_i18n43.__)("Max width", "elementor")
|
|
4843
4891
|
},
|
|
4844
4892
|
{
|
|
4845
4893
|
bind: "max-height",
|
|
4846
|
-
label: (0,
|
|
4894
|
+
label: (0, import_i18n43.__)("Max height", "elementor")
|
|
4847
4895
|
}
|
|
4848
4896
|
]
|
|
4849
4897
|
];
|
|
4850
|
-
var ASPECT_RATIO_LABEL = (0,
|
|
4898
|
+
var ASPECT_RATIO_LABEL = (0, import_i18n43.__)("Aspect Ratio", "elementor");
|
|
4851
4899
|
var SizeSection = () => {
|
|
4852
4900
|
const gridRowRefs = [(0, import_react31.useRef)(null), (0, import_react31.useRef)(null), (0, import_react31.useRef)(null)];
|
|
4853
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ React66.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React66.createElement(import_ui38.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React66.createElement(import_ui38.Grid, { 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(import_ui38.Stack, null, /* @__PURE__ */ React66.createElement(OverflowField, null)), /* @__PURE__ */ React66.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React66.createElement(import_ui38.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React66.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React66.createElement(import_editor_controls37.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React66.createElement(PanelDivider, null), /* @__PURE__ */ React66.createElement(ObjectFitField, null), /* @__PURE__ */ React66.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n43.__)("Object position", "elementor") }, /* @__PURE__ */ React66.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(import_editor_controls37.PositionControl, null))))));
|
|
4854
4902
|
};
|
|
4855
4903
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4856
|
-
return /* @__PURE__ */
|
|
4904
|
+
return /* @__PURE__ */ React66.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React66.createElement(import_ui38.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React66.createElement(import_ui38.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React66.createElement(ControlLabel, null, label)), /* @__PURE__ */ React66.createElement(import_ui38.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React66.createElement(import_editor_controls37.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
4857
4905
|
};
|
|
4858
4906
|
|
|
4859
4907
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4860
|
-
var
|
|
4908
|
+
var React67 = __toESM(require("react"));
|
|
4861
4909
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
4862
|
-
var
|
|
4863
|
-
var MARGIN_LABEL = (0,
|
|
4864
|
-
var PADDING_LABEL = (0,
|
|
4910
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
4911
|
+
var MARGIN_LABEL = (0, import_i18n44.__)("Margin", "elementor");
|
|
4912
|
+
var PADDING_LABEL = (0, import_i18n44.__)("Padding", "elementor");
|
|
4865
4913
|
var SpacingSection = () => {
|
|
4866
4914
|
const { isSiteRtl } = useDirection();
|
|
4867
|
-
return /* @__PURE__ */
|
|
4915
|
+
return /* @__PURE__ */ React67.createElement(SectionContent, null, /* @__PURE__ */ React67.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React67.createElement(
|
|
4868
4916
|
import_editor_controls38.LinkedDimensionsControl,
|
|
4869
4917
|
{
|
|
4870
4918
|
label: MARGIN_LABEL,
|
|
4871
4919
|
isSiteRtl,
|
|
4872
4920
|
min: -Number.MAX_SAFE_INTEGER
|
|
4873
4921
|
}
|
|
4874
|
-
)), /* @__PURE__ */
|
|
4922
|
+
)), /* @__PURE__ */ React67.createElement(PanelDivider, null), /* @__PURE__ */ React67.createElement(StylesField, { bind: "padding", propDisplayName: PADDING_LABEL }, /* @__PURE__ */ React67.createElement(import_editor_controls38.LinkedDimensionsControl, { label: PADDING_LABEL, isSiteRtl })));
|
|
4875
4923
|
};
|
|
4876
4924
|
|
|
4877
4925
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
4878
|
-
var
|
|
4926
|
+
var React84 = __toESM(require("react"));
|
|
4879
4927
|
|
|
4880
4928
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
4881
|
-
var
|
|
4929
|
+
var React68 = __toESM(require("react"));
|
|
4882
4930
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
4883
|
-
var
|
|
4884
|
-
var COLUMN_COUNT_LABEL = (0,
|
|
4931
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
4932
|
+
var COLUMN_COUNT_LABEL = (0, import_i18n45.__)("Columns", "elementor");
|
|
4885
4933
|
var ColumnCountField = () => {
|
|
4886
|
-
return /* @__PURE__ */
|
|
4934
|
+
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React68.createElement(import_editor_controls39.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
4887
4935
|
};
|
|
4888
4936
|
|
|
4889
4937
|
// src/components/style-sections/typography-section/column-gap-field.tsx
|
|
4890
|
-
var
|
|
4938
|
+
var React69 = __toESM(require("react"));
|
|
4891
4939
|
var import_react32 = require("react");
|
|
4892
4940
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
4893
|
-
var
|
|
4894
|
-
var COLUMN_GAP_LABEL = (0,
|
|
4941
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
4942
|
+
var COLUMN_GAP_LABEL = (0, import_i18n46.__)("Column gap", "elementor");
|
|
4895
4943
|
var ColumnGapField = () => {
|
|
4896
4944
|
const rowRef = (0, import_react32.useRef)(null);
|
|
4897
|
-
return /* @__PURE__ */
|
|
4945
|
+
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(import_editor_controls40.SizeControl, { anchorRef: rowRef })));
|
|
4898
4946
|
};
|
|
4899
4947
|
|
|
4900
4948
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4901
|
-
var
|
|
4949
|
+
var React70 = __toESM(require("react"));
|
|
4902
4950
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
4903
4951
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
4904
|
-
var
|
|
4905
|
-
var FONT_FAMILY_LABEL = (0,
|
|
4952
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
4953
|
+
var FONT_FAMILY_LABEL = (0, import_i18n47.__)("Font family", "elementor");
|
|
4906
4954
|
var FontFamilyField = () => {
|
|
4907
4955
|
const fontFamilies = (0, import_editor_controls41.useFontFamilies)();
|
|
4908
4956
|
const sectionWidth = (0, import_editor_ui7.useSectionWidth)();
|
|
4909
4957
|
if (fontFamilies.length === 0) {
|
|
4910
4958
|
return null;
|
|
4911
4959
|
}
|
|
4912
|
-
return /* @__PURE__ */
|
|
4960
|
+
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "font-family", propDisplayName: FONT_FAMILY_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: FONT_FAMILY_LABEL }, /* @__PURE__ */ React70.createElement(
|
|
4913
4961
|
import_editor_controls41.FontFamilyControl,
|
|
4914
4962
|
{
|
|
4915
4963
|
fontFamilies,
|
|
@@ -4920,198 +4968,198 @@ var FontFamilyField = () => {
|
|
|
4920
4968
|
};
|
|
4921
4969
|
|
|
4922
4970
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4923
|
-
var
|
|
4971
|
+
var React71 = __toESM(require("react"));
|
|
4924
4972
|
var import_react33 = require("react");
|
|
4925
4973
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
4926
|
-
var
|
|
4927
|
-
var FONT_SIZE_LABEL = (0,
|
|
4974
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
4975
|
+
var FONT_SIZE_LABEL = (0, import_i18n48.__)("Font size", "elementor");
|
|
4928
4976
|
var FontSizeField = () => {
|
|
4929
4977
|
const rowRef = (0, import_react33.useRef)(null);
|
|
4930
|
-
return /* @__PURE__ */
|
|
4978
|
+
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(import_editor_controls42.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
4931
4979
|
};
|
|
4932
4980
|
|
|
4933
4981
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
4934
|
-
var
|
|
4982
|
+
var React72 = __toESM(require("react"));
|
|
4935
4983
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
4936
|
-
var
|
|
4937
|
-
var
|
|
4938
|
-
var FONT_STYLE_LABEL = (0,
|
|
4984
|
+
var import_icons20 = require("@elementor/icons");
|
|
4985
|
+
var import_i18n49 = require("@wordpress/i18n");
|
|
4986
|
+
var FONT_STYLE_LABEL = (0, import_i18n49.__)("Font style", "elementor");
|
|
4939
4987
|
var options8 = [
|
|
4940
4988
|
{
|
|
4941
4989
|
value: "normal",
|
|
4942
|
-
label: (0,
|
|
4943
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4990
|
+
label: (0, import_i18n49.__)("Normal", "elementor"),
|
|
4991
|
+
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons20.MinusIcon, { fontSize: size }),
|
|
4944
4992
|
showTooltip: true
|
|
4945
4993
|
},
|
|
4946
4994
|
{
|
|
4947
4995
|
value: "italic",
|
|
4948
|
-
label: (0,
|
|
4949
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
4996
|
+
label: (0, import_i18n49.__)("Italic", "elementor"),
|
|
4997
|
+
renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons20.ItalicIcon, { fontSize: size }),
|
|
4950
4998
|
showTooltip: true
|
|
4951
4999
|
}
|
|
4952
5000
|
];
|
|
4953
5001
|
var FontStyleField = () => {
|
|
4954
|
-
return /* @__PURE__ */
|
|
5002
|
+
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "font-style", propDisplayName: FONT_STYLE_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: FONT_STYLE_LABEL }, /* @__PURE__ */ React72.createElement(import_editor_controls43.ToggleControl, { options: options8 })));
|
|
4955
5003
|
};
|
|
4956
5004
|
|
|
4957
5005
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4958
|
-
var
|
|
5006
|
+
var React73 = __toESM(require("react"));
|
|
4959
5007
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
4960
|
-
var
|
|
4961
|
-
var FONT_WEIGHT_LABEL = (0,
|
|
5008
|
+
var import_i18n50 = require("@wordpress/i18n");
|
|
5009
|
+
var FONT_WEIGHT_LABEL = (0, import_i18n50.__)("Font weight", "elementor");
|
|
4962
5010
|
var fontWeightOptions = [
|
|
4963
|
-
{ value: "100", label: (0,
|
|
4964
|
-
{ value: "200", label: (0,
|
|
4965
|
-
{ value: "300", label: (0,
|
|
4966
|
-
{ value: "400", label: (0,
|
|
4967
|
-
{ value: "500", label: (0,
|
|
4968
|
-
{ value: "600", label: (0,
|
|
4969
|
-
{ value: "700", label: (0,
|
|
4970
|
-
{ value: "800", label: (0,
|
|
4971
|
-
{ value: "900", label: (0,
|
|
5011
|
+
{ value: "100", label: (0, import_i18n50.__)("100 - Thin", "elementor") },
|
|
5012
|
+
{ value: "200", label: (0, import_i18n50.__)("200 - Extra light", "elementor") },
|
|
5013
|
+
{ value: "300", label: (0, import_i18n50.__)("300 - Light", "elementor") },
|
|
5014
|
+
{ value: "400", label: (0, import_i18n50.__)("400 - Normal", "elementor") },
|
|
5015
|
+
{ value: "500", label: (0, import_i18n50.__)("500 - Medium", "elementor") },
|
|
5016
|
+
{ value: "600", label: (0, import_i18n50.__)("600 - Semi bold", "elementor") },
|
|
5017
|
+
{ value: "700", label: (0, import_i18n50.__)("700 - Bold", "elementor") },
|
|
5018
|
+
{ value: "800", label: (0, import_i18n50.__)("800 - Extra bold", "elementor") },
|
|
5019
|
+
{ value: "900", label: (0, import_i18n50.__)("900 - Black", "elementor") }
|
|
4972
5020
|
];
|
|
4973
5021
|
var FontWeightField = () => {
|
|
4974
|
-
return /* @__PURE__ */
|
|
5022
|
+
return /* @__PURE__ */ React73.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React73.createElement(import_editor_controls44.SelectControl, { options: fontWeightOptions })));
|
|
4975
5023
|
};
|
|
4976
5024
|
|
|
4977
5025
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4978
|
-
var
|
|
5026
|
+
var React74 = __toESM(require("react"));
|
|
4979
5027
|
var import_react34 = require("react");
|
|
4980
5028
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
4981
|
-
var
|
|
4982
|
-
var LETTER_SPACING_LABEL = (0,
|
|
5029
|
+
var import_i18n51 = require("@wordpress/i18n");
|
|
5030
|
+
var LETTER_SPACING_LABEL = (0, import_i18n51.__)("Letter spacing", "elementor");
|
|
4983
5031
|
var LetterSpacingField = () => {
|
|
4984
5032
|
const rowRef = (0, import_react34.useRef)(null);
|
|
4985
|
-
return /* @__PURE__ */
|
|
5033
|
+
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(import_editor_controls45.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4986
5034
|
};
|
|
4987
5035
|
|
|
4988
5036
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4989
|
-
var
|
|
5037
|
+
var React75 = __toESM(require("react"));
|
|
4990
5038
|
var import_react35 = require("react");
|
|
4991
5039
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
4992
|
-
var
|
|
4993
|
-
var LINE_HEIGHT_LABEL = (0,
|
|
5040
|
+
var import_i18n52 = require("@wordpress/i18n");
|
|
5041
|
+
var LINE_HEIGHT_LABEL = (0, import_i18n52.__)("Line height", "elementor");
|
|
4994
5042
|
var LineHeightField = () => {
|
|
4995
5043
|
const rowRef = (0, import_react35.useRef)(null);
|
|
4996
|
-
return /* @__PURE__ */
|
|
5044
|
+
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(import_editor_controls46.SizeControl, { anchorRef: rowRef })));
|
|
4997
5045
|
};
|
|
4998
5046
|
|
|
4999
5047
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
5000
|
-
var
|
|
5048
|
+
var React76 = __toESM(require("react"));
|
|
5001
5049
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
5002
|
-
var
|
|
5003
|
-
var
|
|
5004
|
-
var
|
|
5005
|
-
var TEXT_ALIGNMENT_LABEL = (0,
|
|
5006
|
-
var AlignStartIcon = (0,
|
|
5007
|
-
var AlignEndIcon = (0,
|
|
5050
|
+
var import_icons21 = require("@elementor/icons");
|
|
5051
|
+
var import_ui39 = require("@elementor/ui");
|
|
5052
|
+
var import_i18n53 = require("@wordpress/i18n");
|
|
5053
|
+
var TEXT_ALIGNMENT_LABEL = (0, import_i18n53.__)("Text align", "elementor");
|
|
5054
|
+
var AlignStartIcon = (0, import_ui39.withDirection)(import_icons21.AlignLeftIcon);
|
|
5055
|
+
var AlignEndIcon = (0, import_ui39.withDirection)(import_icons21.AlignRightIcon);
|
|
5008
5056
|
var options9 = [
|
|
5009
5057
|
{
|
|
5010
5058
|
value: "start",
|
|
5011
|
-
label: (0,
|
|
5012
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5059
|
+
label: (0, import_i18n53.__)("Start", "elementor"),
|
|
5060
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(AlignStartIcon, { fontSize: size }),
|
|
5013
5061
|
showTooltip: true
|
|
5014
5062
|
},
|
|
5015
5063
|
{
|
|
5016
5064
|
value: "center",
|
|
5017
|
-
label: (0,
|
|
5018
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5065
|
+
label: (0, import_i18n53.__)("Center", "elementor"),
|
|
5066
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(import_icons21.AlignCenterIcon, { fontSize: size }),
|
|
5019
5067
|
showTooltip: true
|
|
5020
5068
|
},
|
|
5021
5069
|
{
|
|
5022
5070
|
value: "end",
|
|
5023
|
-
label: (0,
|
|
5024
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5071
|
+
label: (0, import_i18n53.__)("End", "elementor"),
|
|
5072
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(AlignEndIcon, { fontSize: size }),
|
|
5025
5073
|
showTooltip: true
|
|
5026
5074
|
},
|
|
5027
5075
|
{
|
|
5028
5076
|
value: "justify",
|
|
5029
|
-
label: (0,
|
|
5030
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5077
|
+
label: (0, import_i18n53.__)("Justify", "elementor"),
|
|
5078
|
+
renderContent: ({ size }) => /* @__PURE__ */ React76.createElement(import_icons21.AlignJustifiedIcon, { fontSize: size }),
|
|
5031
5079
|
showTooltip: true
|
|
5032
5080
|
}
|
|
5033
5081
|
];
|
|
5034
5082
|
var TextAlignmentField = () => {
|
|
5035
|
-
return /* @__PURE__ */
|
|
5083
|
+
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(import_editor_controls47.ToggleControl, { options: options9 }))));
|
|
5036
5084
|
};
|
|
5037
5085
|
|
|
5038
5086
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5039
|
-
var
|
|
5087
|
+
var React77 = __toESM(require("react"));
|
|
5040
5088
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
5041
|
-
var
|
|
5042
|
-
var TEXT_COLOR_LABEL = (0,
|
|
5089
|
+
var import_i18n54 = require("@wordpress/i18n");
|
|
5090
|
+
var TEXT_COLOR_LABEL = (0, import_i18n54.__)("Text color", "elementor");
|
|
5043
5091
|
var TextColorField = () => {
|
|
5044
|
-
return /* @__PURE__ */
|
|
5092
|
+
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React77.createElement(import_editor_controls48.ColorControl, { id: "text-color-control" })));
|
|
5045
5093
|
};
|
|
5046
5094
|
|
|
5047
5095
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
5048
|
-
var
|
|
5096
|
+
var React78 = __toESM(require("react"));
|
|
5049
5097
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
5050
|
-
var
|
|
5051
|
-
var
|
|
5052
|
-
var TEXT_DECORATION_LABEL = (0,
|
|
5098
|
+
var import_icons22 = require("@elementor/icons");
|
|
5099
|
+
var import_i18n55 = require("@wordpress/i18n");
|
|
5100
|
+
var TEXT_DECORATION_LABEL = (0, import_i18n55.__)("Line decoration", "elementor");
|
|
5053
5101
|
var options10 = [
|
|
5054
5102
|
{
|
|
5055
5103
|
value: "none",
|
|
5056
|
-
label: (0,
|
|
5057
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5104
|
+
label: (0, import_i18n55.__)("None", "elementor"),
|
|
5105
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons22.MinusIcon, { fontSize: size }),
|
|
5058
5106
|
showTooltip: true,
|
|
5059
5107
|
exclusive: true
|
|
5060
5108
|
},
|
|
5061
5109
|
{
|
|
5062
5110
|
value: "underline",
|
|
5063
|
-
label: (0,
|
|
5064
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5111
|
+
label: (0, import_i18n55.__)("Underline", "elementor"),
|
|
5112
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons22.UnderlineIcon, { fontSize: size }),
|
|
5065
5113
|
showTooltip: true
|
|
5066
5114
|
},
|
|
5067
5115
|
{
|
|
5068
5116
|
value: "line-through",
|
|
5069
|
-
label: (0,
|
|
5070
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5117
|
+
label: (0, import_i18n55.__)("Line-through", "elementor"),
|
|
5118
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons22.StrikethroughIcon, { fontSize: size }),
|
|
5071
5119
|
showTooltip: true
|
|
5072
5120
|
},
|
|
5073
5121
|
{
|
|
5074
5122
|
value: "overline",
|
|
5075
|
-
label: (0,
|
|
5076
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5123
|
+
label: (0, import_i18n55.__)("Overline", "elementor"),
|
|
5124
|
+
renderContent: ({ size }) => /* @__PURE__ */ React78.createElement(import_icons22.OverlineIcon, { fontSize: size }),
|
|
5077
5125
|
showTooltip: true
|
|
5078
5126
|
}
|
|
5079
5127
|
];
|
|
5080
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
5128
|
+
var TextDecorationField = () => /* @__PURE__ */ React78.createElement(StylesField, { bind: "text-decoration", propDisplayName: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: TEXT_DECORATION_LABEL }, /* @__PURE__ */ React78.createElement(import_editor_controls49.ToggleControl, { options: options10, exclusive: false })));
|
|
5081
5129
|
|
|
5082
5130
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
5083
|
-
var
|
|
5131
|
+
var React79 = __toESM(require("react"));
|
|
5084
5132
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
5085
|
-
var
|
|
5086
|
-
var
|
|
5087
|
-
var TEXT_DIRECTION_LABEL = (0,
|
|
5133
|
+
var import_icons23 = require("@elementor/icons");
|
|
5134
|
+
var import_i18n56 = require("@wordpress/i18n");
|
|
5135
|
+
var TEXT_DIRECTION_LABEL = (0, import_i18n56.__)("Direction", "elementor");
|
|
5088
5136
|
var options11 = [
|
|
5089
5137
|
{
|
|
5090
5138
|
value: "ltr",
|
|
5091
|
-
label: (0,
|
|
5092
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5139
|
+
label: (0, import_i18n56.__)("Left to right", "elementor"),
|
|
5140
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(import_icons23.TextDirectionLtrIcon, { fontSize: size }),
|
|
5093
5141
|
showTooltip: true
|
|
5094
5142
|
},
|
|
5095
5143
|
{
|
|
5096
5144
|
value: "rtl",
|
|
5097
|
-
label: (0,
|
|
5098
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5145
|
+
label: (0, import_i18n56.__)("Right to left", "elementor"),
|
|
5146
|
+
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(import_icons23.TextDirectionRtlIcon, { fontSize: size }),
|
|
5099
5147
|
showTooltip: true
|
|
5100
5148
|
}
|
|
5101
5149
|
];
|
|
5102
5150
|
var TextDirectionField = () => {
|
|
5103
|
-
return /* @__PURE__ */
|
|
5151
|
+
return /* @__PURE__ */ React79.createElement(StylesField, { bind: "direction", propDisplayName: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: TEXT_DIRECTION_LABEL }, /* @__PURE__ */ React79.createElement(import_editor_controls50.ToggleControl, { options: options11 })));
|
|
5104
5152
|
};
|
|
5105
5153
|
|
|
5106
5154
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5107
|
-
var
|
|
5155
|
+
var React81 = __toESM(require("react"));
|
|
5108
5156
|
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
5109
|
-
var
|
|
5157
|
+
var import_i18n57 = require("@wordpress/i18n");
|
|
5110
5158
|
|
|
5111
5159
|
// src/components/add-or-remove-content.tsx
|
|
5112
|
-
var
|
|
5113
|
-
var
|
|
5114
|
-
var
|
|
5160
|
+
var React80 = __toESM(require("react"));
|
|
5161
|
+
var import_icons24 = require("@elementor/icons");
|
|
5162
|
+
var import_ui40 = require("@elementor/ui");
|
|
5115
5163
|
var SIZE = "tiny";
|
|
5116
5164
|
var AddOrRemoveContent = ({
|
|
5117
5165
|
isAdded,
|
|
@@ -5121,8 +5169,8 @@ var AddOrRemoveContent = ({
|
|
|
5121
5169
|
disabled,
|
|
5122
5170
|
renderLabel
|
|
5123
5171
|
}) => {
|
|
5124
|
-
return /* @__PURE__ */
|
|
5125
|
-
|
|
5172
|
+
return /* @__PURE__ */ React80.createElement(SectionContent, null, /* @__PURE__ */ React80.createElement(
|
|
5173
|
+
import_ui40.Stack,
|
|
5126
5174
|
{
|
|
5127
5175
|
direction: "row",
|
|
5128
5176
|
sx: {
|
|
@@ -5132,8 +5180,8 @@ var AddOrRemoveContent = ({
|
|
|
5132
5180
|
}
|
|
5133
5181
|
},
|
|
5134
5182
|
renderLabel(),
|
|
5135
|
-
isAdded ? /* @__PURE__ */
|
|
5136
|
-
), /* @__PURE__ */
|
|
5183
|
+
isAdded ? /* @__PURE__ */ React80.createElement(import_ui40.IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React80.createElement(import_icons24.MinusIcon, { fontSize: SIZE })) : /* @__PURE__ */ React80.createElement(import_ui40.IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React80.createElement(import_icons24.PlusIcon, { fontSize: SIZE }))
|
|
5184
|
+
), /* @__PURE__ */ React80.createElement(import_ui40.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React80.createElement(SectionContent, null, children)));
|
|
5137
5185
|
};
|
|
5138
5186
|
|
|
5139
5187
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5153,7 +5201,7 @@ var initTextStroke = {
|
|
|
5153
5201
|
}
|
|
5154
5202
|
}
|
|
5155
5203
|
};
|
|
5156
|
-
var TEXT_STROKE_LABEL = (0,
|
|
5204
|
+
var TEXT_STROKE_LABEL = (0, import_i18n57.__)("Text stroke", "elementor");
|
|
5157
5205
|
var TextStrokeField = () => {
|
|
5158
5206
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
5159
5207
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -5165,67 +5213,67 @@ var TextStrokeField = () => {
|
|
|
5165
5213
|
setValue(null);
|
|
5166
5214
|
};
|
|
5167
5215
|
const hasTextStroke = Boolean(value);
|
|
5168
|
-
return /* @__PURE__ */
|
|
5216
|
+
return /* @__PURE__ */ React81.createElement(StylesField, { bind: "stroke", propDisplayName: TEXT_STROKE_LABEL }, /* @__PURE__ */ React81.createElement(
|
|
5169
5217
|
AddOrRemoveContent,
|
|
5170
5218
|
{
|
|
5171
5219
|
isAdded: hasTextStroke,
|
|
5172
5220
|
onAdd: addTextStroke,
|
|
5173
5221
|
onRemove: removeTextStroke,
|
|
5174
5222
|
disabled: !canEdit,
|
|
5175
|
-
renderLabel: () => /* @__PURE__ */
|
|
5223
|
+
renderLabel: () => /* @__PURE__ */ React81.createElement(ControlLabel, null, TEXT_STROKE_LABEL)
|
|
5176
5224
|
},
|
|
5177
|
-
/* @__PURE__ */
|
|
5225
|
+
/* @__PURE__ */ React81.createElement(import_editor_controls51.StrokeControl, null)
|
|
5178
5226
|
));
|
|
5179
5227
|
};
|
|
5180
5228
|
|
|
5181
5229
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
5182
|
-
var
|
|
5230
|
+
var React82 = __toESM(require("react"));
|
|
5183
5231
|
var import_editor_controls52 = require("@elementor/editor-controls");
|
|
5184
|
-
var
|
|
5185
|
-
var
|
|
5186
|
-
var TEXT_TRANSFORM_LABEL = (0,
|
|
5232
|
+
var import_icons25 = require("@elementor/icons");
|
|
5233
|
+
var import_i18n58 = require("@wordpress/i18n");
|
|
5234
|
+
var TEXT_TRANSFORM_LABEL = (0, import_i18n58.__)("Text transform", "elementor");
|
|
5187
5235
|
var options12 = [
|
|
5188
5236
|
{
|
|
5189
5237
|
value: "none",
|
|
5190
|
-
label: (0,
|
|
5191
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5238
|
+
label: (0, import_i18n58.__)("None", "elementor"),
|
|
5239
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons25.MinusIcon, { fontSize: size }),
|
|
5192
5240
|
showTooltip: true
|
|
5193
5241
|
},
|
|
5194
5242
|
{
|
|
5195
5243
|
value: "capitalize",
|
|
5196
|
-
label: (0,
|
|
5197
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5244
|
+
label: (0, import_i18n58.__)("Capitalize", "elementor"),
|
|
5245
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons25.LetterCaseIcon, { fontSize: size }),
|
|
5198
5246
|
showTooltip: true
|
|
5199
5247
|
},
|
|
5200
5248
|
{
|
|
5201
5249
|
value: "uppercase",
|
|
5202
|
-
label: (0,
|
|
5203
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5250
|
+
label: (0, import_i18n58.__)("Uppercase", "elementor"),
|
|
5251
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons25.LetterCaseUpperIcon, { fontSize: size }),
|
|
5204
5252
|
showTooltip: true
|
|
5205
5253
|
},
|
|
5206
5254
|
{
|
|
5207
5255
|
value: "lowercase",
|
|
5208
|
-
label: (0,
|
|
5209
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
5256
|
+
label: (0, import_i18n58.__)("Lowercase", "elementor"),
|
|
5257
|
+
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons25.LetterCaseLowerIcon, { fontSize: size }),
|
|
5210
5258
|
showTooltip: true
|
|
5211
5259
|
}
|
|
5212
5260
|
];
|
|
5213
|
-
var TransformField = () => /* @__PURE__ */
|
|
5261
|
+
var TransformField = () => /* @__PURE__ */ React82.createElement(StylesField, { bind: "text-transform", propDisplayName: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React82.createElement(StylesFieldLayout, { label: TEXT_TRANSFORM_LABEL }, /* @__PURE__ */ React82.createElement(import_editor_controls52.ToggleControl, { options: options12 })));
|
|
5214
5262
|
|
|
5215
5263
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
5216
|
-
var
|
|
5264
|
+
var React83 = __toESM(require("react"));
|
|
5217
5265
|
var import_react36 = require("react");
|
|
5218
5266
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5219
|
-
var
|
|
5220
|
-
var WORD_SPACING_LABEL = (0,
|
|
5267
|
+
var import_i18n59 = require("@wordpress/i18n");
|
|
5268
|
+
var WORD_SPACING_LABEL = (0, import_i18n59.__)("Word spacing", "elementor");
|
|
5221
5269
|
var WordSpacingField = () => {
|
|
5222
5270
|
const rowRef = (0, import_react36.useRef)(null);
|
|
5223
|
-
return /* @__PURE__ */
|
|
5271
|
+
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(import_editor_controls53.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
5224
5272
|
};
|
|
5225
5273
|
|
|
5226
5274
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
5227
5275
|
var TypographySection = () => {
|
|
5228
|
-
return /* @__PURE__ */
|
|
5276
|
+
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(
|
|
5229
5277
|
StyleTabCollapsibleContent,
|
|
5230
5278
|
{
|
|
5231
5279
|
fields: [
|
|
@@ -5240,18 +5288,18 @@ var TypographySection = () => {
|
|
|
5240
5288
|
"stroke"
|
|
5241
5289
|
]
|
|
5242
5290
|
},
|
|
5243
|
-
/* @__PURE__ */
|
|
5291
|
+
/* @__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))
|
|
5244
5292
|
));
|
|
5245
5293
|
};
|
|
5246
5294
|
|
|
5247
5295
|
// src/components/style-tab-section.tsx
|
|
5248
|
-
var
|
|
5296
|
+
var React85 = __toESM(require("react"));
|
|
5249
5297
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
5250
5298
|
const { component, name, title, action } = section;
|
|
5251
5299
|
const tabDefaults = useDefaultPanelSettings();
|
|
5252
|
-
const SectionComponent = component || (() => /* @__PURE__ */
|
|
5300
|
+
const SectionComponent = component || (() => /* @__PURE__ */ React85.createElement(React85.Fragment, null));
|
|
5253
5301
|
const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
|
|
5254
|
-
return /* @__PURE__ */
|
|
5302
|
+
return /* @__PURE__ */ React85.createElement(
|
|
5255
5303
|
Section,
|
|
5256
5304
|
{
|
|
5257
5305
|
title,
|
|
@@ -5260,7 +5308,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5260
5308
|
unmountOnExit,
|
|
5261
5309
|
action
|
|
5262
5310
|
},
|
|
5263
|
-
/* @__PURE__ */
|
|
5311
|
+
/* @__PURE__ */ React85.createElement(SectionComponent, null)
|
|
5264
5312
|
);
|
|
5265
5313
|
};
|
|
5266
5314
|
|
|
@@ -5282,7 +5330,7 @@ var StyleTab = () => {
|
|
|
5282
5330
|
if (!currentClassesProp) {
|
|
5283
5331
|
return null;
|
|
5284
5332
|
}
|
|
5285
|
-
return /* @__PURE__ */
|
|
5333
|
+
return /* @__PURE__ */ React86.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React86.createElement(
|
|
5286
5334
|
StyleProvider,
|
|
5287
5335
|
{
|
|
5288
5336
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5293,13 +5341,13 @@ var StyleTab = () => {
|
|
|
5293
5341
|
},
|
|
5294
5342
|
setMetaState: setActiveStyleState
|
|
5295
5343
|
},
|
|
5296
|
-
/* @__PURE__ */
|
|
5344
|
+
/* @__PURE__ */ React86.createElement(import_session8.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React86.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React86.createElement(ClassesHeader, null, /* @__PURE__ */ React86.createElement(CssClassSelector, null), /* @__PURE__ */ React86.createElement(import_ui41.Divider, null)), /* @__PURE__ */ React86.createElement(SectionsList, null, /* @__PURE__ */ React86.createElement(
|
|
5297
5345
|
StyleTabSection,
|
|
5298
5346
|
{
|
|
5299
5347
|
section: {
|
|
5300
5348
|
component: LayoutSection,
|
|
5301
5349
|
name: "Layout",
|
|
5302
|
-
title: (0,
|
|
5350
|
+
title: (0, import_i18n60.__)("Layout", "elementor")
|
|
5303
5351
|
},
|
|
5304
5352
|
fields: [
|
|
5305
5353
|
"display",
|
|
@@ -5315,23 +5363,23 @@ var StyleTab = () => {
|
|
|
5315
5363
|
"grid-row"
|
|
5316
5364
|
]
|
|
5317
5365
|
}
|
|
5318
|
-
), /* @__PURE__ */
|
|
5366
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5319
5367
|
StyleTabSection,
|
|
5320
5368
|
{
|
|
5321
5369
|
section: {
|
|
5322
5370
|
component: SpacingSection,
|
|
5323
5371
|
name: "Spacing",
|
|
5324
|
-
title: (0,
|
|
5372
|
+
title: (0, import_i18n60.__)("Spacing", "elementor")
|
|
5325
5373
|
},
|
|
5326
5374
|
fields: ["margin", "padding"]
|
|
5327
5375
|
}
|
|
5328
|
-
), /* @__PURE__ */
|
|
5376
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5329
5377
|
StyleTabSection,
|
|
5330
5378
|
{
|
|
5331
5379
|
section: {
|
|
5332
5380
|
component: SizeSection,
|
|
5333
5381
|
name: "Size",
|
|
5334
|
-
title: (0,
|
|
5382
|
+
title: (0, import_i18n60.__)("Size", "elementor")
|
|
5335
5383
|
},
|
|
5336
5384
|
fields: [
|
|
5337
5385
|
"width",
|
|
@@ -5345,23 +5393,23 @@ var StyleTab = () => {
|
|
|
5345
5393
|
"object-fit"
|
|
5346
5394
|
]
|
|
5347
5395
|
}
|
|
5348
|
-
), /* @__PURE__ */
|
|
5396
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5349
5397
|
StyleTabSection,
|
|
5350
5398
|
{
|
|
5351
5399
|
section: {
|
|
5352
5400
|
component: PositionSection,
|
|
5353
5401
|
name: "Position",
|
|
5354
|
-
title: (0,
|
|
5402
|
+
title: (0, import_i18n60.__)("Position", "elementor")
|
|
5355
5403
|
},
|
|
5356
5404
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5357
5405
|
}
|
|
5358
|
-
), /* @__PURE__ */
|
|
5406
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5359
5407
|
StyleTabSection,
|
|
5360
5408
|
{
|
|
5361
5409
|
section: {
|
|
5362
5410
|
component: TypographySection,
|
|
5363
5411
|
name: "Typography",
|
|
5364
|
-
title: (0,
|
|
5412
|
+
title: (0, import_i18n60.__)("Typography", "elementor")
|
|
5365
5413
|
},
|
|
5366
5414
|
fields: [
|
|
5367
5415
|
"font-family",
|
|
@@ -5380,33 +5428,33 @@ var StyleTab = () => {
|
|
|
5380
5428
|
"stroke"
|
|
5381
5429
|
]
|
|
5382
5430
|
}
|
|
5383
|
-
), /* @__PURE__ */
|
|
5431
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5384
5432
|
StyleTabSection,
|
|
5385
5433
|
{
|
|
5386
5434
|
section: {
|
|
5387
5435
|
component: BackgroundSection,
|
|
5388
5436
|
name: "Background",
|
|
5389
|
-
title: (0,
|
|
5437
|
+
title: (0, import_i18n60.__)("Background", "elementor")
|
|
5390
5438
|
},
|
|
5391
5439
|
fields: ["background"]
|
|
5392
5440
|
}
|
|
5393
|
-
), /* @__PURE__ */
|
|
5441
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5394
5442
|
StyleTabSection,
|
|
5395
5443
|
{
|
|
5396
5444
|
section: {
|
|
5397
5445
|
component: BorderSection,
|
|
5398
5446
|
name: "Border",
|
|
5399
|
-
title: (0,
|
|
5447
|
+
title: (0, import_i18n60.__)("Border", "elementor")
|
|
5400
5448
|
},
|
|
5401
5449
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5402
5450
|
}
|
|
5403
|
-
), /* @__PURE__ */
|
|
5451
|
+
), /* @__PURE__ */ React86.createElement(
|
|
5404
5452
|
StyleTabSection,
|
|
5405
5453
|
{
|
|
5406
5454
|
section: {
|
|
5407
5455
|
component: EffectsSection,
|
|
5408
5456
|
name: "Effects",
|
|
5409
|
-
title: (0,
|
|
5457
|
+
title: (0, import_i18n60.__)("Effects", "elementor")
|
|
5410
5458
|
},
|
|
5411
5459
|
fields: [
|
|
5412
5460
|
"mix-blend-mode",
|
|
@@ -5419,12 +5467,12 @@ var StyleTab = () => {
|
|
|
5419
5467
|
"transition"
|
|
5420
5468
|
]
|
|
5421
5469
|
}
|
|
5422
|
-
), /* @__PURE__ */
|
|
5470
|
+
), /* @__PURE__ */ React86.createElement(StyleTabSlot, null)), /* @__PURE__ */ React86.createElement(import_ui41.Box, { sx: { height: "150px" } })))
|
|
5423
5471
|
));
|
|
5424
5472
|
};
|
|
5425
5473
|
function ClassesHeader({ children }) {
|
|
5426
5474
|
const scrollDirection = useScrollDirection();
|
|
5427
|
-
return /* @__PURE__ */
|
|
5475
|
+
return /* @__PURE__ */ React86.createElement(import_ui41.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5428
5476
|
}
|
|
5429
5477
|
function useCurrentClassesProp() {
|
|
5430
5478
|
const { elementType } = useElement();
|
|
@@ -5443,7 +5491,7 @@ var EditingPanelTabs = () => {
|
|
|
5443
5491
|
return (
|
|
5444
5492
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5445
5493
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5446
|
-
/* @__PURE__ */
|
|
5494
|
+
/* @__PURE__ */ React87.createElement(import_react38.Fragment, { key: element.id }, /* @__PURE__ */ React87.createElement(PanelTabContent, null))
|
|
5447
5495
|
);
|
|
5448
5496
|
};
|
|
5449
5497
|
var PanelTabContent = () => {
|
|
@@ -5454,9 +5502,9 @@ var PanelTabContent = () => {
|
|
|
5454
5502
|
const isPromotedElement = !!(0, import_editor_elements12.getWidgetsCache)()?.[element.type]?.meta?.is_pro_promotion;
|
|
5455
5503
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5456
5504
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5457
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
5458
|
-
return /* @__PURE__ */
|
|
5459
|
-
|
|
5505
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui42.useTabs)(currentTab);
|
|
5506
|
+
return /* @__PURE__ */ React87.createElement(ScrollProvider, null, /* @__PURE__ */ React87.createElement(import_ui42.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React87.createElement(import_ui42.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React87.createElement(
|
|
5507
|
+
import_ui42.Tabs,
|
|
5460
5508
|
{
|
|
5461
5509
|
variant: "fullWidth",
|
|
5462
5510
|
size: "small",
|
|
@@ -5467,10 +5515,10 @@ var PanelTabContent = () => {
|
|
|
5467
5515
|
setCurrentTab(newValue);
|
|
5468
5516
|
}
|
|
5469
5517
|
},
|
|
5470
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5471
|
-
/* @__PURE__ */
|
|
5472
|
-
isInteractionsActive && /* @__PURE__ */
|
|
5473
|
-
), /* @__PURE__ */
|
|
5518
|
+
!isPromotedElement && /* @__PURE__ */ React87.createElement(import_ui42.Tab, { label: (0, import_i18n61.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
5519
|
+
/* @__PURE__ */ React87.createElement(import_ui42.Tab, { label: (0, import_i18n61.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
5520
|
+
isInteractionsActive && /* @__PURE__ */ React87.createElement(import_ui42.Tab, { label: (0, import_i18n61.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5521
|
+
), /* @__PURE__ */ React87.createElement(import_ui42.Divider, null)), !isPromotedElement && /* @__PURE__ */ React87.createElement(import_ui42.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React87.createElement(SettingsTab, null)), /* @__PURE__ */ React87.createElement(import_ui42.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React87.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React87.createElement(import_ui42.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React87.createElement(InteractionsTab, null))));
|
|
5474
5522
|
};
|
|
5475
5523
|
|
|
5476
5524
|
// src/components/editing-panel.tsx
|
|
@@ -5483,13 +5531,13 @@ var EditingPanel = () => {
|
|
|
5483
5531
|
if (!element || !elementType) {
|
|
5484
5532
|
return null;
|
|
5485
5533
|
}
|
|
5486
|
-
const panelTitle = (0,
|
|
5534
|
+
const panelTitle = (0, import_i18n62.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5487
5535
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5488
|
-
let panelContent = /* @__PURE__ */
|
|
5536
|
+
let panelContent = /* @__PURE__ */ React88.createElement(React88.Fragment, null, /* @__PURE__ */ React88.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React88.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React88.createElement(import_icons26.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React88.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React88.createElement(EditingPanelTabs, null)));
|
|
5489
5537
|
if (ReplacementComponent) {
|
|
5490
|
-
panelContent = /* @__PURE__ */
|
|
5538
|
+
panelContent = /* @__PURE__ */ React88.createElement(ReplacementComponent, null);
|
|
5491
5539
|
}
|
|
5492
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ React88.createElement(import_ui43.ErrorBoundary, { fallback: /* @__PURE__ */ React88.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React88.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React88.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React88.createElement(import_editor_controls54.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React88.createElement(import_editor_controls54.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React88.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React88.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React88.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5493
5541
|
};
|
|
5494
5542
|
|
|
5495
5543
|
// src/init.ts
|
|
@@ -5541,21 +5589,21 @@ var EditingPanelHooks = () => {
|
|
|
5541
5589
|
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
5542
5590
|
|
|
5543
5591
|
// src/components/promotions/custom-css.tsx
|
|
5544
|
-
var
|
|
5592
|
+
var React89 = __toESM(require("react"));
|
|
5545
5593
|
var import_react40 = require("react");
|
|
5546
5594
|
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
5547
|
-
var
|
|
5595
|
+
var import_i18n63 = require("@wordpress/i18n");
|
|
5548
5596
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5549
5597
|
var CustomCssSection = () => {
|
|
5550
5598
|
const triggerRef = (0, import_react40.useRef)(null);
|
|
5551
|
-
return /* @__PURE__ */
|
|
5599
|
+
return /* @__PURE__ */ React89.createElement(
|
|
5552
5600
|
StyleTabSection,
|
|
5553
5601
|
{
|
|
5554
5602
|
section: {
|
|
5555
5603
|
name: "Custom CSS",
|
|
5556
|
-
title: (0,
|
|
5604
|
+
title: (0, import_i18n63.__)("Custom CSS", "elementor"),
|
|
5557
5605
|
action: {
|
|
5558
|
-
component: /* @__PURE__ */
|
|
5606
|
+
component: /* @__PURE__ */ React89.createElement(import_editor_controls55.PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5559
5607
|
onClick: () => triggerRef.current?.toggle()
|
|
5560
5608
|
}
|
|
5561
5609
|
}
|
|
@@ -5577,13 +5625,13 @@ var init = () => {
|
|
|
5577
5625
|
};
|
|
5578
5626
|
|
|
5579
5627
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5580
|
-
var
|
|
5628
|
+
var React90 = __toESM(require("react"));
|
|
5581
5629
|
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5582
5630
|
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
5583
5631
|
var import_editor_props17 = require("@elementor/editor-props");
|
|
5584
|
-
var
|
|
5585
|
-
var
|
|
5586
|
-
var
|
|
5632
|
+
var import_icons27 = require("@elementor/icons");
|
|
5633
|
+
var import_ui44 = require("@elementor/ui");
|
|
5634
|
+
var import_i18n65 = require("@wordpress/i18n");
|
|
5587
5635
|
|
|
5588
5636
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5589
5637
|
var import_editor_elements15 = require("@elementor/editor-elements");
|
|
@@ -5602,7 +5650,7 @@ var getElementByType = (elementId, type) => {
|
|
|
5602
5650
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5603
5651
|
var import_editor_elements16 = require("@elementor/editor-elements");
|
|
5604
5652
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
5605
|
-
var
|
|
5653
|
+
var import_i18n64 = require("@wordpress/i18n");
|
|
5606
5654
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5607
5655
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5608
5656
|
var useActions = () => {
|
|
@@ -5625,7 +5673,7 @@ var useActions = () => {
|
|
|
5625
5673
|
}
|
|
5626
5674
|
(0, import_editor_elements16.duplicateElements)({
|
|
5627
5675
|
elementIds: [tabId, tabContentId],
|
|
5628
|
-
title: (0,
|
|
5676
|
+
title: (0, import_i18n64.__)("Duplicate Tab", "elementor"),
|
|
5629
5677
|
onDuplicateElements: () => {
|
|
5630
5678
|
if (newDefault !== defaultActiveTab) {
|
|
5631
5679
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5662,7 +5710,7 @@ var useActions = () => {
|
|
|
5662
5710
|
defaultActiveTab
|
|
5663
5711
|
});
|
|
5664
5712
|
(0, import_editor_elements16.moveElements)({
|
|
5665
|
-
title: (0,
|
|
5713
|
+
title: (0, import_i18n64.__)("Reorder Tabs", "elementor"),
|
|
5666
5714
|
moves: [
|
|
5667
5715
|
{
|
|
5668
5716
|
element: movedElement,
|
|
@@ -5696,7 +5744,7 @@ var useActions = () => {
|
|
|
5696
5744
|
defaultActiveTab
|
|
5697
5745
|
});
|
|
5698
5746
|
(0, import_editor_elements16.removeElements)({
|
|
5699
|
-
title: (0,
|
|
5747
|
+
title: (0, import_i18n64.__)("Tabs", "elementor"),
|
|
5700
5748
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5701
5749
|
const tabId = item.id;
|
|
5702
5750
|
const tabContentContainer = (0, import_editor_elements16.getContainer)(tabContentAreaId);
|
|
@@ -5731,7 +5779,7 @@ var useActions = () => {
|
|
|
5731
5779
|
items3.forEach(({ index }) => {
|
|
5732
5780
|
const position = index + 1;
|
|
5733
5781
|
(0, import_editor_elements16.createElements)({
|
|
5734
|
-
title: (0,
|
|
5782
|
+
title: (0, import_i18n64.__)("Tabs", "elementor"),
|
|
5735
5783
|
elements: [
|
|
5736
5784
|
{
|
|
5737
5785
|
container: tabContentArea,
|
|
@@ -5800,7 +5848,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5800
5848
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5801
5849
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5802
5850
|
var TabsControl = ({ label }) => {
|
|
5803
|
-
return /* @__PURE__ */
|
|
5851
|
+
return /* @__PURE__ */ React90.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n65.__)("Tabs", "elementor") }, /* @__PURE__ */ React90.createElement(TabsControlContent, { label }));
|
|
5804
5852
|
};
|
|
5805
5853
|
var TabsControlContent = ({ label }) => {
|
|
5806
5854
|
const { element } = useElement();
|
|
@@ -5844,7 +5892,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5844
5892
|
});
|
|
5845
5893
|
}
|
|
5846
5894
|
};
|
|
5847
|
-
return /* @__PURE__ */
|
|
5895
|
+
return /* @__PURE__ */ React90.createElement(
|
|
5848
5896
|
import_editor_controls58.Repeater,
|
|
5849
5897
|
{
|
|
5850
5898
|
showToggle: false,
|
|
@@ -5864,7 +5912,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5864
5912
|
};
|
|
5865
5913
|
var ItemLabel = ({ value, index }) => {
|
|
5866
5914
|
const elementTitle = value?.title;
|
|
5867
|
-
return /* @__PURE__ */
|
|
5915
|
+
return /* @__PURE__ */ React90.createElement(import_ui44.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React90.createElement("span", null, elementTitle), /* @__PURE__ */ React90.createElement(ItemDefaultTab, { index }));
|
|
5868
5916
|
};
|
|
5869
5917
|
var ItemDefaultTab = ({ index }) => {
|
|
5870
5918
|
const { value: defaultItem } = (0, import_editor_controls58.useBoundProp)(import_editor_props17.numberPropTypeUtil);
|
|
@@ -5872,19 +5920,19 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5872
5920
|
if (!isDefault) {
|
|
5873
5921
|
return null;
|
|
5874
5922
|
}
|
|
5875
|
-
return /* @__PURE__ */
|
|
5923
|
+
return /* @__PURE__ */ React90.createElement(import_ui44.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n65.__)("Default", "elementor") });
|
|
5876
5924
|
};
|
|
5877
5925
|
var ItemContent = ({ value, index }) => {
|
|
5878
5926
|
if (!value.id) {
|
|
5879
5927
|
return null;
|
|
5880
5928
|
}
|
|
5881
|
-
return /* @__PURE__ */
|
|
5929
|
+
return /* @__PURE__ */ React90.createElement(import_ui44.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React90.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React90.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n65.__)("Tabs", "elementor") }, /* @__PURE__ */ React90.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5882
5930
|
};
|
|
5883
5931
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5884
5932
|
const { value, setValue } = (0, import_editor_controls58.useBoundProp)(import_editor_props17.numberPropTypeUtil);
|
|
5885
5933
|
const isDefault = value === tabIndex;
|
|
5886
|
-
return /* @__PURE__ */
|
|
5887
|
-
|
|
5934
|
+
return /* @__PURE__ */ React90.createElement(import_ui44.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React90.createElement(import_editor_controls58.ControlFormLabel, null, (0, import_i18n65.__)("Set as default tab", "elementor")), /* @__PURE__ */ React90.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React90.createElement(
|
|
5935
|
+
import_ui44.Switch,
|
|
5888
5936
|
{
|
|
5889
5937
|
size: "small",
|
|
5890
5938
|
checked: isDefault,
|
|
@@ -5901,8 +5949,8 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5901
5949
|
var TabLabelControl = ({ elementId }) => {
|
|
5902
5950
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
|
|
5903
5951
|
const label = editorSettings?.title ?? "";
|
|
5904
|
-
return /* @__PURE__ */
|
|
5905
|
-
|
|
5952
|
+
return /* @__PURE__ */ React90.createElement(import_ui44.Stack, { gap: 1 }, /* @__PURE__ */ React90.createElement(import_editor_controls58.ControlFormLabel, null, (0, import_i18n65.__)("Tab name", "elementor")), /* @__PURE__ */ React90.createElement(
|
|
5953
|
+
import_ui44.TextField,
|
|
5906
5954
|
{
|
|
5907
5955
|
size: "tiny",
|
|
5908
5956
|
value: label,
|
|
@@ -5922,22 +5970,22 @@ var ConditionalTooltip = ({
|
|
|
5922
5970
|
if (!showTooltip) {
|
|
5923
5971
|
return children;
|
|
5924
5972
|
}
|
|
5925
|
-
return /* @__PURE__ */
|
|
5926
|
-
|
|
5973
|
+
return /* @__PURE__ */ React90.createElement(
|
|
5974
|
+
import_ui44.Infotip,
|
|
5927
5975
|
{
|
|
5928
5976
|
arrow: false,
|
|
5929
|
-
content: /* @__PURE__ */
|
|
5930
|
-
|
|
5977
|
+
content: /* @__PURE__ */ React90.createElement(
|
|
5978
|
+
import_ui44.Alert,
|
|
5931
5979
|
{
|
|
5932
5980
|
color: "secondary",
|
|
5933
|
-
icon: /* @__PURE__ */
|
|
5981
|
+
icon: /* @__PURE__ */ React90.createElement(import_icons27.InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
5934
5982
|
size: "small",
|
|
5935
5983
|
sx: { width: 288 }
|
|
5936
5984
|
},
|
|
5937
|
-
/* @__PURE__ */
|
|
5985
|
+
/* @__PURE__ */ React90.createElement(import_ui44.Typography, { variant: "body2" }, (0, import_i18n65.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
5938
5986
|
)
|
|
5939
5987
|
},
|
|
5940
|
-
/* @__PURE__ */
|
|
5988
|
+
/* @__PURE__ */ React90.createElement("span", null, children)
|
|
5941
5989
|
);
|
|
5942
5990
|
};
|
|
5943
5991
|
|
|
@@ -5959,10 +6007,10 @@ var import_editor_controls65 = require("@elementor/editor-controls");
|
|
|
5959
6007
|
var import_menus2 = require("@elementor/menus");
|
|
5960
6008
|
|
|
5961
6009
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
5962
|
-
var
|
|
6010
|
+
var React91 = __toESM(require("react"));
|
|
5963
6011
|
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
5964
6012
|
var import_editor_props19 = require("@elementor/editor-props");
|
|
5965
|
-
var
|
|
6013
|
+
var import_icons28 = require("@elementor/icons");
|
|
5966
6014
|
|
|
5967
6015
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
5968
6016
|
var import_react43 = require("react");
|
|
@@ -6097,29 +6145,29 @@ var useDynamicTag = (tagName) => {
|
|
|
6097
6145
|
};
|
|
6098
6146
|
|
|
6099
6147
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6100
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6148
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React91.createElement(import_icons28.DatabaseIcon, { fontSize: "tiny" });
|
|
6101
6149
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6102
6150
|
const context = (0, import_editor_controls60.useBoundProp)(import_editor_props19.backgroundImageOverlayPropTypeUtil);
|
|
6103
|
-
return /* @__PURE__ */
|
|
6151
|
+
return /* @__PURE__ */ React91.createElement(import_editor_controls60.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React91.createElement(import_editor_controls60.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React91.createElement(Wrapper2, { rawValue: value.value })));
|
|
6104
6152
|
};
|
|
6105
6153
|
var Wrapper2 = ({ rawValue }) => {
|
|
6106
6154
|
const { propType } = (0, import_editor_controls60.useBoundProp)();
|
|
6107
6155
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6108
|
-
return /* @__PURE__ */
|
|
6156
|
+
return /* @__PURE__ */ React91.createElement(import_editor_controls60.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React91.createElement(import_editor_controls60.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React91.createElement(Content, { rawValue: rawValue.image })));
|
|
6109
6157
|
};
|
|
6110
6158
|
var Content = ({ rawValue }) => {
|
|
6111
6159
|
const src = rawValue.value.src;
|
|
6112
6160
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6113
|
-
return /* @__PURE__ */
|
|
6161
|
+
return /* @__PURE__ */ React91.createElement(React91.Fragment, null, dynamicTag?.label);
|
|
6114
6162
|
};
|
|
6115
6163
|
|
|
6116
6164
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6117
|
-
var
|
|
6165
|
+
var React95 = __toESM(require("react"));
|
|
6118
6166
|
var import_editor_controls63 = require("@elementor/editor-controls");
|
|
6119
6167
|
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
6120
|
-
var
|
|
6121
|
-
var
|
|
6122
|
-
var
|
|
6168
|
+
var import_icons30 = require("@elementor/icons");
|
|
6169
|
+
var import_ui46 = require("@elementor/ui");
|
|
6170
|
+
var import_i18n67 = require("@wordpress/i18n");
|
|
6123
6171
|
|
|
6124
6172
|
// src/hooks/use-persist-dynamic-value.ts
|
|
6125
6173
|
var import_session10 = require("@elementor/session");
|
|
@@ -6130,11 +6178,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6130
6178
|
};
|
|
6131
6179
|
|
|
6132
6180
|
// src/dynamics/dynamic-control.tsx
|
|
6133
|
-
var
|
|
6181
|
+
var React93 = __toESM(require("react"));
|
|
6134
6182
|
var import_editor_controls61 = require("@elementor/editor-controls");
|
|
6135
6183
|
|
|
6136
6184
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6137
|
-
var
|
|
6185
|
+
var React92 = __toESM(require("react"));
|
|
6138
6186
|
var import_react44 = require("react");
|
|
6139
6187
|
var import_editor_props20 = require("@elementor/editor-props");
|
|
6140
6188
|
var DynamicConditionalControl = ({
|
|
@@ -6176,10 +6224,10 @@ var DynamicConditionalControl = ({
|
|
|
6176
6224
|
return { ...defaults, ...convertedSettings };
|
|
6177
6225
|
}, [defaults, convertedSettings]);
|
|
6178
6226
|
if (!propType?.dependencies?.terms.length) {
|
|
6179
|
-
return /* @__PURE__ */
|
|
6227
|
+
return /* @__PURE__ */ React92.createElement(React92.Fragment, null, children);
|
|
6180
6228
|
}
|
|
6181
6229
|
const isHidden = !(0, import_editor_props20.isDependencyMet)(propType?.dependencies, effectiveSettings).isMet;
|
|
6182
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6230
|
+
return isHidden ? null : /* @__PURE__ */ React92.createElement(React92.Fragment, null, children);
|
|
6183
6231
|
};
|
|
6184
6232
|
|
|
6185
6233
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6204,7 +6252,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6204
6252
|
});
|
|
6205
6253
|
};
|
|
6206
6254
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6207
|
-
return /* @__PURE__ */
|
|
6255
|
+
return /* @__PURE__ */ React93.createElement(import_editor_controls61.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React93.createElement(import_editor_controls61.PropKeyProvider, { bind }, /* @__PURE__ */ React93.createElement(
|
|
6208
6256
|
DynamicConditionalControl,
|
|
6209
6257
|
{
|
|
6210
6258
|
propType: dynamicPropType,
|
|
@@ -6216,13 +6264,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6216
6264
|
};
|
|
6217
6265
|
|
|
6218
6266
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6219
|
-
var
|
|
6267
|
+
var React94 = __toESM(require("react"));
|
|
6220
6268
|
var import_react45 = require("react");
|
|
6221
6269
|
var import_editor_controls62 = require("@elementor/editor-controls");
|
|
6222
6270
|
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
6223
|
-
var
|
|
6224
|
-
var
|
|
6225
|
-
var
|
|
6271
|
+
var import_icons29 = require("@elementor/icons");
|
|
6272
|
+
var import_ui45 = require("@elementor/ui");
|
|
6273
|
+
var import_i18n66 = require("@wordpress/i18n");
|
|
6226
6274
|
var SIZE2 = "tiny";
|
|
6227
6275
|
var PROMO_TEXT_WIDTH = 170;
|
|
6228
6276
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6230,7 +6278,7 @@ var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew
|
|
|
6230
6278
|
var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
6231
6279
|
const [searchValue, setSearchValue] = (0, import_react45.useState)("");
|
|
6232
6280
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
6233
|
-
const theme = (0,
|
|
6281
|
+
const theme = (0, import_ui45.useTheme)();
|
|
6234
6282
|
const { value: anyValue } = (0, import_editor_controls62.useBoundProp)();
|
|
6235
6283
|
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls62.useBoundProp)(dynamicPropTypeUtil);
|
|
6236
6284
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
@@ -6269,19 +6317,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6269
6317
|
]);
|
|
6270
6318
|
const getPopOverContent = () => {
|
|
6271
6319
|
if (hasNoDynamicTags) {
|
|
6272
|
-
return /* @__PURE__ */
|
|
6320
|
+
return /* @__PURE__ */ React94.createElement(NoDynamicTags, null);
|
|
6273
6321
|
}
|
|
6274
6322
|
if (expired) {
|
|
6275
|
-
return /* @__PURE__ */
|
|
6323
|
+
return /* @__PURE__ */ React94.createElement(ExpiredDynamicTags, null);
|
|
6276
6324
|
}
|
|
6277
|
-
return /* @__PURE__ */
|
|
6325
|
+
return /* @__PURE__ */ React94.createElement(import_react45.Fragment, null, /* @__PURE__ */ React94.createElement(
|
|
6278
6326
|
import_editor_ui9.SearchField,
|
|
6279
6327
|
{
|
|
6280
6328
|
value: searchValue,
|
|
6281
6329
|
onSearch: handleSearch,
|
|
6282
|
-
placeholder: (0,
|
|
6330
|
+
placeholder: (0, import_i18n66.__)("Search dynamic tags\u2026", "elementor")
|
|
6283
6331
|
}
|
|
6284
|
-
), /* @__PURE__ */
|
|
6332
|
+
), /* @__PURE__ */ React94.createElement(import_ui45.Divider, null), /* @__PURE__ */ React94.createElement(
|
|
6285
6333
|
import_editor_ui9.PopoverMenuList,
|
|
6286
6334
|
{
|
|
6287
6335
|
items: virtualizedItems,
|
|
@@ -6289,21 +6337,21 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6289
6337
|
onClose: closePopover,
|
|
6290
6338
|
selectedValue: dynamicValue?.name,
|
|
6291
6339
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6292
|
-
noResultsComponent: /* @__PURE__ */
|
|
6340
|
+
noResultsComponent: /* @__PURE__ */ React94.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6293
6341
|
}
|
|
6294
6342
|
));
|
|
6295
6343
|
};
|
|
6296
|
-
return /* @__PURE__ */
|
|
6344
|
+
return /* @__PURE__ */ React94.createElement(import_editor_ui9.SectionPopoverBody, { "aria-label": (0, import_i18n66.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React94.createElement(
|
|
6297
6345
|
import_editor_ui9.PopoverHeader,
|
|
6298
6346
|
{
|
|
6299
|
-
title: (0,
|
|
6347
|
+
title: (0, import_i18n66.__)("Dynamic tags", "elementor"),
|
|
6300
6348
|
onClose: closePopover,
|
|
6301
|
-
icon: /* @__PURE__ */
|
|
6349
|
+
icon: /* @__PURE__ */ React94.createElement(import_icons29.DatabaseIcon, { fontSize: SIZE2 })
|
|
6302
6350
|
}
|
|
6303
6351
|
), getPopOverContent());
|
|
6304
6352
|
};
|
|
6305
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6306
|
-
|
|
6353
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React94.createElement(
|
|
6354
|
+
import_ui45.Stack,
|
|
6307
6355
|
{
|
|
6308
6356
|
gap: 1,
|
|
6309
6357
|
alignItems: "center",
|
|
@@ -6313,12 +6361,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React93.createElem
|
|
|
6313
6361
|
color: "text.secondary",
|
|
6314
6362
|
sx: { pb: 3.5 }
|
|
6315
6363
|
},
|
|
6316
|
-
/* @__PURE__ */
|
|
6317
|
-
/* @__PURE__ */
|
|
6318
|
-
/* @__PURE__ */
|
|
6364
|
+
/* @__PURE__ */ React94.createElement(import_icons29.DatabaseIcon, { fontSize: "large" }),
|
|
6365
|
+
/* @__PURE__ */ React94.createElement(import_ui45.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n66.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React94.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6366
|
+
/* @__PURE__ */ React94.createElement(import_ui45.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n66.__)("Try something else.", "elementor"), /* @__PURE__ */ React94.createElement(import_ui45.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n66.__)("Clear & try again", "elementor")))
|
|
6319
6367
|
);
|
|
6320
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6321
|
-
|
|
6368
|
+
var NoDynamicTags = () => /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(import_ui45.Divider, null), /* @__PURE__ */ React94.createElement(
|
|
6369
|
+
import_ui45.Stack,
|
|
6322
6370
|
{
|
|
6323
6371
|
gap: 1,
|
|
6324
6372
|
alignItems: "center",
|
|
@@ -6328,10 +6376,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment
|
|
|
6328
6376
|
color: "text.secondary",
|
|
6329
6377
|
sx: { pb: 3.5 }
|
|
6330
6378
|
},
|
|
6331
|
-
/* @__PURE__ */
|
|
6332
|
-
/* @__PURE__ */
|
|
6333
|
-
/* @__PURE__ */
|
|
6334
|
-
/* @__PURE__ */
|
|
6379
|
+
/* @__PURE__ */ React94.createElement(import_icons29.DatabaseIcon, { fontSize: "large" }),
|
|
6380
|
+
/* @__PURE__ */ React94.createElement(import_ui45.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n66.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
6381
|
+
/* @__PURE__ */ React94.createElement(import_ui45.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n66.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
6382
|
+
/* @__PURE__ */ React94.createElement(
|
|
6335
6383
|
import_editor_ui9.CtaButton,
|
|
6336
6384
|
{
|
|
6337
6385
|
size: "small",
|
|
@@ -6340,8 +6388,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment
|
|
|
6340
6388
|
}
|
|
6341
6389
|
)
|
|
6342
6390
|
));
|
|
6343
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6344
|
-
|
|
6391
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(import_ui45.Divider, null), /* @__PURE__ */ React94.createElement(
|
|
6392
|
+
import_ui45.Stack,
|
|
6345
6393
|
{
|
|
6346
6394
|
gap: 1,
|
|
6347
6395
|
alignItems: "center",
|
|
@@ -6351,16 +6399,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fra
|
|
|
6351
6399
|
color: "text.secondary",
|
|
6352
6400
|
sx: { pb: 3.5 }
|
|
6353
6401
|
},
|
|
6354
|
-
/* @__PURE__ */
|
|
6355
|
-
/* @__PURE__ */
|
|
6356
|
-
/* @__PURE__ */
|
|
6357
|
-
/* @__PURE__ */
|
|
6402
|
+
/* @__PURE__ */ React94.createElement(import_icons29.DatabaseIcon, { fontSize: "large" }),
|
|
6403
|
+
/* @__PURE__ */ React94.createElement(import_ui45.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n66.__)("Unlock your Dynamic tags again", "elementor")),
|
|
6404
|
+
/* @__PURE__ */ React94.createElement(import_ui45.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n66.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6405
|
+
/* @__PURE__ */ React94.createElement(
|
|
6358
6406
|
import_editor_ui9.CtaButton,
|
|
6359
6407
|
{
|
|
6360
6408
|
size: "small",
|
|
6361
6409
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6362
6410
|
onClick: () => (0, import_editor_controls62.trackUpgradePromotionClick)({ target_name: "dynamic_tags" }),
|
|
6363
|
-
children: (0,
|
|
6411
|
+
children: (0, import_i18n66.__)("Renew Now", "elementor")
|
|
6364
6412
|
}
|
|
6365
6413
|
)
|
|
6366
6414
|
));
|
|
@@ -6393,11 +6441,11 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6393
6441
|
}
|
|
6394
6442
|
});
|
|
6395
6443
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
6396
|
-
const selectionPopoverState = (0,
|
|
6444
|
+
const selectionPopoverState = (0, import_ui46.usePopupState)({ variant: "popover" });
|
|
6397
6445
|
const { name: tagName = "" } = value;
|
|
6398
6446
|
const dynamicTag = useDynamicTag(tagName);
|
|
6399
6447
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6400
|
-
return /* @__PURE__ */
|
|
6448
|
+
return /* @__PURE__ */ React95.createElement(import_editor_controls63.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React95.createElement(import_editor_controls63.PropKeyProvider, { bind }, /* @__PURE__ */ React95.createElement(OriginalControl, { ...props })));
|
|
6401
6449
|
}
|
|
6402
6450
|
const removeDynamicTag = () => {
|
|
6403
6451
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6405,26 +6453,26 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6405
6453
|
if (!dynamicTag) {
|
|
6406
6454
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6407
6455
|
}
|
|
6408
|
-
return /* @__PURE__ */
|
|
6409
|
-
|
|
6456
|
+
return /* @__PURE__ */ React95.createElement(import_ui46.Box, null, /* @__PURE__ */ React95.createElement(
|
|
6457
|
+
import_ui46.UnstableTag,
|
|
6410
6458
|
{
|
|
6411
6459
|
fullWidth: true,
|
|
6412
6460
|
showActionsOnHover: true,
|
|
6413
6461
|
label: dynamicTag.label,
|
|
6414
|
-
startIcon: /* @__PURE__ */
|
|
6415
|
-
...(0,
|
|
6416
|
-
actions: /* @__PURE__ */
|
|
6417
|
-
|
|
6462
|
+
startIcon: /* @__PURE__ */ React95.createElement(import_icons30.DatabaseIcon, { fontSize: SIZE3 }),
|
|
6463
|
+
...(0, import_ui46.bindTrigger)(selectionPopoverState),
|
|
6464
|
+
actions: /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React95.createElement(
|
|
6465
|
+
import_ui46.IconButton,
|
|
6418
6466
|
{
|
|
6419
6467
|
size: SIZE3,
|
|
6420
6468
|
onClick: removeDynamicTag,
|
|
6421
|
-
"aria-label": (0,
|
|
6469
|
+
"aria-label": (0, import_i18n67.__)("Remove dynamic value", "elementor")
|
|
6422
6470
|
},
|
|
6423
|
-
/* @__PURE__ */
|
|
6471
|
+
/* @__PURE__ */ React95.createElement(import_icons30.XIcon, { fontSize: SIZE3 })
|
|
6424
6472
|
))
|
|
6425
6473
|
}
|
|
6426
|
-
), /* @__PURE__ */
|
|
6427
|
-
|
|
6474
|
+
), /* @__PURE__ */ React95.createElement(
|
|
6475
|
+
import_ui46.Popover,
|
|
6428
6476
|
{
|
|
6429
6477
|
disablePortal: true,
|
|
6430
6478
|
disableScrollLock: true,
|
|
@@ -6433,31 +6481,31 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6433
6481
|
PaperProps: {
|
|
6434
6482
|
sx: { my: 1 }
|
|
6435
6483
|
},
|
|
6436
|
-
...(0,
|
|
6484
|
+
...(0, import_ui46.bindPopover)(selectionPopoverState)
|
|
6437
6485
|
},
|
|
6438
|
-
/* @__PURE__ */
|
|
6486
|
+
/* @__PURE__ */ React95.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n67.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React95.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6439
6487
|
));
|
|
6440
6488
|
};
|
|
6441
6489
|
var DynamicSettingsPopover = ({
|
|
6442
6490
|
dynamicTag,
|
|
6443
6491
|
disabled = false
|
|
6444
6492
|
}) => {
|
|
6445
|
-
const popupState = (0,
|
|
6493
|
+
const popupState = (0, import_ui46.usePopupState)({ variant: "popover" });
|
|
6446
6494
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
6447
6495
|
if (!hasDynamicSettings) {
|
|
6448
6496
|
return null;
|
|
6449
6497
|
}
|
|
6450
|
-
return /* @__PURE__ */
|
|
6451
|
-
|
|
6498
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(
|
|
6499
|
+
import_ui46.IconButton,
|
|
6452
6500
|
{
|
|
6453
6501
|
size: SIZE3,
|
|
6454
6502
|
disabled,
|
|
6455
|
-
...!disabled && (0,
|
|
6456
|
-
"aria-label": (0,
|
|
6503
|
+
...!disabled && (0, import_ui46.bindTrigger)(popupState),
|
|
6504
|
+
"aria-label": (0, import_i18n67.__)("Dynamic settings", "elementor")
|
|
6457
6505
|
},
|
|
6458
|
-
/* @__PURE__ */
|
|
6459
|
-
), /* @__PURE__ */
|
|
6460
|
-
|
|
6506
|
+
/* @__PURE__ */ React95.createElement(import_icons30.SettingsIcon, { fontSize: SIZE3 })
|
|
6507
|
+
), /* @__PURE__ */ React95.createElement(
|
|
6508
|
+
import_ui46.Popover,
|
|
6461
6509
|
{
|
|
6462
6510
|
disablePortal: true,
|
|
6463
6511
|
disableScrollLock: true,
|
|
@@ -6466,45 +6514,45 @@ var DynamicSettingsPopover = ({
|
|
|
6466
6514
|
PaperProps: {
|
|
6467
6515
|
sx: { my: 1 }
|
|
6468
6516
|
},
|
|
6469
|
-
...(0,
|
|
6517
|
+
...(0, import_ui46.bindPopover)(popupState)
|
|
6470
6518
|
},
|
|
6471
|
-
/* @__PURE__ */
|
|
6519
|
+
/* @__PURE__ */ React95.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n67.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React95.createElement(
|
|
6472
6520
|
import_editor_ui10.PopoverHeader,
|
|
6473
6521
|
{
|
|
6474
6522
|
title: dynamicTag.label,
|
|
6475
6523
|
onClose: popupState.close,
|
|
6476
|
-
icon: /* @__PURE__ */
|
|
6524
|
+
icon: /* @__PURE__ */ React95.createElement(import_icons30.DatabaseIcon, { fontSize: SIZE3 })
|
|
6477
6525
|
}
|
|
6478
|
-
), /* @__PURE__ */
|
|
6526
|
+
), /* @__PURE__ */ React95.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6479
6527
|
));
|
|
6480
6528
|
};
|
|
6481
6529
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
6482
6530
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
6483
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
6531
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui46.useTabs)(0);
|
|
6484
6532
|
if (!tabs.length) {
|
|
6485
6533
|
return null;
|
|
6486
6534
|
}
|
|
6487
6535
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6488
6536
|
const singleTab = tabs[0];
|
|
6489
|
-
return /* @__PURE__ */
|
|
6537
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(import_ui46.Divider, null), /* @__PURE__ */ React95.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6490
6538
|
}
|
|
6491
|
-
return /* @__PURE__ */
|
|
6492
|
-
|
|
6539
|
+
return /* @__PURE__ */ React95.createElement(React95.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React95.createElement(import_ui46.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React95.createElement(
|
|
6540
|
+
import_ui46.Tab,
|
|
6493
6541
|
{
|
|
6494
6542
|
key: index,
|
|
6495
6543
|
label: value.label,
|
|
6496
6544
|
sx: { px: 1, py: 0.5 },
|
|
6497
6545
|
...getTabProps(index)
|
|
6498
6546
|
}
|
|
6499
|
-
))), /* @__PURE__ */
|
|
6500
|
-
return /* @__PURE__ */
|
|
6501
|
-
|
|
6547
|
+
))), /* @__PURE__ */ React95.createElement(import_ui46.Divider, null), tabs.map(({ value }, index) => {
|
|
6548
|
+
return /* @__PURE__ */ React95.createElement(
|
|
6549
|
+
import_ui46.TabPanel,
|
|
6502
6550
|
{
|
|
6503
6551
|
key: index,
|
|
6504
6552
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6505
6553
|
...getTabPanelProps(index)
|
|
6506
6554
|
},
|
|
6507
|
-
/* @__PURE__ */
|
|
6555
|
+
/* @__PURE__ */ React95.createElement(ControlsItemsStack, { items: value.items })
|
|
6508
6556
|
);
|
|
6509
6557
|
}));
|
|
6510
6558
|
};
|
|
@@ -6546,11 +6594,11 @@ var Control2 = ({ control }) => {
|
|
|
6546
6594
|
display: "grid",
|
|
6547
6595
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6548
6596
|
} : {};
|
|
6549
|
-
return /* @__PURE__ */
|
|
6597
|
+
return /* @__PURE__ */ React95.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React95.createElement(import_ui46.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React95.createElement(import_ui46.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React95.createElement(import_editor_controls63.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React95.createElement(import_ui46.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React95.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6550
6598
|
};
|
|
6551
6599
|
function ControlsItemsStack({ items: items3 }) {
|
|
6552
|
-
return /* @__PURE__ */
|
|
6553
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6600
|
+
return /* @__PURE__ */ React95.createElement(import_ui46.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6601
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React95.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6554
6602
|
));
|
|
6555
6603
|
}
|
|
6556
6604
|
|
|
@@ -6603,18 +6651,18 @@ function getDynamicValue(name, settings) {
|
|
|
6603
6651
|
}
|
|
6604
6652
|
|
|
6605
6653
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6606
|
-
var
|
|
6654
|
+
var React96 = __toESM(require("react"));
|
|
6607
6655
|
var import_editor_controls64 = require("@elementor/editor-controls");
|
|
6608
|
-
var
|
|
6609
|
-
var
|
|
6656
|
+
var import_icons31 = require("@elementor/icons");
|
|
6657
|
+
var import_i18n68 = require("@wordpress/i18n");
|
|
6610
6658
|
var usePropDynamicAction = () => {
|
|
6611
6659
|
const { propType } = (0, import_editor_controls64.useBoundProp)();
|
|
6612
6660
|
const visible = !!propType && supportsDynamic(propType);
|
|
6613
6661
|
return {
|
|
6614
6662
|
visible,
|
|
6615
|
-
icon:
|
|
6616
|
-
title: (0,
|
|
6617
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6663
|
+
icon: import_icons31.DatabaseIcon,
|
|
6664
|
+
title: (0, import_i18n68.__)("Dynamic tags", "elementor"),
|
|
6665
|
+
content: ({ close }) => /* @__PURE__ */ React96.createElement(DynamicSelection, { close })
|
|
6618
6666
|
};
|
|
6619
6667
|
};
|
|
6620
6668
|
|
|
@@ -6647,9 +6695,9 @@ var init2 = () => {
|
|
|
6647
6695
|
// src/reset-style-props.tsx
|
|
6648
6696
|
var import_editor_controls66 = require("@elementor/editor-controls");
|
|
6649
6697
|
var import_editor_variables2 = require("@elementor/editor-variables");
|
|
6650
|
-
var
|
|
6698
|
+
var import_icons32 = require("@elementor/icons");
|
|
6651
6699
|
var import_menus3 = require("@elementor/menus");
|
|
6652
|
-
var
|
|
6700
|
+
var import_i18n69 = require("@wordpress/i18n");
|
|
6653
6701
|
|
|
6654
6702
|
// src/utils/is-equal.ts
|
|
6655
6703
|
function isEqual(a, b) {
|
|
@@ -6725,33 +6773,33 @@ function useResetStyleValueProps() {
|
|
|
6725
6773
|
const visible = calculateVisibility();
|
|
6726
6774
|
return {
|
|
6727
6775
|
visible,
|
|
6728
|
-
title: (0,
|
|
6729
|
-
icon:
|
|
6776
|
+
title: (0, import_i18n69.__)("Clear", "elementor"),
|
|
6777
|
+
icon: import_icons32.BrushBigIcon,
|
|
6730
6778
|
onClick: () => resetValue()
|
|
6731
6779
|
};
|
|
6732
6780
|
}
|
|
6733
6781
|
|
|
6734
6782
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6735
|
-
var
|
|
6783
|
+
var React102 = __toESM(require("react"));
|
|
6736
6784
|
var import_editor_controls67 = require("@elementor/editor-controls");
|
|
6737
6785
|
var import_editor_props22 = require("@elementor/editor-props");
|
|
6738
|
-
var
|
|
6739
|
-
var
|
|
6786
|
+
var import_editor_styles_repository20 = require("@elementor/editor-styles-repository");
|
|
6787
|
+
var import_i18n73 = require("@wordpress/i18n");
|
|
6740
6788
|
|
|
6741
6789
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6742
|
-
var
|
|
6790
|
+
var React101 = __toESM(require("react"));
|
|
6743
6791
|
var import_react47 = require("react");
|
|
6744
6792
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
6745
6793
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
6746
|
-
var
|
|
6747
|
-
var
|
|
6794
|
+
var import_ui51 = require("@elementor/ui");
|
|
6795
|
+
var import_i18n72 = require("@wordpress/i18n");
|
|
6748
6796
|
|
|
6749
6797
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6750
6798
|
var import_react46 = require("react");
|
|
6751
6799
|
var import_editor_canvas4 = require("@elementor/editor-canvas");
|
|
6752
6800
|
var import_editor_styles8 = require("@elementor/editor-styles");
|
|
6753
|
-
var
|
|
6754
|
-
var
|
|
6801
|
+
var import_editor_styles_repository18 = require("@elementor/editor-styles-repository");
|
|
6802
|
+
var import_i18n70 = require("@wordpress/i18n");
|
|
6755
6803
|
var MAXIMUM_ITEMS = 2;
|
|
6756
6804
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6757
6805
|
const [items3, setItems] = (0, import_react46.useState)([]);
|
|
@@ -6762,7 +6810,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
6762
6810
|
);
|
|
6763
6811
|
const validItems = normalizedItems.map((item) => ({
|
|
6764
6812
|
...item,
|
|
6765
|
-
displayLabel:
|
|
6813
|
+
displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n70.__)("Base", "elementor")
|
|
6766
6814
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6767
6815
|
setItems(validItems);
|
|
6768
6816
|
})();
|
|
@@ -6819,20 +6867,20 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6819
6867
|
};
|
|
6820
6868
|
|
|
6821
6869
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6822
|
-
var
|
|
6870
|
+
var React97 = __toESM(require("react"));
|
|
6823
6871
|
var import_editor_responsive4 = require("@elementor/editor-responsive");
|
|
6824
|
-
var
|
|
6825
|
-
var
|
|
6872
|
+
var import_icons33 = require("@elementor/icons");
|
|
6873
|
+
var import_ui47 = require("@elementor/ui");
|
|
6826
6874
|
var SIZE4 = "tiny";
|
|
6827
6875
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
6828
6876
|
var breakpointIconMap = {
|
|
6829
|
-
widescreen:
|
|
6830
|
-
desktop:
|
|
6831
|
-
laptop:
|
|
6832
|
-
tablet_extra:
|
|
6833
|
-
tablet:
|
|
6834
|
-
mobile_extra:
|
|
6835
|
-
mobile:
|
|
6877
|
+
widescreen: import_icons33.WidescreenIcon,
|
|
6878
|
+
desktop: import_icons33.DesktopIcon,
|
|
6879
|
+
laptop: import_icons33.LaptopIcon,
|
|
6880
|
+
tablet_extra: import_icons33.TabletLandscapeIcon,
|
|
6881
|
+
tablet: import_icons33.TabletPortraitIcon,
|
|
6882
|
+
mobile_extra: import_icons33.MobileLandscapeIcon,
|
|
6883
|
+
mobile: import_icons33.MobilePortraitIcon
|
|
6836
6884
|
};
|
|
6837
6885
|
var BreakpointIcon = ({ breakpoint }) => {
|
|
6838
6886
|
const breakpoints = (0, import_editor_responsive4.useBreakpoints)();
|
|
@@ -6842,21 +6890,21 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6842
6890
|
return null;
|
|
6843
6891
|
}
|
|
6844
6892
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6845
|
-
return /* @__PURE__ */
|
|
6893
|
+
return /* @__PURE__ */ React97.createElement(import_ui47.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React97.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6846
6894
|
};
|
|
6847
6895
|
|
|
6848
6896
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6849
|
-
var
|
|
6850
|
-
var
|
|
6851
|
-
var
|
|
6852
|
-
var
|
|
6853
|
-
var
|
|
6897
|
+
var React98 = __toESM(require("react"));
|
|
6898
|
+
var import_editor_styles_repository19 = require("@elementor/editor-styles-repository");
|
|
6899
|
+
var import_icons34 = require("@elementor/icons");
|
|
6900
|
+
var import_ui48 = require("@elementor/ui");
|
|
6901
|
+
var import_i18n71 = require("@wordpress/i18n");
|
|
6854
6902
|
var SIZE5 = "tiny";
|
|
6855
6903
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6856
|
-
const isBaseStyle = provider ===
|
|
6857
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
6858
|
-
return /* @__PURE__ */
|
|
6859
|
-
|
|
6904
|
+
const isBaseStyle = provider === import_editor_styles_repository19.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
6905
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React98.createElement(import_ui48.Tooltip, { title: (0, import_i18n71.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React98.createElement(import_icons34.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
6906
|
+
return /* @__PURE__ */ React98.createElement(
|
|
6907
|
+
import_ui48.Chip,
|
|
6860
6908
|
{
|
|
6861
6909
|
label: displayLabel,
|
|
6862
6910
|
size: SIZE5,
|
|
@@ -6881,11 +6929,11 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
6881
6929
|
};
|
|
6882
6930
|
|
|
6883
6931
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
6884
|
-
var
|
|
6885
|
-
var
|
|
6932
|
+
var React99 = __toESM(require("react"));
|
|
6933
|
+
var import_ui49 = require("@elementor/ui");
|
|
6886
6934
|
var ValueComponent = ({ index, value }) => {
|
|
6887
|
-
return /* @__PURE__ */
|
|
6888
|
-
|
|
6935
|
+
return /* @__PURE__ */ React99.createElement(import_ui49.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React99.createElement(
|
|
6936
|
+
import_ui49.Typography,
|
|
6889
6937
|
{
|
|
6890
6938
|
variant: "caption",
|
|
6891
6939
|
color: "text.tertiary",
|
|
@@ -6906,9 +6954,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
6906
6954
|
};
|
|
6907
6955
|
|
|
6908
6956
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
6909
|
-
var
|
|
6910
|
-
var
|
|
6911
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
6957
|
+
var React100 = __toESM(require("react"));
|
|
6958
|
+
var import_ui50 = require("@elementor/ui");
|
|
6959
|
+
var ActionIcons = () => /* @__PURE__ */ React100.createElement(import_ui50.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
6912
6960
|
|
|
6913
6961
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6914
6962
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -6944,8 +6992,8 @@ var StylesInheritanceInfotip = ({
|
|
|
6944
6992
|
});
|
|
6945
6993
|
}, [key, propType]);
|
|
6946
6994
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
6947
|
-
const infotipContent = /* @__PURE__ */
|
|
6948
|
-
|
|
6995
|
+
const infotipContent = /* @__PURE__ */ React101.createElement(import_ui51.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React101.createElement(
|
|
6996
|
+
import_ui51.Card,
|
|
6949
6997
|
{
|
|
6950
6998
|
elevation: 0,
|
|
6951
6999
|
sx: {
|
|
@@ -6957,8 +7005,8 @@ var StylesInheritanceInfotip = ({
|
|
|
6957
7005
|
flexDirection: "column"
|
|
6958
7006
|
}
|
|
6959
7007
|
},
|
|
6960
|
-
/* @__PURE__ */
|
|
6961
|
-
|
|
7008
|
+
/* @__PURE__ */ React101.createElement(
|
|
7009
|
+
import_ui51.Box,
|
|
6962
7010
|
{
|
|
6963
7011
|
sx: {
|
|
6964
7012
|
position: "sticky",
|
|
@@ -6967,10 +7015,10 @@ var StylesInheritanceInfotip = ({
|
|
|
6967
7015
|
backgroundColor: "background.paper"
|
|
6968
7016
|
}
|
|
6969
7017
|
},
|
|
6970
|
-
/* @__PURE__ */
|
|
7018
|
+
/* @__PURE__ */ React101.createElement(import_editor_ui11.PopoverHeader, { title: (0, import_i18n72.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
6971
7019
|
),
|
|
6972
|
-
/* @__PURE__ */
|
|
6973
|
-
|
|
7020
|
+
/* @__PURE__ */ React101.createElement(
|
|
7021
|
+
import_ui51.CardContent,
|
|
6974
7022
|
{
|
|
6975
7023
|
sx: {
|
|
6976
7024
|
display: "flex",
|
|
@@ -6983,39 +7031,39 @@ var StylesInheritanceInfotip = ({
|
|
|
6983
7031
|
}
|
|
6984
7032
|
}
|
|
6985
7033
|
},
|
|
6986
|
-
/* @__PURE__ */
|
|
6987
|
-
return /* @__PURE__ */
|
|
6988
|
-
|
|
7034
|
+
/* @__PURE__ */ React101.createElement(import_ui51.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7035
|
+
return /* @__PURE__ */ React101.createElement(
|
|
7036
|
+
import_ui51.Box,
|
|
6989
7037
|
{
|
|
6990
7038
|
key: item.id,
|
|
6991
7039
|
display: "flex",
|
|
6992
7040
|
gap: 0.5,
|
|
6993
7041
|
role: "listitem",
|
|
6994
|
-
"aria-label": (0,
|
|
7042
|
+
"aria-label": (0, import_i18n72.__)("Inheritance item: %s", "elementor").replace(
|
|
6995
7043
|
"%s",
|
|
6996
7044
|
item.displayLabel
|
|
6997
7045
|
)
|
|
6998
7046
|
},
|
|
6999
|
-
/* @__PURE__ */
|
|
7000
|
-
|
|
7047
|
+
/* @__PURE__ */ React101.createElement(
|
|
7048
|
+
import_ui51.Box,
|
|
7001
7049
|
{
|
|
7002
7050
|
display: "flex",
|
|
7003
7051
|
gap: 0.5,
|
|
7004
7052
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7005
7053
|
},
|
|
7006
|
-
/* @__PURE__ */
|
|
7007
|
-
/* @__PURE__ */
|
|
7008
|
-
/* @__PURE__ */
|
|
7054
|
+
/* @__PURE__ */ React101.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7055
|
+
/* @__PURE__ */ React101.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7056
|
+
/* @__PURE__ */ React101.createElement(ValueComponent, { index, value: item.value })
|
|
7009
7057
|
),
|
|
7010
|
-
/* @__PURE__ */
|
|
7058
|
+
/* @__PURE__ */ React101.createElement(ActionIcons, null)
|
|
7011
7059
|
);
|
|
7012
7060
|
}))
|
|
7013
7061
|
)
|
|
7014
7062
|
));
|
|
7015
7063
|
if (isDisabled) {
|
|
7016
|
-
return /* @__PURE__ */
|
|
7064
|
+
return /* @__PURE__ */ React101.createElement(import_ui51.Box, { sx: { display: "inline-flex" } }, children);
|
|
7017
7065
|
}
|
|
7018
|
-
return /* @__PURE__ */
|
|
7066
|
+
return /* @__PURE__ */ React101.createElement(import_ui51.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React101.createElement(
|
|
7019
7067
|
TooltipOrInfotip,
|
|
7020
7068
|
{
|
|
7021
7069
|
showInfotip,
|
|
@@ -7023,8 +7071,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7023
7071
|
infotipContent,
|
|
7024
7072
|
isDisabled
|
|
7025
7073
|
},
|
|
7026
|
-
/* @__PURE__ */
|
|
7027
|
-
|
|
7074
|
+
/* @__PURE__ */ React101.createElement(
|
|
7075
|
+
import_ui51.IconButton,
|
|
7028
7076
|
{
|
|
7029
7077
|
onClick: toggleInfotip,
|
|
7030
7078
|
"aria-label": label,
|
|
@@ -7043,11 +7091,11 @@ function TooltipOrInfotip({
|
|
|
7043
7091
|
isDisabled
|
|
7044
7092
|
}) {
|
|
7045
7093
|
if (isDisabled) {
|
|
7046
|
-
return /* @__PURE__ */
|
|
7094
|
+
return /* @__PURE__ */ React101.createElement(import_ui51.Box, { sx: { display: "inline-flex" } }, children);
|
|
7047
7095
|
}
|
|
7048
7096
|
if (showInfotip) {
|
|
7049
|
-
return /* @__PURE__ */
|
|
7050
|
-
|
|
7097
|
+
return /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
|
|
7098
|
+
import_ui51.Backdrop,
|
|
7051
7099
|
{
|
|
7052
7100
|
open: showInfotip,
|
|
7053
7101
|
onClick: onClose,
|
|
@@ -7056,8 +7104,8 @@ function TooltipOrInfotip({
|
|
|
7056
7104
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7057
7105
|
}
|
|
7058
7106
|
}
|
|
7059
|
-
), /* @__PURE__ */
|
|
7060
|
-
|
|
7107
|
+
), /* @__PURE__ */ React101.createElement(
|
|
7108
|
+
import_ui51.Infotip,
|
|
7061
7109
|
{
|
|
7062
7110
|
placement: "top-end",
|
|
7063
7111
|
content: infotipContent,
|
|
@@ -7068,7 +7116,7 @@ function TooltipOrInfotip({
|
|
|
7068
7116
|
children
|
|
7069
7117
|
));
|
|
7070
7118
|
}
|
|
7071
|
-
return /* @__PURE__ */
|
|
7119
|
+
return /* @__PURE__ */ React101.createElement(import_ui51.Tooltip, { title: (0, import_i18n72.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
7072
7120
|
}
|
|
7073
7121
|
|
|
7074
7122
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7081,14 +7129,14 @@ var StylesInheritanceIndicator = ({
|
|
|
7081
7129
|
if (!path || !inheritanceChain.length) {
|
|
7082
7130
|
return null;
|
|
7083
7131
|
}
|
|
7084
|
-
return /* @__PURE__ */
|
|
7132
|
+
return /* @__PURE__ */ React102.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7085
7133
|
};
|
|
7086
7134
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7087
7135
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
7088
7136
|
const currentItem = currentStyleId ? getValueFromInheritanceChain(inheritanceChain, currentStyleId, currentStyleMeta) : null;
|
|
7089
7137
|
const hasValue = !(0, import_editor_props22.isEmpty)(currentItem?.value);
|
|
7090
7138
|
const [actualStyle] = inheritanceChain;
|
|
7091
|
-
if (actualStyle.provider ===
|
|
7139
|
+
if (actualStyle.provider === import_editor_styles_repository20.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
7092
7140
|
return null;
|
|
7093
7141
|
}
|
|
7094
7142
|
const isFinalValue = currentItem === actualStyle;
|
|
@@ -7097,7 +7145,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7097
7145
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7098
7146
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7099
7147
|
};
|
|
7100
|
-
return /* @__PURE__ */
|
|
7148
|
+
return /* @__PURE__ */ React102.createElement(
|
|
7101
7149
|
StylesInheritanceInfotip,
|
|
7102
7150
|
{
|
|
7103
7151
|
inheritanceChain,
|
|
@@ -7106,17 +7154,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7106
7154
|
label,
|
|
7107
7155
|
isDisabled
|
|
7108
7156
|
},
|
|
7109
|
-
/* @__PURE__ */
|
|
7157
|
+
/* @__PURE__ */ React102.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7110
7158
|
);
|
|
7111
7159
|
};
|
|
7112
7160
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
7113
7161
|
if (isFinalValue) {
|
|
7114
|
-
return (0,
|
|
7162
|
+
return (0, import_i18n73.__)("This is the final value", "elementor");
|
|
7115
7163
|
}
|
|
7116
7164
|
if (hasValue) {
|
|
7117
|
-
return (0,
|
|
7165
|
+
return (0, import_i18n73.__)("This value is overridden by another style", "elementor");
|
|
7118
7166
|
}
|
|
7119
|
-
return (0,
|
|
7167
|
+
return (0, import_i18n73.__)("This has value from another style", "elementor");
|
|
7120
7168
|
};
|
|
7121
7169
|
|
|
7122
7170
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -7137,7 +7185,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7137
7185
|
]);
|
|
7138
7186
|
|
|
7139
7187
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7140
|
-
var
|
|
7188
|
+
var React103 = __toESM(require("react"));
|
|
7141
7189
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
7142
7190
|
var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) => {
|
|
7143
7191
|
if (!values || values.length === 0) {
|
|
@@ -7147,18 +7195,18 @@ var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) =>
|
|
|
7147
7195
|
if (allStrings) {
|
|
7148
7196
|
return values.join(" ");
|
|
7149
7197
|
}
|
|
7150
|
-
return /* @__PURE__ */
|
|
7198
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, values.map((item, index) => /* @__PURE__ */ React103.createElement(React103.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7151
7199
|
});
|
|
7152
7200
|
|
|
7153
7201
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7154
|
-
var
|
|
7202
|
+
var React104 = __toESM(require("react"));
|
|
7155
7203
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
7156
|
-
var
|
|
7157
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */
|
|
7204
|
+
var import_ui52 = require("@elementor/ui");
|
|
7205
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React104.createElement(import_ui52.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React104.createElement(ItemLabelColor, { value })));
|
|
7158
7206
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7159
|
-
return /* @__PURE__ */
|
|
7207
|
+
return /* @__PURE__ */ React104.createElement("span", null, color);
|
|
7160
7208
|
};
|
|
7161
|
-
var StyledUnstableColorIndicator = (0,
|
|
7209
|
+
var StyledUnstableColorIndicator = (0, import_ui52.styled)(import_ui52.UnstableColorIndicator)(({ theme }) => ({
|
|
7162
7210
|
width: "1em",
|
|
7163
7211
|
height: "1em",
|
|
7164
7212
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -7167,20 +7215,20 @@ var StyledUnstableColorIndicator = (0, import_ui51.styled)(import_ui51.UnstableC
|
|
|
7167
7215
|
}));
|
|
7168
7216
|
|
|
7169
7217
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7170
|
-
var
|
|
7218
|
+
var React105 = __toESM(require("react"));
|
|
7171
7219
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
7172
|
-
var
|
|
7173
|
-
var
|
|
7174
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */
|
|
7220
|
+
var import_ui53 = require("@elementor/ui");
|
|
7221
|
+
var import_i18n74 = require("@wordpress/i18n");
|
|
7222
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React105.createElement(import_ui53.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React105.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React105.createElement(ItemLabelGradient, { value })));
|
|
7175
7223
|
var ItemIconGradient = ({ value }) => {
|
|
7176
7224
|
const gradient = getGradientValue(value);
|
|
7177
|
-
return /* @__PURE__ */
|
|
7225
|
+
return /* @__PURE__ */ React105.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7178
7226
|
};
|
|
7179
7227
|
var ItemLabelGradient = ({ value }) => {
|
|
7180
7228
|
if (value.type === "linear") {
|
|
7181
|
-
return /* @__PURE__ */
|
|
7229
|
+
return /* @__PURE__ */ React105.createElement("span", null, (0, import_i18n74.__)("Linear gradient", "elementor"));
|
|
7182
7230
|
}
|
|
7183
|
-
return /* @__PURE__ */
|
|
7231
|
+
return /* @__PURE__ */ React105.createElement("span", null, (0, import_i18n74.__)("Radial gradient", "elementor"));
|
|
7184
7232
|
};
|
|
7185
7233
|
var getGradientValue = (gradient) => {
|
|
7186
7234
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7191,16 +7239,16 @@ var getGradientValue = (gradient) => {
|
|
|
7191
7239
|
};
|
|
7192
7240
|
|
|
7193
7241
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7194
|
-
var
|
|
7242
|
+
var React106 = __toESM(require("react"));
|
|
7195
7243
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
7196
7244
|
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
7197
|
-
var
|
|
7245
|
+
var import_ui54 = require("@elementor/ui");
|
|
7198
7246
|
var import_wp_media = require("@elementor/wp-media");
|
|
7199
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */
|
|
7247
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React106.createElement(import_ui54.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React106.createElement(ItemIconImage, { value }), /* @__PURE__ */ React106.createElement(ItemLabelImage, { value })));
|
|
7200
7248
|
var ItemIconImage = ({ value }) => {
|
|
7201
7249
|
const { imageUrl } = useImage(value);
|
|
7202
|
-
return /* @__PURE__ */
|
|
7203
|
-
|
|
7250
|
+
return /* @__PURE__ */ React106.createElement(
|
|
7251
|
+
import_ui54.CardMedia,
|
|
7204
7252
|
{
|
|
7205
7253
|
image: imageUrl,
|
|
7206
7254
|
sx: (theme) => ({
|
|
@@ -7215,7 +7263,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7215
7263
|
};
|
|
7216
7264
|
var ItemLabelImage = ({ value }) => {
|
|
7217
7265
|
const { imageTitle } = useImage(value);
|
|
7218
|
-
return /* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ React106.createElement(import_editor_ui12.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React106.createElement("span", null, imageTitle));
|
|
7219
7267
|
};
|
|
7220
7268
|
var useImage = (image) => {
|
|
7221
7269
|
let imageTitle, imageUrl = null;
|
|
@@ -7240,7 +7288,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7240
7288
|
};
|
|
7241
7289
|
|
|
7242
7290
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7243
|
-
var
|
|
7291
|
+
var React107 = __toESM(require("react"));
|
|
7244
7292
|
var import_editor_canvas10 = require("@elementor/editor-canvas");
|
|
7245
7293
|
var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value) => {
|
|
7246
7294
|
if (!value) {
|
|
@@ -7250,20 +7298,20 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
|
|
|
7250
7298
|
const colorValue = color || "#000000";
|
|
7251
7299
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7252
7300
|
const positionValue = position || "outset";
|
|
7253
|
-
return /* @__PURE__ */
|
|
7301
|
+
return /* @__PURE__ */ React107.createElement(React107.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7254
7302
|
});
|
|
7255
7303
|
|
|
7256
7304
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7257
|
-
var
|
|
7305
|
+
var React108 = __toESM(require("react"));
|
|
7258
7306
|
var import_editor_canvas11 = require("@elementor/editor-canvas");
|
|
7259
|
-
var
|
|
7307
|
+
var import_ui55 = require("@elementor/ui");
|
|
7260
7308
|
function isValidCSSColor(value) {
|
|
7261
7309
|
if (!value.trim()) {
|
|
7262
7310
|
return false;
|
|
7263
7311
|
}
|
|
7264
7312
|
return CSS.supports("color", value.trim());
|
|
7265
7313
|
}
|
|
7266
|
-
var StyledColorIndicator = (0,
|
|
7314
|
+
var StyledColorIndicator = (0, import_ui55.styled)(import_ui55.UnstableColorIndicator)(({ theme }) => ({
|
|
7267
7315
|
width: "1em",
|
|
7268
7316
|
height: "1em",
|
|
7269
7317
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -7274,7 +7322,7 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
|
|
|
7274
7322
|
if (!isValidCSSColor(value)) {
|
|
7275
7323
|
return value;
|
|
7276
7324
|
}
|
|
7277
|
-
return /* @__PURE__ */
|
|
7325
|
+
return /* @__PURE__ */ React108.createElement(import_ui55.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React108.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React108.createElement("span", null, value));
|
|
7278
7326
|
});
|
|
7279
7327
|
|
|
7280
7328
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|