@elementor/editor-controls 3.32.0-73 → 3.32.0-75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +485 -499
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +417 -431
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/components/unstable-repeater/actions/tooltip-add-item-action.tsx +1 -1
- package/src/components/unstable-repeater/header/header.tsx +12 -19
- package/src/controls/gap-control.tsx +2 -3
- package/src/controls/linked-dimensions-control.tsx +106 -109
- package/src/controls/transform-control/transform-base-control.tsx +38 -34
- package/src/controls/transform-control/transform-base-controls/children-perspective-control.tsx +58 -48
- package/src/controls/transform-control/transform-base-controls/transform-origin-control.tsx +26 -34
- package/src/controls/transform-control/transform-repeater-control.tsx +38 -6
package/dist/index.mjs
CHANGED
|
@@ -2299,85 +2299,83 @@ import { dimensionsPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil4 } from "@
|
|
|
2299
2299
|
import { DetachIcon, LinkIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
2300
2300
|
import { Grid as Grid8, Stack as Stack8, Tooltip as Tooltip4 } from "@elementor/ui";
|
|
2301
2301
|
import { __ as __10 } from "@wordpress/i18n";
|
|
2302
|
-
var LinkedDimensionsControl =
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2302
|
+
var LinkedDimensionsControl = ({
|
|
2303
|
+
label,
|
|
2304
|
+
isSiteRtl = false,
|
|
2305
|
+
extendedOptions,
|
|
2306
|
+
min
|
|
2307
|
+
}) => {
|
|
2308
|
+
const {
|
|
2309
|
+
value: sizeValue,
|
|
2310
|
+
setValue: setSizeValue,
|
|
2311
|
+
disabled: sizeDisabled,
|
|
2312
|
+
placeholder: sizePlaceholder
|
|
2313
|
+
} = useBoundProp(sizePropTypeUtil4);
|
|
2314
|
+
const gridRowRefs = [useRef9(null), useRef9(null)];
|
|
2315
|
+
const {
|
|
2316
|
+
value: dimensionsValue,
|
|
2317
|
+
setValue: setDimensionsValue,
|
|
2318
|
+
propType,
|
|
2319
|
+
placeholder: dimensionsPlaceholder,
|
|
2320
|
+
disabled: dimensionsDisabled
|
|
2321
|
+
} = useBoundProp(dimensionsPropTypeUtil);
|
|
2322
|
+
const hasUserValues = !!(dimensionsValue || sizeValue);
|
|
2323
|
+
const hasPlaceholders = !!(sizePlaceholder || dimensionsPlaceholder);
|
|
2324
|
+
const isLinked = !hasUserValues && !hasPlaceholders || (hasPlaceholders ? !!sizePlaceholder : !!sizeValue);
|
|
2325
|
+
const onLinkToggle = () => {
|
|
2326
|
+
if (!isLinked) {
|
|
2327
|
+
setSizeValue(dimensionsValue["block-start"]?.value ?? null);
|
|
2328
|
+
return;
|
|
2329
|
+
}
|
|
2330
|
+
const value = sizeValue ? sizePropTypeUtil4.create(sizeValue) : null;
|
|
2331
|
+
setDimensionsValue({
|
|
2332
|
+
"block-start": value,
|
|
2333
|
+
"block-end": value,
|
|
2334
|
+
"inline-start": value,
|
|
2335
|
+
"inline-end": value
|
|
2336
|
+
});
|
|
2337
|
+
};
|
|
2338
|
+
const tooltipLabel = label.toLowerCase();
|
|
2339
|
+
const LinkedIcon = isLinked ? LinkIcon : DetachIcon;
|
|
2340
|
+
const linkedLabel = __10("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
2341
|
+
const unlinkedLabel = __10("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
2342
|
+
const disabled = sizeDisabled || dimensionsDisabled;
|
|
2343
|
+
return /* @__PURE__ */ React38.createElement(
|
|
2344
|
+
PropProvider,
|
|
2345
|
+
{
|
|
2346
|
+
propType,
|
|
2317
2347
|
value: dimensionsValue,
|
|
2318
2348
|
setValue: setDimensionsValue,
|
|
2319
|
-
propType,
|
|
2320
2349
|
placeholder: dimensionsPlaceholder,
|
|
2321
|
-
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
const isLinked = !hasUserValues && !hasPlaceholders || (hasPlaceholders ? !!sizePlaceholder : !!sizeValue);
|
|
2326
|
-
const onLinkToggle = () => {
|
|
2327
|
-
if (!isLinked) {
|
|
2328
|
-
setSizeValue(dimensionsValue["block-start"]?.value ?? null);
|
|
2329
|
-
return;
|
|
2330
|
-
}
|
|
2331
|
-
const value = sizeValue ? sizePropTypeUtil4.create(sizeValue) : null;
|
|
2332
|
-
setDimensionsValue({
|
|
2333
|
-
"block-start": value,
|
|
2334
|
-
"block-end": value,
|
|
2335
|
-
"inline-start": value,
|
|
2336
|
-
"inline-end": value
|
|
2337
|
-
});
|
|
2338
|
-
};
|
|
2339
|
-
const tooltipLabel = label.toLowerCase();
|
|
2340
|
-
const LinkedIcon = isLinked ? LinkIcon : DetachIcon;
|
|
2341
|
-
const linkedLabel = __10("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
2342
|
-
const unlinkedLabel = __10("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
2343
|
-
const disabled = sizeDisabled || dimensionsDisabled;
|
|
2344
|
-
return /* @__PURE__ */ React38.createElement(
|
|
2345
|
-
PropProvider,
|
|
2350
|
+
isDisabled: () => disabled
|
|
2351
|
+
},
|
|
2352
|
+
/* @__PURE__ */ React38.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(ControlFormLabel, null, label), /* @__PURE__ */ React38.createElement(Tooltip4, { title: isLinked ? unlinkedLabel : linkedLabel, placement: "top" }, /* @__PURE__ */ React38.createElement(
|
|
2353
|
+
StyledToggleButton,
|
|
2346
2354
|
{
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2355
|
+
"aria-label": isLinked ? unlinkedLabel : linkedLabel,
|
|
2356
|
+
size: "tiny",
|
|
2357
|
+
value: "check",
|
|
2358
|
+
selected: isLinked,
|
|
2359
|
+
sx: { marginLeft: "auto" },
|
|
2360
|
+
onChange: onLinkToggle,
|
|
2361
|
+
disabled,
|
|
2362
|
+
isPlaceholder: hasPlaceholders
|
|
2352
2363
|
},
|
|
2353
|
-
/* @__PURE__ */ React38.createElement(
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
Control3,
|
|
2369
|
-
{
|
|
2370
|
-
bind: props.bind,
|
|
2371
|
-
startIcon: icon,
|
|
2372
|
-
isLinked,
|
|
2373
|
-
extendedOptions,
|
|
2374
|
-
anchorRef: gridRowRefs[index],
|
|
2375
|
-
min
|
|
2376
|
-
}
|
|
2377
|
-
))))))
|
|
2378
|
-
);
|
|
2379
|
-
}
|
|
2380
|
-
);
|
|
2364
|
+
/* @__PURE__ */ React38.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
2365
|
+
))),
|
|
2366
|
+
getCssDimensionProps(isSiteRtl).map((row, index) => /* @__PURE__ */ React38.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", key: index, ref: gridRowRefs[index] }, row.map(({ icon, ...props }) => /* @__PURE__ */ React38.createElement(Grid8, { container: true, gap: 0.75, alignItems: "center", key: props.bind }, /* @__PURE__ */ React38.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React38.createElement(Label, { ...props })), /* @__PURE__ */ React38.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React38.createElement(
|
|
2367
|
+
Control3,
|
|
2368
|
+
{
|
|
2369
|
+
bind: props.bind,
|
|
2370
|
+
startIcon: icon,
|
|
2371
|
+
isLinked,
|
|
2372
|
+
extendedOptions,
|
|
2373
|
+
anchorRef: gridRowRefs[index],
|
|
2374
|
+
min
|
|
2375
|
+
}
|
|
2376
|
+
))))))
|
|
2377
|
+
);
|
|
2378
|
+
};
|
|
2381
2379
|
var Control3 = ({
|
|
2382
2380
|
bind,
|
|
2383
2381
|
startIcon,
|
|
@@ -3037,7 +3035,7 @@ import { layoutDirectionPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil5 } fr
|
|
|
3037
3035
|
import { DetachIcon as DetachIcon2, LinkIcon as LinkIcon2 } from "@elementor/icons";
|
|
3038
3036
|
import { Grid as Grid10, Stack as Stack11, ToggleButton as ToggleButton3, Tooltip as Tooltip5 } from "@elementor/ui";
|
|
3039
3037
|
import { __ as __15 } from "@wordpress/i18n";
|
|
3040
|
-
var GapControl =
|
|
3038
|
+
var GapControl = ({ label }) => {
|
|
3041
3039
|
const {
|
|
3042
3040
|
value: directionValue,
|
|
3043
3041
|
setValue: setDirectionValue,
|
|
@@ -3076,7 +3074,7 @@ var GapControl = createControl(({ label }) => {
|
|
|
3076
3074
|
},
|
|
3077
3075
|
/* @__PURE__ */ React46.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
3078
3076
|
))), /* @__PURE__ */ React46.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React46.createElement(Grid10, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React46.createElement(Grid10, { item: true, xs: 12 }, /* @__PURE__ */ React46.createElement(ControlFormLabel, null, __15("Column", "elementor"))), /* @__PURE__ */ React46.createElement(Grid10, { item: true, xs: 12 }, /* @__PURE__ */ React46.createElement(Control4, { bind: "column", isLinked, anchorRef: stackRef }))), /* @__PURE__ */ React46.createElement(Grid10, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React46.createElement(Grid10, { item: true, xs: 12 }, /* @__PURE__ */ React46.createElement(ControlFormLabel, null, __15("Row", "elementor"))), /* @__PURE__ */ React46.createElement(Grid10, { item: true, xs: 12 }, /* @__PURE__ */ React46.createElement(Control4, { bind: "row", isLinked, anchorRef: stackRef })))));
|
|
3079
|
-
}
|
|
3077
|
+
};
|
|
3080
3078
|
var Control4 = ({
|
|
3081
3079
|
bind,
|
|
3082
3080
|
isLinked,
|
|
@@ -3377,13 +3375,13 @@ var SvgMediaControl = createControl(() => {
|
|
|
3377
3375
|
});
|
|
3378
3376
|
|
|
3379
3377
|
// src/controls/background-control/background-control.tsx
|
|
3380
|
-
import * as
|
|
3378
|
+
import * as React66 from "react";
|
|
3381
3379
|
import { backgroundPropTypeUtil } from "@elementor/editor-props";
|
|
3382
|
-
import { Grid as
|
|
3383
|
-
import { __ as
|
|
3380
|
+
import { Grid as Grid16 } from "@elementor/ui";
|
|
3381
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
3384
3382
|
|
|
3385
3383
|
// src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx
|
|
3386
|
-
import * as
|
|
3384
|
+
import * as React65 from "react";
|
|
3387
3385
|
import {
|
|
3388
3386
|
backgroundColorOverlayPropTypeUtil as backgroundColorOverlayPropTypeUtil2,
|
|
3389
3387
|
backgroundImageOverlayPropTypeUtil as backgroundImageOverlayPropTypeUtil2,
|
|
@@ -3392,7 +3390,7 @@ import {
|
|
|
3392
3390
|
} from "@elementor/editor-props";
|
|
3393
3391
|
import { Box as Box11, CardMedia as CardMedia3, styled as styled7, Tab, TabPanel, Tabs, UnstableColorIndicator as UnstableColorIndicator3 } from "@elementor/ui";
|
|
3394
3392
|
import { useWpMediaAttachment as useWpMediaAttachment3 } from "@elementor/wp-media";
|
|
3395
|
-
import { __ as
|
|
3393
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
3396
3394
|
|
|
3397
3395
|
// src/components/unstable-repeater/actions/tooltip-add-item-action.tsx
|
|
3398
3396
|
import * as React51 from "react";
|
|
@@ -3495,7 +3493,7 @@ var TooltipAddItemAction = ({
|
|
|
3495
3493
|
}) => {
|
|
3496
3494
|
const { addItem } = useRepeaterContext();
|
|
3497
3495
|
const onClick = (ev) => addItem(ev, { index: newItemIndex });
|
|
3498
|
-
return /* @__PURE__ */ React51.createElement(ConditionalToolTip, { content: tooltipContent, enable: enableTooltip }, /* @__PURE__ */ React51.createElement(Box8, {
|
|
3496
|
+
return /* @__PURE__ */ React51.createElement(ConditionalToolTip, { content: tooltipContent, enable: enableTooltip }, /* @__PURE__ */ React51.createElement(Box8, { component: "span", sx: { cursor: disabled ? "not-allowed" : "pointer" } }, /* @__PURE__ */ React51.createElement(
|
|
3499
3497
|
IconButton4,
|
|
3500
3498
|
{
|
|
3501
3499
|
size: SIZE4,
|
|
@@ -3513,159 +3511,15 @@ var ConditionalToolTip = ({
|
|
|
3513
3511
|
}) => enable && content ? /* @__PURE__ */ React51.createElement(Infotip2, { placement: "right", color: "secondary", content }, children) : children;
|
|
3514
3512
|
|
|
3515
3513
|
// src/components/unstable-repeater/header/header.tsx
|
|
3516
|
-
import * as React55 from "react";
|
|
3517
|
-
import { Box as Box9, Stack as Stack16, Typography as Typography5 } from "@elementor/ui";
|
|
3518
|
-
|
|
3519
|
-
// src/controls/transform-control/transform-base-control.tsx
|
|
3520
|
-
import * as React54 from "react";
|
|
3521
|
-
import { useRef as useRef11 } from "react";
|
|
3522
|
-
import { PopoverHeader as PopoverHeader3 } from "@elementor/editor-ui";
|
|
3523
|
-
import { AdjustmentsIcon } from "@elementor/icons";
|
|
3524
|
-
import { bindPopover as bindPopover5, bindTrigger as bindTrigger4, Divider as Divider6, IconButton as IconButton5, Popover as Popover5, usePopupState as usePopupState7 } from "@elementor/ui";
|
|
3525
|
-
import { __ as __22 } from "@wordpress/i18n";
|
|
3526
|
-
|
|
3527
|
-
// src/controls/transform-control/transform-base-controls/children-perspective-control.tsx
|
|
3528
3514
|
import * as React52 from "react";
|
|
3529
|
-
import {
|
|
3530
|
-
|
|
3531
|
-
import { __ as __20 } from "@wordpress/i18n";
|
|
3532
|
-
var ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
3533
|
-
var CHILDREN_PERSPECTIVE_FIELDS = [
|
|
3534
|
-
{
|
|
3535
|
-
label: __20("Perspective", "elementor"),
|
|
3536
|
-
bindValue: "perspective",
|
|
3537
|
-
units: lengthUnits
|
|
3538
|
-
},
|
|
3539
|
-
{
|
|
3540
|
-
label: __20("Origin X", "elementor"),
|
|
3541
|
-
bindValue: "perspective-origin-x",
|
|
3542
|
-
units: ORIGIN_UNITS
|
|
3543
|
-
},
|
|
3544
|
-
{
|
|
3545
|
-
label: __20("Origin Y", "elementor"),
|
|
3546
|
-
bindValue: "perspective-origin-y",
|
|
3547
|
-
units: ORIGIN_UNITS
|
|
3548
|
-
}
|
|
3549
|
-
];
|
|
3550
|
-
var ChildrenPerspectiveControl = ({ rowRef }) => {
|
|
3551
|
-
return /* @__PURE__ */ React52.createElement(Stack14, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React52.createElement(ControlFormLabel, { sx: { pt: 1.5, pl: 1.5 } }, __20("Children perspective", "elementor")), /* @__PURE__ */ React52.createElement(Grid12, { container: true, spacing: 1.5, ref: rowRef }, CHILDREN_PERSPECTIVE_FIELDS.map((control) => /* @__PURE__ */ React52.createElement(ControlFields, { control, rowRef, key: control.bindValue })), /* @__PURE__ */ React52.createElement(Divider4, { sx: { py: 3 } })));
|
|
3552
|
-
};
|
|
3553
|
-
var ControlFields = ({
|
|
3554
|
-
control,
|
|
3555
|
-
rowRef
|
|
3556
|
-
}) => {
|
|
3557
|
-
const context = useBoundProp(sizePropTypeUtil6);
|
|
3558
|
-
return /* @__PURE__ */ React52.createElement(PropProvider, { ...context }, /* @__PURE__ */ React52.createElement(PropKeyProvider, { bind: control.bindValue }, /* @__PURE__ */ React52.createElement(Grid12, { item: true, xs: 12 }, /* @__PURE__ */ React52.createElement(Grid12, { container: true, spacing: 1, alignItems: "center" }, /* @__PURE__ */ React52.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, control.label)), /* @__PURE__ */ React52.createElement(Grid12, { item: true, xs: 6, sx: { pr: 3 } }, /* @__PURE__ */ React52.createElement(
|
|
3559
|
-
SizeControl,
|
|
3560
|
-
{
|
|
3561
|
-
variant: "length",
|
|
3562
|
-
units: [...control.units],
|
|
3563
|
-
anchorRef: rowRef,
|
|
3564
|
-
disableCustom: true
|
|
3565
|
-
}
|
|
3566
|
-
))))));
|
|
3567
|
-
};
|
|
3568
|
-
|
|
3569
|
-
// src/controls/transform-control/transform-base-controls/transform-origin-control.tsx
|
|
3570
|
-
import * as React53 from "react";
|
|
3571
|
-
import { sizePropTypeUtil as sizePropTypeUtil7 } from "@elementor/editor-props";
|
|
3572
|
-
import { Divider as Divider5, Grid as Grid13, Stack as Stack15 } from "@elementor/ui";
|
|
3573
|
-
import { __ as __21 } from "@wordpress/i18n";
|
|
3574
|
-
var TRANSFORM_ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
3575
|
-
var TRANSFORM_ORIGIN_FIELDS = [
|
|
3576
|
-
{
|
|
3577
|
-
label: __21("Origin X", "elementor"),
|
|
3578
|
-
bindValue: "x",
|
|
3579
|
-
units: TRANSFORM_ORIGIN_UNITS
|
|
3580
|
-
},
|
|
3581
|
-
{
|
|
3582
|
-
label: __21("Origin Y", "elementor"),
|
|
3583
|
-
bindValue: "y",
|
|
3584
|
-
units: TRANSFORM_ORIGIN_UNITS
|
|
3585
|
-
},
|
|
3586
|
-
{
|
|
3587
|
-
label: __21("Origin Z", "elementor"),
|
|
3588
|
-
bindValue: "z",
|
|
3589
|
-
units: TRANSFORM_ORIGIN_UNITS.filter((unit) => unit !== "%")
|
|
3590
|
-
}
|
|
3591
|
-
];
|
|
3592
|
-
var TransformOriginControl = ({ rowRef }) => {
|
|
3593
|
-
return /* @__PURE__ */ React53.createElement(Stack15, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React53.createElement(ControlFormLabel, { sx: { pt: 1.5, pl: 1.5 } }, __21("Transform", "elementor")), /* @__PURE__ */ React53.createElement(Grid13, { container: true, spacing: 1.5, ref: rowRef }, TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React53.createElement(ControlFields2, { control, rowRef, key: control.bindValue })), /* @__PURE__ */ React53.createElement(Divider5, { sx: { py: 3 } })));
|
|
3594
|
-
};
|
|
3595
|
-
var ControlFields2 = ({
|
|
3596
|
-
control,
|
|
3597
|
-
rowRef
|
|
3598
|
-
}) => {
|
|
3599
|
-
const context = useBoundProp(sizePropTypeUtil7);
|
|
3600
|
-
return /* @__PURE__ */ React53.createElement(PropProvider, { ...context }, /* @__PURE__ */ React53.createElement(PropKeyProvider, { bind: control.bindValue }, /* @__PURE__ */ React53.createElement(Grid13, { item: true, xs: 12 }, /* @__PURE__ */ React53.createElement(Grid13, { container: true, spacing: 1, alignItems: "center" }, /* @__PURE__ */ React53.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(ControlLabel, null, control.label)), /* @__PURE__ */ React53.createElement(Grid13, { item: true, xs: 6, sx: { pr: 3 } }, /* @__PURE__ */ React53.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef, disableCustom: true }))))));
|
|
3601
|
-
};
|
|
3602
|
-
|
|
3603
|
-
// src/controls/transform-control/transform-base-control.tsx
|
|
3604
|
-
var SIZE5 = "tiny";
|
|
3605
|
-
var TransformBaseControl = ({ anchorRef }) => {
|
|
3606
|
-
const rowRef = useRef11(null);
|
|
3607
|
-
const popupState = usePopupState7({ variant: "popover" });
|
|
3608
|
-
const popupProps = bindPopover5({
|
|
3609
|
-
...popupState,
|
|
3610
|
-
anchorEl: anchorRef.current ?? void 0
|
|
3611
|
-
});
|
|
3612
|
-
return /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(
|
|
3613
|
-
IconButton5,
|
|
3614
|
-
{
|
|
3615
|
-
size: SIZE5,
|
|
3616
|
-
"aria-label": __22("Base Transform", "elementor"),
|
|
3617
|
-
...bindTrigger4(popupState)
|
|
3618
|
-
},
|
|
3619
|
-
/* @__PURE__ */ React54.createElement(AdjustmentsIcon, { fontSize: SIZE5 })
|
|
3620
|
-
), /* @__PURE__ */ React54.createElement(
|
|
3621
|
-
Popover5,
|
|
3622
|
-
{
|
|
3623
|
-
disablePortal: true,
|
|
3624
|
-
slotProps: {
|
|
3625
|
-
paper: {
|
|
3626
|
-
sx: {
|
|
3627
|
-
width: anchorRef.current?.offsetWidth + "px"
|
|
3628
|
-
}
|
|
3629
|
-
}
|
|
3630
|
-
},
|
|
3631
|
-
...popupProps
|
|
3632
|
-
},
|
|
3633
|
-
/* @__PURE__ */ React54.createElement(
|
|
3634
|
-
PopoverHeader3,
|
|
3635
|
-
{
|
|
3636
|
-
title: __22("Base Transform", "elementor"),
|
|
3637
|
-
onClose: popupState.close,
|
|
3638
|
-
icon: /* @__PURE__ */ React54.createElement(AdjustmentsIcon, { fontSize: SIZE5 })
|
|
3639
|
-
}
|
|
3640
|
-
),
|
|
3641
|
-
/* @__PURE__ */ React54.createElement(Divider6, null),
|
|
3642
|
-
/* @__PURE__ */ React54.createElement(TransformOriginControl, { rowRef }),
|
|
3643
|
-
/* @__PURE__ */ React54.createElement(Divider6, null),
|
|
3644
|
-
/* @__PURE__ */ React54.createElement(ChildrenPerspectiveControl, { rowRef })
|
|
3645
|
-
));
|
|
3646
|
-
};
|
|
3647
|
-
|
|
3648
|
-
// src/components/unstable-repeater/header/header.tsx
|
|
3649
|
-
var Header = ({ label, children }) => {
|
|
3515
|
+
import { Box as Box9, Stack as Stack14, Typography as Typography5 } from "@elementor/ui";
|
|
3516
|
+
var Header = React52.forwardRef(({ label, children }, ref) => {
|
|
3650
3517
|
const { value } = useBoundProp();
|
|
3651
|
-
return /* @__PURE__ */
|
|
3652
|
-
|
|
3653
|
-
{
|
|
3654
|
-
direction: "row",
|
|
3655
|
-
justifyContent: "start",
|
|
3656
|
-
alignItems: "center",
|
|
3657
|
-
gap: 1,
|
|
3658
|
-
sx: { marginInlineEnd: -0.75, py: 0.25 }
|
|
3659
|
-
},
|
|
3660
|
-
/* @__PURE__ */ React55.createElement(Typography5, { component: "label", variant: "caption", color: "text.secondary", sx: { lineHeight: 1 } }, label),
|
|
3661
|
-
/* @__PURE__ */ React55.createElement(ControlAdornments, null),
|
|
3662
|
-
/* @__PURE__ */ React55.createElement(RepeaterHeaderActionsSlot, { value }),
|
|
3663
|
-
/* @__PURE__ */ React55.createElement(Box9, { sx: { ml: "auto" } }, /* @__PURE__ */ React55.createElement(SlotChildren, { whitelist: [TransformBaseControl, TooltipAddItemAction], sorted: true }, children))
|
|
3664
|
-
);
|
|
3665
|
-
};
|
|
3518
|
+
return /* @__PURE__ */ React52.createElement(Stack14, { direction: "row", alignItems: "center", gap: 1, sx: { marginInlineEnd: -0.75, py: 0.25 }, ref }, /* @__PURE__ */ React52.createElement(Box9, { display: "flex", alignItems: "center", gap: 1, sx: { flexGrow: 1 } }, /* @__PURE__ */ React52.createElement(Typography5, { component: "label", variant: "caption", color: "text.secondary", sx: { lineHeight: 1 } }, label), /* @__PURE__ */ React52.createElement(ControlAdornments, null)), /* @__PURE__ */ React52.createElement(RepeaterHeaderActionsSlot, { value }), /* @__PURE__ */ React52.createElement(SlotChildren, { whitelist: [TooltipAddItemAction], sorted: true }, children));
|
|
3519
|
+
});
|
|
3666
3520
|
|
|
3667
3521
|
// src/components/unstable-repeater/items/items-container.tsx
|
|
3668
|
-
import * as
|
|
3522
|
+
import * as React53 from "react";
|
|
3669
3523
|
var ItemsContainer = ({
|
|
3670
3524
|
itemTemplate,
|
|
3671
3525
|
isSortable = true,
|
|
@@ -3684,9 +3538,9 @@ var ItemsContainer = ({
|
|
|
3684
3538
|
})
|
|
3685
3539
|
);
|
|
3686
3540
|
};
|
|
3687
|
-
return /* @__PURE__ */
|
|
3541
|
+
return /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(SortableProvider, { value: keys, onChange: onChangeOrder }, keys.map((key, index) => {
|
|
3688
3542
|
const value = items2[index].item;
|
|
3689
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ React53.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, React53.isValidElement(itemTemplate) ? React53.cloneElement(itemTemplate, {
|
|
3690
3544
|
key,
|
|
3691
3545
|
value,
|
|
3692
3546
|
index,
|
|
@@ -3696,23 +3550,23 @@ var ItemsContainer = ({
|
|
|
3696
3550
|
};
|
|
3697
3551
|
|
|
3698
3552
|
// src/components/unstable-repeater/items/item.tsx
|
|
3699
|
-
import * as
|
|
3700
|
-
import { bindTrigger as
|
|
3701
|
-
import { __ as
|
|
3553
|
+
import * as React57 from "react";
|
|
3554
|
+
import { bindTrigger as bindTrigger4, UnstableTag as UnstableTag3 } from "@elementor/ui";
|
|
3555
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3702
3556
|
|
|
3703
3557
|
// src/components/unstable-repeater/actions/disable-item-action.tsx
|
|
3704
|
-
import * as
|
|
3558
|
+
import * as React54 from "react";
|
|
3705
3559
|
import { EyeIcon as EyeIcon2, EyeOffIcon as EyeOffIcon2 } from "@elementor/icons";
|
|
3706
|
-
import { IconButton as
|
|
3707
|
-
import { __ as
|
|
3708
|
-
var
|
|
3560
|
+
import { IconButton as IconButton5, Tooltip as Tooltip6 } from "@elementor/ui";
|
|
3561
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
3562
|
+
var SIZE5 = "tiny";
|
|
3709
3563
|
var DisableItemAction = ({ index = -1 }) => {
|
|
3710
3564
|
const { items: items2, updateItem } = useRepeaterContext();
|
|
3711
3565
|
if (index === -1) {
|
|
3712
3566
|
return null;
|
|
3713
3567
|
}
|
|
3714
3568
|
const propDisabled = items2[index].item.disabled ?? false;
|
|
3715
|
-
const toggleLabel = propDisabled ?
|
|
3569
|
+
const toggleLabel = propDisabled ? __20("Show", "elementor") : __20("Hide", "elementor");
|
|
3716
3570
|
const onClick = () => {
|
|
3717
3571
|
const self = structuredClone(items2[index].item);
|
|
3718
3572
|
self.disabled = !self.disabled;
|
|
@@ -3721,42 +3575,42 @@ var DisableItemAction = ({ index = -1 }) => {
|
|
|
3721
3575
|
}
|
|
3722
3576
|
updateItem(self, index);
|
|
3723
3577
|
};
|
|
3724
|
-
return /* @__PURE__ */
|
|
3578
|
+
return /* @__PURE__ */ React54.createElement(Tooltip6, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React54.createElement(IconButton5, { size: SIZE5, onClick, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React54.createElement(EyeOffIcon2, { fontSize: SIZE5 }) : /* @__PURE__ */ React54.createElement(EyeIcon2, { fontSize: SIZE5 })));
|
|
3725
3579
|
};
|
|
3726
3580
|
|
|
3727
3581
|
// src/components/unstable-repeater/actions/duplicate-item-action.tsx
|
|
3728
|
-
import * as
|
|
3582
|
+
import * as React55 from "react";
|
|
3729
3583
|
import { CopyIcon as CopyIcon2 } from "@elementor/icons";
|
|
3730
|
-
import { IconButton as
|
|
3731
|
-
import { __ as
|
|
3732
|
-
var
|
|
3584
|
+
import { IconButton as IconButton6, Tooltip as Tooltip7 } from "@elementor/ui";
|
|
3585
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
3586
|
+
var SIZE6 = "tiny";
|
|
3733
3587
|
var DuplicateItemAction = ({ index = -1 }) => {
|
|
3734
3588
|
const { items: items2, addItem } = useRepeaterContext();
|
|
3735
3589
|
if (index === -1) {
|
|
3736
3590
|
return null;
|
|
3737
3591
|
}
|
|
3738
|
-
const duplicateLabel =
|
|
3592
|
+
const duplicateLabel = __21("Duplicate", "elementor");
|
|
3739
3593
|
const onClick = (ev) => {
|
|
3740
3594
|
const newItem = structuredClone(items2[index]?.item);
|
|
3741
3595
|
addItem(ev, { item: newItem, index: index + 1 });
|
|
3742
3596
|
};
|
|
3743
|
-
return /* @__PURE__ */
|
|
3597
|
+
return /* @__PURE__ */ React55.createElement(Tooltip7, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React55.createElement(IconButton6, { size: SIZE6, onClick, "aria-label": duplicateLabel }, /* @__PURE__ */ React55.createElement(CopyIcon2, { fontSize: SIZE6 })));
|
|
3744
3598
|
};
|
|
3745
3599
|
|
|
3746
3600
|
// src/components/unstable-repeater/actions/remove-item-action.tsx
|
|
3747
|
-
import * as
|
|
3601
|
+
import * as React56 from "react";
|
|
3748
3602
|
import { XIcon as XIcon3 } from "@elementor/icons";
|
|
3749
|
-
import { IconButton as
|
|
3750
|
-
import { __ as
|
|
3751
|
-
var
|
|
3603
|
+
import { IconButton as IconButton7, Tooltip as Tooltip8 } from "@elementor/ui";
|
|
3604
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3605
|
+
var SIZE7 = "tiny";
|
|
3752
3606
|
var RemoveItemAction = ({ index = -1 }) => {
|
|
3753
3607
|
const { removeItem } = useRepeaterContext();
|
|
3754
3608
|
if (index === -1) {
|
|
3755
3609
|
return null;
|
|
3756
3610
|
}
|
|
3757
|
-
const removeLabel =
|
|
3611
|
+
const removeLabel = __22("Remove", "elementor");
|
|
3758
3612
|
const onClick = () => removeItem(index);
|
|
3759
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ React56.createElement(Tooltip8, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React56.createElement(IconButton7, { size: SIZE7, onClick, "aria-label": removeLabel }, /* @__PURE__ */ React56.createElement(XIcon3, { fontSize: SIZE7 })));
|
|
3760
3614
|
};
|
|
3761
3615
|
|
|
3762
3616
|
// src/components/unstable-repeater/items/item.tsx
|
|
@@ -3768,28 +3622,28 @@ var Item = ({
|
|
|
3768
3622
|
children
|
|
3769
3623
|
}) => {
|
|
3770
3624
|
const { items: items2, popoverState, setRowRef, openItemIndex, setOpenItemIndex } = useRepeaterContext();
|
|
3771
|
-
const triggerProps =
|
|
3625
|
+
const triggerProps = bindTrigger4(popoverState);
|
|
3772
3626
|
const key = items2[index].key ?? -1;
|
|
3773
3627
|
const onClick = (ev) => {
|
|
3774
3628
|
triggerProps.onClick(ev);
|
|
3775
3629
|
setOpenItemIndex(index);
|
|
3776
3630
|
};
|
|
3777
|
-
return /* @__PURE__ */
|
|
3631
|
+
return /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(
|
|
3778
3632
|
UnstableTag3,
|
|
3779
3633
|
{
|
|
3780
3634
|
key,
|
|
3781
3635
|
disabled: false,
|
|
3782
|
-
label: /* @__PURE__ */
|
|
3636
|
+
label: /* @__PURE__ */ React57.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React57.createElement(Label3, { value })),
|
|
3783
3637
|
showActionsOnHover: true,
|
|
3784
3638
|
fullWidth: true,
|
|
3785
3639
|
ref: (ref) => ref && openItemIndex === index && setRowRef(ref),
|
|
3786
3640
|
variant: "outlined",
|
|
3787
|
-
"aria-label":
|
|
3641
|
+
"aria-label": __23("Open item", "elementor"),
|
|
3788
3642
|
sx: { minHeight: (theme) => theme.spacing(4) },
|
|
3789
3643
|
...triggerProps,
|
|
3790
3644
|
onClick,
|
|
3791
|
-
startIcon: /* @__PURE__ */
|
|
3792
|
-
actions: /* @__PURE__ */
|
|
3645
|
+
startIcon: /* @__PURE__ */ React57.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React57.createElement(Icon, { value })),
|
|
3646
|
+
actions: /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(RepeaterItemActionsSlot, { index: index ?? -1 }), /* @__PURE__ */ React57.createElement(
|
|
3793
3647
|
SlotChildren,
|
|
3794
3648
|
{
|
|
3795
3649
|
whitelist: [DuplicateItemAction, DisableItemAction, RemoveItemAction],
|
|
@@ -3803,14 +3657,14 @@ var Item = ({
|
|
|
3803
3657
|
};
|
|
3804
3658
|
|
|
3805
3659
|
// src/components/unstable-repeater/unstable-repeater.tsx
|
|
3806
|
-
import * as
|
|
3660
|
+
import * as React59 from "react";
|
|
3807
3661
|
|
|
3808
3662
|
// src/components/unstable-repeater/items/edit-item-popover.tsx
|
|
3809
|
-
import * as
|
|
3810
|
-
import { bindPopover as
|
|
3663
|
+
import * as React58 from "react";
|
|
3664
|
+
import { bindPopover as bindPopover5, Box as Box10, Popover as Popover5 } from "@elementor/ui";
|
|
3811
3665
|
var EditItemPopover = ({ children }) => {
|
|
3812
3666
|
const { popoverState, openItemIndex, isOpen, rowRef, setOpenItemIndex, setRowRef, items: items2 } = useRepeaterContext();
|
|
3813
|
-
const popoverProps =
|
|
3667
|
+
const popoverProps = bindPopover5(popoverState);
|
|
3814
3668
|
if (!isOpen || !rowRef) {
|
|
3815
3669
|
return null;
|
|
3816
3670
|
}
|
|
@@ -3820,8 +3674,8 @@ var EditItemPopover = ({ children }) => {
|
|
|
3820
3674
|
setRowRef(null);
|
|
3821
3675
|
setOpenItemIndex(EMPTY_OPEN_ITEM2);
|
|
3822
3676
|
};
|
|
3823
|
-
return /* @__PURE__ */
|
|
3824
|
-
|
|
3677
|
+
return /* @__PURE__ */ React58.createElement(
|
|
3678
|
+
Popover5,
|
|
3825
3679
|
{
|
|
3826
3680
|
disablePortal: true,
|
|
3827
3681
|
slotProps: {
|
|
@@ -3834,7 +3688,7 @@ var EditItemPopover = ({ children }) => {
|
|
|
3834
3688
|
anchorEl: rowRef,
|
|
3835
3689
|
onClose
|
|
3836
3690
|
},
|
|
3837
|
-
/* @__PURE__ */
|
|
3691
|
+
/* @__PURE__ */ React58.createElement(PropKeyProvider, { bind: String(openItemIndex) }, /* @__PURE__ */ React58.createElement(Box10, null, React58.isValidElement(children) && React58.cloneElement(children, { bind, index: openItemIndex })))
|
|
3838
3692
|
);
|
|
3839
3693
|
};
|
|
3840
3694
|
|
|
@@ -3844,7 +3698,7 @@ var UnstableRepeater = ({
|
|
|
3844
3698
|
initial,
|
|
3845
3699
|
propTypeUtil
|
|
3846
3700
|
}) => {
|
|
3847
|
-
return /* @__PURE__ */
|
|
3701
|
+
return /* @__PURE__ */ React59.createElement(SectionContent, null, /* @__PURE__ */ React59.createElement(RepeaterContextProvider, { initial, propTypeUtil }, /* @__PURE__ */ React59.createElement(SlotChildren, { whitelist: [Header, ItemsContainer, EditItemPopover], sorted: true }, children)));
|
|
3848
3702
|
};
|
|
3849
3703
|
|
|
3850
3704
|
// src/env.ts
|
|
@@ -3852,7 +3706,7 @@ import { parseEnv } from "@elementor/env";
|
|
|
3852
3706
|
var { env } = parseEnv("@elementor/editor-controls");
|
|
3853
3707
|
|
|
3854
3708
|
// src/controls/background-control/background-gradient-color-control.tsx
|
|
3855
|
-
import * as
|
|
3709
|
+
import * as React60 from "react";
|
|
3856
3710
|
import {
|
|
3857
3711
|
backgroundGradientOverlayPropTypeUtil,
|
|
3858
3712
|
colorPropTypeUtil as colorPropTypeUtil2,
|
|
@@ -3899,7 +3753,7 @@ var BackgroundGradientColorControl = createControl(() => {
|
|
|
3899
3753
|
positions: positions?.value.split(" ")
|
|
3900
3754
|
};
|
|
3901
3755
|
};
|
|
3902
|
-
return /* @__PURE__ */
|
|
3756
|
+
return /* @__PURE__ */ React60.createElement(ControlActions, null, /* @__PURE__ */ React60.createElement(
|
|
3903
3757
|
UnstableGradientBox,
|
|
3904
3758
|
{
|
|
3905
3759
|
sx: { width: "auto", padding: 1.5 },
|
|
@@ -3924,53 +3778,53 @@ var initialBackgroundGradientOverlay = backgroundGradientOverlayPropTypeUtil.cre
|
|
|
3924
3778
|
});
|
|
3925
3779
|
|
|
3926
3780
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-attachment.tsx
|
|
3927
|
-
import * as
|
|
3781
|
+
import * as React61 from "react";
|
|
3928
3782
|
import { PinIcon, PinnedOffIcon } from "@elementor/icons";
|
|
3929
|
-
import { Grid as
|
|
3930
|
-
import { __ as
|
|
3783
|
+
import { Grid as Grid12 } from "@elementor/ui";
|
|
3784
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3931
3785
|
var attachmentControlOptions = [
|
|
3932
3786
|
{
|
|
3933
3787
|
value: "fixed",
|
|
3934
|
-
label:
|
|
3935
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3788
|
+
label: __24("Fixed", "elementor"),
|
|
3789
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(PinIcon, { fontSize: size }),
|
|
3936
3790
|
showTooltip: true
|
|
3937
3791
|
},
|
|
3938
3792
|
{
|
|
3939
3793
|
value: "scroll",
|
|
3940
|
-
label:
|
|
3941
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3794
|
+
label: __24("Scroll", "elementor"),
|
|
3795
|
+
renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(PinnedOffIcon, { fontSize: size }),
|
|
3942
3796
|
showTooltip: true
|
|
3943
3797
|
}
|
|
3944
3798
|
];
|
|
3945
3799
|
var BackgroundImageOverlayAttachment = () => {
|
|
3946
|
-
return /* @__PURE__ */
|
|
3800
|
+
return /* @__PURE__ */ React61.createElement(PopoverGridContainer, null, /* @__PURE__ */ React61.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(ControlFormLabel, null, __24("Attachment", "elementor"))), /* @__PURE__ */ React61.createElement(Grid12, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React61.createElement(ToggleControl, { options: attachmentControlOptions })));
|
|
3947
3801
|
};
|
|
3948
3802
|
|
|
3949
3803
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-position.tsx
|
|
3950
|
-
import * as
|
|
3951
|
-
import { useRef as
|
|
3804
|
+
import * as React62 from "react";
|
|
3805
|
+
import { useRef as useRef11 } from "react";
|
|
3952
3806
|
import { backgroundImagePositionOffsetPropTypeUtil, stringPropTypeUtil as stringPropTypeUtil9 } from "@elementor/editor-props";
|
|
3953
3807
|
import { MenuListItem as MenuListItem4 } from "@elementor/editor-ui";
|
|
3954
3808
|
import { LetterXIcon, LetterYIcon } from "@elementor/icons";
|
|
3955
|
-
import { Grid as
|
|
3956
|
-
import { __ as
|
|
3809
|
+
import { Grid as Grid13, Select as Select3 } from "@elementor/ui";
|
|
3810
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
3957
3811
|
var backgroundPositionOptions = [
|
|
3958
|
-
{ label:
|
|
3959
|
-
{ label:
|
|
3960
|
-
{ label:
|
|
3961
|
-
{ label:
|
|
3962
|
-
{ label:
|
|
3963
|
-
{ label:
|
|
3964
|
-
{ label:
|
|
3965
|
-
{ label:
|
|
3966
|
-
{ label:
|
|
3967
|
-
{ label:
|
|
3812
|
+
{ label: __25("Center center", "elementor"), value: "center center" },
|
|
3813
|
+
{ label: __25("Center left", "elementor"), value: "center left" },
|
|
3814
|
+
{ label: __25("Center right", "elementor"), value: "center right" },
|
|
3815
|
+
{ label: __25("Top center", "elementor"), value: "top center" },
|
|
3816
|
+
{ label: __25("Top left", "elementor"), value: "top left" },
|
|
3817
|
+
{ label: __25("Top right", "elementor"), value: "top right" },
|
|
3818
|
+
{ label: __25("Bottom center", "elementor"), value: "bottom center" },
|
|
3819
|
+
{ label: __25("Bottom left", "elementor"), value: "bottom left" },
|
|
3820
|
+
{ label: __25("Bottom right", "elementor"), value: "bottom right" },
|
|
3821
|
+
{ label: __25("Custom", "elementor"), value: "custom" }
|
|
3968
3822
|
];
|
|
3969
3823
|
var BackgroundImageOverlayPosition = () => {
|
|
3970
3824
|
const backgroundImageOffsetContext = useBoundProp(backgroundImagePositionOffsetPropTypeUtil);
|
|
3971
3825
|
const stringPropContext = useBoundProp(stringPropTypeUtil9);
|
|
3972
3826
|
const isCustom = !!backgroundImageOffsetContext.value;
|
|
3973
|
-
const rowRef =
|
|
3827
|
+
const rowRef = useRef11(null);
|
|
3974
3828
|
const handlePositionChange = (event) => {
|
|
3975
3829
|
const value = event.target.value || null;
|
|
3976
3830
|
if (value === "custom") {
|
|
@@ -3979,7 +3833,7 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
3979
3833
|
stringPropContext.setValue(value);
|
|
3980
3834
|
}
|
|
3981
3835
|
};
|
|
3982
|
-
return /* @__PURE__ */
|
|
3836
|
+
return /* @__PURE__ */ React62.createElement(Grid13, { container: true, spacing: 1.5 }, /* @__PURE__ */ React62.createElement(Grid13, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(PopoverGridContainer, null, /* @__PURE__ */ React62.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlFormLabel, null, __25("Position", "elementor"))), /* @__PURE__ */ React62.createElement(Grid13, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React62.createElement(
|
|
3983
3837
|
Select3,
|
|
3984
3838
|
{
|
|
3985
3839
|
fullWidth: true,
|
|
@@ -3988,18 +3842,18 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
3988
3842
|
disabled: stringPropContext.disabled,
|
|
3989
3843
|
value: (backgroundImageOffsetContext.value ? "custom" : stringPropContext.value) ?? ""
|
|
3990
3844
|
},
|
|
3991
|
-
backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */
|
|
3992
|
-
)))), isCustom ? /* @__PURE__ */
|
|
3845
|
+
backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React62.createElement(MenuListItem4, { key: value, value: value ?? "" }, label))
|
|
3846
|
+
)))), isCustom ? /* @__PURE__ */ React62.createElement(PropProvider, { ...backgroundImageOffsetContext }, /* @__PURE__ */ React62.createElement(Grid13, { item: true, xs: 12 }, /* @__PURE__ */ React62.createElement(Grid13, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React62.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React62.createElement(
|
|
3993
3847
|
SizeControl,
|
|
3994
3848
|
{
|
|
3995
|
-
startIcon: /* @__PURE__ */
|
|
3849
|
+
startIcon: /* @__PURE__ */ React62.createElement(LetterXIcon, { fontSize: "tiny" }),
|
|
3996
3850
|
anchorRef: rowRef,
|
|
3997
3851
|
min: -Number.MAX_SAFE_INTEGER
|
|
3998
3852
|
}
|
|
3999
|
-
))), /* @__PURE__ */
|
|
3853
|
+
))), /* @__PURE__ */ React62.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React62.createElement(
|
|
4000
3854
|
SizeControl,
|
|
4001
3855
|
{
|
|
4002
|
-
startIcon: /* @__PURE__ */
|
|
3856
|
+
startIcon: /* @__PURE__ */ React62.createElement(LetterYIcon, { fontSize: "tiny" }),
|
|
4003
3857
|
anchorRef: rowRef,
|
|
4004
3858
|
min: -Number.MAX_SAFE_INTEGER
|
|
4005
3859
|
}
|
|
@@ -4007,43 +3861,43 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
4007
3861
|
};
|
|
4008
3862
|
|
|
4009
3863
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-repeat.tsx
|
|
4010
|
-
import * as
|
|
3864
|
+
import * as React63 from "react";
|
|
4011
3865
|
import { DotsHorizontalIcon, DotsVerticalIcon, GridDotsIcon, XIcon as XIcon4 } from "@elementor/icons";
|
|
4012
|
-
import { Grid as
|
|
4013
|
-
import { __ as
|
|
3866
|
+
import { Grid as Grid14 } from "@elementor/ui";
|
|
3867
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
4014
3868
|
var repeatControlOptions = [
|
|
4015
3869
|
{
|
|
4016
3870
|
value: "repeat",
|
|
4017
|
-
label:
|
|
4018
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3871
|
+
label: __26("Repeat", "elementor"),
|
|
3872
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(GridDotsIcon, { fontSize: size }),
|
|
4019
3873
|
showTooltip: true
|
|
4020
3874
|
},
|
|
4021
3875
|
{
|
|
4022
3876
|
value: "repeat-x",
|
|
4023
|
-
label:
|
|
4024
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3877
|
+
label: __26("Repeat-x", "elementor"),
|
|
3878
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(DotsHorizontalIcon, { fontSize: size }),
|
|
4025
3879
|
showTooltip: true
|
|
4026
3880
|
},
|
|
4027
3881
|
{
|
|
4028
3882
|
value: "repeat-y",
|
|
4029
|
-
label:
|
|
4030
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3883
|
+
label: __26("Repeat-y", "elementor"),
|
|
3884
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(DotsVerticalIcon, { fontSize: size }),
|
|
4031
3885
|
showTooltip: true
|
|
4032
3886
|
},
|
|
4033
3887
|
{
|
|
4034
3888
|
value: "no-repeat",
|
|
4035
|
-
label:
|
|
4036
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3889
|
+
label: __26("No-repeat", "elementor"),
|
|
3890
|
+
renderContent: ({ size }) => /* @__PURE__ */ React63.createElement(XIcon4, { fontSize: size }),
|
|
4037
3891
|
showTooltip: true
|
|
4038
3892
|
}
|
|
4039
3893
|
];
|
|
4040
3894
|
var BackgroundImageOverlayRepeat = () => {
|
|
4041
|
-
return /* @__PURE__ */
|
|
3895
|
+
return /* @__PURE__ */ React63.createElement(PopoverGridContainer, null, /* @__PURE__ */ React63.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlFormLabel, null, __26("Repeat", "elementor"))), /* @__PURE__ */ React63.createElement(Grid14, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React63.createElement(ToggleControl, { options: repeatControlOptions })));
|
|
4042
3896
|
};
|
|
4043
3897
|
|
|
4044
3898
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-size.tsx
|
|
4045
|
-
import * as
|
|
4046
|
-
import { useRef as
|
|
3899
|
+
import * as React64 from "react";
|
|
3900
|
+
import { useRef as useRef12 } from "react";
|
|
4047
3901
|
import { backgroundImageSizeScalePropTypeUtil, stringPropTypeUtil as stringPropTypeUtil10 } from "@elementor/editor-props";
|
|
4048
3902
|
import {
|
|
4049
3903
|
ArrowBarBothIcon,
|
|
@@ -4053,31 +3907,31 @@ import {
|
|
|
4053
3907
|
LetterAIcon,
|
|
4054
3908
|
PencilIcon
|
|
4055
3909
|
} from "@elementor/icons";
|
|
4056
|
-
import { Grid as
|
|
4057
|
-
import { __ as
|
|
3910
|
+
import { Grid as Grid15 } from "@elementor/ui";
|
|
3911
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
4058
3912
|
var sizeControlOptions = [
|
|
4059
3913
|
{
|
|
4060
3914
|
value: "auto",
|
|
4061
|
-
label:
|
|
4062
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3915
|
+
label: __27("Auto", "elementor"),
|
|
3916
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(LetterAIcon, { fontSize: size }),
|
|
4063
3917
|
showTooltip: true
|
|
4064
3918
|
},
|
|
4065
3919
|
{
|
|
4066
3920
|
value: "cover",
|
|
4067
|
-
label:
|
|
4068
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3921
|
+
label: __27("Cover", "elementor"),
|
|
3922
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(ArrowsMaximizeIcon, { fontSize: size }),
|
|
4069
3923
|
showTooltip: true
|
|
4070
3924
|
},
|
|
4071
3925
|
{
|
|
4072
3926
|
value: "contain",
|
|
4073
|
-
label:
|
|
4074
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3927
|
+
label: __27("Contain", "elementor"),
|
|
3928
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(ArrowBarBothIcon, { fontSize: size }),
|
|
4075
3929
|
showTooltip: true
|
|
4076
3930
|
},
|
|
4077
3931
|
{
|
|
4078
3932
|
value: "custom",
|
|
4079
|
-
label:
|
|
4080
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
3933
|
+
label: __27("Custom", "elementor"),
|
|
3934
|
+
renderContent: ({ size }) => /* @__PURE__ */ React64.createElement(PencilIcon, { fontSize: size }),
|
|
4081
3935
|
showTooltip: true
|
|
4082
3936
|
}
|
|
4083
3937
|
];
|
|
@@ -4085,7 +3939,7 @@ var BackgroundImageOverlaySize = () => {
|
|
|
4085
3939
|
const backgroundImageScaleContext = useBoundProp(backgroundImageSizeScalePropTypeUtil);
|
|
4086
3940
|
const stringPropContext = useBoundProp(stringPropTypeUtil10);
|
|
4087
3941
|
const isCustom = !!backgroundImageScaleContext.value;
|
|
4088
|
-
const rowRef =
|
|
3942
|
+
const rowRef = useRef12(null);
|
|
4089
3943
|
const handleSizeChange = (size) => {
|
|
4090
3944
|
if (size === "custom") {
|
|
4091
3945
|
backgroundImageScaleContext.setValue({ width: null, height: null });
|
|
@@ -4093,7 +3947,7 @@ var BackgroundImageOverlaySize = () => {
|
|
|
4093
3947
|
stringPropContext.setValue(size);
|
|
4094
3948
|
}
|
|
4095
3949
|
};
|
|
4096
|
-
return /* @__PURE__ */
|
|
3950
|
+
return /* @__PURE__ */ React64.createElement(Grid15, { container: true, spacing: 1.5 }, /* @__PURE__ */ React64.createElement(Grid15, { item: true, xs: 12 }, /* @__PURE__ */ React64.createElement(PopoverGridContainer, null, /* @__PURE__ */ React64.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(ControlFormLabel, null, __27("Size", "elementor"))), /* @__PURE__ */ React64.createElement(Grid15, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React64.createElement(
|
|
4097
3951
|
ControlToggleButtonGroup,
|
|
4098
3952
|
{
|
|
4099
3953
|
exclusive: true,
|
|
@@ -4102,17 +3956,17 @@ var BackgroundImageOverlaySize = () => {
|
|
|
4102
3956
|
disabled: stringPropContext.disabled,
|
|
4103
3957
|
value: backgroundImageScaleContext.value ? "custom" : stringPropContext.value
|
|
4104
3958
|
}
|
|
4105
|
-
)))), isCustom ? /* @__PURE__ */
|
|
3959
|
+
)))), isCustom ? /* @__PURE__ */ React64.createElement(PropProvider, { ...backgroundImageScaleContext }, /* @__PURE__ */ React64.createElement(Grid15, { item: true, xs: 12, ref: rowRef }, /* @__PURE__ */ React64.createElement(PopoverGridContainer, null, /* @__PURE__ */ React64.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(PropKeyProvider, { bind: "width" }, /* @__PURE__ */ React64.createElement(
|
|
4106
3960
|
SizeControl,
|
|
4107
3961
|
{
|
|
4108
|
-
startIcon: /* @__PURE__ */
|
|
3962
|
+
startIcon: /* @__PURE__ */ React64.createElement(ArrowsMoveHorizontalIcon2, { fontSize: "tiny" }),
|
|
4109
3963
|
extendedOptions: ["auto"],
|
|
4110
3964
|
anchorRef: rowRef
|
|
4111
3965
|
}
|
|
4112
|
-
))), /* @__PURE__ */
|
|
3966
|
+
))), /* @__PURE__ */ React64.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(PropKeyProvider, { bind: "height" }, /* @__PURE__ */ React64.createElement(
|
|
4113
3967
|
SizeControl,
|
|
4114
3968
|
{
|
|
4115
|
-
startIcon: /* @__PURE__ */
|
|
3969
|
+
startIcon: /* @__PURE__ */ React64.createElement(ArrowsMoveVerticalIcon2, { fontSize: "tiny" }),
|
|
4116
3970
|
extendedOptions: ["auto"],
|
|
4117
3971
|
anchorRef: rowRef
|
|
4118
3972
|
}
|
|
@@ -4120,7 +3974,7 @@ var BackgroundImageOverlaySize = () => {
|
|
|
4120
3974
|
};
|
|
4121
3975
|
|
|
4122
3976
|
// src/controls/background-control/background-overlay/use-background-tabs-history.ts
|
|
4123
|
-
import { useRef as
|
|
3977
|
+
import { useRef as useRef13 } from "react";
|
|
4124
3978
|
import {
|
|
4125
3979
|
backgroundColorOverlayPropTypeUtil,
|
|
4126
3980
|
backgroundGradientOverlayPropTypeUtil as backgroundGradientOverlayPropTypeUtil2,
|
|
@@ -4145,7 +3999,7 @@ var useBackgroundTabsHistory = ({
|
|
|
4145
3999
|
return "image";
|
|
4146
4000
|
};
|
|
4147
4001
|
const { getTabsProps, getTabProps, getTabPanelProps } = useTabs(getCurrentOverlayType());
|
|
4148
|
-
const valuesHistory =
|
|
4002
|
+
const valuesHistory = useRef13({
|
|
4149
4003
|
image: initialBackgroundImageOverlay,
|
|
4150
4004
|
color: initialBackgroundColorOverlay2,
|
|
4151
4005
|
gradient: initialBackgroundGradientOverlay2
|
|
@@ -4213,22 +4067,22 @@ var getInitialBackgroundOverlay = () => ({
|
|
|
4213
4067
|
}
|
|
4214
4068
|
});
|
|
4215
4069
|
var backgroundResolutionOptions = [
|
|
4216
|
-
{ label:
|
|
4217
|
-
{ label:
|
|
4218
|
-
{ label:
|
|
4219
|
-
{ label:
|
|
4070
|
+
{ label: __28("Thumbnail - 150 x 150", "elementor"), value: "thumbnail" },
|
|
4071
|
+
{ label: __28("Medium - 300 x 300", "elementor"), value: "medium" },
|
|
4072
|
+
{ label: __28("Large 1024 x 1024", "elementor"), value: "large" },
|
|
4073
|
+
{ label: __28("Full", "elementor"), value: "full" }
|
|
4220
4074
|
];
|
|
4221
4075
|
var BackgroundOverlayRepeaterControl = createControl(() => {
|
|
4222
4076
|
const { propType, value: overlayValues, setValue } = useBoundProp(backgroundOverlayPropTypeUtil);
|
|
4223
|
-
return /* @__PURE__ */
|
|
4077
|
+
return /* @__PURE__ */ React65.createElement(PropProvider, { propType, value: overlayValues, setValue }, /* @__PURE__ */ React65.createElement(
|
|
4224
4078
|
UnstableRepeater,
|
|
4225
4079
|
{
|
|
4226
4080
|
initial: getInitialBackgroundOverlay(),
|
|
4227
4081
|
propTypeUtil: backgroundOverlayPropTypeUtil
|
|
4228
4082
|
},
|
|
4229
|
-
/* @__PURE__ */
|
|
4230
|
-
/* @__PURE__ */
|
|
4231
|
-
/* @__PURE__ */
|
|
4083
|
+
/* @__PURE__ */ React65.createElement(Header, { label: __28("Overlay", "elementor") }, /* @__PURE__ */ React65.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
|
|
4084
|
+
/* @__PURE__ */ React65.createElement(ItemsContainer, { itemTemplate: /* @__PURE__ */ React65.createElement(Item, { Icon: ItemIcon3, Label: ItemLabel3 }) }, /* @__PURE__ */ React65.createElement(DuplicateItemAction, null), /* @__PURE__ */ React65.createElement(DisableItemAction, null), /* @__PURE__ */ React65.createElement(RemoveItemAction, null)),
|
|
4085
|
+
/* @__PURE__ */ React65.createElement(EditItemPopover, null, /* @__PURE__ */ React65.createElement(ItemContent3, null))
|
|
4232
4086
|
));
|
|
4233
4087
|
});
|
|
4234
4088
|
var ItemContent3 = () => {
|
|
@@ -4238,27 +4092,27 @@ var ItemContent3 = () => {
|
|
|
4238
4092
|
gradient: initialBackgroundGradientOverlay.value
|
|
4239
4093
|
});
|
|
4240
4094
|
const { rowRef } = useRepeaterContext();
|
|
4241
|
-
return /* @__PURE__ */
|
|
4095
|
+
return /* @__PURE__ */ React65.createElement(Box11, { sx: { width: "100%" } }, /* @__PURE__ */ React65.createElement(Box11, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React65.createElement(
|
|
4242
4096
|
Tabs,
|
|
4243
4097
|
{
|
|
4244
4098
|
size: "small",
|
|
4245
4099
|
variant: "fullWidth",
|
|
4246
4100
|
...getTabsProps(),
|
|
4247
|
-
"aria-label":
|
|
4101
|
+
"aria-label": __28("Background Overlay", "elementor")
|
|
4248
4102
|
},
|
|
4249
|
-
/* @__PURE__ */
|
|
4250
|
-
/* @__PURE__ */
|
|
4251
|
-
/* @__PURE__ */
|
|
4252
|
-
)), /* @__PURE__ */
|
|
4103
|
+
/* @__PURE__ */ React65.createElement(Tab, { label: __28("Image", "elementor"), ...getTabProps("image") }),
|
|
4104
|
+
/* @__PURE__ */ React65.createElement(Tab, { label: __28("Gradient", "elementor"), ...getTabProps("gradient") }),
|
|
4105
|
+
/* @__PURE__ */ React65.createElement(Tab, { label: __28("Color", "elementor"), ...getTabProps("color") })
|
|
4106
|
+
)), /* @__PURE__ */ React65.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React65.createElement(PopoverContent, null, /* @__PURE__ */ React65.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React65.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React65.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React65.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React65.createElement(PopoverContent, null, /* @__PURE__ */ React65.createElement(ColorOverlayContent, { anchorEl: rowRef }))));
|
|
4253
4107
|
};
|
|
4254
4108
|
var ItemIcon3 = ({ value }) => {
|
|
4255
4109
|
switch (value.$$type) {
|
|
4256
4110
|
case "background-image-overlay":
|
|
4257
|
-
return /* @__PURE__ */
|
|
4111
|
+
return /* @__PURE__ */ React65.createElement(ItemIconImage, { value });
|
|
4258
4112
|
case "background-color-overlay":
|
|
4259
|
-
return /* @__PURE__ */
|
|
4113
|
+
return /* @__PURE__ */ React65.createElement(ItemIconColor, { value });
|
|
4260
4114
|
case "background-gradient-overlay":
|
|
4261
|
-
return /* @__PURE__ */
|
|
4115
|
+
return /* @__PURE__ */ React65.createElement(ItemIconGradient, { value });
|
|
4262
4116
|
default:
|
|
4263
4117
|
return null;
|
|
4264
4118
|
}
|
|
@@ -4271,11 +4125,11 @@ var extractColorFrom = (prop) => {
|
|
|
4271
4125
|
};
|
|
4272
4126
|
var ItemIconColor = ({ value: prop }) => {
|
|
4273
4127
|
const color = extractColorFrom(prop);
|
|
4274
|
-
return /* @__PURE__ */
|
|
4128
|
+
return /* @__PURE__ */ React65.createElement(StyledUnstableColorIndicator2, { size: "inherit", component: "span", value: color });
|
|
4275
4129
|
};
|
|
4276
4130
|
var ItemIconImage = ({ value }) => {
|
|
4277
4131
|
const { imageUrl } = useImage(value);
|
|
4278
|
-
return /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ React65.createElement(
|
|
4279
4133
|
CardMedia3,
|
|
4280
4134
|
{
|
|
4281
4135
|
image: imageUrl,
|
|
@@ -4290,41 +4144,41 @@ var ItemIconImage = ({ value }) => {
|
|
|
4290
4144
|
};
|
|
4291
4145
|
var ItemIconGradient = ({ value }) => {
|
|
4292
4146
|
const gradient = getGradientValue(value);
|
|
4293
|
-
return /* @__PURE__ */
|
|
4147
|
+
return /* @__PURE__ */ React65.createElement(StyledUnstableColorIndicator2, { size: "inherit", component: "span", value: gradient });
|
|
4294
4148
|
};
|
|
4295
4149
|
var ItemLabel3 = ({ value }) => {
|
|
4296
4150
|
switch (value.$$type) {
|
|
4297
4151
|
case "background-image-overlay":
|
|
4298
|
-
return /* @__PURE__ */
|
|
4152
|
+
return /* @__PURE__ */ React65.createElement(ItemLabelImage, { value });
|
|
4299
4153
|
case "background-color-overlay":
|
|
4300
|
-
return /* @__PURE__ */
|
|
4154
|
+
return /* @__PURE__ */ React65.createElement(ItemLabelColor, { value });
|
|
4301
4155
|
case "background-gradient-overlay":
|
|
4302
|
-
return /* @__PURE__ */
|
|
4156
|
+
return /* @__PURE__ */ React65.createElement(ItemLabelGradient, { value });
|
|
4303
4157
|
default:
|
|
4304
4158
|
return null;
|
|
4305
4159
|
}
|
|
4306
4160
|
};
|
|
4307
4161
|
var ItemLabelColor = ({ value: prop }) => {
|
|
4308
4162
|
const color = extractColorFrom(prop);
|
|
4309
|
-
return /* @__PURE__ */
|
|
4163
|
+
return /* @__PURE__ */ React65.createElement("span", null, color);
|
|
4310
4164
|
};
|
|
4311
4165
|
var ItemLabelImage = ({ value }) => {
|
|
4312
4166
|
const { imageTitle } = useImage(value);
|
|
4313
|
-
return /* @__PURE__ */
|
|
4167
|
+
return /* @__PURE__ */ React65.createElement("span", null, imageTitle);
|
|
4314
4168
|
};
|
|
4315
4169
|
var ItemLabelGradient = ({ value }) => {
|
|
4316
4170
|
if (value.value.type.value === "linear") {
|
|
4317
|
-
return /* @__PURE__ */
|
|
4171
|
+
return /* @__PURE__ */ React65.createElement("span", null, __28("Linear Gradient", "elementor"));
|
|
4318
4172
|
}
|
|
4319
|
-
return /* @__PURE__ */
|
|
4173
|
+
return /* @__PURE__ */ React65.createElement("span", null, __28("Radial Gradient", "elementor"));
|
|
4320
4174
|
};
|
|
4321
4175
|
var ColorOverlayContent = ({ anchorEl }) => {
|
|
4322
4176
|
const propContext = useBoundProp(backgroundColorOverlayPropTypeUtil2);
|
|
4323
|
-
return /* @__PURE__ */
|
|
4177
|
+
return /* @__PURE__ */ React65.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React65.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React65.createElement(ColorControl, { anchorEl })));
|
|
4324
4178
|
};
|
|
4325
4179
|
var ImageOverlayContent = () => {
|
|
4326
4180
|
const propContext = useBoundProp(backgroundImageOverlayPropTypeUtil2);
|
|
4327
|
-
return /* @__PURE__ */
|
|
4181
|
+
return /* @__PURE__ */ React65.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React65.createElement(PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React65.createElement(ImageControl, { sizes: backgroundResolutionOptions })), /* @__PURE__ */ React65.createElement(PropKeyProvider, { bind: "position" }, /* @__PURE__ */ React65.createElement(BackgroundImageOverlayPosition, null)), /* @__PURE__ */ React65.createElement(PropKeyProvider, { bind: "repeat" }, /* @__PURE__ */ React65.createElement(BackgroundImageOverlayRepeat, null)), /* @__PURE__ */ React65.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React65.createElement(BackgroundImageOverlaySize, null)), /* @__PURE__ */ React65.createElement(PropKeyProvider, { bind: "attachment" }, /* @__PURE__ */ React65.createElement(BackgroundImageOverlayAttachment, null)));
|
|
4328
4182
|
};
|
|
4329
4183
|
var StyledUnstableColorIndicator2 = styled7(UnstableColorIndicator3)(({ theme }) => ({
|
|
4330
4184
|
height: "1rem",
|
|
@@ -4364,12 +4218,12 @@ var getGradientValue = (value) => {
|
|
|
4364
4218
|
// src/controls/background-control/background-control.tsx
|
|
4365
4219
|
var BackgroundControl = createControl(() => {
|
|
4366
4220
|
const propContext = useBoundProp(backgroundPropTypeUtil);
|
|
4367
|
-
const colorLabel =
|
|
4368
|
-
return /* @__PURE__ */
|
|
4221
|
+
const colorLabel = __29("Color", "elementor");
|
|
4222
|
+
return /* @__PURE__ */ React66.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React66.createElement(PropKeyProvider, { bind: "background-overlay" }, /* @__PURE__ */ React66.createElement(BackgroundOverlayRepeaterControl, null)), /* @__PURE__ */ React66.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React66.createElement(Grid16, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React66.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ControlLabel, null, colorLabel)), /* @__PURE__ */ React66.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ColorControl, null)))));
|
|
4369
4223
|
});
|
|
4370
4224
|
|
|
4371
4225
|
// src/controls/repeatable-control.tsx
|
|
4372
|
-
import * as
|
|
4226
|
+
import * as React67 from "react";
|
|
4373
4227
|
import { useMemo as useMemo5 } from "react";
|
|
4374
4228
|
import { createArrayPropUtils } from "@elementor/editor-props";
|
|
4375
4229
|
import { Box as Box12 } from "@elementor/ui";
|
|
@@ -4416,31 +4270,31 @@ var RepeatableControl = createControl(
|
|
|
4416
4270
|
[childControlConfig, placeholder, patternLabel]
|
|
4417
4271
|
);
|
|
4418
4272
|
const { propType, value, setValue } = useBoundProp(childArrayPropTypeUtil);
|
|
4419
|
-
return /* @__PURE__ */
|
|
4273
|
+
return /* @__PURE__ */ React67.createElement(PropProvider, { propType, value, setValue }, /* @__PURE__ */ React67.createElement(RepeatableControlContext.Provider, { value: contextValue }, /* @__PURE__ */ React67.createElement(
|
|
4420
4274
|
UnstableRepeater,
|
|
4421
4275
|
{
|
|
4422
4276
|
initial: childPropTypeUtil.create(initialValues || null),
|
|
4423
4277
|
propTypeUtil: childArrayPropTypeUtil
|
|
4424
4278
|
},
|
|
4425
|
-
/* @__PURE__ */
|
|
4426
|
-
/* @__PURE__ */
|
|
4279
|
+
/* @__PURE__ */ React67.createElement(Header, { label: repeaterLabel }, /* @__PURE__ */ React67.createElement(TooltipAddItemAction, { ...addItemTooltipProps, newItemIndex: 0 })),
|
|
4280
|
+
/* @__PURE__ */ React67.createElement(
|
|
4427
4281
|
ItemsContainer,
|
|
4428
4282
|
{
|
|
4429
4283
|
isSortable: false,
|
|
4430
|
-
itemTemplate: /* @__PURE__ */
|
|
4284
|
+
itemTemplate: /* @__PURE__ */ React67.createElement(Item, { Icon: ItemIcon4, Label: ItemLabel4 })
|
|
4431
4285
|
},
|
|
4432
|
-
showDuplicate && /* @__PURE__ */
|
|
4433
|
-
showToggle && /* @__PURE__ */
|
|
4434
|
-
/* @__PURE__ */
|
|
4286
|
+
showDuplicate && /* @__PURE__ */ React67.createElement(DuplicateItemAction, null),
|
|
4287
|
+
showToggle && /* @__PURE__ */ React67.createElement(DisableItemAction, null),
|
|
4288
|
+
/* @__PURE__ */ React67.createElement(RemoveItemAction, null)
|
|
4435
4289
|
),
|
|
4436
|
-
/* @__PURE__ */
|
|
4290
|
+
/* @__PURE__ */ React67.createElement(EditItemPopover, null, /* @__PURE__ */ React67.createElement(Content3, null))
|
|
4437
4291
|
)));
|
|
4438
4292
|
}
|
|
4439
4293
|
);
|
|
4440
|
-
var ItemIcon4 = () => /* @__PURE__ */
|
|
4294
|
+
var ItemIcon4 = () => /* @__PURE__ */ React67.createElement(React67.Fragment, null);
|
|
4441
4295
|
var Content3 = () => {
|
|
4442
4296
|
const { component: ChildControl, props = {} } = useRepeatableControlContext();
|
|
4443
|
-
return /* @__PURE__ */
|
|
4297
|
+
return /* @__PURE__ */ React67.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React67.createElement(PopoverGridContainer, null, /* @__PURE__ */ React67.createElement(ChildControl, { ...props })));
|
|
4444
4298
|
};
|
|
4445
4299
|
var interpolate = (template, data) => {
|
|
4446
4300
|
if (!data) {
|
|
@@ -4502,7 +4356,7 @@ var ItemLabel4 = ({ value }) => {
|
|
|
4502
4356
|
const showPlaceholder = shouldShowPlaceholder(patternLabel, value);
|
|
4503
4357
|
const label = showPlaceholder ? placeholder : interpolate(patternLabel, value);
|
|
4504
4358
|
const color = showPlaceholder ? "text.tertiary" : "text.primary";
|
|
4505
|
-
return /* @__PURE__ */
|
|
4359
|
+
return /* @__PURE__ */ React67.createElement(Box12, { component: "span", color }, label);
|
|
4506
4360
|
};
|
|
4507
4361
|
var getAllProperties = (pattern) => {
|
|
4508
4362
|
const properties = pattern.match(PLACEHOLDER_REGEX)?.map((match) => match.slice(2, -1)) || [];
|
|
@@ -4510,15 +4364,15 @@ var getAllProperties = (pattern) => {
|
|
|
4510
4364
|
};
|
|
4511
4365
|
|
|
4512
4366
|
// src/controls/key-value-control.tsx
|
|
4513
|
-
import * as
|
|
4367
|
+
import * as React68 from "react";
|
|
4514
4368
|
import { useMemo as useMemo6, useState as useState14 } from "react";
|
|
4515
4369
|
import {
|
|
4516
4370
|
isTransformable,
|
|
4517
4371
|
keyValuePropTypeUtil,
|
|
4518
4372
|
stringPropTypeUtil as stringPropTypeUtil11
|
|
4519
4373
|
} from "@elementor/editor-props";
|
|
4520
|
-
import { FormHelperText, FormLabel as FormLabel3, Grid as
|
|
4521
|
-
import { __ as
|
|
4374
|
+
import { FormHelperText, FormLabel as FormLabel3, Grid as Grid17 } from "@elementor/ui";
|
|
4375
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4522
4376
|
var KeyValueControl = createControl((props = {}) => {
|
|
4523
4377
|
const { value, setValue, ...propContext } = useBoundProp(keyValuePropTypeUtil);
|
|
4524
4378
|
const [keyError, setKeyError] = useState14("");
|
|
@@ -4527,8 +4381,8 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
4527
4381
|
key: value?.key?.value || "",
|
|
4528
4382
|
value: value?.value?.value || ""
|
|
4529
4383
|
});
|
|
4530
|
-
const keyLabel = props.keyName ||
|
|
4531
|
-
const valueLabel = props.valueName ||
|
|
4384
|
+
const keyLabel = props.keyName || __30("Key", "elementor");
|
|
4385
|
+
const valueLabel = props.valueName || __30("Value", "elementor");
|
|
4532
4386
|
const { keyHelper, valueHelper } = props.getHelperText?.(sessionState.key, sessionState.value) || {
|
|
4533
4387
|
keyHelper: void 0,
|
|
4534
4388
|
valueHelper: void 0
|
|
@@ -4537,7 +4391,7 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
4537
4391
|
() => [
|
|
4538
4392
|
props.regexKey ? new RegExp(props.regexKey) : void 0,
|
|
4539
4393
|
props.regexValue ? new RegExp(props.regexValue) : void 0,
|
|
4540
|
-
props.validationErrorMessage ||
|
|
4394
|
+
props.validationErrorMessage || __30("Invalid Format", "elementor")
|
|
4541
4395
|
],
|
|
4542
4396
|
[props.regexKey, props.regexValue, props.validationErrorMessage]
|
|
4543
4397
|
);
|
|
@@ -4586,7 +4440,7 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
4586
4440
|
});
|
|
4587
4441
|
}
|
|
4588
4442
|
};
|
|
4589
|
-
return /* @__PURE__ */
|
|
4443
|
+
return /* @__PURE__ */ React68.createElement(PropProvider, { ...propContext, value, setValue: handleChange }, /* @__PURE__ */ React68.createElement(Grid17, { container: true, gap: 1.5 }, /* @__PURE__ */ React68.createElement(Grid17, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React68.createElement(FormLabel3, { size: "tiny", sx: { pb: 1 } }, keyLabel), /* @__PURE__ */ React68.createElement(PropKeyProvider, { bind: "key" }, /* @__PURE__ */ React68.createElement(TextControl, { inputValue: sessionState.key, error: !!keyError, helperText: keyHelper })), !!keyError && /* @__PURE__ */ React68.createElement(FormHelperText, { error: true }, keyError)), /* @__PURE__ */ React68.createElement(Grid17, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React68.createElement(FormLabel3, { size: "tiny", sx: { pb: 1 } }, valueLabel), /* @__PURE__ */ React68.createElement(PropKeyProvider, { bind: "value" }, /* @__PURE__ */ React68.createElement(
|
|
4590
4444
|
TextControl,
|
|
4591
4445
|
{
|
|
4592
4446
|
inputValue: sessionState.value,
|
|
@@ -4594,27 +4448,27 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
4594
4448
|
inputDisabled: !!keyError,
|
|
4595
4449
|
helperText: valueHelper
|
|
4596
4450
|
}
|
|
4597
|
-
)), !!valueError && /* @__PURE__ */
|
|
4451
|
+
)), !!valueError && /* @__PURE__ */ React68.createElement(FormHelperText, { error: true }, valueError))));
|
|
4598
4452
|
});
|
|
4599
4453
|
|
|
4600
4454
|
// src/controls/position-control.tsx
|
|
4601
|
-
import * as
|
|
4455
|
+
import * as React69 from "react";
|
|
4602
4456
|
import { positionPropTypeUtil, stringPropTypeUtil as stringPropTypeUtil12 } from "@elementor/editor-props";
|
|
4603
4457
|
import { MenuListItem as MenuListItem5 } from "@elementor/editor-ui";
|
|
4604
4458
|
import { LetterXIcon as LetterXIcon2, LetterYIcon as LetterYIcon2 } from "@elementor/icons";
|
|
4605
|
-
import { Grid as
|
|
4606
|
-
import { __ as
|
|
4459
|
+
import { Grid as Grid18, Select as Select4 } from "@elementor/ui";
|
|
4460
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
4607
4461
|
var positionOptions = [
|
|
4608
|
-
{ label:
|
|
4609
|
-
{ label:
|
|
4610
|
-
{ label:
|
|
4611
|
-
{ label:
|
|
4612
|
-
{ label:
|
|
4613
|
-
{ label:
|
|
4614
|
-
{ label:
|
|
4615
|
-
{ label:
|
|
4616
|
-
{ label:
|
|
4617
|
-
{ label:
|
|
4462
|
+
{ label: __31("Center center", "elementor"), value: "center center" },
|
|
4463
|
+
{ label: __31("Center left", "elementor"), value: "center left" },
|
|
4464
|
+
{ label: __31("Center right", "elementor"), value: "center right" },
|
|
4465
|
+
{ label: __31("Top center", "elementor"), value: "top center" },
|
|
4466
|
+
{ label: __31("Top left", "elementor"), value: "top left" },
|
|
4467
|
+
{ label: __31("Top right", "elementor"), value: "top right" },
|
|
4468
|
+
{ label: __31("Bottom center", "elementor"), value: "bottom center" },
|
|
4469
|
+
{ label: __31("Bottom left", "elementor"), value: "bottom left" },
|
|
4470
|
+
{ label: __31("Bottom right", "elementor"), value: "bottom right" },
|
|
4471
|
+
{ label: __31("Custom", "elementor"), value: "custom" }
|
|
4618
4472
|
];
|
|
4619
4473
|
var PositionControl = () => {
|
|
4620
4474
|
const positionContext = useBoundProp(positionPropTypeUtil);
|
|
@@ -4628,7 +4482,7 @@ var PositionControl = () => {
|
|
|
4628
4482
|
stringPropContext.setValue(value);
|
|
4629
4483
|
}
|
|
4630
4484
|
};
|
|
4631
|
-
return /* @__PURE__ */
|
|
4485
|
+
return /* @__PURE__ */ React69.createElement(Grid18, { container: true, spacing: 1.5 }, /* @__PURE__ */ React69.createElement(Grid18, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(Grid18, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React69.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(ControlFormLabel, null, __31("Object position", "elementor"))), /* @__PURE__ */ React69.createElement(Grid18, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React69.createElement(
|
|
4632
4486
|
Select4,
|
|
4633
4487
|
{
|
|
4634
4488
|
size: "tiny",
|
|
@@ -4637,17 +4491,17 @@ var PositionControl = () => {
|
|
|
4637
4491
|
onChange: handlePositionChange,
|
|
4638
4492
|
fullWidth: true
|
|
4639
4493
|
},
|
|
4640
|
-
positionOptions.map(({ label, value }) => /* @__PURE__ */
|
|
4641
|
-
)))), isCustom && /* @__PURE__ */
|
|
4494
|
+
positionOptions.map(({ label, value }) => /* @__PURE__ */ React69.createElement(MenuListItem5, { key: value, value: value ?? "" }, label))
|
|
4495
|
+
)))), isCustom && /* @__PURE__ */ React69.createElement(PropProvider, { ...positionContext }, /* @__PURE__ */ React69.createElement(Grid18, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(Grid18, { container: true, spacing: 1.5 }, /* @__PURE__ */ React69.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React69.createElement(
|
|
4642
4496
|
SizeControl,
|
|
4643
4497
|
{
|
|
4644
|
-
startIcon: /* @__PURE__ */
|
|
4498
|
+
startIcon: /* @__PURE__ */ React69.createElement(LetterXIcon2, { fontSize: "tiny" }),
|
|
4645
4499
|
min: -Number.MAX_SAFE_INTEGER
|
|
4646
4500
|
}
|
|
4647
|
-
))), /* @__PURE__ */
|
|
4501
|
+
))), /* @__PURE__ */ React69.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React69.createElement(
|
|
4648
4502
|
SizeControl,
|
|
4649
4503
|
{
|
|
4650
|
-
startIcon: /* @__PURE__ */
|
|
4504
|
+
startIcon: /* @__PURE__ */ React69.createElement(LetterYIcon2, { fontSize: "tiny" }),
|
|
4651
4505
|
min: -Number.MAX_SAFE_INTEGER
|
|
4652
4506
|
}
|
|
4653
4507
|
)))))));
|
|
@@ -4655,9 +4509,10 @@ var PositionControl = () => {
|
|
|
4655
4509
|
|
|
4656
4510
|
// src/controls/transform-control/transform-repeater-control.tsx
|
|
4657
4511
|
import * as React82 from "react";
|
|
4512
|
+
import { useRef as useRef21 } from "react";
|
|
4658
4513
|
import { transformFunctionsPropTypeUtil, transformPropTypeUtil } from "@elementor/editor-props";
|
|
4659
|
-
import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
4660
|
-
import { Box as
|
|
4514
|
+
import { AdjustmentsIcon as AdjustmentsIcon2, InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
4515
|
+
import { bindTrigger as bindTrigger5, Box as Box16, IconButton as IconButton8, Typography as Typography6, usePopupState as usePopupState7 } from "@elementor/ui";
|
|
4661
4516
|
import { __ as __41 } from "@wordpress/i18n";
|
|
4662
4517
|
|
|
4663
4518
|
// src/controls/transform-control/initial-values.ts
|
|
@@ -4711,14 +4566,129 @@ var initialSkewValue = skewTransformPropTypeUtil.create({
|
|
|
4711
4566
|
y: { $$type: "size", value: { size: defaultValues.skew.size, unit: defaultValues.skew.unit } }
|
|
4712
4567
|
});
|
|
4713
4568
|
|
|
4569
|
+
// src/controls/transform-control/transform-base-control.tsx
|
|
4570
|
+
import * as React72 from "react";
|
|
4571
|
+
import { PopoverHeader as PopoverHeader3 } from "@elementor/editor-ui";
|
|
4572
|
+
import { AdjustmentsIcon } from "@elementor/icons";
|
|
4573
|
+
import { bindPopover as bindPopover6, Box as Box13, Divider as Divider4, Popover as Popover6 } from "@elementor/ui";
|
|
4574
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
4575
|
+
|
|
4576
|
+
// src/controls/transform-control/transform-base-controls/children-perspective-control.tsx
|
|
4577
|
+
import * as React70 from "react";
|
|
4578
|
+
import { perspectiveOriginPropTypeUtil } from "@elementor/editor-props";
|
|
4579
|
+
import { Grid as Grid19, Stack as Stack15 } from "@elementor/ui";
|
|
4580
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
4581
|
+
var ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
4582
|
+
var PERSPECTIVE_CONTROL_FIELD = {
|
|
4583
|
+
label: __32("Perspective", "elementor"),
|
|
4584
|
+
bind: "perspective",
|
|
4585
|
+
units: ["px", "em", "rem", "vw", "vh"]
|
|
4586
|
+
};
|
|
4587
|
+
var CHILDREN_PERSPECTIVE_FIELDS = [
|
|
4588
|
+
{
|
|
4589
|
+
label: __32("Origin X", "elementor"),
|
|
4590
|
+
bind: "x",
|
|
4591
|
+
units: ORIGIN_UNITS
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
label: __32("Origin Y", "elementor"),
|
|
4595
|
+
bind: "y",
|
|
4596
|
+
units: ORIGIN_UNITS
|
|
4597
|
+
}
|
|
4598
|
+
];
|
|
4599
|
+
var ChildrenPerspectiveControl = () => {
|
|
4600
|
+
return /* @__PURE__ */ React70.createElement(Stack15, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React70.createElement(ControlFormLabel, null, __32("Children perspective", "elementor")), /* @__PURE__ */ React70.createElement(PerspectiveControl, null), /* @__PURE__ */ React70.createElement(PerspectiveOriginControl, null));
|
|
4601
|
+
};
|
|
4602
|
+
var PerspectiveControl = () => /* @__PURE__ */ React70.createElement(PropKeyProvider, { bind: "perspective" }, /* @__PURE__ */ React70.createElement(ControlFields, { control: PERSPECTIVE_CONTROL_FIELD, key: PERSPECTIVE_CONTROL_FIELD.bind }));
|
|
4603
|
+
var PerspectiveOriginControl = () => /* @__PURE__ */ React70.createElement(PropKeyProvider, { bind: "perspective-origin" }, /* @__PURE__ */ React70.createElement(PerspectiveOriginControlProvider, null));
|
|
4604
|
+
var PerspectiveOriginControlProvider = () => {
|
|
4605
|
+
const context = useBoundProp(perspectiveOriginPropTypeUtil);
|
|
4606
|
+
return /* @__PURE__ */ React70.createElement(PropProvider, { ...context }, CHILDREN_PERSPECTIVE_FIELDS.map((control) => /* @__PURE__ */ React70.createElement(PropKeyProvider, { bind: control.bind, key: control.bind }, /* @__PURE__ */ React70.createElement(ControlFields, { control }))));
|
|
4607
|
+
};
|
|
4608
|
+
var ControlFields = ({ control }) => {
|
|
4609
|
+
const rowRef = React70.useRef(null);
|
|
4610
|
+
return /* @__PURE__ */ React70.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React70.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React70.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef, disableCustom: true })));
|
|
4611
|
+
};
|
|
4612
|
+
|
|
4613
|
+
// src/controls/transform-control/transform-base-controls/transform-origin-control.tsx
|
|
4614
|
+
import * as React71 from "react";
|
|
4615
|
+
import { transformOriginPropTypeUtil } from "@elementor/editor-props";
|
|
4616
|
+
import { Grid as Grid20, Stack as Stack16 } from "@elementor/ui";
|
|
4617
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
4618
|
+
var TRANSFORM_ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
4619
|
+
var TRANSFORM_ORIGIN_UNITS_Z_AXIS = TRANSFORM_ORIGIN_UNITS.filter((unit) => unit !== "%");
|
|
4620
|
+
var TRANSFORM_ORIGIN_FIELDS = [
|
|
4621
|
+
{
|
|
4622
|
+
label: __33("Origin X", "elementor"),
|
|
4623
|
+
bind: "x",
|
|
4624
|
+
units: TRANSFORM_ORIGIN_UNITS
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
label: __33("Origin Y", "elementor"),
|
|
4628
|
+
bind: "y",
|
|
4629
|
+
units: TRANSFORM_ORIGIN_UNITS
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
label: __33("Origin Z", "elementor"),
|
|
4633
|
+
bind: "z",
|
|
4634
|
+
units: TRANSFORM_ORIGIN_UNITS_Z_AXIS
|
|
4635
|
+
}
|
|
4636
|
+
];
|
|
4637
|
+
var TransformOriginControl = () => {
|
|
4638
|
+
return /* @__PURE__ */ React71.createElement(Stack16, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React71.createElement(ControlFormLabel, null, __33("Transform", "elementor")), TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React71.createElement(ControlFields2, { control, key: control.bind })));
|
|
4639
|
+
};
|
|
4640
|
+
var ControlFields2 = ({ control }) => {
|
|
4641
|
+
const context = useBoundProp(transformOriginPropTypeUtil);
|
|
4642
|
+
const rowRef = React71.useRef(null);
|
|
4643
|
+
return /* @__PURE__ */ React71.createElement(PropProvider, { ...context }, /* @__PURE__ */ React71.createElement(PropKeyProvider, { bind: control.bind }, /* @__PURE__ */ React71.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React71.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React71.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef, disableCustom: true })))));
|
|
4644
|
+
};
|
|
4645
|
+
|
|
4646
|
+
// src/controls/transform-control/transform-base-control.tsx
|
|
4647
|
+
var SIZE8 = "tiny";
|
|
4648
|
+
var TransformBaseControl = ({
|
|
4649
|
+
popupState,
|
|
4650
|
+
anchorRef
|
|
4651
|
+
}) => {
|
|
4652
|
+
const popupProps = bindPopover6({
|
|
4653
|
+
...popupState,
|
|
4654
|
+
anchorEl: anchorRef.current ?? void 0
|
|
4655
|
+
});
|
|
4656
|
+
return /* @__PURE__ */ React72.createElement(
|
|
4657
|
+
Popover6,
|
|
4658
|
+
{
|
|
4659
|
+
disablePortal: true,
|
|
4660
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
4661
|
+
slotProps: {
|
|
4662
|
+
paper: {
|
|
4663
|
+
sx: {
|
|
4664
|
+
width: (anchorRef.current?.offsetWidth || 0) - 6 + "px",
|
|
4665
|
+
mt: 0.5
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
},
|
|
4669
|
+
...popupProps
|
|
4670
|
+
},
|
|
4671
|
+
/* @__PURE__ */ React72.createElement(
|
|
4672
|
+
PopoverHeader3,
|
|
4673
|
+
{
|
|
4674
|
+
title: __34("Base Transform", "elementor"),
|
|
4675
|
+
onClose: popupState.close,
|
|
4676
|
+
icon: /* @__PURE__ */ React72.createElement(AdjustmentsIcon, { fontSize: SIZE8 })
|
|
4677
|
+
}
|
|
4678
|
+
),
|
|
4679
|
+
/* @__PURE__ */ React72.createElement(Divider4, null),
|
|
4680
|
+
/* @__PURE__ */ React72.createElement(PopoverContent, { sx: { px: 2, py: 1.5 } }, /* @__PURE__ */ React72.createElement(PropKeyProvider, { bind: "transform-origin" }, /* @__PURE__ */ React72.createElement(TransformOriginControl, null)), /* @__PURE__ */ React72.createElement(Box13, { sx: { my: 0.5 } }, /* @__PURE__ */ React72.createElement(Divider4, null)), /* @__PURE__ */ React72.createElement(ChildrenPerspectiveControl, null))
|
|
4681
|
+
);
|
|
4682
|
+
};
|
|
4683
|
+
|
|
4714
4684
|
// src/controls/transform-control/transform-content.tsx
|
|
4715
4685
|
import * as React79 from "react";
|
|
4716
|
-
import { Box as
|
|
4686
|
+
import { Box as Box14, Tab as Tab2, TabPanel as TabPanel2, Tabs as Tabs2 } from "@elementor/ui";
|
|
4717
4687
|
import { __ as __39 } from "@wordpress/i18n";
|
|
4718
4688
|
|
|
4719
4689
|
// src/controls/transform-control/functions/move.tsx
|
|
4720
4690
|
import * as React74 from "react";
|
|
4721
|
-
import { useRef as
|
|
4691
|
+
import { useRef as useRef16 } from "react";
|
|
4722
4692
|
import { moveTransformPropTypeUtil } from "@elementor/editor-props";
|
|
4723
4693
|
import { ArrowDownLeftIcon, ArrowDownSmallIcon, ArrowRightIcon } from "@elementor/icons";
|
|
4724
4694
|
import { Grid as Grid22 } from "@elementor/ui";
|
|
@@ -4763,7 +4733,7 @@ var moveAxisControls = [
|
|
|
4763
4733
|
];
|
|
4764
4734
|
var Move = () => {
|
|
4765
4735
|
const context = useBoundProp(moveTransformPropTypeUtil);
|
|
4766
|
-
const rowRefs = [
|
|
4736
|
+
const rowRefs = [useRef16(null), useRef16(null), useRef16(null)];
|
|
4767
4737
|
return /* @__PURE__ */ React74.createElement(Grid22, { container: true, spacing: 1.5 }, /* @__PURE__ */ React74.createElement(PropProvider, { ...context }, /* @__PURE__ */ React74.createElement(PropKeyProvider, { bind: TransformFunctionKeys.move }, moveAxisControls.map((control, index) => /* @__PURE__ */ React74.createElement(
|
|
4768
4738
|
AxisRow,
|
|
4769
4739
|
{
|
|
@@ -4778,7 +4748,7 @@ var Move = () => {
|
|
|
4778
4748
|
|
|
4779
4749
|
// src/controls/transform-control/functions/rotate.tsx
|
|
4780
4750
|
import * as React75 from "react";
|
|
4781
|
-
import { useRef as
|
|
4751
|
+
import { useRef as useRef17 } from "react";
|
|
4782
4752
|
import { rotateTransformPropTypeUtil as rotateTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
4783
4753
|
import { Arrow360Icon, RotateClockwiseIcon } from "@elementor/icons";
|
|
4784
4754
|
import { Grid as Grid23 } from "@elementor/ui";
|
|
@@ -4803,7 +4773,7 @@ var rotateAxisControls = [
|
|
|
4803
4773
|
var rotateUnits = ["deg", "rad", "grad", "turn"];
|
|
4804
4774
|
var Rotate = () => {
|
|
4805
4775
|
const context = useBoundProp(rotateTransformPropTypeUtil2);
|
|
4806
|
-
const rowRefs = [
|
|
4776
|
+
const rowRefs = [useRef17(null), useRef17(null), useRef17(null)];
|
|
4807
4777
|
return /* @__PURE__ */ React75.createElement(Grid23, { container: true, spacing: 1.5 }, /* @__PURE__ */ React75.createElement(PropProvider, { ...context }, /* @__PURE__ */ React75.createElement(PropKeyProvider, { bind: TransformFunctionKeys.rotate }, rotateAxisControls.map((control, index) => /* @__PURE__ */ React75.createElement(
|
|
4808
4778
|
AxisRow,
|
|
4809
4779
|
{
|
|
@@ -4817,7 +4787,7 @@ var Rotate = () => {
|
|
|
4817
4787
|
|
|
4818
4788
|
// src/controls/transform-control/functions/scale.tsx
|
|
4819
4789
|
import * as React77 from "react";
|
|
4820
|
-
import { useRef as
|
|
4790
|
+
import { useRef as useRef18 } from "react";
|
|
4821
4791
|
import { scaleTransformPropTypeUtil as scaleTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
4822
4792
|
import { ArrowDownLeftIcon as ArrowDownLeftIcon2, ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
4823
4793
|
import { Grid as Grid25 } from "@elementor/ui";
|
|
@@ -4850,13 +4820,13 @@ var scaleAxisControls = [
|
|
|
4850
4820
|
];
|
|
4851
4821
|
var Scale = () => {
|
|
4852
4822
|
const context = useBoundProp(scaleTransformPropTypeUtil2);
|
|
4853
|
-
const rowRefs = [
|
|
4823
|
+
const rowRefs = [useRef18(null), useRef18(null), useRef18(null)];
|
|
4854
4824
|
return /* @__PURE__ */ React77.createElement(Grid25, { container: true, spacing: 1.5 }, /* @__PURE__ */ React77.createElement(PropProvider, { ...context }, /* @__PURE__ */ React77.createElement(PropKeyProvider, { bind: TransformFunctionKeys.scale }, scaleAxisControls.map((control, index) => /* @__PURE__ */ React77.createElement(ScaleAxisRow, { key: control.bind, ...control, anchorRef: rowRefs[index] })))));
|
|
4855
4825
|
};
|
|
4856
4826
|
|
|
4857
4827
|
// src/controls/transform-control/functions/skew.tsx
|
|
4858
4828
|
import * as React78 from "react";
|
|
4859
|
-
import { useRef as
|
|
4829
|
+
import { useRef as useRef19 } from "react";
|
|
4860
4830
|
import { skewTransformPropTypeUtil as skewTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
4861
4831
|
import { ArrowLeftIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4862
4832
|
import { Grid as Grid26 } from "@elementor/ui";
|
|
@@ -4876,7 +4846,7 @@ var skewAxisControls = [
|
|
|
4876
4846
|
var skewUnits = ["deg", "rad", "grad", "turn"];
|
|
4877
4847
|
var Skew = () => {
|
|
4878
4848
|
const context = useBoundProp(skewTransformPropTypeUtil2);
|
|
4879
|
-
const rowRefs = [
|
|
4849
|
+
const rowRefs = [useRef19(null), useRef19(null), useRef19(null)];
|
|
4880
4850
|
return /* @__PURE__ */ React78.createElement(Grid26, { container: true, spacing: 1.5 }, /* @__PURE__ */ React78.createElement(PropProvider, { ...context }, /* @__PURE__ */ React78.createElement(PropKeyProvider, { bind: TransformFunctionKeys.skew }, skewAxisControls.map((control, index) => /* @__PURE__ */ React78.createElement(
|
|
4881
4851
|
AxisRow,
|
|
4882
4852
|
{
|
|
@@ -4889,7 +4859,7 @@ var Skew = () => {
|
|
|
4889
4859
|
};
|
|
4890
4860
|
|
|
4891
4861
|
// src/controls/transform-control/use-transform-tabs-history.tsx
|
|
4892
|
-
import { useRef as
|
|
4862
|
+
import { useRef as useRef20 } from "react";
|
|
4893
4863
|
import {
|
|
4894
4864
|
moveTransformPropTypeUtil as moveTransformPropTypeUtil2,
|
|
4895
4865
|
rotateTransformPropTypeUtil as rotateTransformPropTypeUtil3,
|
|
@@ -4921,7 +4891,7 @@ var useTransformTabsHistory = ({
|
|
|
4921
4891
|
}
|
|
4922
4892
|
};
|
|
4923
4893
|
const { getTabsProps, getTabProps, getTabPanelProps } = useTabs2(getCurrentTransformType());
|
|
4924
|
-
const valuesHistory =
|
|
4894
|
+
const valuesHistory = useRef20({
|
|
4925
4895
|
move: initialMove,
|
|
4926
4896
|
scale: initialScale,
|
|
4927
4897
|
rotate: initialRotate,
|
|
@@ -4982,7 +4952,7 @@ var TransformContent = () => {
|
|
|
4982
4952
|
rotate: initialRotateValue.value,
|
|
4983
4953
|
skew: initialSkewValue.value
|
|
4984
4954
|
});
|
|
4985
|
-
return /* @__PURE__ */ React79.createElement(PopoverContent, null, /* @__PURE__ */ React79.createElement(
|
|
4955
|
+
return /* @__PURE__ */ React79.createElement(PopoverContent, null, /* @__PURE__ */ React79.createElement(Box14, { sx: { width: "100%" } }, /* @__PURE__ */ React79.createElement(Box14, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React79.createElement(
|
|
4986
4956
|
Tabs2,
|
|
4987
4957
|
{
|
|
4988
4958
|
size: "small",
|
|
@@ -5022,7 +4992,7 @@ var TransformIcon = ({ value }) => {
|
|
|
5022
4992
|
|
|
5023
4993
|
// src/controls/transform-control/transform-label.tsx
|
|
5024
4994
|
import * as React81 from "react";
|
|
5025
|
-
import { Box as
|
|
4995
|
+
import { Box as Box15 } from "@elementor/ui";
|
|
5026
4996
|
import { __ as __40 } from "@wordpress/i18n";
|
|
5027
4997
|
var transformMoveValue = (value) => Object.values(value).map((axis) => {
|
|
5028
4998
|
const size = axis?.value?.size ?? defaultValues.move.size;
|
|
@@ -5056,16 +5026,25 @@ var TransformLabel = (props) => {
|
|
|
5056
5026
|
}
|
|
5057
5027
|
};
|
|
5058
5028
|
var Label2 = ({ label, value }) => {
|
|
5059
|
-
return /* @__PURE__ */ React81.createElement(
|
|
5029
|
+
return /* @__PURE__ */ React81.createElement(Box15, { component: "span" }, label, ": ", value);
|
|
5060
5030
|
};
|
|
5061
5031
|
|
|
5062
5032
|
// src/controls/transform-control/transform-repeater-control.tsx
|
|
5033
|
+
var SIZE9 = "tiny";
|
|
5063
5034
|
var TransformRepeaterControl = createControl(() => {
|
|
5064
5035
|
const context = useBoundProp(transformPropTypeUtil);
|
|
5065
|
-
|
|
5036
|
+
const headerRef = useRef21(null);
|
|
5037
|
+
const popupState = usePopupState7({ variant: "popover" });
|
|
5038
|
+
const repeaterBindKey = "transform-functions";
|
|
5039
|
+
injectIntoRepeaterHeaderActions({
|
|
5040
|
+
id: "transform-base-control",
|
|
5041
|
+
component: () => /* @__PURE__ */ React82.createElement(TransformBasePopoverTrigger, { popupState, repeaterBindKey }),
|
|
5042
|
+
options: { overwrite: true }
|
|
5043
|
+
});
|
|
5044
|
+
return /* @__PURE__ */ React82.createElement(PropProvider, { ...context }, /* @__PURE__ */ React82.createElement(TransformBaseControl, { popupState, anchorRef: headerRef }), /* @__PURE__ */ React82.createElement(PropKeyProvider, { bind: repeaterBindKey }, /* @__PURE__ */ React82.createElement(Repeater2, { headerRef })));
|
|
5066
5045
|
});
|
|
5067
5046
|
var ToolTip = /* @__PURE__ */ React82.createElement(
|
|
5068
|
-
|
|
5047
|
+
Box16,
|
|
5069
5048
|
{
|
|
5070
5049
|
component: "span",
|
|
5071
5050
|
"aria-label": void 0,
|
|
@@ -5074,7 +5053,7 @@ var ToolTip = /* @__PURE__ */ React82.createElement(
|
|
|
5074
5053
|
/* @__PURE__ */ React82.createElement(InfoCircleFilledIcon2, { sx: { color: "secondary.main" } }),
|
|
5075
5054
|
/* @__PURE__ */ React82.createElement(Typography6, { variant: "body2", color: "text.secondary", fontSize: "14px" }, __41("You can use each kind of transform only once per element.", "elementor"))
|
|
5076
5055
|
);
|
|
5077
|
-
var Repeater2 = () => {
|
|
5056
|
+
var Repeater2 = ({ headerRef }) => {
|
|
5078
5057
|
const transformFunctionsContext = useBoundProp(transformFunctionsPropTypeUtil);
|
|
5079
5058
|
const availableValues = [initialTransformValue, initialScaleValue, initialRotateValue, initialSkewValue];
|
|
5080
5059
|
const { value: transformValues } = transformFunctionsContext;
|
|
@@ -5088,7 +5067,7 @@ var Repeater2 = () => {
|
|
|
5088
5067
|
initial: getInitialValue() ?? initialTransformValue,
|
|
5089
5068
|
propTypeUtil: transformFunctionsPropTypeUtil
|
|
5090
5069
|
},
|
|
5091
|
-
/* @__PURE__ */ React82.createElement(Header, { label: __41("Transform", "elementor") }, /* @__PURE__ */ React82.createElement(
|
|
5070
|
+
/* @__PURE__ */ React82.createElement(Header, { label: __41("Transform", "elementor"), ref: headerRef }, /* @__PURE__ */ React82.createElement(
|
|
5092
5071
|
TooltipAddItemAction,
|
|
5093
5072
|
{
|
|
5094
5073
|
disabled: shouldDisableAddItem,
|
|
@@ -5100,24 +5079,31 @@ var Repeater2 = () => {
|
|
|
5100
5079
|
/* @__PURE__ */ React82.createElement(EditItemPopover, null, /* @__PURE__ */ React82.createElement(TransformContent, null))
|
|
5101
5080
|
));
|
|
5102
5081
|
};
|
|
5082
|
+
var TransformBasePopoverTrigger = ({
|
|
5083
|
+
popupState,
|
|
5084
|
+
repeaterBindKey
|
|
5085
|
+
}) => {
|
|
5086
|
+
const { bind } = useBoundProp();
|
|
5087
|
+
return bind !== repeaterBindKey ? null : /* @__PURE__ */ React82.createElement(IconButton8, { size: SIZE9, "aria-label": __41("Base Transform", "elementor"), ...bindTrigger5(popupState) }, /* @__PURE__ */ React82.createElement(AdjustmentsIcon2, { fontSize: SIZE9 }));
|
|
5088
|
+
};
|
|
5103
5089
|
|
|
5104
5090
|
// src/controls/transition-control/transition-repeater-control.tsx
|
|
5105
5091
|
import * as React85 from "react";
|
|
5106
5092
|
import { useEffect as useEffect9, useState as useState15 } from "react";
|
|
5107
5093
|
import { selectionSizePropTypeUtil as selectionSizePropTypeUtil2 } from "@elementor/editor-props";
|
|
5108
5094
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
5109
|
-
import { Alert as Alert2, AlertTitle as AlertTitle2, Box as
|
|
5095
|
+
import { Alert as Alert2, AlertTitle as AlertTitle2, Box as Box18, Typography as Typography7 } from "@elementor/ui";
|
|
5110
5096
|
import { __ as __44 } from "@wordpress/i18n";
|
|
5111
5097
|
|
|
5112
5098
|
// src/controls/selection-size-control.tsx
|
|
5113
5099
|
import * as React83 from "react";
|
|
5114
|
-
import { useMemo as useMemo7, useRef as
|
|
5100
|
+
import { useMemo as useMemo7, useRef as useRef22 } from "react";
|
|
5115
5101
|
import { selectionSizePropTypeUtil } from "@elementor/editor-props";
|
|
5116
5102
|
import { Grid as Grid27 } from "@elementor/ui";
|
|
5117
5103
|
var SelectionSizeControl = createControl(
|
|
5118
5104
|
({ selectionLabel, sizeLabel, selectionConfig, sizeConfigMap }) => {
|
|
5119
5105
|
const { value, setValue, propType } = useBoundProp(selectionSizePropTypeUtil);
|
|
5120
|
-
const rowRef =
|
|
5106
|
+
const rowRef = useRef22(null);
|
|
5121
5107
|
const currentSizeConfig = useMemo7(() => {
|
|
5122
5108
|
switch (value.selection.$$type) {
|
|
5123
5109
|
case "key-value":
|
|
@@ -5167,10 +5153,10 @@ var transitionsItemsList = transitionProperties.map((category) => ({
|
|
|
5167
5153
|
|
|
5168
5154
|
// src/controls/transition-control/transition-selector.tsx
|
|
5169
5155
|
import * as React84 from "react";
|
|
5170
|
-
import { useRef as
|
|
5156
|
+
import { useRef as useRef23 } from "react";
|
|
5171
5157
|
import { keyValuePropTypeUtil as keyValuePropTypeUtil2 } from "@elementor/editor-props";
|
|
5172
5158
|
import { ChevronDownIcon as ChevronDownIcon3, VariationsIcon } from "@elementor/icons";
|
|
5173
|
-
import { bindPopover as bindPopover7, bindTrigger as bindTrigger6, Box as
|
|
5159
|
+
import { bindPopover as bindPopover7, bindTrigger as bindTrigger6, Box as Box17, Popover as Popover7, UnstableTag as UnstableTag4, usePopupState as usePopupState8 } from "@elementor/ui";
|
|
5174
5160
|
import { __ as __43 } from "@wordpress/i18n";
|
|
5175
5161
|
var toTransitionSelectorValue = (label) => {
|
|
5176
5162
|
for (const category of transitionProperties) {
|
|
@@ -5198,7 +5184,7 @@ var TransitionSelector = ({ recentlyUsedList = [] }) => {
|
|
|
5198
5184
|
value: { value: transitionValue },
|
|
5199
5185
|
key: { value: transitionLabel }
|
|
5200
5186
|
} = value;
|
|
5201
|
-
const defaultRef =
|
|
5187
|
+
const defaultRef = useRef23(null);
|
|
5202
5188
|
const popoverState = usePopupState8({ variant: "popover" });
|
|
5203
5189
|
const getItemList = () => {
|
|
5204
5190
|
const recentItems = recentlyUsedList.map((item) => findByValue(item)).filter((item) => !!item);
|
|
@@ -5239,7 +5225,7 @@ var TransitionSelector = ({ recentlyUsedList = [] }) => {
|
|
|
5239
5225
|
left: rect.right + 36
|
|
5240
5226
|
};
|
|
5241
5227
|
};
|
|
5242
|
-
return /* @__PURE__ */ React84.createElement(
|
|
5228
|
+
return /* @__PURE__ */ React84.createElement(Box17, { ref: defaultRef }, /* @__PURE__ */ React84.createElement(
|
|
5243
5229
|
UnstableTag4,
|
|
5244
5230
|
{
|
|
5245
5231
|
variant: "outlined",
|
|
@@ -5321,7 +5307,7 @@ var disableAddItemTooltipContent = /* @__PURE__ */ React85.createElement(
|
|
|
5321
5307
|
icon: /* @__PURE__ */ React85.createElement(InfoCircleFilledIcon3, null)
|
|
5322
5308
|
},
|
|
5323
5309
|
/* @__PURE__ */ React85.createElement(AlertTitle2, null, __44("Transitions", "elementor")),
|
|
5324
|
-
/* @__PURE__ */ React85.createElement(
|
|
5310
|
+
/* @__PURE__ */ React85.createElement(Box18, { component: "span" }, /* @__PURE__ */ React85.createElement(Typography7, { variant: "body2" }, __44("Switch to 'Normal' state to add a transition.", "elementor")))
|
|
5325
5311
|
);
|
|
5326
5312
|
var TransitionRepeaterControl = createControl(
|
|
5327
5313
|
({
|
|
@@ -5362,8 +5348,8 @@ import { useTheme as useTheme2 } from "@elementor/ui";
|
|
|
5362
5348
|
import { Editor } from "@monaco-editor/react";
|
|
5363
5349
|
|
|
5364
5350
|
// src/components/css-code-editor/css-editor.styles.ts
|
|
5365
|
-
import { Box as
|
|
5366
|
-
var EditorWrapper = styled8(
|
|
5351
|
+
import { Box as Box19, Button as Button5, styled as styled8 } from "@elementor/ui";
|
|
5352
|
+
var EditorWrapper = styled8(Box19)`
|
|
5367
5353
|
border: 1px solid var( --e-a-border-color );
|
|
5368
5354
|
border-radius: 8px;
|
|
5369
5355
|
padding: 10px 12px;
|