@elementor/editor-editing-panel 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/index.js +400 -352
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +367 -324
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/add-or-remove-content.tsx +1 -1
- package/src/components/{control-label-with-adornments.tsx → control-label.tsx} +3 -3
- package/src/components/css-classes/css-class-item.tsx +16 -5
- package/src/components/css-classes/css-class-selector.tsx +3 -3
- package/src/components/editing-panel-tabs.tsx +8 -1
- package/src/components/editing-panel.tsx +18 -15
- package/src/components/multi-combobox.tsx +12 -1
- package/src/components/settings-tab.tsx +2 -2
- package/src/components/style-sections/border-section/border-color-field.tsx +2 -1
- package/src/components/style-sections/border-section/border-style-field.tsx +2 -1
- package/src/components/style-sections/layout-section/align-content-field.tsx +2 -1
- package/src/components/style-sections/layout-section/align-items-field.tsx +2 -1
- package/src/components/style-sections/layout-section/align-self-child-field.tsx +2 -1
- package/src/components/style-sections/layout-section/display-field.tsx +2 -1
- package/src/components/style-sections/layout-section/flex-direction-field.tsx +2 -1
- package/src/components/style-sections/layout-section/flex-order-field.tsx +20 -24
- package/src/components/style-sections/layout-section/flex-size-field.tsx +6 -4
- package/src/components/style-sections/layout-section/justify-content-field.tsx +5 -4
- package/src/components/style-sections/layout-section/layout-section.tsx +2 -2
- package/src/components/style-sections/layout-section/wrap-field.tsx +2 -1
- package/src/components/style-sections/position-section/dimensions-field.tsx +2 -1
- package/src/components/style-sections/position-section/position-field.tsx +2 -1
- package/src/components/style-sections/position-section/z-index-field.tsx +2 -1
- package/src/components/style-sections/size-section/overflow-field.tsx +2 -1
- package/src/components/style-sections/size-section/size-section.tsx +2 -1
- package/src/components/style-sections/typography-section/font-family-field.tsx +2 -1
- package/src/components/style-sections/typography-section/font-size-field.tsx +2 -1
- package/src/components/style-sections/typography-section/font-style-field.tsx +2 -2
- package/src/components/style-sections/typography-section/font-weight-field.tsx +2 -1
- package/src/components/style-sections/typography-section/letter-spacing-field.tsx +2 -1
- package/src/components/style-sections/typography-section/line-height-field.tsx +2 -1
- package/src/components/style-sections/typography-section/text-alignment-field.tsx +2 -1
- package/src/components/style-sections/typography-section/text-color-field.tsx +2 -1
- package/src/components/style-sections/typography-section/text-decoration-field.tsx +2 -1
- package/src/components/style-sections/typography-section/text-direction-field.tsx +2 -1
- package/src/components/style-sections/typography-section/text-stroke-field.tsx +9 -9
- package/src/components/style-sections/typography-section/transform-field.tsx +2 -1
- package/src/components/style-sections/typography-section/word-spacing-field.tsx +2 -1
- package/src/dynamics/components/dynamic-selection-control.tsx +2 -2
- package/src/dynamics/components/dynamic-selection.tsx +4 -4
- package/src/styles-inheritance/styles-inheritance-indicator.tsx +7 -6
package/dist/index.mjs
CHANGED
|
@@ -130,7 +130,18 @@ function MultiCombobox({
|
|
|
130
130
|
value: selected,
|
|
131
131
|
options: options13,
|
|
132
132
|
renderGroup: (params) => /* @__PURE__ */ React4.createElement(Group, { ...params }),
|
|
133
|
-
renderInput: (params) => /* @__PURE__ */ React4.createElement(
|
|
133
|
+
renderInput: (params) => /* @__PURE__ */ React4.createElement(
|
|
134
|
+
TextField,
|
|
135
|
+
{
|
|
136
|
+
...params,
|
|
137
|
+
sx: (theme) => ({
|
|
138
|
+
".MuiAutocomplete-inputRoot.MuiInputBase-adornedStart": {
|
|
139
|
+
paddingLeft: theme.spacing(0.25),
|
|
140
|
+
paddingRight: theme.spacing(0.25)
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
),
|
|
134
145
|
onChange: (_, selectedOrInputValue, reason) => {
|
|
135
146
|
const inputValue = selectedOrInputValue.find((option) => typeof option === "string");
|
|
136
147
|
const optionsAndActions = selectedOrInputValue.filter((option) => typeof option !== "string");
|
|
@@ -408,52 +419,67 @@ function CssClassItem({
|
|
|
408
419
|
const providerActions = stylesRepository3.getProviderByKey(provider)?.actions;
|
|
409
420
|
const allowRename = Boolean(providerActions?.update);
|
|
410
421
|
const isShowingState = isActive && meta.state;
|
|
411
|
-
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
|
|
412
|
-
|
|
422
|
+
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
|
|
423
|
+
UnstableChipGroup,
|
|
413
424
|
{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
425
|
+
ref: setChipRef,
|
|
426
|
+
...chipGroupProps,
|
|
427
|
+
"aria-label": `Edit ${label}`,
|
|
428
|
+
role: "group",
|
|
429
|
+
sx: (theme) => ({
|
|
430
|
+
"&.MuiChipGroup-root.MuiAutocomplete-tag": { margin: theme.spacing(0.125) }
|
|
431
|
+
})
|
|
432
|
+
},
|
|
433
|
+
/* @__PURE__ */ React6.createElement(
|
|
434
|
+
Chip,
|
|
435
|
+
{
|
|
436
|
+
size: CHIP_SIZE,
|
|
437
|
+
label: isEditing ? /* @__PURE__ */ React6.createElement(EditableField, { ref, error, ...getEditableProps() }) : /* @__PURE__ */ React6.createElement(EllipsisWithTooltip, { maxWidth: "10ch", title: label, as: "div" }),
|
|
438
|
+
variant: isActive && !meta.state && !isEditing ? "filled" : "standard",
|
|
439
|
+
shape: "rounded",
|
|
440
|
+
icon,
|
|
441
|
+
color,
|
|
442
|
+
onClick: () => {
|
|
443
|
+
if (isShowingState) {
|
|
444
|
+
setMetaState(null);
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
if (allowRename && isActive) {
|
|
448
|
+
openEditMode();
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
onClickActive(id);
|
|
452
|
+
},
|
|
453
|
+
"aria-pressed": isActive,
|
|
454
|
+
sx: (theme) => ({
|
|
455
|
+
cursor: isActive && allowRename && !isShowingState ? "text" : "pointer",
|
|
456
|
+
borderRadius: `${theme.shape.borderRadius * 0.75}px`,
|
|
457
|
+
"&.Mui-focusVisible": {
|
|
458
|
+
boxShadow: "none !important"
|
|
459
|
+
}
|
|
460
|
+
})
|
|
437
461
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
462
|
+
),
|
|
463
|
+
!isEditing && /* @__PURE__ */ React6.createElement(
|
|
464
|
+
Chip,
|
|
465
|
+
{
|
|
466
|
+
icon: isShowingState ? void 0 : /* @__PURE__ */ React6.createElement(DotsVerticalIcon, { fontSize: "tiny" }),
|
|
467
|
+
size: CHIP_SIZE,
|
|
468
|
+
label: isShowingState ? /* @__PURE__ */ React6.createElement(Stack, { direction: "row", gap: 0.5, alignItems: "center" }, /* @__PURE__ */ React6.createElement(Typography, { variant: "inherit" }, meta.state), /* @__PURE__ */ React6.createElement(DotsVerticalIcon, { fontSize: "tiny" })) : void 0,
|
|
469
|
+
variant: "filled",
|
|
470
|
+
shape: "rounded",
|
|
471
|
+
color,
|
|
472
|
+
...bindTrigger(popupState),
|
|
473
|
+
"aria-label": __2("Open CSS Class Menu", "elementor"),
|
|
474
|
+
sx: (theme) => ({
|
|
475
|
+
borderRadius: `${theme.shape.borderRadius * 0.75}px`,
|
|
476
|
+
paddingRight: 0,
|
|
477
|
+
...!isShowingState ? { paddingLeft: 0 } : {},
|
|
478
|
+
".MuiChip-label": isShowingState ? { paddingRight: 0 } : { padding: 0 }
|
|
479
|
+
})
|
|
454
480
|
}
|
|
455
|
-
|
|
456
|
-
)
|
|
481
|
+
)
|
|
482
|
+
), /* @__PURE__ */ React6.createElement(
|
|
457
483
|
CssClassMenu,
|
|
458
484
|
{
|
|
459
485
|
styleId: id,
|
|
@@ -481,7 +507,7 @@ var EMPTY_OPTION = {
|
|
|
481
507
|
label: __3("local", "elementor"),
|
|
482
508
|
value: null,
|
|
483
509
|
fixed: true,
|
|
484
|
-
color: "
|
|
510
|
+
color: "accent",
|
|
485
511
|
icon: /* @__PURE__ */ React7.createElement(MapPinIcon, null),
|
|
486
512
|
provider: ELEMENTS_STYLES_PROVIDER_KEY
|
|
487
513
|
};
|
|
@@ -554,7 +580,7 @@ function useOptions() {
|
|
|
554
580
|
label: styleDef.label,
|
|
555
581
|
value: styleDef.id,
|
|
556
582
|
fixed: isElements,
|
|
557
|
-
color: isElements ? "
|
|
583
|
+
color: isElements ? "accent" : "global",
|
|
558
584
|
icon: isElements ? /* @__PURE__ */ React7.createElement(MapPinIcon, null) : null,
|
|
559
585
|
provider: provider.key,
|
|
560
586
|
group: provider.labels?.plural
|
|
@@ -650,10 +676,11 @@ function useHandleApply(appliedIds, setAppliedIds) {
|
|
|
650
676
|
import { __createPanel as createPanel } from "@elementor/editor-panels";
|
|
651
677
|
|
|
652
678
|
// src/components/editing-panel.tsx
|
|
653
|
-
import * as
|
|
679
|
+
import * as React67 from "react";
|
|
654
680
|
import { ControlActionsProvider, ControlReplacementProvider } from "@elementor/editor-controls";
|
|
655
681
|
import { useSelectedElement } from "@elementor/editor-elements";
|
|
656
682
|
import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
|
|
683
|
+
import { ThemeProvider as ThemeProvider9 } from "@elementor/editor-ui";
|
|
657
684
|
import { AtomIcon } from "@elementor/icons";
|
|
658
685
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
659
686
|
import { ErrorBoundary } from "@elementor/ui";
|
|
@@ -713,14 +740,14 @@ function EditorPanelErrorFallback() {
|
|
|
713
740
|
}
|
|
714
741
|
|
|
715
742
|
// src/components/editing-panel-tabs.tsx
|
|
716
|
-
import * as
|
|
743
|
+
import * as React66 from "react";
|
|
717
744
|
import { Fragment as Fragment8 } from "react";
|
|
718
|
-
import { Divider as Divider5, Stack as
|
|
745
|
+
import { Divider as Divider5, Stack as Stack15, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
719
746
|
import { __ as __44 } from "@wordpress/i18n";
|
|
720
747
|
|
|
721
748
|
// src/components/settings-tab.tsx
|
|
722
749
|
import * as React15 from "react";
|
|
723
|
-
import {
|
|
750
|
+
import { ControlFormLabel } from "@elementor/editor-controls";
|
|
724
751
|
import { SessionStorageProvider } from "@elementor/session";
|
|
725
752
|
|
|
726
753
|
// src/controls-registry/control.tsx
|
|
@@ -891,11 +918,11 @@ var Control2 = ({ control }) => {
|
|
|
891
918
|
if (!getControlByType(control.type)) {
|
|
892
919
|
return null;
|
|
893
920
|
}
|
|
894
|
-
return /* @__PURE__ */ React15.createElement(SettingsField, { bind: control.bind }, /* @__PURE__ */ React15.createElement(ControlTypeContainer, { controlType: control.type }, control.label ? /* @__PURE__ */ React15.createElement(
|
|
921
|
+
return /* @__PURE__ */ React15.createElement(SettingsField, { bind: control.bind }, /* @__PURE__ */ React15.createElement(ControlTypeContainer, { controlType: control.type }, control.label ? /* @__PURE__ */ React15.createElement(ControlFormLabel, null, control.label) : null, /* @__PURE__ */ React15.createElement(Control, { type: control.type, props: control.props })));
|
|
895
922
|
};
|
|
896
923
|
|
|
897
924
|
// src/components/style-tab.tsx
|
|
898
|
-
import * as
|
|
925
|
+
import * as React65 from "react";
|
|
899
926
|
import { useState as useState7 } from "react";
|
|
900
927
|
import { getElementStyles, useElementSetting as useElementSetting5 } from "@elementor/editor-elements";
|
|
901
928
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
@@ -1274,20 +1301,20 @@ var Circle = styled4("div", {
|
|
|
1274
1301
|
background-color: ${({ theme, variant }) => {
|
|
1275
1302
|
switch (variant) {
|
|
1276
1303
|
case "overridden":
|
|
1277
|
-
return theme.palette.warning.
|
|
1304
|
+
return theme.palette.warning.light;
|
|
1278
1305
|
case "global-affects":
|
|
1279
|
-
return theme.palette.global.
|
|
1306
|
+
return theme.palette.global.dark;
|
|
1280
1307
|
case "local-affects":
|
|
1281
1308
|
return theme.palette.primary.main;
|
|
1282
1309
|
default:
|
|
1283
|
-
return theme.palette.text.
|
|
1310
|
+
return theme.palette.text.disabled;
|
|
1284
1311
|
}
|
|
1285
1312
|
}};
|
|
1286
1313
|
`;
|
|
1287
1314
|
var StylesInheritanceIndicator = () => {
|
|
1288
|
-
const {
|
|
1315
|
+
const { value, path } = useBoundProp();
|
|
1289
1316
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
1290
|
-
const [
|
|
1317
|
+
const [bind] = path;
|
|
1291
1318
|
const inheritanceChain = useStylesInheritanceField(bind);
|
|
1292
1319
|
if (!inheritanceChain.length) {
|
|
1293
1320
|
return null;
|
|
@@ -1344,7 +1371,7 @@ var BackgroundSection = () => {
|
|
|
1344
1371
|
};
|
|
1345
1372
|
|
|
1346
1373
|
// src/components/style-sections/border-section/border-section.tsx
|
|
1347
|
-
import * as
|
|
1374
|
+
import * as React30 from "react";
|
|
1348
1375
|
|
|
1349
1376
|
// src/components/panel-divider.tsx
|
|
1350
1377
|
import * as React20 from "react";
|
|
@@ -1357,18 +1384,27 @@ import { Stack as Stack5 } from "@elementor/ui";
|
|
|
1357
1384
|
var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React21.createElement(Stack5, { gap, sx: { ...sx } }, children);
|
|
1358
1385
|
|
|
1359
1386
|
// src/components/style-sections/border-section/border-field.tsx
|
|
1360
|
-
import * as
|
|
1387
|
+
import * as React28 from "react";
|
|
1361
1388
|
import { __ as __9 } from "@wordpress/i18n";
|
|
1362
1389
|
|
|
1363
1390
|
// src/components/add-or-remove-content.tsx
|
|
1364
|
-
import * as
|
|
1365
|
-
import { ControlLabel as ControlLabel2 } from "@elementor/editor-controls";
|
|
1391
|
+
import * as React23 from "react";
|
|
1366
1392
|
import { MinusIcon, PlusIcon } from "@elementor/icons";
|
|
1367
|
-
import { Collapse as Collapse2, IconButton as IconButton2, Stack as
|
|
1393
|
+
import { Collapse as Collapse2, IconButton as IconButton2, Stack as Stack7 } from "@elementor/ui";
|
|
1394
|
+
|
|
1395
|
+
// src/components/control-label.tsx
|
|
1396
|
+
import * as React22 from "react";
|
|
1397
|
+
import { ControlAdornments, ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
1398
|
+
import { Stack as Stack6 } from "@elementor/ui";
|
|
1399
|
+
var ControlLabel = ({ children }) => {
|
|
1400
|
+
return /* @__PURE__ */ React22.createElement(Stack6, { direction: "row", alignItems: "center", justifyItems: "start", gap: 1 }, /* @__PURE__ */ React22.createElement(ControlFormLabel2, null, children), /* @__PURE__ */ React22.createElement(ControlAdornments, null));
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
// src/components/add-or-remove-content.tsx
|
|
1368
1404
|
var SIZE2 = "tiny";
|
|
1369
1405
|
var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
|
|
1370
|
-
return /* @__PURE__ */
|
|
1371
|
-
|
|
1406
|
+
return /* @__PURE__ */ React23.createElement(SectionContent, null, /* @__PURE__ */ React23.createElement(
|
|
1407
|
+
Stack7,
|
|
1372
1408
|
{
|
|
1373
1409
|
direction: "row",
|
|
1374
1410
|
sx: {
|
|
@@ -1376,23 +1412,23 @@ var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
|
|
|
1376
1412
|
alignItems: "center"
|
|
1377
1413
|
}
|
|
1378
1414
|
},
|
|
1379
|
-
/* @__PURE__ */
|
|
1380
|
-
isAdded ? /* @__PURE__ */
|
|
1381
|
-
), /* @__PURE__ */
|
|
1415
|
+
/* @__PURE__ */ React23.createElement(ControlLabel, null, label),
|
|
1416
|
+
isAdded ? /* @__PURE__ */ React23.createElement(IconButton2, { size: SIZE2, onClick: onRemove, "aria-label": "Remove" }, /* @__PURE__ */ React23.createElement(MinusIcon, { fontSize: SIZE2 })) : /* @__PURE__ */ React23.createElement(IconButton2, { size: SIZE2, onClick: onAdd, "aria-label": "Add" }, /* @__PURE__ */ React23.createElement(PlusIcon, { fontSize: SIZE2 }))
|
|
1417
|
+
), /* @__PURE__ */ React23.createElement(Collapse2, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React23.createElement(SectionContent, null, children)));
|
|
1382
1418
|
};
|
|
1383
1419
|
|
|
1384
1420
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
1385
|
-
import * as
|
|
1386
|
-
import { ColorControl
|
|
1421
|
+
import * as React24 from "react";
|
|
1422
|
+
import { ColorControl } from "@elementor/editor-controls";
|
|
1387
1423
|
import { Grid } from "@elementor/ui";
|
|
1388
1424
|
import { __ as __6 } from "@wordpress/i18n";
|
|
1389
1425
|
var BorderColorField = () => {
|
|
1390
|
-
return /* @__PURE__ */
|
|
1426
|
+
return /* @__PURE__ */ React24.createElement(StylesField, { bind: "border-color" }, /* @__PURE__ */ React24.createElement(Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React24.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React24.createElement(ControlLabel, null, __6("Border color", "elementor"))), /* @__PURE__ */ React24.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React24.createElement(ColorControl, null))));
|
|
1391
1427
|
};
|
|
1392
1428
|
|
|
1393
1429
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
1394
|
-
import * as
|
|
1395
|
-
import {
|
|
1430
|
+
import * as React25 from "react";
|
|
1431
|
+
import { SelectControl as SelectControl2 } from "@elementor/editor-controls";
|
|
1396
1432
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
1397
1433
|
import { __ as __7 } from "@wordpress/i18n";
|
|
1398
1434
|
var borderStyles = [
|
|
@@ -1407,11 +1443,11 @@ var borderStyles = [
|
|
|
1407
1443
|
{ value: "outset", label: __7("Outset", "elementor") }
|
|
1408
1444
|
];
|
|
1409
1445
|
var BorderStyleField = () => {
|
|
1410
|
-
return /* @__PURE__ */
|
|
1446
|
+
return /* @__PURE__ */ React25.createElement(StylesField, { bind: "border-style" }, /* @__PURE__ */ React25.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React25.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React25.createElement(ControlLabel, null, __7("Border type", "elementor"))), /* @__PURE__ */ React25.createElement(Grid2, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React25.createElement(SelectControl2, { options: borderStyles }))));
|
|
1411
1447
|
};
|
|
1412
1448
|
|
|
1413
1449
|
// src/components/style-sections/border-section/border-width-field.tsx
|
|
1414
|
-
import * as
|
|
1450
|
+
import * as React27 from "react";
|
|
1415
1451
|
import { EqualUnequalSizesControl } from "@elementor/editor-controls";
|
|
1416
1452
|
import { borderWidthPropTypeUtil } from "@elementor/editor-props";
|
|
1417
1453
|
import { SideAllIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
@@ -1427,7 +1463,7 @@ function useDirection() {
|
|
|
1427
1463
|
}
|
|
1428
1464
|
|
|
1429
1465
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
1430
|
-
import * as
|
|
1466
|
+
import * as React26 from "react";
|
|
1431
1467
|
import { useRef } from "react";
|
|
1432
1468
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
1433
1469
|
var CLOCKWISE_ANGLES = {
|
|
@@ -1451,7 +1487,7 @@ var RotatedIcon = ({
|
|
|
1451
1487
|
}) => {
|
|
1452
1488
|
const rotate = useRef(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
|
|
1453
1489
|
rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
|
|
1454
|
-
return /* @__PURE__ */
|
|
1490
|
+
return /* @__PURE__ */ React26.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
|
|
1455
1491
|
};
|
|
1456
1492
|
var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
|
|
1457
1493
|
const [direction] = useStylesField("flex-direction");
|
|
@@ -1475,33 +1511,33 @@ var InlineEndIcon = withDirection(SideLeftIcon);
|
|
|
1475
1511
|
var getEdges = (isSiteRtl) => [
|
|
1476
1512
|
{
|
|
1477
1513
|
label: __8("Top", "elementor"),
|
|
1478
|
-
icon: /* @__PURE__ */
|
|
1514
|
+
icon: /* @__PURE__ */ React27.createElement(SideTopIcon, { fontSize: "tiny" }),
|
|
1479
1515
|
bind: "block-start"
|
|
1480
1516
|
},
|
|
1481
1517
|
{
|
|
1482
1518
|
label: isSiteRtl ? __8("Left", "elementor") : __8("Right", "elementor"),
|
|
1483
|
-
icon: /* @__PURE__ */
|
|
1519
|
+
icon: /* @__PURE__ */ React27.createElement(RotatedIcon, { icon: InlineStartIcon, size: "tiny" }),
|
|
1484
1520
|
bind: "inline-end"
|
|
1485
1521
|
},
|
|
1486
1522
|
{
|
|
1487
1523
|
label: __8("Bottom", "elementor"),
|
|
1488
|
-
icon: /* @__PURE__ */
|
|
1524
|
+
icon: /* @__PURE__ */ React27.createElement(SideBottomIcon, { fontSize: "tiny" }),
|
|
1489
1525
|
bind: "block-end"
|
|
1490
1526
|
},
|
|
1491
1527
|
{
|
|
1492
1528
|
label: isSiteRtl ? __8("Right", "elementor") : __8("Left", "elementor"),
|
|
1493
|
-
icon: /* @__PURE__ */
|
|
1529
|
+
icon: /* @__PURE__ */ React27.createElement(RotatedIcon, { icon: InlineEndIcon, size: "tiny" }),
|
|
1494
1530
|
bind: "inline-start"
|
|
1495
1531
|
}
|
|
1496
1532
|
];
|
|
1497
1533
|
var BorderWidthField = () => {
|
|
1498
1534
|
const { isSiteRtl } = useDirection();
|
|
1499
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ React27.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React27.createElement(
|
|
1500
1536
|
EqualUnequalSizesControl,
|
|
1501
1537
|
{
|
|
1502
1538
|
items: getEdges(isSiteRtl),
|
|
1503
1539
|
label: __8("Border width", "elementor"),
|
|
1504
|
-
icon: /* @__PURE__ */
|
|
1540
|
+
icon: /* @__PURE__ */ React27.createElement(SideAllIcon, { fontSize: "tiny" }),
|
|
1505
1541
|
tooltipLabel: __8("Adjust borders", "elementor"),
|
|
1506
1542
|
multiSizePropTypeUtil: borderWidthPropTypeUtil
|
|
1507
1543
|
}
|
|
@@ -1527,7 +1563,7 @@ var BorderField = () => {
|
|
|
1527
1563
|
});
|
|
1528
1564
|
};
|
|
1529
1565
|
const hasBorder = Object.values(border ?? {}).some(Boolean);
|
|
1530
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ React28.createElement(
|
|
1531
1567
|
AddOrRemoveContent,
|
|
1532
1568
|
{
|
|
1533
1569
|
label: __9("Border", "elementor"),
|
|
@@ -1535,14 +1571,14 @@ var BorderField = () => {
|
|
|
1535
1571
|
onAdd: addBorder,
|
|
1536
1572
|
onRemove: removeBorder
|
|
1537
1573
|
},
|
|
1538
|
-
/* @__PURE__ */
|
|
1539
|
-
/* @__PURE__ */
|
|
1540
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ React28.createElement(BorderWidthField, null),
|
|
1575
|
+
/* @__PURE__ */ React28.createElement(BorderColorField, null),
|
|
1576
|
+
/* @__PURE__ */ React28.createElement(BorderStyleField, null)
|
|
1541
1577
|
);
|
|
1542
1578
|
};
|
|
1543
1579
|
|
|
1544
1580
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
1545
|
-
import * as
|
|
1581
|
+
import * as React29 from "react";
|
|
1546
1582
|
import { EqualUnequalSizesControl as EqualUnequalSizesControl2 } from "@elementor/editor-controls";
|
|
1547
1583
|
import { borderRadiusPropTypeUtil } from "@elementor/editor-props";
|
|
1548
1584
|
import {
|
|
@@ -1565,33 +1601,33 @@ var getEndEndLabel = (isSiteRtl) => isSiteRtl ? __10("Bottom left", "elementor")
|
|
|
1565
1601
|
var getCorners = (isSiteRtl) => [
|
|
1566
1602
|
{
|
|
1567
1603
|
label: getStartStartLabel(isSiteRtl),
|
|
1568
|
-
icon: /* @__PURE__ */
|
|
1604
|
+
icon: /* @__PURE__ */ React29.createElement(RotatedIcon, { icon: StartStartIcon, size: "tiny" }),
|
|
1569
1605
|
bind: "start-start"
|
|
1570
1606
|
},
|
|
1571
1607
|
{
|
|
1572
1608
|
label: getStartEndLabel(isSiteRtl),
|
|
1573
|
-
icon: /* @__PURE__ */
|
|
1609
|
+
icon: /* @__PURE__ */ React29.createElement(RotatedIcon, { icon: StartEndIcon, size: "tiny" }),
|
|
1574
1610
|
bind: "start-end"
|
|
1575
1611
|
},
|
|
1576
1612
|
{
|
|
1577
1613
|
label: getEndStartLabel(isSiteRtl),
|
|
1578
|
-
icon: /* @__PURE__ */
|
|
1614
|
+
icon: /* @__PURE__ */ React29.createElement(RotatedIcon, { icon: EndStartIcon, size: "tiny" }),
|
|
1579
1615
|
bind: "end-start"
|
|
1580
1616
|
},
|
|
1581
1617
|
{
|
|
1582
1618
|
label: getEndEndLabel(isSiteRtl),
|
|
1583
|
-
icon: /* @__PURE__ */
|
|
1619
|
+
icon: /* @__PURE__ */ React29.createElement(RotatedIcon, { icon: EndEndIcon, size: "tiny" }),
|
|
1584
1620
|
bind: "end-end"
|
|
1585
1621
|
}
|
|
1586
1622
|
];
|
|
1587
1623
|
var BorderRadiusField = () => {
|
|
1588
1624
|
const { isSiteRtl } = useDirection();
|
|
1589
|
-
return /* @__PURE__ */
|
|
1625
|
+
return /* @__PURE__ */ React29.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React29.createElement(
|
|
1590
1626
|
EqualUnequalSizesControl2,
|
|
1591
1627
|
{
|
|
1592
1628
|
items: getCorners(isSiteRtl),
|
|
1593
1629
|
label: __10("Border radius", "elementor"),
|
|
1594
|
-
icon: /* @__PURE__ */
|
|
1630
|
+
icon: /* @__PURE__ */ React29.createElement(BorderCornersIcon, { fontSize: "tiny" }),
|
|
1595
1631
|
tooltipLabel: __10("Adjust corners", "elementor"),
|
|
1596
1632
|
multiSizePropTypeUtil: borderRadiusPropTypeUtil
|
|
1597
1633
|
}
|
|
@@ -1599,18 +1635,18 @@ var BorderRadiusField = () => {
|
|
|
1599
1635
|
};
|
|
1600
1636
|
|
|
1601
1637
|
// src/components/style-sections/border-section/border-section.tsx
|
|
1602
|
-
var BorderSection = () => /* @__PURE__ */
|
|
1638
|
+
var BorderSection = () => /* @__PURE__ */ React30.createElement(SectionContent, null, /* @__PURE__ */ React30.createElement(BorderRadiusField, null), /* @__PURE__ */ React30.createElement(PanelDivider, null), /* @__PURE__ */ React30.createElement(BorderField, null));
|
|
1603
1639
|
|
|
1604
1640
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
1605
|
-
import * as
|
|
1641
|
+
import * as React31 from "react";
|
|
1606
1642
|
import { BoxShadowRepeaterControl } from "@elementor/editor-controls";
|
|
1607
1643
|
var EffectsSection = () => {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1644
|
+
return /* @__PURE__ */ React31.createElement(SectionContent, null, /* @__PURE__ */ React31.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React31.createElement(BoxShadowRepeaterControl, null)));
|
|
1609
1645
|
};
|
|
1610
1646
|
|
|
1611
1647
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
1612
|
-
import * as
|
|
1613
|
-
import {
|
|
1648
|
+
import * as React42 from "react";
|
|
1649
|
+
import { ControlFormLabel as ControlFormLabel3 } from "@elementor/editor-controls";
|
|
1614
1650
|
import { useParentElement } from "@elementor/editor-elements";
|
|
1615
1651
|
import { __ as __21 } from "@wordpress/i18n";
|
|
1616
1652
|
|
|
@@ -1640,8 +1676,8 @@ function useComputedStyle(elementId) {
|
|
|
1640
1676
|
}
|
|
1641
1677
|
|
|
1642
1678
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
1643
|
-
import * as
|
|
1644
|
-
import {
|
|
1679
|
+
import * as React32 from "react";
|
|
1680
|
+
import { ToggleControl } from "@elementor/editor-controls";
|
|
1645
1681
|
import {
|
|
1646
1682
|
JustifyBottomIcon,
|
|
1647
1683
|
JustifyCenterIcon as CenterIcon,
|
|
@@ -1650,7 +1686,7 @@ import {
|
|
|
1650
1686
|
JustifySpaceBetweenVerticalIcon as BetweenIcon,
|
|
1651
1687
|
JustifyTopIcon
|
|
1652
1688
|
} from "@elementor/icons";
|
|
1653
|
-
import { DirectionProvider, Stack as
|
|
1689
|
+
import { DirectionProvider, Stack as Stack8, ThemeProvider, withDirection as withDirection3 } from "@elementor/ui";
|
|
1654
1690
|
import { __ as __11 } from "@wordpress/i18n";
|
|
1655
1691
|
var StartIcon = withDirection3(JustifyTopIcon);
|
|
1656
1692
|
var EndIcon = withDirection3(JustifyBottomIcon);
|
|
@@ -1663,48 +1699,48 @@ var options = [
|
|
|
1663
1699
|
{
|
|
1664
1700
|
value: "start",
|
|
1665
1701
|
label: __11("Start", "elementor"),
|
|
1666
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1702
|
+
renderContent: ({ size }) => /* @__PURE__ */ React32.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
1667
1703
|
showTooltip: true
|
|
1668
1704
|
},
|
|
1669
1705
|
{
|
|
1670
1706
|
value: "center",
|
|
1671
1707
|
label: __11("Center", "elementor"),
|
|
1672
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1708
|
+
renderContent: ({ size }) => /* @__PURE__ */ React32.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
1673
1709
|
showTooltip: true
|
|
1674
1710
|
},
|
|
1675
1711
|
{
|
|
1676
1712
|
value: "end",
|
|
1677
1713
|
label: __11("End", "elementor"),
|
|
1678
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1714
|
+
renderContent: ({ size }) => /* @__PURE__ */ React32.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
1679
1715
|
showTooltip: true
|
|
1680
1716
|
},
|
|
1681
1717
|
{
|
|
1682
1718
|
value: "space-between",
|
|
1683
1719
|
label: __11("Space between", "elementor"),
|
|
1684
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1720
|
+
renderContent: ({ size }) => /* @__PURE__ */ React32.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
1685
1721
|
showTooltip: true
|
|
1686
1722
|
},
|
|
1687
1723
|
{
|
|
1688
1724
|
value: "space-around",
|
|
1689
1725
|
label: __11("Space around", "elementor"),
|
|
1690
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1726
|
+
renderContent: ({ size }) => /* @__PURE__ */ React32.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
1691
1727
|
showTooltip: true
|
|
1692
1728
|
},
|
|
1693
1729
|
{
|
|
1694
1730
|
value: "space-evenly",
|
|
1695
1731
|
label: __11("Space evenly", "elementor"),
|
|
1696
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1732
|
+
renderContent: ({ size }) => /* @__PURE__ */ React32.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
1697
1733
|
showTooltip: true
|
|
1698
1734
|
}
|
|
1699
1735
|
];
|
|
1700
1736
|
var AlignContentField = () => {
|
|
1701
1737
|
const { isSiteRtl } = useDirection();
|
|
1702
|
-
return /* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ React32.createElement(DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React32.createElement(ThemeProvider, null, /* @__PURE__ */ React32.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React32.createElement(Stack8, { gap: 1 }, /* @__PURE__ */ React32.createElement(ControlLabel, null, __11("Align content", "elementor")), /* @__PURE__ */ React32.createElement(ToggleControl, { options, fullWidth: true })))));
|
|
1703
1739
|
};
|
|
1704
1740
|
|
|
1705
1741
|
// src/components/style-sections/layout-section/align-items-field.tsx
|
|
1706
|
-
import * as
|
|
1707
|
-
import {
|
|
1742
|
+
import * as React33 from "react";
|
|
1743
|
+
import { ToggleControl as ToggleControl2 } from "@elementor/editor-controls";
|
|
1708
1744
|
import {
|
|
1709
1745
|
LayoutAlignCenterIcon as CenterIcon2,
|
|
1710
1746
|
LayoutAlignLeftIcon,
|
|
@@ -1723,36 +1759,36 @@ var options2 = [
|
|
|
1723
1759
|
{
|
|
1724
1760
|
value: "start",
|
|
1725
1761
|
label: __12("Start", "elementor"),
|
|
1726
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1762
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
1727
1763
|
showTooltip: true
|
|
1728
1764
|
},
|
|
1729
1765
|
{
|
|
1730
1766
|
value: "center",
|
|
1731
1767
|
label: __12("Center", "elementor"),
|
|
1732
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1768
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
1733
1769
|
showTooltip: true
|
|
1734
1770
|
},
|
|
1735
1771
|
{
|
|
1736
1772
|
value: "end",
|
|
1737
1773
|
label: __12("End", "elementor"),
|
|
1738
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1774
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
1739
1775
|
showTooltip: true
|
|
1740
1776
|
},
|
|
1741
1777
|
{
|
|
1742
1778
|
value: "stretch",
|
|
1743
1779
|
label: __12("Stretch", "elementor"),
|
|
1744
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1780
|
+
renderContent: ({ size }) => /* @__PURE__ */ React33.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
1745
1781
|
showTooltip: true
|
|
1746
1782
|
}
|
|
1747
1783
|
];
|
|
1748
1784
|
var AlignItemsField = () => {
|
|
1749
1785
|
const { isSiteRtl } = useDirection();
|
|
1750
|
-
return /* @__PURE__ */
|
|
1786
|
+
return /* @__PURE__ */ React33.createElement(DirectionProvider2, { rtl: isSiteRtl }, /* @__PURE__ */ React33.createElement(ThemeProvider2, null, /* @__PURE__ */ React33.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React33.createElement(Grid3, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React33.createElement(Grid3, { item: true, xs: 6 }, /* @__PURE__ */ React33.createElement(ControlLabel, null, __12("Align items", "elementor"))), /* @__PURE__ */ React33.createElement(Grid3, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React33.createElement(ToggleControl2, { options: options2 }))))));
|
|
1751
1787
|
};
|
|
1752
1788
|
|
|
1753
1789
|
// src/components/style-sections/layout-section/align-self-child-field.tsx
|
|
1754
|
-
import * as
|
|
1755
|
-
import {
|
|
1790
|
+
import * as React34 from "react";
|
|
1791
|
+
import { ToggleControl as ToggleControl3 } from "@elementor/editor-controls";
|
|
1756
1792
|
import {
|
|
1757
1793
|
LayoutAlignCenterIcon as CenterIcon3,
|
|
1758
1794
|
LayoutAlignLeftIcon as LayoutAlignLeftIcon2,
|
|
@@ -1771,37 +1807,37 @@ var options3 = [
|
|
|
1771
1807
|
{
|
|
1772
1808
|
value: "start",
|
|
1773
1809
|
label: __13("Start", "elementor"),
|
|
1774
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1810
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: StartIcon3, size, ...iconProps3 }),
|
|
1775
1811
|
showTooltip: true
|
|
1776
1812
|
},
|
|
1777
1813
|
{
|
|
1778
1814
|
value: "center",
|
|
1779
1815
|
label: __13("Center", "elementor"),
|
|
1780
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1816
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: CenterIcon3, size, ...iconProps3 }),
|
|
1781
1817
|
showTooltip: true
|
|
1782
1818
|
},
|
|
1783
1819
|
{
|
|
1784
1820
|
value: "end",
|
|
1785
1821
|
label: __13("End", "elementor"),
|
|
1786
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1822
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: EndIcon3, size, ...iconProps3 }),
|
|
1787
1823
|
showTooltip: true
|
|
1788
1824
|
},
|
|
1789
1825
|
{
|
|
1790
1826
|
value: "stretch",
|
|
1791
1827
|
label: __13("Stretch", "elementor"),
|
|
1792
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1828
|
+
renderContent: ({ size }) => /* @__PURE__ */ React34.createElement(RotatedIcon, { icon: JustifyIcon2, size, ...iconProps3 }),
|
|
1793
1829
|
showTooltip: true
|
|
1794
1830
|
}
|
|
1795
1831
|
];
|
|
1796
1832
|
var AlignSelfChild = () => {
|
|
1797
1833
|
const { isSiteRtl } = useDirection();
|
|
1798
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ React34.createElement(DirectionProvider3, { rtl: isSiteRtl }, /* @__PURE__ */ React34.createElement(ThemeProvider3, null, /* @__PURE__ */ React34.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React34.createElement(Grid4, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React34.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React34.createElement(ControlLabel, null, __13("Align self", "elementor"))), /* @__PURE__ */ React34.createElement(Grid4, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React34.createElement(ToggleControl3, { options: options3 }))))));
|
|
1799
1835
|
};
|
|
1800
1836
|
|
|
1801
1837
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
1802
|
-
import * as
|
|
1803
|
-
import {
|
|
1804
|
-
import { Stack as
|
|
1838
|
+
import * as React35 from "react";
|
|
1839
|
+
import { ToggleControl as ToggleControl4 } from "@elementor/editor-controls";
|
|
1840
|
+
import { Stack as Stack9 } from "@elementor/ui";
|
|
1805
1841
|
import { __ as __14 } from "@wordpress/i18n";
|
|
1806
1842
|
var DisplayField = () => {
|
|
1807
1843
|
const options13 = [
|
|
@@ -1830,12 +1866,12 @@ var DisplayField = () => {
|
|
|
1830
1866
|
showTooltip: true
|
|
1831
1867
|
}
|
|
1832
1868
|
];
|
|
1833
|
-
return /* @__PURE__ */
|
|
1869
|
+
return /* @__PURE__ */ React35.createElement(StylesField, { bind: "display" }, /* @__PURE__ */ React35.createElement(Stack9, { gap: 0.75 }, /* @__PURE__ */ React35.createElement(ControlLabel, null, __14("Display", "elementor")), /* @__PURE__ */ React35.createElement(ToggleControl4, { options: options13, fullWidth: true })));
|
|
1834
1870
|
};
|
|
1835
1871
|
|
|
1836
1872
|
// src/components/style-sections/layout-section/flex-direction-field.tsx
|
|
1837
|
-
import * as
|
|
1838
|
-
import {
|
|
1873
|
+
import * as React36 from "react";
|
|
1874
|
+
import { ToggleControl as ToggleControl5 } from "@elementor/editor-controls";
|
|
1839
1875
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
1840
1876
|
import { DirectionProvider as DirectionProvider4, Grid as Grid5, ThemeProvider as ThemeProvider4, withDirection as withDirection6 } from "@elementor/ui";
|
|
1841
1877
|
import { __ as __15 } from "@wordpress/i18n";
|
|
@@ -1845,14 +1881,14 @@ var options4 = [
|
|
|
1845
1881
|
label: __15("Row", "elementor"),
|
|
1846
1882
|
renderContent: ({ size }) => {
|
|
1847
1883
|
const StartIcon6 = withDirection6(ArrowRightIcon);
|
|
1848
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ React36.createElement(StartIcon6, { fontSize: size });
|
|
1849
1885
|
},
|
|
1850
1886
|
showTooltip: true
|
|
1851
1887
|
},
|
|
1852
1888
|
{
|
|
1853
1889
|
value: "column",
|
|
1854
1890
|
label: __15("Column", "elementor"),
|
|
1855
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1891
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
1856
1892
|
showTooltip: true
|
|
1857
1893
|
},
|
|
1858
1894
|
{
|
|
@@ -1860,30 +1896,26 @@ var options4 = [
|
|
|
1860
1896
|
label: __15("Reversed row", "elementor"),
|
|
1861
1897
|
renderContent: ({ size }) => {
|
|
1862
1898
|
const EndIcon6 = withDirection6(ArrowLeftIcon);
|
|
1863
|
-
return /* @__PURE__ */
|
|
1899
|
+
return /* @__PURE__ */ React36.createElement(EndIcon6, { fontSize: size });
|
|
1864
1900
|
},
|
|
1865
1901
|
showTooltip: true
|
|
1866
1902
|
},
|
|
1867
1903
|
{
|
|
1868
1904
|
value: "column-reverse",
|
|
1869
1905
|
label: __15("Reversed column", "elementor"),
|
|
1870
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1906
|
+
renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
1871
1907
|
showTooltip: true
|
|
1872
1908
|
}
|
|
1873
1909
|
];
|
|
1874
1910
|
var FlexDirectionField = () => {
|
|
1875
1911
|
const { isSiteRtl } = useDirection();
|
|
1876
|
-
return /* @__PURE__ */
|
|
1912
|
+
return /* @__PURE__ */ React36.createElement(DirectionProvider4, { rtl: isSiteRtl }, /* @__PURE__ */ React36.createElement(ThemeProvider4, null, /* @__PURE__ */ React36.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React36.createElement(Grid5, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React36.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(ControlLabel, null, __15("Direction", "elementor"))), /* @__PURE__ */ React36.createElement(Grid5, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React36.createElement(ToggleControl5, { options: options4 }))))));
|
|
1877
1913
|
};
|
|
1878
1914
|
|
|
1879
1915
|
// src/components/style-sections/layout-section/flex-order-field.tsx
|
|
1880
|
-
import * as
|
|
1916
|
+
import * as React37 from "react";
|
|
1881
1917
|
import { useState as useState4 } from "react";
|
|
1882
|
-
import {
|
|
1883
|
-
ControlLabel as ControlLabel10,
|
|
1884
|
-
ControlToggleButtonGroup,
|
|
1885
|
-
NumberControl
|
|
1886
|
-
} from "@elementor/editor-controls";
|
|
1918
|
+
import { ControlToggleButtonGroup, NumberControl } from "@elementor/editor-controls";
|
|
1887
1919
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
1888
1920
|
import { DirectionProvider as DirectionProvider5, Grid as Grid6, ThemeProvider as ThemeProvider5 } from "@elementor/ui";
|
|
1889
1921
|
import { __ as __16 } from "@wordpress/i18n";
|
|
@@ -1900,19 +1932,19 @@ var items = [
|
|
|
1900
1932
|
{
|
|
1901
1933
|
value: FIRST,
|
|
1902
1934
|
label: __16("First", "elementor"),
|
|
1903
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1935
|
+
renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
1904
1936
|
showTooltip: true
|
|
1905
1937
|
},
|
|
1906
1938
|
{
|
|
1907
1939
|
value: LAST,
|
|
1908
1940
|
label: __16("Last", "elementor"),
|
|
1909
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1941
|
+
renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
1910
1942
|
showTooltip: true
|
|
1911
1943
|
},
|
|
1912
1944
|
{
|
|
1913
1945
|
value: CUSTOM,
|
|
1914
1946
|
label: __16("Custom", "elementor"),
|
|
1915
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
1947
|
+
renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(PencilIcon, { fontSize: size }),
|
|
1916
1948
|
showTooltip: true
|
|
1917
1949
|
}
|
|
1918
1950
|
];
|
|
@@ -1927,7 +1959,7 @@ var FlexOrderField = () => {
|
|
|
1927
1959
|
}
|
|
1928
1960
|
setOrder({ $$type: "number", value: orderValueMap[group] });
|
|
1929
1961
|
};
|
|
1930
|
-
return /* @__PURE__ */
|
|
1962
|
+
return /* @__PURE__ */ React37.createElement(DirectionProvider5, { rtl: isSiteRtl }, /* @__PURE__ */ React37.createElement(ThemeProvider5, null, /* @__PURE__ */ React37.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React37.createElement(SectionContent, null, /* @__PURE__ */ React37.createElement(Grid6, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(Grid6, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(ControlLabel, null, __16("Order", "elementor"))), /* @__PURE__ */ React37.createElement(Grid6, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React37.createElement(
|
|
1931
1963
|
ControlToggleButtonGroup,
|
|
1932
1964
|
{
|
|
1933
1965
|
items,
|
|
@@ -1935,7 +1967,7 @@ var FlexOrderField = () => {
|
|
|
1935
1967
|
onChange: handleToggleButtonChange,
|
|
1936
1968
|
exclusive: true
|
|
1937
1969
|
}
|
|
1938
|
-
))), CUSTOM === groupControlValue && /* @__PURE__ */
|
|
1970
|
+
))), CUSTOM === groupControlValue && /* @__PURE__ */ React37.createElement(Grid6, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(Grid6, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(ControlLabel, null, __16("Custom order", "elementor"))), /* @__PURE__ */ React37.createElement(Grid6, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React37.createElement(
|
|
1939
1971
|
NumberControl,
|
|
1940
1972
|
{
|
|
1941
1973
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -1955,35 +1987,34 @@ var getGroupControlValue = (order) => {
|
|
|
1955
1987
|
};
|
|
1956
1988
|
|
|
1957
1989
|
// src/components/style-sections/layout-section/flex-size-field.tsx
|
|
1958
|
-
import * as
|
|
1990
|
+
import * as React38 from "react";
|
|
1959
1991
|
import { useMemo as useMemo2, useState as useState5 } from "react";
|
|
1960
1992
|
import {
|
|
1961
|
-
ControlLabel as ControlLabel11,
|
|
1962
1993
|
ControlToggleButtonGroup as ControlToggleButtonGroup2,
|
|
1963
1994
|
NumberControl as NumberControl2,
|
|
1964
1995
|
SizeControl as SizeControl2
|
|
1965
1996
|
} from "@elementor/editor-controls";
|
|
1966
1997
|
import { ExpandIcon, PencilIcon as PencilIcon2, ShrinkIcon } from "@elementor/icons";
|
|
1967
|
-
import { DirectionProvider as DirectionProvider6, Grid as Grid7, ThemeProvider as ThemeProvider6 } from "@elementor/ui";
|
|
1998
|
+
import { DirectionProvider as DirectionProvider6, Grid as Grid7, ThemeProvider as ThemeProvider6, Typography as Typography4 } from "@elementor/ui";
|
|
1968
1999
|
import { __ as __17 } from "@wordpress/i18n";
|
|
1969
2000
|
var DEFAULT = 1;
|
|
1970
2001
|
var items2 = [
|
|
1971
2002
|
{
|
|
1972
2003
|
value: "flex-grow",
|
|
1973
2004
|
label: __17("Grow", "elementor"),
|
|
1974
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2005
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(ExpandIcon, { fontSize: size }),
|
|
1975
2006
|
showTooltip: true
|
|
1976
2007
|
},
|
|
1977
2008
|
{
|
|
1978
2009
|
value: "flex-shrink",
|
|
1979
2010
|
label: __17("Shrink", "elementor"),
|
|
1980
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2011
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(ShrinkIcon, { fontSize: size }),
|
|
1981
2012
|
showTooltip: true
|
|
1982
2013
|
},
|
|
1983
2014
|
{
|
|
1984
2015
|
value: "custom",
|
|
1985
2016
|
label: __17("Custom", "elementor"),
|
|
1986
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2017
|
+
renderContent: ({ size }) => /* @__PURE__ */ React38.createElement(PencilIcon2, { fontSize: size }),
|
|
1987
2018
|
showTooltip: true
|
|
1988
2019
|
}
|
|
1989
2020
|
];
|
|
@@ -2007,7 +2038,7 @@ var FlexSizeField = () => {
|
|
|
2007
2038
|
setGrowField(null);
|
|
2008
2039
|
setShrinkField({ $$type: "number", value: DEFAULT });
|
|
2009
2040
|
};
|
|
2010
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ React38.createElement(DirectionProvider6, { rtl: isSiteRtl }, /* @__PURE__ */ React38.createElement(ThemeProvider6, null, /* @__PURE__ */ React38.createElement(SectionContent, null, /* @__PURE__ */ React38.createElement(Typography4, { fontSize: "large" }, activeGroup), /* @__PURE__ */ React38.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React38.createElement(StylesField, { bind: activeGroup ?? "" }, /* @__PURE__ */ React38.createElement(ControlLabel, null, __17("Size", "elementor")))), /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React38.createElement(
|
|
2011
2042
|
ControlToggleButtonGroup2,
|
|
2012
2043
|
{
|
|
2013
2044
|
value: activeGroup,
|
|
@@ -2015,9 +2046,9 @@ var FlexSizeField = () => {
|
|
|
2015
2046
|
items: items2,
|
|
2016
2047
|
exclusive: true
|
|
2017
2048
|
}
|
|
2018
|
-
))), "custom" === activeGroup && /* @__PURE__ */
|
|
2049
|
+
))), "custom" === activeGroup && /* @__PURE__ */ React38.createElement(FlexCustomField, null))));
|
|
2019
2050
|
};
|
|
2020
|
-
var FlexCustomField = () => /* @__PURE__ */
|
|
2051
|
+
var FlexCustomField = () => /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React38.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React38.createElement(ControlLabel, null, __17("Grow", "elementor"))), /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React38.createElement(NumberControl2, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React38.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React38.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React38.createElement(ControlLabel, null, __17("Shrink", "elementor"))), /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React38.createElement(NumberControl2, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React38.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React38.createElement(Grid7, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React38.createElement(ControlLabel, null, __17("Basis", "elementor"))), /* @__PURE__ */ React38.createElement(Grid7, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React38.createElement(SizeControl2, { extendedValues: ["auto"] })))));
|
|
2021
2052
|
var getActiveGroup = ({
|
|
2022
2053
|
grow,
|
|
2023
2054
|
shrink,
|
|
@@ -2039,17 +2070,17 @@ var getActiveGroup = ({
|
|
|
2039
2070
|
};
|
|
2040
2071
|
|
|
2041
2072
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
2042
|
-
import * as
|
|
2073
|
+
import * as React39 from "react";
|
|
2043
2074
|
import { GapControl } from "@elementor/editor-controls";
|
|
2044
|
-
import { Stack as
|
|
2075
|
+
import { Stack as Stack10 } from "@elementor/ui";
|
|
2045
2076
|
import { __ as __18 } from "@wordpress/i18n";
|
|
2046
2077
|
var GapControlField = () => {
|
|
2047
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ React39.createElement(Stack10, { gap: 1 }, /* @__PURE__ */ React39.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React39.createElement(GapControl, { label: __18("Gaps", "elementor") })));
|
|
2048
2079
|
};
|
|
2049
2080
|
|
|
2050
2081
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
2051
|
-
import * as
|
|
2052
|
-
import {
|
|
2082
|
+
import * as React40 from "react";
|
|
2083
|
+
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
2053
2084
|
import {
|
|
2054
2085
|
JustifyBottomIcon as JustifyBottomIcon2,
|
|
2055
2086
|
JustifyCenterIcon as CenterIcon4,
|
|
@@ -2058,7 +2089,7 @@ import {
|
|
|
2058
2089
|
JustifySpaceBetweenVerticalIcon as BetweenIcon2,
|
|
2059
2090
|
JustifyTopIcon as JustifyTopIcon2
|
|
2060
2091
|
} from "@elementor/icons";
|
|
2061
|
-
import { DirectionProvider as DirectionProvider7, Stack as
|
|
2092
|
+
import { DirectionProvider as DirectionProvider7, Stack as Stack11, ThemeProvider as ThemeProvider7, withDirection as withDirection7 } from "@elementor/ui";
|
|
2062
2093
|
import { __ as __19 } from "@wordpress/i18n";
|
|
2063
2094
|
var StartIcon4 = withDirection7(JustifyTopIcon2);
|
|
2064
2095
|
var EndIcon4 = withDirection7(JustifyBottomIcon2);
|
|
@@ -2068,50 +2099,50 @@ var iconProps4 = {
|
|
|
2068
2099
|
};
|
|
2069
2100
|
var options5 = [
|
|
2070
2101
|
{
|
|
2071
|
-
value: "start",
|
|
2102
|
+
value: "flex-start",
|
|
2072
2103
|
label: __19("Start", "elementor"),
|
|
2073
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2104
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
|
|
2074
2105
|
showTooltip: true
|
|
2075
2106
|
},
|
|
2076
2107
|
{
|
|
2077
2108
|
value: "center",
|
|
2078
2109
|
label: __19("Center", "elementor"),
|
|
2079
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2110
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: CenterIcon4, size, ...iconProps4 }),
|
|
2080
2111
|
showTooltip: true
|
|
2081
2112
|
},
|
|
2082
2113
|
{
|
|
2083
|
-
value: "end",
|
|
2114
|
+
value: "flex-end",
|
|
2084
2115
|
label: __19("End", "elementor"),
|
|
2085
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2116
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
|
|
2086
2117
|
showTooltip: true
|
|
2087
2118
|
},
|
|
2088
2119
|
{
|
|
2089
2120
|
value: "space-between",
|
|
2090
2121
|
label: __19("Space between", "elementor"),
|
|
2091
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2122
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
2092
2123
|
showTooltip: true
|
|
2093
2124
|
},
|
|
2094
2125
|
{
|
|
2095
2126
|
value: "space-around",
|
|
2096
2127
|
label: __19("Space around", "elementor"),
|
|
2097
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2128
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
2098
2129
|
showTooltip: true
|
|
2099
2130
|
},
|
|
2100
2131
|
{
|
|
2101
2132
|
value: "space-evenly",
|
|
2102
2133
|
label: __19("Space evenly", "elementor"),
|
|
2103
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2134
|
+
renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
2104
2135
|
showTooltip: true
|
|
2105
2136
|
}
|
|
2106
2137
|
];
|
|
2107
2138
|
var JustifyContentField = () => {
|
|
2108
2139
|
const { isSiteRtl } = useDirection();
|
|
2109
|
-
return /* @__PURE__ */
|
|
2140
|
+
return /* @__PURE__ */ React40.createElement(DirectionProvider7, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(ThemeProvider7, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React40.createElement(Stack11, { gap: 0.75 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, __19("Justify content", "elementor")), /* @__PURE__ */ React40.createElement(ToggleControl6, { options: options5, fullWidth: true })))));
|
|
2110
2141
|
};
|
|
2111
2142
|
|
|
2112
2143
|
// src/components/style-sections/layout-section/wrap-field.tsx
|
|
2113
|
-
import * as
|
|
2114
|
-
import {
|
|
2144
|
+
import * as React41 from "react";
|
|
2145
|
+
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
2115
2146
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
2116
2147
|
import { DirectionProvider as DirectionProvider8, Grid as Grid8, ThemeProvider as ThemeProvider8 } from "@elementor/ui";
|
|
2117
2148
|
import { __ as __20 } from "@wordpress/i18n";
|
|
@@ -2119,25 +2150,25 @@ var options6 = [
|
|
|
2119
2150
|
{
|
|
2120
2151
|
value: "nowrap",
|
|
2121
2152
|
label: __20("No wrap", "elementor"),
|
|
2122
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2153
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(ArrowRightIcon2, { fontSize: size }),
|
|
2123
2154
|
showTooltip: true
|
|
2124
2155
|
},
|
|
2125
2156
|
{
|
|
2126
2157
|
value: "wrap",
|
|
2127
2158
|
label: __20("Wrap", "elementor"),
|
|
2128
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2159
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(ArrowBackIcon, { fontSize: size }),
|
|
2129
2160
|
showTooltip: true
|
|
2130
2161
|
},
|
|
2131
2162
|
{
|
|
2132
2163
|
value: "wrap-reverse",
|
|
2133
2164
|
label: __20("Reversed wrap", "elementor"),
|
|
2134
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2165
|
+
renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
2135
2166
|
showTooltip: true
|
|
2136
2167
|
}
|
|
2137
2168
|
];
|
|
2138
2169
|
var WrapField = () => {
|
|
2139
2170
|
const { isSiteRtl } = useDirection();
|
|
2140
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ React41.createElement(DirectionProvider8, { rtl: isSiteRtl }, /* @__PURE__ */ React41.createElement(ThemeProvider8, null, /* @__PURE__ */ React41.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React41.createElement(Grid8, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(Grid8, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlLabel, null, __20("Wrap", "elementor"))), /* @__PURE__ */ React41.createElement(Grid8, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React41.createElement(ToggleControl7, { options: options6 }))))));
|
|
2141
2172
|
};
|
|
2142
2173
|
|
|
2143
2174
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
@@ -2146,45 +2177,45 @@ var LayoutSection = () => {
|
|
|
2146
2177
|
const { element } = useElement();
|
|
2147
2178
|
const parent = useParentElement(element.id);
|
|
2148
2179
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
2149
|
-
return /* @__PURE__ */
|
|
2180
|
+
return /* @__PURE__ */ React42.createElement(SectionContent, null, /* @__PURE__ */ React42.createElement(DisplayField, null), ("flex" === display?.value || "inline-flex" === display?.value) && /* @__PURE__ */ React42.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React42.createElement(FlexChildFields, null));
|
|
2150
2181
|
};
|
|
2151
2182
|
var FlexFields = () => {
|
|
2152
2183
|
const [flexWrap] = useStylesField("flex-wrap");
|
|
2153
|
-
return /* @__PURE__ */
|
|
2184
|
+
return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(FlexDirectionField, null), /* @__PURE__ */ React42.createElement(JustifyContentField, null), /* @__PURE__ */ React42.createElement(AlignItemsField, null), /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(GapControlField, null), /* @__PURE__ */ React42.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React42.createElement(AlignContentField, null));
|
|
2154
2185
|
};
|
|
2155
|
-
var FlexChildFields = () => /* @__PURE__ */
|
|
2186
|
+
var FlexChildFields = () => /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(PanelDivider, null), /* @__PURE__ */ React42.createElement(ControlFormLabel3, null, __21("Flex child", "elementor")), /* @__PURE__ */ React42.createElement(AlignSelfChild, null), /* @__PURE__ */ React42.createElement(FlexOrderField, null), /* @__PURE__ */ React42.createElement(FlexSizeField, null));
|
|
2156
2187
|
|
|
2157
2188
|
// src/components/style-sections/position-section/position-section.tsx
|
|
2158
|
-
import * as
|
|
2189
|
+
import * as React46 from "react";
|
|
2159
2190
|
import { useSessionStorage } from "@elementor/session";
|
|
2160
2191
|
|
|
2161
2192
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
2162
|
-
import * as
|
|
2163
|
-
import {
|
|
2193
|
+
import * as React43 from "react";
|
|
2194
|
+
import { SizeControl as SizeControl3 } from "@elementor/editor-controls";
|
|
2164
2195
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
2165
|
-
import { Grid as Grid9, Stack as
|
|
2196
|
+
import { Grid as Grid9, Stack as Stack12, withDirection as withDirection8 } from "@elementor/ui";
|
|
2166
2197
|
import { __ as __22 } from "@wordpress/i18n";
|
|
2167
2198
|
var InlineStartIcon2 = withDirection8(SideLeftIcon2);
|
|
2168
2199
|
var InlineEndIcon2 = withDirection8(SideRightIcon2);
|
|
2169
2200
|
var sideIcons = {
|
|
2170
|
-
"inset-block-start": /* @__PURE__ */
|
|
2171
|
-
"inset-block-end": /* @__PURE__ */
|
|
2172
|
-
"inset-inline-start": /* @__PURE__ */
|
|
2173
|
-
"inset-inline-end": /* @__PURE__ */
|
|
2201
|
+
"inset-block-start": /* @__PURE__ */ React43.createElement(SideTopIcon2, { fontSize: "tiny" }),
|
|
2202
|
+
"inset-block-end": /* @__PURE__ */ React43.createElement(SideBottomIcon2, { fontSize: "tiny" }),
|
|
2203
|
+
"inset-inline-start": /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
2204
|
+
"inset-inline-end": /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
2174
2205
|
};
|
|
2175
2206
|
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __22("Right", "elementor") : __22("Left", "elementor");
|
|
2176
2207
|
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __22("Left", "elementor") : __22("Right", "elementor");
|
|
2177
2208
|
var DimensionsField = () => {
|
|
2178
2209
|
const { isSiteRtl } = useDirection();
|
|
2179
|
-
return /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ React43.createElement(React43.Fragment, null, /* @__PURE__ */ React43.createElement(Stack12, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React43.createElement(DimensionField, { side: "inset-block-start", label: __22("Top", "elementor") }), /* @__PURE__ */ React43.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React43.createElement(Stack12, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React43.createElement(DimensionField, { side: "inset-block-end", label: __22("Bottom", "elementor") }), /* @__PURE__ */ React43.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
|
|
2180
2211
|
};
|
|
2181
2212
|
var DimensionField = ({ side, label }) => {
|
|
2182
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ React43.createElement(Grid9, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React43.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React43.createElement(ControlLabel, null, label)), /* @__PURE__ */ React43.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React43.createElement(StylesField, { bind: side }, /* @__PURE__ */ React43.createElement(SizeControl3, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
|
|
2183
2214
|
};
|
|
2184
2215
|
|
|
2185
2216
|
// src/components/style-sections/position-section/position-field.tsx
|
|
2186
|
-
import * as
|
|
2187
|
-
import {
|
|
2217
|
+
import * as React44 from "react";
|
|
2218
|
+
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
2188
2219
|
import { Grid as Grid10 } from "@elementor/ui";
|
|
2189
2220
|
import { __ as __23 } from "@wordpress/i18n";
|
|
2190
2221
|
var positionOptions = [
|
|
@@ -2195,16 +2226,16 @@ var positionOptions = [
|
|
|
2195
2226
|
{ label: __23("Sticky", "elementor"), value: "sticky" }
|
|
2196
2227
|
];
|
|
2197
2228
|
var PositionField = ({ onChange }) => {
|
|
2198
|
-
return /* @__PURE__ */
|
|
2229
|
+
return /* @__PURE__ */ React44.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React44.createElement(Grid10, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React44.createElement(Grid10, { item: true, xs: 6 }, /* @__PURE__ */ React44.createElement(ControlLabel, null, __23("Position", "elementor"))), /* @__PURE__ */ React44.createElement(Grid10, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React44.createElement(SelectControl3, { options: positionOptions, onChange }))));
|
|
2199
2230
|
};
|
|
2200
2231
|
|
|
2201
2232
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
2202
|
-
import * as
|
|
2203
|
-
import {
|
|
2233
|
+
import * as React45 from "react";
|
|
2234
|
+
import { NumberControl as NumberControl3 } from "@elementor/editor-controls";
|
|
2204
2235
|
import { Grid as Grid11 } from "@elementor/ui";
|
|
2205
2236
|
import { __ as __24 } from "@wordpress/i18n";
|
|
2206
2237
|
var ZIndexField = () => {
|
|
2207
|
-
return /* @__PURE__ */
|
|
2238
|
+
return /* @__PURE__ */ React45.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React45.createElement(Grid11, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(Grid11, { item: true, xs: 6 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, __24("Z-index", "elementor"))), /* @__PURE__ */ React45.createElement(Grid11, { item: true, xs: 6 }, /* @__PURE__ */ React45.createElement(NumberControl3, null))));
|
|
2208
2239
|
};
|
|
2209
2240
|
|
|
2210
2241
|
// src/components/style-sections/position-section/position-section.tsx
|
|
@@ -2236,7 +2267,7 @@ var PositionSection = () => {
|
|
|
2236
2267
|
}
|
|
2237
2268
|
};
|
|
2238
2269
|
const isNotStatic = positionValue && positionValue?.value !== "static";
|
|
2239
|
-
return /* @__PURE__ */
|
|
2270
|
+
return /* @__PURE__ */ React46.createElement(SectionContent, null, /* @__PURE__ */ React46.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(DimensionsField, null), /* @__PURE__ */ React46.createElement(ZIndexField, null)) : null);
|
|
2240
2271
|
};
|
|
2241
2272
|
var usePersistDimensions = () => {
|
|
2242
2273
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -2246,14 +2277,14 @@ var usePersistDimensions = () => {
|
|
|
2246
2277
|
};
|
|
2247
2278
|
|
|
2248
2279
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2249
|
-
import * as
|
|
2250
|
-
import {
|
|
2251
|
-
import { Grid as Grid13, Stack as
|
|
2280
|
+
import * as React48 from "react";
|
|
2281
|
+
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
2282
|
+
import { Grid as Grid13, Stack as Stack13 } from "@elementor/ui";
|
|
2252
2283
|
import { __ as __26 } from "@wordpress/i18n";
|
|
2253
2284
|
|
|
2254
2285
|
// src/components/style-sections/size-section/overflow-field.tsx
|
|
2255
|
-
import * as
|
|
2256
|
-
import {
|
|
2286
|
+
import * as React47 from "react";
|
|
2287
|
+
import { ToggleControl as ToggleControl8 } from "@elementor/editor-controls";
|
|
2257
2288
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
2258
2289
|
import { Grid as Grid12 } from "@elementor/ui";
|
|
2259
2290
|
import { __ as __25 } from "@wordpress/i18n";
|
|
@@ -2261,78 +2292,78 @@ var options7 = [
|
|
|
2261
2292
|
{
|
|
2262
2293
|
value: "visible",
|
|
2263
2294
|
label: __25("Visible", "elementor"),
|
|
2264
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2295
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(EyeIcon, { fontSize: size }),
|
|
2265
2296
|
showTooltip: true
|
|
2266
2297
|
},
|
|
2267
2298
|
{
|
|
2268
2299
|
value: "hidden",
|
|
2269
2300
|
label: __25("Hidden", "elementor"),
|
|
2270
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2301
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(EyeOffIcon, { fontSize: size }),
|
|
2271
2302
|
showTooltip: true
|
|
2272
2303
|
},
|
|
2273
2304
|
{
|
|
2274
2305
|
value: "auto",
|
|
2275
2306
|
label: __25("Auto", "elementor"),
|
|
2276
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2307
|
+
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(LetterAIcon, { fontSize: size }),
|
|
2277
2308
|
showTooltip: true
|
|
2278
2309
|
}
|
|
2279
2310
|
];
|
|
2280
2311
|
var OverflowField = () => {
|
|
2281
|
-
return /* @__PURE__ */
|
|
2312
|
+
return /* @__PURE__ */ React47.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React47.createElement(Grid12, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, __25("Overflow", "elementor"))), /* @__PURE__ */ React47.createElement(Grid12, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React47.createElement(ToggleControl8, { options: options7 }))));
|
|
2282
2313
|
};
|
|
2283
2314
|
|
|
2284
2315
|
// src/components/style-sections/size-section/size-section.tsx
|
|
2285
2316
|
var SizeSection = () => {
|
|
2286
|
-
return /* @__PURE__ */
|
|
2317
|
+
return /* @__PURE__ */ React48.createElement(SectionContent, null, /* @__PURE__ */ React48.createElement(Grid13, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(SizeField, { bind: "width", label: __26("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(SizeField, { bind: "height", label: __26("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React48.createElement(Grid13, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(
|
|
2287
2318
|
SizeField,
|
|
2288
2319
|
{
|
|
2289
2320
|
bind: "min-width",
|
|
2290
2321
|
label: __26("Min width", "elementor"),
|
|
2291
2322
|
extendedValues: ["auto"]
|
|
2292
2323
|
}
|
|
2293
|
-
)), /* @__PURE__ */
|
|
2324
|
+
)), /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(
|
|
2294
2325
|
SizeField,
|
|
2295
2326
|
{
|
|
2296
2327
|
bind: "min-height",
|
|
2297
2328
|
label: __26("Min height", "elementor"),
|
|
2298
2329
|
extendedValues: ["auto"]
|
|
2299
2330
|
}
|
|
2300
|
-
))), /* @__PURE__ */
|
|
2331
|
+
))), /* @__PURE__ */ React48.createElement(Grid13, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(SizeField, { bind: "max-width", label: __26("Max width", "elementor") })), /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(SizeField, { bind: "max-height", label: __26("Max height", "elementor") }))), /* @__PURE__ */ React48.createElement(PanelDivider, null), /* @__PURE__ */ React48.createElement(Stack13, null, /* @__PURE__ */ React48.createElement(OverflowField, null)));
|
|
2301
2332
|
};
|
|
2302
2333
|
var SizeField = ({ label, bind, extendedValues }) => {
|
|
2303
|
-
return /* @__PURE__ */
|
|
2334
|
+
return /* @__PURE__ */ React48.createElement(StylesField, { bind }, /* @__PURE__ */ React48.createElement(Grid13, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 12 }, /* @__PURE__ */ React48.createElement(ControlLabel, null, label)), /* @__PURE__ */ React48.createElement(Grid13, { item: true, xs: 12 }, /* @__PURE__ */ React48.createElement(SizeControl4, { extendedValues }))));
|
|
2304
2335
|
};
|
|
2305
2336
|
|
|
2306
2337
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
2307
|
-
import * as
|
|
2338
|
+
import * as React49 from "react";
|
|
2308
2339
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
2309
2340
|
import { __ as __27 } from "@wordpress/i18n";
|
|
2310
2341
|
var SpacingSection = () => {
|
|
2311
2342
|
const { isSiteRtl } = useDirection();
|
|
2312
|
-
return /* @__PURE__ */
|
|
2343
|
+
return /* @__PURE__ */ React49.createElement(SectionContent, null, /* @__PURE__ */ React49.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React49.createElement(
|
|
2313
2344
|
LinkedDimensionsControl,
|
|
2314
2345
|
{
|
|
2315
2346
|
label: __27("Margin", "elementor"),
|
|
2316
2347
|
isSiteRtl,
|
|
2317
2348
|
extendedValues: ["auto"]
|
|
2318
2349
|
}
|
|
2319
|
-
)), /* @__PURE__ */
|
|
2350
|
+
)), /* @__PURE__ */ React49.createElement(PanelDivider, null), /* @__PURE__ */ React49.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React49.createElement(LinkedDimensionsControl, { label: __27("Padding", "elementor"), isSiteRtl })));
|
|
2320
2351
|
};
|
|
2321
2352
|
|
|
2322
2353
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
2323
|
-
import * as
|
|
2354
|
+
import * as React64 from "react";
|
|
2324
2355
|
|
|
2325
2356
|
// src/components/collapsible-content.tsx
|
|
2326
|
-
import * as
|
|
2357
|
+
import * as React50 from "react";
|
|
2327
2358
|
import { useState as useState6 } from "react";
|
|
2328
|
-
import { Button, Collapse as Collapse3, Stack as
|
|
2359
|
+
import { Button, Collapse as Collapse3, Stack as Stack14 } from "@elementor/ui";
|
|
2329
2360
|
import { __ as __28 } from "@wordpress/i18n";
|
|
2330
2361
|
var CollapsibleContent = ({ children, defaultOpen = false }) => {
|
|
2331
2362
|
const [open, setOpen] = useState6(defaultOpen);
|
|
2332
2363
|
const handleToggle = () => {
|
|
2333
2364
|
setOpen((prevOpen) => !prevOpen);
|
|
2334
2365
|
};
|
|
2335
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ React50.createElement(Stack14, null, /* @__PURE__ */ React50.createElement(
|
|
2336
2367
|
Button,
|
|
2337
2368
|
{
|
|
2338
2369
|
fullWidth: true,
|
|
@@ -2340,16 +2371,16 @@ var CollapsibleContent = ({ children, defaultOpen = false }) => {
|
|
|
2340
2371
|
color: "secondary",
|
|
2341
2372
|
variant: "outlined",
|
|
2342
2373
|
onClick: handleToggle,
|
|
2343
|
-
endIcon: /* @__PURE__ */
|
|
2374
|
+
endIcon: /* @__PURE__ */ React50.createElement(CollapseIcon, { open }),
|
|
2344
2375
|
sx: { my: 0.5 }
|
|
2345
2376
|
},
|
|
2346
2377
|
open ? __28("Show less", "elementor") : __28("Show more", "elementor")
|
|
2347
|
-
), /* @__PURE__ */
|
|
2378
|
+
), /* @__PURE__ */ React50.createElement(Collapse3, { in: open, timeout: "auto", unmountOnExit: true }, children));
|
|
2348
2379
|
};
|
|
2349
2380
|
|
|
2350
2381
|
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
2351
|
-
import * as
|
|
2352
|
-
import {
|
|
2382
|
+
import * as React51 from "react";
|
|
2383
|
+
import { FontFamilyControl } from "@elementor/editor-controls";
|
|
2353
2384
|
import { Grid as Grid14 } from "@elementor/ui";
|
|
2354
2385
|
import { __ as __30 } from "@wordpress/i18n";
|
|
2355
2386
|
|
|
@@ -2404,21 +2435,21 @@ var FontFamilyField = () => {
|
|
|
2404
2435
|
if (fontFamilies.length === 0) {
|
|
2405
2436
|
return null;
|
|
2406
2437
|
}
|
|
2407
|
-
return /* @__PURE__ */
|
|
2438
|
+
return /* @__PURE__ */ React51.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React51.createElement(Grid14, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React51.createElement(ControlLabel, null, __30("Font family", "elementor"))), /* @__PURE__ */ React51.createElement(Grid14, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React51.createElement(FontFamilyControl, { fontFamilies }))));
|
|
2408
2439
|
};
|
|
2409
2440
|
|
|
2410
2441
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
2411
|
-
import * as
|
|
2412
|
-
import {
|
|
2442
|
+
import * as React52 from "react";
|
|
2443
|
+
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
2413
2444
|
import { Grid as Grid15 } from "@elementor/ui";
|
|
2414
2445
|
import { __ as __31 } from "@wordpress/i18n";
|
|
2415
2446
|
var FontSizeField = () => {
|
|
2416
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React52.createElement(Grid15, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, __31("Font size", "elementor"))), /* @__PURE__ */ React52.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(SizeControl5, null))));
|
|
2417
2448
|
};
|
|
2418
2449
|
|
|
2419
2450
|
// src/components/style-sections/typography-section/font-style-field.tsx
|
|
2420
|
-
import * as
|
|
2421
|
-
import {
|
|
2451
|
+
import * as React53 from "react";
|
|
2452
|
+
import { ControlFormLabel as ControlFormLabel4, ToggleControl as ToggleControl9 } from "@elementor/editor-controls";
|
|
2422
2453
|
import { ItalicIcon, MinusIcon as MinusIcon2 } from "@elementor/icons";
|
|
2423
2454
|
import { Grid as Grid16 } from "@elementor/ui";
|
|
2424
2455
|
import { __ as __32 } from "@wordpress/i18n";
|
|
@@ -2426,21 +2457,21 @@ var options8 = [
|
|
|
2426
2457
|
{
|
|
2427
2458
|
value: "normal",
|
|
2428
2459
|
label: __32("Normal", "elementor"),
|
|
2429
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2460
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(MinusIcon2, { fontSize: size }),
|
|
2430
2461
|
showTooltip: true
|
|
2431
2462
|
},
|
|
2432
2463
|
{
|
|
2433
2464
|
value: "italic",
|
|
2434
2465
|
label: __32("Italic", "elementor"),
|
|
2435
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2466
|
+
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(ItalicIcon, { fontSize: size }),
|
|
2436
2467
|
showTooltip: true
|
|
2437
2468
|
}
|
|
2438
2469
|
];
|
|
2439
|
-
var FontStyleField = () => /* @__PURE__ */
|
|
2470
|
+
var FontStyleField = () => /* @__PURE__ */ React53.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React53.createElement(Grid16, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(ControlFormLabel4, null, __32("Font style", "elementor"))), /* @__PURE__ */ React53.createElement(Grid16, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React53.createElement(ToggleControl9, { options: options8 }))));
|
|
2440
2471
|
|
|
2441
2472
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
2442
|
-
import * as
|
|
2443
|
-
import {
|
|
2473
|
+
import * as React54 from "react";
|
|
2474
|
+
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
2444
2475
|
import { Grid as Grid17 } from "@elementor/ui";
|
|
2445
2476
|
import { __ as __33 } from "@wordpress/i18n";
|
|
2446
2477
|
var fontWeightOptions = [
|
|
@@ -2455,30 +2486,30 @@ var fontWeightOptions = [
|
|
|
2455
2486
|
{ value: "900", label: __33("900 - Black", "elementor") }
|
|
2456
2487
|
];
|
|
2457
2488
|
var FontWeightField = () => {
|
|
2458
|
-
return /* @__PURE__ */
|
|
2489
|
+
return /* @__PURE__ */ React54.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React54.createElement(Grid17, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(ControlLabel, null, __33("Font weight", "elementor"))), /* @__PURE__ */ React54.createElement(Grid17, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React54.createElement(SelectControl4, { options: fontWeightOptions }))));
|
|
2459
2490
|
};
|
|
2460
2491
|
|
|
2461
2492
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
2462
|
-
import * as
|
|
2463
|
-
import {
|
|
2493
|
+
import * as React55 from "react";
|
|
2494
|
+
import { SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
2464
2495
|
import { Grid as Grid18 } from "@elementor/ui";
|
|
2465
2496
|
import { __ as __34 } from "@wordpress/i18n";
|
|
2466
2497
|
var LetterSpacingField = () => {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2498
|
+
return /* @__PURE__ */ React55.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React55.createElement(Grid18, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(ControlLabel, null, __34("Letter spacing", "elementor"))), /* @__PURE__ */ React55.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(SizeControl6, null))));
|
|
2468
2499
|
};
|
|
2469
2500
|
|
|
2470
2501
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
2471
|
-
import * as
|
|
2472
|
-
import {
|
|
2502
|
+
import * as React56 from "react";
|
|
2503
|
+
import { SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
2473
2504
|
import { Grid as Grid19 } from "@elementor/ui";
|
|
2474
2505
|
import { __ as __35 } from "@wordpress/i18n";
|
|
2475
2506
|
var LineHeightField = () => {
|
|
2476
|
-
return /* @__PURE__ */
|
|
2507
|
+
return /* @__PURE__ */ React56.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React56.createElement(Grid19, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React56.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(ControlLabel, null, __35("Line height", "elementor"))), /* @__PURE__ */ React56.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(SizeControl7, null))));
|
|
2477
2508
|
};
|
|
2478
2509
|
|
|
2479
2510
|
// src/components/style-sections/typography-section/text-alignment-field.tsx
|
|
2480
|
-
import * as
|
|
2481
|
-
import {
|
|
2511
|
+
import * as React57 from "react";
|
|
2512
|
+
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
2482
2513
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
2483
2514
|
import { Grid as Grid20, withDirection as withDirection9 } from "@elementor/ui";
|
|
2484
2515
|
import { __ as __36 } from "@wordpress/i18n";
|
|
@@ -2488,44 +2519,44 @@ var options9 = [
|
|
|
2488
2519
|
{
|
|
2489
2520
|
value: "start",
|
|
2490
2521
|
label: __36("Start", "elementor"),
|
|
2491
|
-
renderContent: () => /* @__PURE__ */
|
|
2522
|
+
renderContent: () => /* @__PURE__ */ React57.createElement(RotatedIcon, { icon: StartIcon5, size: "tiny" }),
|
|
2492
2523
|
showTooltip: true
|
|
2493
2524
|
},
|
|
2494
2525
|
{
|
|
2495
2526
|
value: "center",
|
|
2496
2527
|
label: __36("Center", "elementor"),
|
|
2497
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2528
|
+
renderContent: ({ size }) => /* @__PURE__ */ React57.createElement(AlignCenterIcon, { fontSize: size }),
|
|
2498
2529
|
showTooltip: true
|
|
2499
2530
|
},
|
|
2500
2531
|
{
|
|
2501
2532
|
value: "end",
|
|
2502
2533
|
label: __36("End", "elementor"),
|
|
2503
|
-
renderContent: () => /* @__PURE__ */
|
|
2534
|
+
renderContent: () => /* @__PURE__ */ React57.createElement(RotatedIcon, { icon: EndIcon5, size: "tiny" }),
|
|
2504
2535
|
showTooltip: true
|
|
2505
2536
|
},
|
|
2506
2537
|
{
|
|
2507
2538
|
value: "justify",
|
|
2508
2539
|
label: __36("Justify", "elementor"),
|
|
2509
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2540
|
+
renderContent: ({ size }) => /* @__PURE__ */ React57.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
2510
2541
|
showTooltip: true
|
|
2511
2542
|
}
|
|
2512
2543
|
];
|
|
2513
2544
|
var TextAlignmentField = () => {
|
|
2514
|
-
return /* @__PURE__ */
|
|
2545
|
+
return /* @__PURE__ */ React57.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React57.createElement(Grid20, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, __36("Alignment", "elementor"))), /* @__PURE__ */ React57.createElement(Grid20, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React57.createElement(ToggleControl10, { options: options9 }))));
|
|
2515
2546
|
};
|
|
2516
2547
|
|
|
2517
2548
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
2518
|
-
import * as
|
|
2519
|
-
import { ColorControl as ColorControl2
|
|
2549
|
+
import * as React58 from "react";
|
|
2550
|
+
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
2520
2551
|
import { Grid as Grid21 } from "@elementor/ui";
|
|
2521
2552
|
import { __ as __37 } from "@wordpress/i18n";
|
|
2522
2553
|
var TextColorField = () => {
|
|
2523
|
-
return /* @__PURE__ */
|
|
2554
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React58.createElement(Grid21, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(Grid21, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, __37("Text color", "elementor"))), /* @__PURE__ */ React58.createElement(Grid21, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ColorControl2, null))));
|
|
2524
2555
|
};
|
|
2525
2556
|
|
|
2526
2557
|
// src/components/style-sections/typography-section/text-decoration-field.tsx
|
|
2527
|
-
import * as
|
|
2528
|
-
import {
|
|
2558
|
+
import * as React59 from "react";
|
|
2559
|
+
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
2529
2560
|
import { MinusIcon as MinusIcon3, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
2530
2561
|
import { Grid as Grid22 } from "@elementor/ui";
|
|
2531
2562
|
import { __ as __38 } from "@wordpress/i18n";
|
|
@@ -2533,34 +2564,34 @@ var options10 = [
|
|
|
2533
2564
|
{
|
|
2534
2565
|
value: "none",
|
|
2535
2566
|
label: __38("None", "elementor"),
|
|
2536
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2567
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(MinusIcon3, { fontSize: size }),
|
|
2537
2568
|
showTooltip: true,
|
|
2538
2569
|
exclusive: true
|
|
2539
2570
|
},
|
|
2540
2571
|
{
|
|
2541
2572
|
value: "underline",
|
|
2542
2573
|
label: __38("Underline", "elementor"),
|
|
2543
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2574
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(UnderlineIcon, { fontSize: size }),
|
|
2544
2575
|
showTooltip: true
|
|
2545
2576
|
},
|
|
2546
2577
|
{
|
|
2547
2578
|
value: "line-through",
|
|
2548
2579
|
label: __38("Line-through", "elementor"),
|
|
2549
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2580
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(StrikethroughIcon, { fontSize: size }),
|
|
2550
2581
|
showTooltip: true
|
|
2551
2582
|
},
|
|
2552
2583
|
{
|
|
2553
2584
|
value: "overline",
|
|
2554
2585
|
label: __38("Overline", "elementor"),
|
|
2555
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2586
|
+
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(OverlineIcon, { fontSize: size }),
|
|
2556
2587
|
showTooltip: true
|
|
2557
2588
|
}
|
|
2558
2589
|
];
|
|
2559
|
-
var TextDecorationField = () => /* @__PURE__ */
|
|
2590
|
+
var TextDecorationField = () => /* @__PURE__ */ React59.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React59.createElement(Grid22, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(Grid22, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(ControlLabel, null, __38("Line decoration", "elementor"))), /* @__PURE__ */ React59.createElement(Grid22, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React59.createElement(ToggleControl11, { options: options10, exclusive: false }))));
|
|
2560
2591
|
|
|
2561
2592
|
// src/components/style-sections/typography-section/text-direction-field.tsx
|
|
2562
|
-
import * as
|
|
2563
|
-
import {
|
|
2593
|
+
import * as React60 from "react";
|
|
2594
|
+
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
2564
2595
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
2565
2596
|
import { Grid as Grid23 } from "@elementor/ui";
|
|
2566
2597
|
import { __ as __39 } from "@wordpress/i18n";
|
|
@@ -2568,22 +2599,22 @@ var options11 = [
|
|
|
2568
2599
|
{
|
|
2569
2600
|
value: "ltr",
|
|
2570
2601
|
label: __39("Left to right", "elementor"),
|
|
2571
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2602
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
2572
2603
|
showTooltip: true
|
|
2573
2604
|
},
|
|
2574
2605
|
{
|
|
2575
2606
|
value: "rtl",
|
|
2576
2607
|
label: __39("Right to left", "elementor"),
|
|
2577
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2608
|
+
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
2578
2609
|
showTooltip: true
|
|
2579
2610
|
}
|
|
2580
2611
|
];
|
|
2581
2612
|
var TextDirectionField = () => {
|
|
2582
|
-
return /* @__PURE__ */
|
|
2613
|
+
return /* @__PURE__ */ React60.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React60.createElement(Grid23, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(Grid23, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(ControlLabel, null, __39("Direction", "elementor"))), /* @__PURE__ */ React60.createElement(Grid23, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React60.createElement(ToggleControl12, { options: options11 }))));
|
|
2583
2614
|
};
|
|
2584
2615
|
|
|
2585
2616
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
2586
|
-
import * as
|
|
2617
|
+
import * as React61 from "react";
|
|
2587
2618
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
2588
2619
|
import { __ as __40 } from "@wordpress/i18n";
|
|
2589
2620
|
var initTextStroke = {
|
|
@@ -2611,7 +2642,7 @@ var TextStrokeField = () => {
|
|
|
2611
2642
|
setTextStroke(null);
|
|
2612
2643
|
};
|
|
2613
2644
|
const hasTextStroke = Boolean(textStroke);
|
|
2614
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ React61.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React61.createElement(
|
|
2615
2646
|
AddOrRemoveContent,
|
|
2616
2647
|
{
|
|
2617
2648
|
label: __40("Text stroke", "elementor"),
|
|
@@ -2619,13 +2650,13 @@ var TextStrokeField = () => {
|
|
|
2619
2650
|
onAdd: addTextStroke,
|
|
2620
2651
|
onRemove: removeTextStroke
|
|
2621
2652
|
},
|
|
2622
|
-
/* @__PURE__ */
|
|
2623
|
-
);
|
|
2653
|
+
/* @__PURE__ */ React61.createElement(StrokeControl, null)
|
|
2654
|
+
));
|
|
2624
2655
|
};
|
|
2625
2656
|
|
|
2626
2657
|
// src/components/style-sections/typography-section/transform-field.tsx
|
|
2627
|
-
import * as
|
|
2628
|
-
import {
|
|
2658
|
+
import * as React62 from "react";
|
|
2659
|
+
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
2629
2660
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
2630
2661
|
import { Grid as Grid24 } from "@elementor/ui";
|
|
2631
2662
|
import { __ as __41 } from "@wordpress/i18n";
|
|
@@ -2633,42 +2664,42 @@ var options12 = [
|
|
|
2633
2664
|
{
|
|
2634
2665
|
value: "none",
|
|
2635
2666
|
label: __41("None", "elementor"),
|
|
2636
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2667
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(MinusIcon4, { fontSize: size }),
|
|
2637
2668
|
showTooltip: true
|
|
2638
2669
|
},
|
|
2639
2670
|
{
|
|
2640
2671
|
value: "capitalize",
|
|
2641
2672
|
label: __41("Capitalize", "elementor"),
|
|
2642
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2673
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(LetterCaseIcon, { fontSize: size }),
|
|
2643
2674
|
showTooltip: true
|
|
2644
2675
|
},
|
|
2645
2676
|
{
|
|
2646
2677
|
value: "uppercase",
|
|
2647
2678
|
label: __41("Uppercase", "elementor"),
|
|
2648
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2679
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
2649
2680
|
showTooltip: true
|
|
2650
2681
|
},
|
|
2651
2682
|
{
|
|
2652
2683
|
value: "lowercase",
|
|
2653
2684
|
label: __41("Lowercase", "elementor"),
|
|
2654
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
2685
|
+
renderContent: ({ size }) => /* @__PURE__ */ React62.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
2655
2686
|
showTooltip: true
|
|
2656
2687
|
}
|
|
2657
2688
|
];
|
|
2658
|
-
var TransformField = () => /* @__PURE__ */
|
|
2689
|
+
var TransformField = () => /* @__PURE__ */ React62.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React62.createElement(Grid24, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(Grid24, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, __41("Text transform", "elementor"))), /* @__PURE__ */ React62.createElement(Grid24, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React62.createElement(ToggleControl13, { options: options12 }))));
|
|
2659
2690
|
|
|
2660
2691
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
2661
|
-
import * as
|
|
2662
|
-
import {
|
|
2692
|
+
import * as React63 from "react";
|
|
2693
|
+
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
2663
2694
|
import { Grid as Grid25 } from "@elementor/ui";
|
|
2664
2695
|
import { __ as __42 } from "@wordpress/i18n";
|
|
2665
2696
|
var WordSpacingField = () => {
|
|
2666
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ React63.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React63.createElement(Grid25, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React63.createElement(Grid25, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, __42("Word spacing", "elementor"))), /* @__PURE__ */ React63.createElement(Grid25, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(SizeControl8, null))));
|
|
2667
2698
|
};
|
|
2668
2699
|
|
|
2669
2700
|
// src/components/style-sections/typography-section/typography-section.tsx
|
|
2670
2701
|
var TypographySection = () => {
|
|
2671
|
-
return /* @__PURE__ */
|
|
2702
|
+
return /* @__PURE__ */ React64.createElement(SectionContent, null, /* @__PURE__ */ React64.createElement(FontFamilyField, null), /* @__PURE__ */ React64.createElement(FontWeightField, null), /* @__PURE__ */ React64.createElement(FontSizeField, null), /* @__PURE__ */ React64.createElement(PanelDivider, null), /* @__PURE__ */ React64.createElement(TextAlignmentField, null), /* @__PURE__ */ React64.createElement(TextColorField, null), /* @__PURE__ */ React64.createElement(CollapsibleContent, null, /* @__PURE__ */ React64.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React64.createElement(LineHeightField, null), /* @__PURE__ */ React64.createElement(LetterSpacingField, null), /* @__PURE__ */ React64.createElement(WordSpacingField, null), /* @__PURE__ */ React64.createElement(PanelDivider, null), /* @__PURE__ */ React64.createElement(TextDecorationField, null), /* @__PURE__ */ React64.createElement(TransformField, null), /* @__PURE__ */ React64.createElement(TextDirectionField, null), /* @__PURE__ */ React64.createElement(FontStyleField, null), /* @__PURE__ */ React64.createElement(TextStrokeField, null))));
|
|
2672
2703
|
};
|
|
2673
2704
|
|
|
2674
2705
|
// src/components/style-tab.tsx
|
|
@@ -2677,7 +2708,7 @@ var StyleTab = () => {
|
|
|
2677
2708
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
|
|
2678
2709
|
const [activeStyleState, setActiveStyleState] = useState7(null);
|
|
2679
2710
|
const breakpoint = useActiveBreakpoint();
|
|
2680
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ React65.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React65.createElement(
|
|
2681
2712
|
StyleProvider,
|
|
2682
2713
|
{
|
|
2683
2714
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -2688,7 +2719,7 @@ var StyleTab = () => {
|
|
|
2688
2719
|
},
|
|
2689
2720
|
setMetaState: setActiveStyleState
|
|
2690
2721
|
},
|
|
2691
|
-
/* @__PURE__ */
|
|
2722
|
+
/* @__PURE__ */ React65.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React65.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React65.createElement(CssClassSelector, null), /* @__PURE__ */ React65.createElement(Divider4, null), /* @__PURE__ */ React65.createElement(SectionsList, null, /* @__PURE__ */ React65.createElement(Section, { title: __43("Layout", "elementor") }, /* @__PURE__ */ React65.createElement(LayoutSection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Spacing", "elementor") }, /* @__PURE__ */ React65.createElement(SpacingSection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Size", "elementor") }, /* @__PURE__ */ React65.createElement(SizeSection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Position", "elementor") }, /* @__PURE__ */ React65.createElement(PositionSection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Typography", "elementor") }, /* @__PURE__ */ React65.createElement(TypographySection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Background", "elementor") }, /* @__PURE__ */ React65.createElement(BackgroundSection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Border", "elementor") }, /* @__PURE__ */ React65.createElement(BorderSection, null)), /* @__PURE__ */ React65.createElement(Section, { title: __43("Effects", "elementor") }, /* @__PURE__ */ React65.createElement(EffectsSection, null)))))
|
|
2692
2723
|
));
|
|
2693
2724
|
};
|
|
2694
2725
|
function useActiveStyleDefId(currentClassesProp) {
|
|
@@ -2720,7 +2751,19 @@ var EditingPanelTabs = () => {
|
|
|
2720
2751
|
return (
|
|
2721
2752
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
2722
2753
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
2723
|
-
/* @__PURE__ */
|
|
2754
|
+
/* @__PURE__ */ React66.createElement(Fragment8, { key: element.id }, /* @__PURE__ */ React66.createElement(Stack15, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React66.createElement(
|
|
2755
|
+
Tabs,
|
|
2756
|
+
{
|
|
2757
|
+
variant: "fullWidth",
|
|
2758
|
+
indicatorColor: "secondary",
|
|
2759
|
+
textColor: "inherit",
|
|
2760
|
+
size: "small",
|
|
2761
|
+
sx: { mt: 0.5 },
|
|
2762
|
+
...getTabsProps()
|
|
2763
|
+
},
|
|
2764
|
+
/* @__PURE__ */ React66.createElement(Tab, { label: __44("General", "elementor"), ...getTabProps("settings") }),
|
|
2765
|
+
/* @__PURE__ */ React66.createElement(Tab, { label: __44("Style", "elementor"), ...getTabProps("style") })
|
|
2766
|
+
), /* @__PURE__ */ React66.createElement(Divider5, null), /* @__PURE__ */ React66.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React66.createElement(SettingsTab, null)), /* @__PURE__ */ React66.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React66.createElement(StyleTab, null))))
|
|
2724
2767
|
);
|
|
2725
2768
|
};
|
|
2726
2769
|
|
|
@@ -2734,7 +2777,7 @@ var EditingPanel = () => {
|
|
|
2734
2777
|
return null;
|
|
2735
2778
|
}
|
|
2736
2779
|
const panelTitle = __45("Edit %s", "elementor").replace("%s", elementType.title);
|
|
2737
|
-
return /* @__PURE__ */
|
|
2780
|
+
return /* @__PURE__ */ React67.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React67.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React67.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React67.createElement(ThemeProvider9, null, /* @__PURE__ */ React67.createElement(Panel, null, /* @__PURE__ */ React67.createElement(PanelHeader, null, /* @__PURE__ */ React67.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React67.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React67.createElement(PanelBody, null, /* @__PURE__ */ React67.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React67.createElement(ControlReplacementProvider, { ...controlReplacement }, /* @__PURE__ */ React67.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React67.createElement(EditingPanelTabs, null)))))))));
|
|
2738
2781
|
};
|
|
2739
2782
|
|
|
2740
2783
|
// src/panel.ts
|
|
@@ -2783,9 +2826,9 @@ var EditingPanelHooks = () => {
|
|
|
2783
2826
|
};
|
|
2784
2827
|
|
|
2785
2828
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
2786
|
-
import * as
|
|
2829
|
+
import * as React71 from "react";
|
|
2787
2830
|
import { useId as useId4 } from "react";
|
|
2788
|
-
import {
|
|
2831
|
+
import { ControlFormLabel as ControlFormLabel5, useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
|
|
2789
2832
|
import { DatabaseIcon as DatabaseIcon2, SettingsIcon, XIcon as XIcon2 } from "@elementor/icons";
|
|
2790
2833
|
import {
|
|
2791
2834
|
bindPopover as bindPopover2,
|
|
@@ -2796,11 +2839,11 @@ import {
|
|
|
2796
2839
|
IconButton as IconButton3,
|
|
2797
2840
|
Paper,
|
|
2798
2841
|
Popover as Popover2,
|
|
2799
|
-
Stack as
|
|
2842
|
+
Stack as Stack18,
|
|
2800
2843
|
Tab as Tab2,
|
|
2801
2844
|
TabPanel as TabPanel2,
|
|
2802
2845
|
Tabs as Tabs2,
|
|
2803
|
-
Typography as
|
|
2846
|
+
Typography as Typography6,
|
|
2804
2847
|
UnstableTag as Tag,
|
|
2805
2848
|
usePopupState as usePopupState3,
|
|
2806
2849
|
useTabs as useTabs2
|
|
@@ -2808,9 +2851,9 @@ import {
|
|
|
2808
2851
|
import { __ as __47 } from "@wordpress/i18n";
|
|
2809
2852
|
|
|
2810
2853
|
// src/components/popover-content.tsx
|
|
2811
|
-
import * as
|
|
2812
|
-
import { Stack as
|
|
2813
|
-
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */
|
|
2854
|
+
import * as React68 from "react";
|
|
2855
|
+
import { Stack as Stack16 } from "@elementor/ui";
|
|
2856
|
+
var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React68.createElement(Stack16, { alignItems, gap, p }, children);
|
|
2814
2857
|
|
|
2815
2858
|
// src/hooks/use-persist-dynamic-value.ts
|
|
2816
2859
|
import { useSessionStorage as useSessionStorage2 } from "@elementor/session";
|
|
@@ -2821,7 +2864,7 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
2821
2864
|
};
|
|
2822
2865
|
|
|
2823
2866
|
// src/dynamics/dynamic-control.tsx
|
|
2824
|
-
import * as
|
|
2867
|
+
import * as React69 from "react";
|
|
2825
2868
|
import { PropKeyProvider as PropKeyProvider3, PropProvider as PropProvider3, useBoundProp as useBoundProp3 } from "@elementor/editor-controls";
|
|
2826
2869
|
|
|
2827
2870
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
@@ -2923,11 +2966,11 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
2923
2966
|
});
|
|
2924
2967
|
};
|
|
2925
2968
|
const propType = createTopLevelOjectType({ schema: dynamicTag.props_schema });
|
|
2926
|
-
return /* @__PURE__ */
|
|
2969
|
+
return /* @__PURE__ */ React69.createElement(PropProvider3, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React69.createElement(PropKeyProvider3, { bind }, children));
|
|
2927
2970
|
};
|
|
2928
2971
|
|
|
2929
2972
|
// src/dynamics/components/dynamic-selection.tsx
|
|
2930
|
-
import * as
|
|
2973
|
+
import * as React70 from "react";
|
|
2931
2974
|
import { Fragment as Fragment9, useState as useState8 } from "react";
|
|
2932
2975
|
import { useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
|
|
2933
2976
|
import { DatabaseIcon, SearchIcon } from "@elementor/icons";
|
|
@@ -2939,9 +2982,9 @@ import {
|
|
|
2939
2982
|
MenuItem,
|
|
2940
2983
|
MenuList,
|
|
2941
2984
|
MenuSubheader as MenuSubheader2,
|
|
2942
|
-
Stack as
|
|
2985
|
+
Stack as Stack17,
|
|
2943
2986
|
TextField as TextField2,
|
|
2944
|
-
Typography as
|
|
2987
|
+
Typography as Typography5
|
|
2945
2988
|
} from "@elementor/ui";
|
|
2946
2989
|
import { __ as __46 } from "@wordpress/i18n";
|
|
2947
2990
|
var SIZE3 = "tiny";
|
|
@@ -2957,14 +3000,14 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2957
3000
|
const handleSearch = (event) => {
|
|
2958
3001
|
setSearchValue(event.target.value);
|
|
2959
3002
|
};
|
|
2960
|
-
const handleSetDynamicTag = (value) => {
|
|
3003
|
+
const handleSetDynamicTag = (value, label) => {
|
|
2961
3004
|
if (!isCurrentValueDynamic) {
|
|
2962
3005
|
updatePropValueHistory(anyValue);
|
|
2963
3006
|
}
|
|
2964
|
-
setValue({ name: value, settings: {} });
|
|
3007
|
+
setValue({ name: value, settings: { label } });
|
|
2965
3008
|
onSelect?.();
|
|
2966
3009
|
};
|
|
2967
|
-
return /* @__PURE__ */
|
|
3010
|
+
return /* @__PURE__ */ React70.createElement(Stack17, null, hasNoDynamicTags ? /* @__PURE__ */ React70.createElement(NoDynamicTags, null) : /* @__PURE__ */ React70.createElement(Fragment9, null, /* @__PURE__ */ React70.createElement(Box4, { px: 1.5, pb: 1 }, /* @__PURE__ */ React70.createElement(
|
|
2968
3011
|
TextField2,
|
|
2969
3012
|
{
|
|
2970
3013
|
fullWidth: true,
|
|
@@ -2973,10 +3016,10 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2973
3016
|
onChange: handleSearch,
|
|
2974
3017
|
placeholder: __46("Search dynamic tags\u2026", "elementor"),
|
|
2975
3018
|
InputProps: {
|
|
2976
|
-
startAdornment: /* @__PURE__ */
|
|
3019
|
+
startAdornment: /* @__PURE__ */ React70.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React70.createElement(SearchIcon, { fontSize: SIZE3 }))
|
|
2977
3020
|
}
|
|
2978
3021
|
}
|
|
2979
|
-
)), /* @__PURE__ */
|
|
3022
|
+
)), /* @__PURE__ */ React70.createElement(Divider6, null), /* @__PURE__ */ React70.createElement(Box4, { sx: { overflowY: "auto", height: 260, width: 220 } }, options13.length > 0 ? /* @__PURE__ */ React70.createElement(MenuList, { role: "listbox", tabIndex: 0 }, options13.map(([category, items3], index) => /* @__PURE__ */ React70.createElement(Fragment9, { key: index }, /* @__PURE__ */ React70.createElement(
|
|
2980
3023
|
MenuSubheader2,
|
|
2981
3024
|
{
|
|
2982
3025
|
sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
|
|
@@ -2984,21 +3027,21 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2984
3027
|
dynamicGroups?.[category]?.title || category
|
|
2985
3028
|
), items3.map(({ value, label: tagLabel }) => {
|
|
2986
3029
|
const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
|
|
2987
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */ React70.createElement(
|
|
2988
3031
|
MenuItem,
|
|
2989
3032
|
{
|
|
2990
3033
|
key: value,
|
|
2991
3034
|
selected: isSelected,
|
|
2992
3035
|
autoFocus: isSelected,
|
|
2993
|
-
sx: { px:
|
|
2994
|
-
onClick: () => handleSetDynamicTag(value)
|
|
3036
|
+
sx: { px: 3.5, typography: "caption" },
|
|
3037
|
+
onClick: () => handleSetDynamicTag(value, tagLabel)
|
|
2995
3038
|
},
|
|
2996
3039
|
tagLabel
|
|
2997
3040
|
);
|
|
2998
|
-
})))) : /* @__PURE__ */
|
|
3041
|
+
})))) : /* @__PURE__ */ React70.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
|
|
2999
3042
|
};
|
|
3000
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
3001
|
-
|
|
3043
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React70.createElement(
|
|
3044
|
+
Stack17,
|
|
3002
3045
|
{
|
|
3003
3046
|
gap: 1,
|
|
3004
3047
|
alignItems: "center",
|
|
@@ -3008,12 +3051,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React69.createElem
|
|
|
3008
3051
|
color: "text.secondary",
|
|
3009
3052
|
sx: { pb: 3.5 }
|
|
3010
3053
|
},
|
|
3011
|
-
/* @__PURE__ */
|
|
3012
|
-
/* @__PURE__ */
|
|
3013
|
-
/* @__PURE__ */
|
|
3054
|
+
/* @__PURE__ */ React70.createElement(DatabaseIcon, { fontSize: "large" }),
|
|
3055
|
+
/* @__PURE__ */ React70.createElement(Typography5, { align: "center", variant: "subtitle2" }, __46("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React70.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
3056
|
+
/* @__PURE__ */ React70.createElement(Typography5, { align: "center", variant: "caption" }, __46("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React70.createElement(Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __46("Clear & try again", "elementor")))
|
|
3014
3057
|
);
|
|
3015
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
3016
|
-
|
|
3058
|
+
var NoDynamicTags = () => /* @__PURE__ */ React70.createElement(Box4, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React70.createElement(Divider6, null), /* @__PURE__ */ React70.createElement(
|
|
3059
|
+
Stack17,
|
|
3017
3060
|
{
|
|
3018
3061
|
gap: 1,
|
|
3019
3062
|
alignItems: "center",
|
|
@@ -3023,9 +3066,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React69.createElement(Box4, { sx: { ov
|
|
|
3023
3066
|
color: "text.secondary",
|
|
3024
3067
|
sx: { pb: 3.5 }
|
|
3025
3068
|
},
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
/* @__PURE__ */
|
|
3028
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ React70.createElement(DatabaseIcon, { fontSize: "large" }),
|
|
3070
|
+
/* @__PURE__ */ React70.createElement(Typography5, { align: "center", variant: "subtitle2" }, __46("Streamline your workflow with dynamic tags", "elementor")),
|
|
3071
|
+
/* @__PURE__ */ React70.createElement(Typography5, { align: "center", variant: "caption" }, __46("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
|
|
3029
3072
|
));
|
|
3030
3073
|
var useFilteredOptions = (searchValue) => {
|
|
3031
3074
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -3059,25 +3102,25 @@ var DynamicSelectionControl = () => {
|
|
|
3059
3102
|
if (!dynamicTag) {
|
|
3060
3103
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
3061
3104
|
}
|
|
3062
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ React71.createElement(Box5, null, /* @__PURE__ */ React71.createElement(
|
|
3063
3106
|
Tag,
|
|
3064
3107
|
{
|
|
3065
3108
|
fullWidth: true,
|
|
3066
3109
|
showActionsOnHover: true,
|
|
3067
3110
|
label: dynamicTag.label,
|
|
3068
|
-
startIcon: /* @__PURE__ */
|
|
3111
|
+
startIcon: /* @__PURE__ */ React71.createElement(DatabaseIcon2, { fontSize: SIZE4 }),
|
|
3069
3112
|
...bindTrigger2(selectionPopoverState),
|
|
3070
|
-
actions: /* @__PURE__ */
|
|
3113
|
+
actions: /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React71.createElement(
|
|
3071
3114
|
IconButton3,
|
|
3072
3115
|
{
|
|
3073
3116
|
size: SIZE4,
|
|
3074
3117
|
onClick: removeDynamicTag,
|
|
3075
3118
|
"aria-label": __47("Remove dynamic value", "elementor")
|
|
3076
3119
|
},
|
|
3077
|
-
/* @__PURE__ */
|
|
3120
|
+
/* @__PURE__ */ React71.createElement(XIcon2, { fontSize: SIZE4 })
|
|
3078
3121
|
))
|
|
3079
3122
|
}
|
|
3080
|
-
), /* @__PURE__ */
|
|
3123
|
+
), /* @__PURE__ */ React71.createElement(
|
|
3081
3124
|
Popover2,
|
|
3082
3125
|
{
|
|
3083
3126
|
disablePortal: true,
|
|
@@ -3085,7 +3128,7 @@ var DynamicSelectionControl = () => {
|
|
|
3085
3128
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
3086
3129
|
...bindPopover2(selectionPopoverState)
|
|
3087
3130
|
},
|
|
3088
|
-
/* @__PURE__ */
|
|
3131
|
+
/* @__PURE__ */ React71.createElement(Stack18, null, /* @__PURE__ */ React71.createElement(Stack18, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React71.createElement(DatabaseIcon2, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React71.createElement(Typography6, { variant: "subtitle2" }, __47("Dynamic tags", "elementor")), /* @__PURE__ */ React71.createElement(IconButton3, { size: SIZE4, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React71.createElement(XIcon2, { fontSize: SIZE4 }))), /* @__PURE__ */ React71.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
|
|
3089
3132
|
));
|
|
3090
3133
|
};
|
|
3091
3134
|
var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
@@ -3095,22 +3138,22 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
|
|
|
3095
3138
|
if (!hasDynamicSettings) {
|
|
3096
3139
|
return null;
|
|
3097
3140
|
}
|
|
3098
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(
|
|
3099
3142
|
IconButton3,
|
|
3100
3143
|
{
|
|
3101
3144
|
size: SIZE4,
|
|
3102
3145
|
...bindTrigger2(settingsPopupState),
|
|
3103
3146
|
"aria-label": __47("Settings", "elementor")
|
|
3104
3147
|
},
|
|
3105
|
-
/* @__PURE__ */
|
|
3106
|
-
), /* @__PURE__ */
|
|
3148
|
+
/* @__PURE__ */ React71.createElement(SettingsIcon, { fontSize: SIZE4 })
|
|
3149
|
+
), /* @__PURE__ */ React71.createElement(
|
|
3107
3150
|
Popover2,
|
|
3108
3151
|
{
|
|
3109
3152
|
disableScrollLock: true,
|
|
3110
3153
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3111
3154
|
...bindPopover2(settingsPopupState)
|
|
3112
3155
|
},
|
|
3113
|
-
/* @__PURE__ */
|
|
3156
|
+
/* @__PURE__ */ React71.createElement(Paper, { component: Stack18, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React71.createElement(Stack18, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React71.createElement(DatabaseIcon2, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React71.createElement(Typography6, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React71.createElement(IconButton3, { sx: { ml: "auto" }, size: SIZE4, onClick: settingsPopupState.close }, /* @__PURE__ */ React71.createElement(XIcon2, { fontSize: SIZE4 }))), /* @__PURE__ */ React71.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
|
|
3114
3157
|
));
|
|
3115
3158
|
};
|
|
3116
3159
|
var DynamicSettings = ({ controls }) => {
|
|
@@ -3119,10 +3162,10 @@ var DynamicSettings = ({ controls }) => {
|
|
|
3119
3162
|
if (!tabs.length) {
|
|
3120
3163
|
return null;
|
|
3121
3164
|
}
|
|
3122
|
-
return /* @__PURE__ */
|
|
3123
|
-
return /* @__PURE__ */
|
|
3165
|
+
return /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React71.createElement(Tab2, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React71.createElement(Divider7, null), tabs.map(({ value }, index) => {
|
|
3166
|
+
return /* @__PURE__ */ React71.createElement(TabPanel2, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React71.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
3124
3167
|
if (item.type === "control") {
|
|
3125
|
-
return /* @__PURE__ */
|
|
3168
|
+
return /* @__PURE__ */ React71.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
3126
3169
|
}
|
|
3127
3170
|
return null;
|
|
3128
3171
|
})));
|
|
@@ -3132,11 +3175,11 @@ var Control3 = ({ control }) => {
|
|
|
3132
3175
|
if (!getControlByType(control.type)) {
|
|
3133
3176
|
return null;
|
|
3134
3177
|
}
|
|
3135
|
-
return /* @__PURE__ */
|
|
3178
|
+
return /* @__PURE__ */ React71.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React71.createElement(Grid26, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React71.createElement(Grid26, { item: true, xs: 12 }, /* @__PURE__ */ React71.createElement(ControlFormLabel5, null, control.label)) : null, /* @__PURE__ */ React71.createElement(Grid26, { item: true, xs: 12 }, /* @__PURE__ */ React71.createElement(Control, { type: control.type, props: control.props }))));
|
|
3136
3179
|
};
|
|
3137
3180
|
|
|
3138
3181
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
3139
|
-
import * as
|
|
3182
|
+
import * as React72 from "react";
|
|
3140
3183
|
import { useBoundProp as useBoundProp6 } from "@elementor/editor-controls";
|
|
3141
3184
|
import { DatabaseIcon as DatabaseIcon3 } from "@elementor/icons";
|
|
3142
3185
|
import { __ as __48 } from "@wordpress/i18n";
|
|
@@ -3147,7 +3190,7 @@ var usePropDynamicAction = () => {
|
|
|
3147
3190
|
visible,
|
|
3148
3191
|
icon: DatabaseIcon3,
|
|
3149
3192
|
title: __48("Dynamic tags", "elementor"),
|
|
3150
|
-
popoverContent: ({ closePopover }) => /* @__PURE__ */
|
|
3193
|
+
popoverContent: ({ closePopover }) => /* @__PURE__ */ React72.createElement(DynamicSelection, { onSelect: closePopover })
|
|
3151
3194
|
};
|
|
3152
3195
|
};
|
|
3153
3196
|
|