@elementor/editor-controls 4.4.0-1084 → 4.4.0-1085
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +921 -786
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +775 -629
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/controls/icon-library/font-awesome-7-catalog.ts +14 -5
- package/src/controls/icon-library/icon-library-filter.tsx +159 -0
- package/src/controls/icon-library/icon-library-popover.tsx +55 -20
package/dist/index.mjs
CHANGED
|
@@ -381,7 +381,7 @@ function ControlActions({ children }) {
|
|
|
381
381
|
if (items2.length === 0 || disabled) {
|
|
382
382
|
return children;
|
|
383
383
|
}
|
|
384
|
-
const menuItems = items2.map(({ MenuItem:
|
|
384
|
+
const menuItems = items2.map(({ MenuItem: MenuItem3, id }) => /* @__PURE__ */ React10.createElement(MenuItem3, { key: id }));
|
|
385
385
|
return /* @__PURE__ */ React10.createElement(FloatingActionsBar, { actions: menuItems }, children);
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -5322,13 +5322,13 @@ var AspectRatioControl = createControl(({ label }) => {
|
|
|
5322
5322
|
});
|
|
5323
5323
|
|
|
5324
5324
|
// src/controls/svg-media-control.tsx
|
|
5325
|
-
import * as
|
|
5326
|
-
import { useEffect as useEffect16, useRef as useRef15, useState as
|
|
5325
|
+
import * as React86 from "react";
|
|
5326
|
+
import { useEffect as useEffect16, useRef as useRef15, useState as useState17 } from "react";
|
|
5327
5327
|
import { useCurrentUserCapabilities } from "@elementor/editor-current-user";
|
|
5328
5328
|
import { iconPropTypeUtil, svgSrcPropTypeUtil, urlPropTypeUtil as urlPropTypeUtil4 } from "@elementor/editor-props";
|
|
5329
|
-
import { Box as
|
|
5329
|
+
import { Box as Box19, Card as Card2, CardOverlay as CardOverlay2, Popover as Popover6, Stack as Stack16, styled as styled11, usePopupState as usePopupState9 } from "@elementor/ui";
|
|
5330
5330
|
import { useWpMediaAttachment as useWpMediaAttachment2, useWpMediaFrame as useWpMediaFrame2 } from "@elementor/wp-media";
|
|
5331
|
-
import { __ as
|
|
5331
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
5332
5332
|
|
|
5333
5333
|
// src/components/enable-unfiltered-modal.tsx
|
|
5334
5334
|
import * as React80 from "react";
|
|
@@ -5406,8 +5406,8 @@ function measureIconLibraryAnchor(container, buttonGroup) {
|
|
|
5406
5406
|
}
|
|
5407
5407
|
|
|
5408
5408
|
// src/controls/icon-library/icon-library-popover.tsx
|
|
5409
|
-
import * as
|
|
5410
|
-
import { useMemo as useMemo12 } from "react";
|
|
5409
|
+
import * as React83 from "react";
|
|
5410
|
+
import { useMemo as useMemo12, useState as useState16 } from "react";
|
|
5411
5411
|
import {
|
|
5412
5412
|
PopoverBody as PopoverBody2,
|
|
5413
5413
|
PopoverHeader as PopoverHeader4,
|
|
@@ -5416,9 +5416,9 @@ import {
|
|
|
5416
5416
|
StyledMenuList
|
|
5417
5417
|
} from "@elementor/editor-ui";
|
|
5418
5418
|
import { ComponentsIcon } from "@elementor/icons";
|
|
5419
|
-
import { Box as
|
|
5419
|
+
import { Box as Box16, CircularProgress as CircularProgress3, Divider as Divider4, Link as Link3, Stack as Stack14, styled as styled9, Typography as Typography8 } from "@elementor/ui";
|
|
5420
5420
|
import { useDebounceState } from "@elementor/utils";
|
|
5421
|
-
import { __ as
|
|
5421
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
5422
5422
|
|
|
5423
5423
|
// src/controls/icon-library/font-awesome-7-data.ts
|
|
5424
5424
|
var FONT_AWESOME_7_LIBRARIES = [
|
|
@@ -5609,12 +5609,13 @@ async function loadFontAwesome7Catalog(signal) {
|
|
|
5609
5609
|
);
|
|
5610
5610
|
return catalogs.flat();
|
|
5611
5611
|
}
|
|
5612
|
-
function filterFontAwesome7Icons(icons, searchValue) {
|
|
5612
|
+
function filterFontAwesome7Icons(icons, searchValue, libraries = []) {
|
|
5613
5613
|
const query = searchValue?.trim().toLowerCase() ?? "";
|
|
5614
|
+
const libraryIcons = libraries.length === 0 ? icons : icons.filter((icon) => libraries.includes(icon.library));
|
|
5614
5615
|
if (query === "") {
|
|
5615
|
-
return
|
|
5616
|
+
return libraryIcons;
|
|
5616
5617
|
}
|
|
5617
|
-
return
|
|
5618
|
+
return libraryIcons.filter((icon) => {
|
|
5618
5619
|
if (icon.name.includes(query) || icon.label.toLowerCase().includes(query)) {
|
|
5619
5620
|
return true;
|
|
5620
5621
|
}
|
|
@@ -5677,6 +5678,133 @@ var FontAwesomeGlyph = ({ icon, size, color, label }) => {
|
|
|
5677
5678
|
);
|
|
5678
5679
|
};
|
|
5679
5680
|
|
|
5681
|
+
// src/controls/icon-library/icon-library-filter.tsx
|
|
5682
|
+
import * as React82 from "react";
|
|
5683
|
+
import { useId as useId4 } from "react";
|
|
5684
|
+
import { CheckIcon, FilterIcon as FilterIcon2, LibraryIcon, ListIcon, StarFilledIcon, StarIcon } from "@elementor/icons";
|
|
5685
|
+
import {
|
|
5686
|
+
bindMenu as bindMenu3,
|
|
5687
|
+
bindToggle as bindToggle2,
|
|
5688
|
+
Box as Box15,
|
|
5689
|
+
Menu as Menu4,
|
|
5690
|
+
MenuItem as MenuItem2,
|
|
5691
|
+
Stack as Stack13,
|
|
5692
|
+
ToggleButton as ToggleButton2,
|
|
5693
|
+
Tooltip as Tooltip8,
|
|
5694
|
+
Typography as Typography7,
|
|
5695
|
+
usePopupState as usePopupState8
|
|
5696
|
+
} from "@elementor/ui";
|
|
5697
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
5698
|
+
var FILTER_MENU_WIDTH = 280;
|
|
5699
|
+
var FILTER_INDICATOR_SIZE = 6;
|
|
5700
|
+
var FILTER_INDICATOR_OFFSET = 4;
|
|
5701
|
+
var LIBRARY_FILTER_ORDER = {
|
|
5702
|
+
regular: 0,
|
|
5703
|
+
solid: 1,
|
|
5704
|
+
brands: 2
|
|
5705
|
+
};
|
|
5706
|
+
var LIBRARY_FILTER_CONFIG = {
|
|
5707
|
+
"fa-regular": {
|
|
5708
|
+
getLabel: () => __32("Font Awesome - Regular", "elementor"),
|
|
5709
|
+
Icon: StarIcon,
|
|
5710
|
+
order: LIBRARY_FILTER_ORDER.regular
|
|
5711
|
+
},
|
|
5712
|
+
"fa-solid": {
|
|
5713
|
+
getLabel: () => __32("Font Awesome - Solid", "elementor"),
|
|
5714
|
+
Icon: StarFilledIcon,
|
|
5715
|
+
order: LIBRARY_FILTER_ORDER.solid
|
|
5716
|
+
},
|
|
5717
|
+
"fa-brands": {
|
|
5718
|
+
getLabel: () => __32("Font Awesome - Brands", "elementor"),
|
|
5719
|
+
Icon: LibraryIcon,
|
|
5720
|
+
order: LIBRARY_FILTER_ORDER.brands
|
|
5721
|
+
}
|
|
5722
|
+
};
|
|
5723
|
+
var IconLibraryFilter = ({ value, onChange }) => {
|
|
5724
|
+
const popupId = useId4();
|
|
5725
|
+
const popupState = usePopupState8({
|
|
5726
|
+
variant: "popover",
|
|
5727
|
+
popupId
|
|
5728
|
+
});
|
|
5729
|
+
const options = FONT_AWESOME_7_LIBRARIES.map(({ library }) => ({
|
|
5730
|
+
value: library,
|
|
5731
|
+
label: LIBRARY_FILTER_CONFIG[library].getLabel(),
|
|
5732
|
+
Icon: LIBRARY_FILTER_CONFIG[library].Icon,
|
|
5733
|
+
order: LIBRARY_FILTER_CONFIG[library].order
|
|
5734
|
+
})).sort((firstOption, secondOption) => firstOption.order - secondOption.order);
|
|
5735
|
+
const isFiltered = value.length > 0;
|
|
5736
|
+
const filterButtonLabel = isFiltered ? __32("Filter by library, active", "elementor") : __32("Filter by library", "elementor");
|
|
5737
|
+
const handleAllIconsClick = () => {
|
|
5738
|
+
onChange([]);
|
|
5739
|
+
};
|
|
5740
|
+
const handleLibraryClick = (library) => {
|
|
5741
|
+
const nextValue = value.includes(library) ? value.filter((selectedLibrary) => selectedLibrary !== library) : [...value, library];
|
|
5742
|
+
onChange(nextValue.length === FONT_AWESOME_7_LIBRARIES.length ? [] : nextValue);
|
|
5743
|
+
};
|
|
5744
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(Tooltip8, { title: __32("Filter by library", "elementor"), placement: "top" }, /* @__PURE__ */ React82.createElement(
|
|
5745
|
+
ToggleButton2,
|
|
5746
|
+
{
|
|
5747
|
+
"aria-label": filterButtonLabel,
|
|
5748
|
+
value: "filter",
|
|
5749
|
+
size: "tiny",
|
|
5750
|
+
selected: popupState.isOpen,
|
|
5751
|
+
sx: { position: "relative", flexShrink: 0 },
|
|
5752
|
+
...bindToggle2(popupState),
|
|
5753
|
+
"aria-expanded": popupState.isOpen
|
|
5754
|
+
},
|
|
5755
|
+
/* @__PURE__ */ React82.createElement(FilterIcon2, { fontSize: "tiny" }),
|
|
5756
|
+
isFiltered ? /* @__PURE__ */ React82.createElement(
|
|
5757
|
+
Box15,
|
|
5758
|
+
{
|
|
5759
|
+
component: "span",
|
|
5760
|
+
"aria-hidden": "true",
|
|
5761
|
+
sx: {
|
|
5762
|
+
position: "absolute",
|
|
5763
|
+
insetBlockStart: FILTER_INDICATOR_OFFSET,
|
|
5764
|
+
insetInlineEnd: FILTER_INDICATOR_OFFSET,
|
|
5765
|
+
width: FILTER_INDICATOR_SIZE,
|
|
5766
|
+
height: FILTER_INDICATOR_SIZE,
|
|
5767
|
+
borderRadius: "50%",
|
|
5768
|
+
bgcolor: "secondary.main"
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
) : null
|
|
5772
|
+
)), /* @__PURE__ */ React82.createElement(
|
|
5773
|
+
Menu4,
|
|
5774
|
+
{
|
|
5775
|
+
...bindMenu3(popupState),
|
|
5776
|
+
MenuListProps: {
|
|
5777
|
+
dense: true,
|
|
5778
|
+
autoFocusItem: true,
|
|
5779
|
+
"aria-label": __32("Filter by library", "elementor")
|
|
5780
|
+
},
|
|
5781
|
+
sx: { "& .MuiPaper-root": { minWidth: FILTER_MENU_WIDTH } }
|
|
5782
|
+
},
|
|
5783
|
+
/* @__PURE__ */ React82.createElement(
|
|
5784
|
+
MenuItem2,
|
|
5785
|
+
{
|
|
5786
|
+
role: "menuitemcheckbox",
|
|
5787
|
+
"aria-checked": !isFiltered,
|
|
5788
|
+
selected: !isFiltered,
|
|
5789
|
+
onClick: handleAllIconsClick
|
|
5790
|
+
},
|
|
5791
|
+
renderFilterMenuItemContent(__32("All icons", "elementor"), ListIcon, !isFiltered)
|
|
5792
|
+
),
|
|
5793
|
+
options.map(({ value: library, label, Icon }) => /* @__PURE__ */ React82.createElement(
|
|
5794
|
+
MenuItem2,
|
|
5795
|
+
{
|
|
5796
|
+
key: library,
|
|
5797
|
+
role: "menuitemcheckbox",
|
|
5798
|
+
"aria-checked": value.includes(library),
|
|
5799
|
+
selected: value.includes(library),
|
|
5800
|
+
onClick: () => handleLibraryClick(library)
|
|
5801
|
+
},
|
|
5802
|
+
renderFilterMenuItemContent(label, Icon, value.includes(library))
|
|
5803
|
+
))
|
|
5804
|
+
));
|
|
5805
|
+
};
|
|
5806
|
+
var renderFilterMenuItemContent = (label, Icon, selected) => /* @__PURE__ */ React82.createElement(Stack13, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React82.createElement(Icon, { fontSize: "tiny" }), /* @__PURE__ */ React82.createElement(Typography7, { variant: "caption", sx: { flex: 1 } }, label), selected ? /* @__PURE__ */ React82.createElement(CheckIcon, { fontSize: "tiny" }) : null);
|
|
5807
|
+
|
|
5680
5808
|
// src/controls/icon-library/use-font-awesome-7-catalog.ts
|
|
5681
5809
|
import { useQuery as useQuery2 } from "@elementor/query";
|
|
5682
5810
|
var FONT_AWESOME_7_CATALOG_QUERY_KEY = ["font-awesome-7-catalog"];
|
|
@@ -5715,14 +5843,19 @@ var IconLibraryPopover = ({
|
|
|
5715
5843
|
handleChange: handleSearchChange,
|
|
5716
5844
|
setImmediateValue: setSearchValue
|
|
5717
5845
|
} = useDebounceState({ delay: ICON_LIBRARY_SEARCH_DEBOUNCE_DELAY });
|
|
5846
|
+
const [activeLibraries, setActiveLibraries] = useState16([]);
|
|
5718
5847
|
const { data: icons = [], isLoading } = useFontAwesome7Catalog(open);
|
|
5719
|
-
const items2 = useMemo12(
|
|
5848
|
+
const items2 = useMemo12(
|
|
5849
|
+
() => createIconLibraryItems(icons, searchValue, activeLibraries),
|
|
5850
|
+
[activeLibraries, icons, searchValue]
|
|
5851
|
+
);
|
|
5720
5852
|
const selectedValue = useMemo12(
|
|
5721
5853
|
() => findFontAwesome7Icon(icons, selectedIconClass, selectedIconLibrary)?.id,
|
|
5722
5854
|
[icons, selectedIconClass, selectedIconLibrary]
|
|
5723
5855
|
);
|
|
5724
5856
|
const handleClose = () => {
|
|
5725
5857
|
setSearchValue("");
|
|
5858
|
+
setActiveLibraries([]);
|
|
5726
5859
|
onClose();
|
|
5727
5860
|
};
|
|
5728
5861
|
const handleSelect = (id) => {
|
|
@@ -5738,30 +5871,31 @@ var IconLibraryPopover = ({
|
|
|
5738
5871
|
const handleClearSearch = () => {
|
|
5739
5872
|
setSearchValue("");
|
|
5740
5873
|
};
|
|
5741
|
-
return /* @__PURE__ */
|
|
5874
|
+
return /* @__PURE__ */ React83.createElement(PopoverBody2, { width, fillWidth: true, id: "icon-library" }, /* @__PURE__ */ React83.createElement(
|
|
5742
5875
|
PopoverHeader4,
|
|
5743
5876
|
{
|
|
5744
|
-
title:
|
|
5877
|
+
title: __33("Icon library", "elementor"),
|
|
5745
5878
|
onClose: handleClose,
|
|
5746
|
-
icon: /* @__PURE__ */
|
|
5879
|
+
icon: /* @__PURE__ */ React83.createElement(ComponentsIcon, { fontSize: "tiny" }),
|
|
5747
5880
|
sx: { pl: ICON_LIBRARY_INLINE_SPACING, pr: 0.5 }
|
|
5748
5881
|
}
|
|
5749
|
-
), /* @__PURE__ */
|
|
5882
|
+
), /* @__PURE__ */ React83.createElement(Stack14, { direction: "row", alignItems: "center", gap: 1, sx: { px: ICON_LIBRARY_INLINE_SPACING, pb: 1 } }, /* @__PURE__ */ React83.createElement(
|
|
5750
5883
|
SearchField2,
|
|
5751
5884
|
{
|
|
5752
5885
|
value: searchInputValue,
|
|
5753
5886
|
onSearch: handleSearchChange,
|
|
5754
|
-
placeholder:
|
|
5887
|
+
placeholder: __33("Search", "elementor"),
|
|
5755
5888
|
id: "icon-library-search",
|
|
5756
|
-
sx: { px:
|
|
5889
|
+
sx: { flex: 1, px: 0, pb: 0 }
|
|
5757
5890
|
}
|
|
5758
|
-
), /* @__PURE__ */
|
|
5891
|
+
), /* @__PURE__ */ React83.createElement(IconLibraryFilter, { value: activeLibraries, onChange: setActiveLibraries })), /* @__PURE__ */ React83.createElement(Divider4, null), /* @__PURE__ */ React83.createElement(Box16, { sx: { flex: 1, overflow: "auto", minHeight: 0 } }, /* @__PURE__ */ React83.createElement(
|
|
5759
5892
|
IconLibraryContent,
|
|
5760
5893
|
{
|
|
5761
5894
|
isLoading,
|
|
5762
5895
|
items: items2,
|
|
5763
5896
|
selectedValue,
|
|
5764
5897
|
searchValue,
|
|
5898
|
+
isCatalogAvailable: icons.length > 0,
|
|
5765
5899
|
onSelect: handleSelect,
|
|
5766
5900
|
onClose: handleClose,
|
|
5767
5901
|
onClearSearch: handleClearSearch
|
|
@@ -5773,14 +5907,15 @@ var IconLibraryContent = ({
|
|
|
5773
5907
|
items: items2,
|
|
5774
5908
|
selectedValue,
|
|
5775
5909
|
searchValue,
|
|
5910
|
+
isCatalogAvailable,
|
|
5776
5911
|
onSelect,
|
|
5777
5912
|
onClose,
|
|
5778
5913
|
onClearSearch
|
|
5779
5914
|
}) => {
|
|
5780
5915
|
if (isLoading) {
|
|
5781
|
-
return /* @__PURE__ */
|
|
5916
|
+
return /* @__PURE__ */ React83.createElement(IconLibraryLoadingState, null);
|
|
5782
5917
|
}
|
|
5783
|
-
return /* @__PURE__ */
|
|
5918
|
+
return /* @__PURE__ */ React83.createElement(
|
|
5784
5919
|
PopoverMenuList2,
|
|
5785
5920
|
{
|
|
5786
5921
|
items: items2,
|
|
@@ -5790,22 +5925,33 @@ var IconLibraryContent = ({
|
|
|
5790
5925
|
onClose,
|
|
5791
5926
|
itemHeight: ICON_LIBRARY_ROW_HEIGHT,
|
|
5792
5927
|
menuItemContentTemplate: IconLibraryRow,
|
|
5793
|
-
noResultsComponent: /* @__PURE__ */
|
|
5928
|
+
noResultsComponent: /* @__PURE__ */ React83.createElement(
|
|
5929
|
+
IconLibraryEmptyState,
|
|
5930
|
+
{
|
|
5931
|
+
searchValue,
|
|
5932
|
+
isCatalogAvailable,
|
|
5933
|
+
onClear: onClearSearch
|
|
5934
|
+
}
|
|
5935
|
+
),
|
|
5794
5936
|
"data-testid": "icon-library-list"
|
|
5795
5937
|
}
|
|
5796
5938
|
);
|
|
5797
5939
|
};
|
|
5798
|
-
var IconLibraryLoadingState = () => /* @__PURE__ */
|
|
5799
|
-
var IconLibraryEmptyState = ({
|
|
5800
|
-
|
|
5801
|
-
|
|
5940
|
+
var IconLibraryLoadingState = () => /* @__PURE__ */ React83.createElement(Stack14, { alignItems: "center", justifyContent: "center", height: "100%" }, /* @__PURE__ */ React83.createElement(CircularProgress3, { role: "progressbar", size: 24 }));
|
|
5941
|
+
var IconLibraryEmptyState = ({
|
|
5942
|
+
searchValue,
|
|
5943
|
+
isCatalogAvailable,
|
|
5944
|
+
onClear
|
|
5945
|
+
}) => {
|
|
5946
|
+
if (!isCatalogAvailable) {
|
|
5947
|
+
return /* @__PURE__ */ React83.createElement(CatalogUnavailable, null);
|
|
5802
5948
|
}
|
|
5803
|
-
return /* @__PURE__ */
|
|
5949
|
+
return /* @__PURE__ */ React83.createElement(NoResults, { searchValue, onClear });
|
|
5804
5950
|
};
|
|
5805
5951
|
var IconLibraryRow = (item) => {
|
|
5806
5952
|
const icon = item;
|
|
5807
|
-
return /* @__PURE__ */
|
|
5808
|
-
|
|
5953
|
+
return /* @__PURE__ */ React83.createElement(Stack14, { direction: "row", alignItems: "center", gap: 1, sx: { width: "100%" } }, /* @__PURE__ */ React83.createElement(
|
|
5954
|
+
Box16,
|
|
5809
5955
|
{
|
|
5810
5956
|
sx: {
|
|
5811
5957
|
width: ICON_TILE_SIZE,
|
|
@@ -5820,12 +5966,12 @@ var IconLibraryRow = (item) => {
|
|
|
5820
5966
|
flexShrink: 0
|
|
5821
5967
|
}
|
|
5822
5968
|
},
|
|
5823
|
-
icon.paths.length > 0 ? /* @__PURE__ */
|
|
5824
|
-
), /* @__PURE__ */
|
|
5969
|
+
icon.paths.length > 0 ? /* @__PURE__ */ React83.createElement(FontAwesomeGlyph, { icon, size: ICON_GLYPH_SIZE, color: "currentColor" }) : null
|
|
5970
|
+
), /* @__PURE__ */ React83.createElement(Typography8, { variant: "caption", color: "text.primary", noWrap: true }, icon.label));
|
|
5825
5971
|
};
|
|
5826
|
-
var CatalogUnavailable = () => /* @__PURE__ */
|
|
5827
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
5828
|
-
var createIconLibraryItems = (icons, searchValue) => filterFontAwesome7Icons(icons, searchValue).map((icon) => ({
|
|
5972
|
+
var CatalogUnavailable = () => /* @__PURE__ */ React83.createElement(Stack14, { alignItems: "center", justifyContent: "center", height: "100%", p: 2.5, gap: 1.5 }, /* @__PURE__ */ React83.createElement(ComponentsIcon, { fontSize: "large" }), /* @__PURE__ */ React83.createElement(Typography8, { align: "center", variant: "subtitle2", color: "text.secondary" }, __33("Icons couldn't be loaded.", "elementor")));
|
|
5973
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React83.createElement(Stack14, { alignItems: "center", justifyContent: "center", height: "100%", p: 2.5, gap: 1.5 }, /* @__PURE__ */ React83.createElement(ComponentsIcon, { fontSize: "large" }), /* @__PURE__ */ React83.createElement(Typography8, { align: "center", variant: "subtitle2", color: "text.secondary" }, __33("Sorry, nothing matched", "elementor")), searchValue ? /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Typography8, { align: "center", variant: "subtitle2", color: "text.secondary", noWrap: true, sx: { maxWidth: "80%" } }, "\u201C", searchValue, "\u201D."), /* @__PURE__ */ React83.createElement(Link3, { color: "secondary", variant: "caption", component: "button", type: "button", onClick: onClear }, __33("Clear & try again", "elementor"))) : null);
|
|
5974
|
+
var createIconLibraryItems = (icons, searchValue, libraries) => filterFontAwesome7Icons(icons, searchValue, libraries).map((icon) => ({
|
|
5829
5975
|
...icon,
|
|
5830
5976
|
type: "item",
|
|
5831
5977
|
value: icon.id
|
|
@@ -5841,10 +5987,10 @@ function createIconPropValue(icon, library) {
|
|
|
5841
5987
|
}
|
|
5842
5988
|
|
|
5843
5989
|
// src/controls/svg-media-overlay.tsx
|
|
5844
|
-
import * as
|
|
5845
|
-
import { LibraryIcon, UploadIcon as UploadIcon2 } from "@elementor/icons";
|
|
5846
|
-
import { Box as
|
|
5847
|
-
import { __ as
|
|
5990
|
+
import * as React84 from "react";
|
|
5991
|
+
import { LibraryIcon as LibraryIcon2, UploadIcon as UploadIcon2 } from "@elementor/icons";
|
|
5992
|
+
import { Box as Box17, Button as Button5, Stack as Stack15, styled as styled10, ThemeProvider, Typography as Typography9 } from "@elementor/ui";
|
|
5993
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
5848
5994
|
var SVG_MEDIA_CONTROL_CONTAINER_TEST_ID = "svg-media-control-container";
|
|
5849
5995
|
var SVG_MEDIA_ACTION_GROUP_TEST_ID = "svg-media-action-group";
|
|
5850
5996
|
var MEDIA_ACTION_PADDING_Y = 0.75;
|
|
@@ -5854,7 +6000,7 @@ var svgButtonSx = {
|
|
|
5854
6000
|
px: MEDIA_ACTION_PADDING_X,
|
|
5855
6001
|
py: MEDIA_ACTION_PADDING_Y
|
|
5856
6002
|
};
|
|
5857
|
-
var MediaActionGroup = styled10(
|
|
6003
|
+
var MediaActionGroup = styled10(Stack15)(({ theme }) => ({
|
|
5858
6004
|
display: "inline-flex",
|
|
5859
6005
|
flexDirection: "row",
|
|
5860
6006
|
alignItems: "stretch",
|
|
@@ -5876,19 +6022,19 @@ var SvgMediaOverlay = ({
|
|
|
5876
6022
|
onOpenIconLibrary,
|
|
5877
6023
|
infotipTitle,
|
|
5878
6024
|
infotipDescription
|
|
5879
|
-
}) => /* @__PURE__ */
|
|
6025
|
+
}) => /* @__PURE__ */ React84.createElement(Stack15, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React84.createElement(MediaActionGroup, { ref: buttonGroupRef, direction: "row", "data-testid": SVG_MEDIA_ACTION_GROUP_TEST_ID }, /* @__PURE__ */ React84.createElement(
|
|
5880
6026
|
Button5,
|
|
5881
6027
|
{
|
|
5882
6028
|
size: "tiny",
|
|
5883
6029
|
color: "inherit",
|
|
5884
6030
|
variant: "text",
|
|
5885
6031
|
onClick: onSelectSvg,
|
|
5886
|
-
"aria-label":
|
|
6032
|
+
"aria-label": __34("Select", "elementor"),
|
|
5887
6033
|
sx: svgButtonSx
|
|
5888
6034
|
},
|
|
5889
|
-
|
|
5890
|
-
), /* @__PURE__ */
|
|
5891
|
-
|
|
6035
|
+
__34("Select", "elementor")
|
|
6036
|
+
), /* @__PURE__ */ React84.createElement(
|
|
6037
|
+
Box17,
|
|
5892
6038
|
{
|
|
5893
6039
|
sx: {
|
|
5894
6040
|
width: "1px",
|
|
@@ -5897,22 +6043,22 @@ var SvgMediaOverlay = ({
|
|
|
5897
6043
|
flexShrink: 0
|
|
5898
6044
|
}
|
|
5899
6045
|
}
|
|
5900
|
-
), /* @__PURE__ */
|
|
6046
|
+
), /* @__PURE__ */ React84.createElement(
|
|
5901
6047
|
ConditionalControlInfotip,
|
|
5902
6048
|
{
|
|
5903
6049
|
title: infotipTitle,
|
|
5904
6050
|
description: infotipDescription,
|
|
5905
6051
|
isEnabled: !isAdmin
|
|
5906
6052
|
},
|
|
5907
|
-
/* @__PURE__ */
|
|
5908
|
-
)), showIconLibrary ? /* @__PURE__ */
|
|
6053
|
+
/* @__PURE__ */ React84.createElement(Box17, { component: "span", sx: { display: "inline-flex" } }, /* @__PURE__ */ React84.createElement(UploadControl, { isAdmin, onUpload }))
|
|
6054
|
+
)), showIconLibrary ? /* @__PURE__ */ React84.createElement(
|
|
5909
6055
|
Button5,
|
|
5910
6056
|
{
|
|
5911
6057
|
size: "tiny",
|
|
5912
6058
|
color: "inherit",
|
|
5913
6059
|
variant: "text",
|
|
5914
|
-
startIcon: /* @__PURE__ */
|
|
5915
|
-
"aria-label":
|
|
6060
|
+
startIcon: /* @__PURE__ */ React84.createElement(LibraryIcon2, { sx: { height: "18px", width: "16px" } }),
|
|
6061
|
+
"aria-label": __34("Icon library", "elementor"),
|
|
5916
6062
|
onClick: onOpenIconLibrary,
|
|
5917
6063
|
sx: {
|
|
5918
6064
|
height: "28px",
|
|
@@ -5920,19 +6066,19 @@ var SvgMediaOverlay = ({
|
|
|
5920
6066
|
".MuiButton-icon": { ml: 0 }
|
|
5921
6067
|
}
|
|
5922
6068
|
},
|
|
5923
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ React84.createElement(Typography9, null, __34("Icon library", "elementor"))
|
|
5924
6070
|
) : null);
|
|
5925
6071
|
var UploadControl = ({ isAdmin, onUpload }) => {
|
|
5926
6072
|
if (isAdmin) {
|
|
5927
|
-
return /* @__PURE__ */
|
|
6073
|
+
return /* @__PURE__ */ React84.createElement(UploadButton, { sx: svgButtonSx, onClick: onUpload });
|
|
5928
6074
|
}
|
|
5929
|
-
return /* @__PURE__ */
|
|
6075
|
+
return /* @__PURE__ */ React84.createElement(ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React84.createElement(UploadButton, { disabled: true, sx: svgButtonSx }));
|
|
5930
6076
|
};
|
|
5931
6077
|
var UploadButton = ({
|
|
5932
6078
|
disabled = false,
|
|
5933
6079
|
sx,
|
|
5934
6080
|
onClick
|
|
5935
|
-
}) => /* @__PURE__ */
|
|
6081
|
+
}) => /* @__PURE__ */ React84.createElement(
|
|
5936
6082
|
Button5,
|
|
5937
6083
|
{
|
|
5938
6084
|
sx,
|
|
@@ -5941,15 +6087,15 @@ var UploadButton = ({
|
|
|
5941
6087
|
variant: "text",
|
|
5942
6088
|
disabled,
|
|
5943
6089
|
onClick,
|
|
5944
|
-
"aria-label":
|
|
6090
|
+
"aria-label": __34("Upload", "elementor")
|
|
5945
6091
|
},
|
|
5946
|
-
/* @__PURE__ */
|
|
6092
|
+
/* @__PURE__ */ React84.createElement(UploadIcon2, null)
|
|
5947
6093
|
);
|
|
5948
6094
|
|
|
5949
6095
|
// src/controls/svg-media-preview.tsx
|
|
5950
|
-
import * as
|
|
5951
|
-
import { Box as
|
|
5952
|
-
import { __ as
|
|
6096
|
+
import * as React85 from "react";
|
|
6097
|
+
import { Box as Box18, CardMedia as CardMedia2, CircularProgress as CircularProgress4 } from "@elementor/ui";
|
|
6098
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
5953
6099
|
var ICON_PREVIEW_SIZE = 50;
|
|
5954
6100
|
var ICON_PREVIEW_COLOR = "#000000";
|
|
5955
6101
|
var SvgMediaPreview = ({ isFetching, src, iconClassName, iconLibrary }) => {
|
|
@@ -5957,27 +6103,27 @@ var SvgMediaPreview = ({ isFetching, src, iconClassName, iconLibrary }) => {
|
|
|
5957
6103
|
const { data: icons = [], isLoading } = useFontAwesome7Catalog(shouldLoadIconCatalog);
|
|
5958
6104
|
const selectedIcon = findFontAwesome7Icon(icons, iconClassName, iconLibrary);
|
|
5959
6105
|
if (isFetching || shouldLoadIconCatalog && isLoading) {
|
|
5960
|
-
return /* @__PURE__ */
|
|
6106
|
+
return /* @__PURE__ */ React85.createElement(CircularProgress4, { role: "progressbar" });
|
|
5961
6107
|
}
|
|
5962
6108
|
if (selectedIcon) {
|
|
5963
|
-
return /* @__PURE__ */
|
|
6109
|
+
return /* @__PURE__ */ React85.createElement(IconPreview, { icon: selectedIcon });
|
|
5964
6110
|
}
|
|
5965
6111
|
if (shouldLoadIconCatalog) {
|
|
5966
|
-
return /* @__PURE__ */
|
|
6112
|
+
return /* @__PURE__ */ React85.createElement(IconPreviewPlaceholder, null);
|
|
5967
6113
|
}
|
|
5968
|
-
return /* @__PURE__ */
|
|
6114
|
+
return /* @__PURE__ */ React85.createElement(SvgPreview, { src });
|
|
5969
6115
|
};
|
|
5970
|
-
var IconPreview = ({ icon }) => /* @__PURE__ */
|
|
6116
|
+
var IconPreview = ({ icon }) => /* @__PURE__ */ React85.createElement(Box18, { sx: { color: ICON_PREVIEW_COLOR } }, /* @__PURE__ */ React85.createElement(
|
|
5971
6117
|
FontAwesomeGlyph,
|
|
5972
6118
|
{
|
|
5973
6119
|
icon,
|
|
5974
6120
|
size: ICON_PREVIEW_SIZE,
|
|
5975
6121
|
color: ICON_PREVIEW_COLOR,
|
|
5976
|
-
label:
|
|
6122
|
+
label: __35("Preview icon", "elementor")
|
|
5977
6123
|
}
|
|
5978
6124
|
));
|
|
5979
|
-
var IconPreviewPlaceholder = () => /* @__PURE__ */
|
|
5980
|
-
|
|
6125
|
+
var IconPreviewPlaceholder = () => /* @__PURE__ */ React85.createElement(
|
|
6126
|
+
Box18,
|
|
5981
6127
|
{
|
|
5982
6128
|
"aria-hidden": true,
|
|
5983
6129
|
sx: {
|
|
@@ -5987,12 +6133,12 @@ var IconPreviewPlaceholder = () => /* @__PURE__ */ React84.createElement(
|
|
|
5987
6133
|
}
|
|
5988
6134
|
}
|
|
5989
6135
|
);
|
|
5990
|
-
var SvgPreview = ({ src }) => /* @__PURE__ */
|
|
6136
|
+
var SvgPreview = ({ src }) => /* @__PURE__ */ React85.createElement(
|
|
5991
6137
|
CardMedia2,
|
|
5992
6138
|
{
|
|
5993
6139
|
component: "img",
|
|
5994
6140
|
image: src,
|
|
5995
|
-
alt:
|
|
6141
|
+
alt: __35("Preview SVG", "elementor"),
|
|
5996
6142
|
sx: { maxHeight: "140px", width: `${ICON_PREVIEW_SIZE}px`, color: ICON_PREVIEW_COLOR }
|
|
5997
6143
|
}
|
|
5998
6144
|
);
|
|
@@ -6013,7 +6159,7 @@ var StyledCard = styled11(Card2)`
|
|
|
6013
6159
|
border: none;
|
|
6014
6160
|
`;
|
|
6015
6161
|
var PREVIEW_ICON_COLOR = "#000000";
|
|
6016
|
-
var StyledCardMediaContainer = styled11(
|
|
6162
|
+
var StyledCardMediaContainer = styled11(Stack16)`
|
|
6017
6163
|
position: relative;
|
|
6018
6164
|
height: 140px;
|
|
6019
6165
|
object-fit: contain;
|
|
@@ -6033,11 +6179,11 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6033
6179
|
const { data: attachment, isFetching } = useWpMediaAttachment2(id?.value || null);
|
|
6034
6180
|
const src = attachment?.url ?? url?.value ?? null;
|
|
6035
6181
|
const { data: allowSvgUpload } = useUnfilteredFilesUpload();
|
|
6036
|
-
const [unfilteredModalOpenState, setUnfilteredModalOpenState] =
|
|
6037
|
-
const iconLibraryPopoverState =
|
|
6182
|
+
const [unfilteredModalOpenState, setUnfilteredModalOpenState] = useState17(false);
|
|
6183
|
+
const iconLibraryPopoverState = usePopupState9({ variant: "popover" });
|
|
6038
6184
|
const controlContainerRef = useRef15(null);
|
|
6039
6185
|
const buttonGroupRef = useRef15(null);
|
|
6040
|
-
const [iconLibraryAnchor, setIconLibraryAnchor] =
|
|
6186
|
+
const [iconLibraryAnchor, setIconLibraryAnchor] = useState17(null);
|
|
6041
6187
|
const { isAdmin } = useCurrentUserCapabilities();
|
|
6042
6188
|
const selectedIconClass = showIconLibrary && typeof iconValue?.value?.value === "string" ? iconValue.value.value : null;
|
|
6043
6189
|
const selectedIconLibrary = showIconLibrary && typeof iconValue?.library?.value === "string" ? iconValue.library.value : null;
|
|
@@ -6105,7 +6251,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6105
6251
|
};
|
|
6106
6252
|
}, [iconLibraryPopoverState.isOpen]);
|
|
6107
6253
|
const iconLibraryWidth = iconLibraryAnchor?.width ?? ICON_LIBRARY_POPOVER_WIDTH;
|
|
6108
|
-
return /* @__PURE__ */
|
|
6254
|
+
return /* @__PURE__ */ React86.createElement(Stack16, { gap: 1, "aria-label": __36("SVG control", "elementor") }, /* @__PURE__ */ React86.createElement(EnableUnfilteredModal, { open: unfilteredModalOpenState, onClose: handleCloseUnfilteredModal }), showIconLibrary && iconLibraryAnchor ? /* @__PURE__ */ React86.createElement(
|
|
6109
6255
|
Popover6,
|
|
6110
6256
|
{
|
|
6111
6257
|
disableScrollLock: true,
|
|
@@ -6125,7 +6271,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6125
6271
|
}
|
|
6126
6272
|
}
|
|
6127
6273
|
},
|
|
6128
|
-
/* @__PURE__ */
|
|
6274
|
+
/* @__PURE__ */ React86.createElement(
|
|
6129
6275
|
IconLibraryPopover,
|
|
6130
6276
|
{
|
|
6131
6277
|
open: iconLibraryPopoverState.isOpen,
|
|
@@ -6136,14 +6282,14 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6136
6282
|
width: iconLibraryWidth
|
|
6137
6283
|
}
|
|
6138
6284
|
)
|
|
6139
|
-
) : null, /* @__PURE__ */
|
|
6140
|
-
|
|
6285
|
+
) : null, /* @__PURE__ */ React86.createElement(
|
|
6286
|
+
Box19,
|
|
6141
6287
|
{
|
|
6142
6288
|
ref: controlContainerRef,
|
|
6143
6289
|
"data-testid": SVG_MEDIA_CONTROL_CONTAINER_TEST_ID,
|
|
6144
6290
|
sx: { width: "100%" }
|
|
6145
6291
|
},
|
|
6146
|
-
/* @__PURE__ */
|
|
6292
|
+
/* @__PURE__ */ React86.createElement(ControlActions, null, /* @__PURE__ */ React86.createElement(StyledCard, { variant: "outlined" }, /* @__PURE__ */ React86.createElement(StyledCardMediaContainer, null, /* @__PURE__ */ React86.createElement(
|
|
6147
6293
|
SvgMediaPreview,
|
|
6148
6294
|
{
|
|
6149
6295
|
isFetching,
|
|
@@ -6151,7 +6297,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6151
6297
|
iconClassName: selectedIconClass,
|
|
6152
6298
|
iconLibrary: selectedIconLibrary
|
|
6153
6299
|
}
|
|
6154
|
-
)), /* @__PURE__ */
|
|
6300
|
+
)), /* @__PURE__ */ React86.createElement(
|
|
6155
6301
|
CardOverlay2,
|
|
6156
6302
|
{
|
|
6157
6303
|
sx: {
|
|
@@ -6160,7 +6306,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6160
6306
|
}
|
|
6161
6307
|
}
|
|
6162
6308
|
},
|
|
6163
|
-
/* @__PURE__ */
|
|
6309
|
+
/* @__PURE__ */ React86.createElement(
|
|
6164
6310
|
SvgMediaOverlay,
|
|
6165
6311
|
{
|
|
6166
6312
|
isAdmin,
|
|
@@ -6169,22 +6315,22 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
|
|
|
6169
6315
|
onSelectSvg: handleSelectSvg,
|
|
6170
6316
|
onUpload: handleUpload,
|
|
6171
6317
|
onOpenIconLibrary: handleOpenIconLibrary,
|
|
6172
|
-
infotipTitle:
|
|
6173
|
-
infotipDescription: /* @__PURE__ */
|
|
6318
|
+
infotipTitle: __36("Sorry, you can't upload that file yet.", "elementor"),
|
|
6319
|
+
infotipDescription: /* @__PURE__ */ React86.createElement(UnfilteredUploadInfotipDescription, null)
|
|
6174
6320
|
}
|
|
6175
6321
|
)
|
|
6176
6322
|
)))
|
|
6177
6323
|
));
|
|
6178
6324
|
});
|
|
6179
|
-
var UnfilteredUploadInfotipDescription = () => /* @__PURE__ */
|
|
6325
|
+
var UnfilteredUploadInfotipDescription = () => /* @__PURE__ */ React86.createElement(React86.Fragment, null, __36("To upload them anyway, ask the site administrator to enable unfiltered", "elementor"), /* @__PURE__ */ React86.createElement("br", null), __36("file uploads.", "elementor"));
|
|
6180
6326
|
|
|
6181
6327
|
// src/controls/video-media-control.tsx
|
|
6182
|
-
import * as
|
|
6328
|
+
import * as React87 from "react";
|
|
6183
6329
|
import { urlPropTypeUtil as urlPropTypeUtil5, videoSrcPropTypeUtil } from "@elementor/editor-props";
|
|
6184
6330
|
import { UploadIcon as UploadIcon3 } from "@elementor/icons";
|
|
6185
|
-
import { Button as Button6, Card as Card3, CardMedia as CardMedia3, CardOverlay as CardOverlay3, CircularProgress as CircularProgress5, Stack as
|
|
6331
|
+
import { Button as Button6, Card as Card3, CardMedia as CardMedia3, CardOverlay as CardOverlay3, CircularProgress as CircularProgress5, Stack as Stack17 } from "@elementor/ui";
|
|
6186
6332
|
import { useWpMediaAttachment as useWpMediaAttachment3, useWpMediaFrame as useWpMediaFrame3 } from "@elementor/wp-media";
|
|
6187
|
-
import { __ as
|
|
6333
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
6188
6334
|
var PLACEHOLDER_IMAGE = window.elementorCommon?.config?.urls?.assets + "/shapes/play-triangle.svg";
|
|
6189
6335
|
var VideoMediaControl = createControl(() => {
|
|
6190
6336
|
const { value, setValue, propType } = useBoundProp(videoSrcPropTypeUtil);
|
|
@@ -6214,7 +6360,7 @@ var VideoMediaControl = createControl(() => {
|
|
|
6214
6360
|
});
|
|
6215
6361
|
}
|
|
6216
6362
|
});
|
|
6217
|
-
return /* @__PURE__ */
|
|
6363
|
+
return /* @__PURE__ */ React87.createElement(ControlActions, null, /* @__PURE__ */ React87.createElement(Card3, { variant: "outlined" }, /* @__PURE__ */ React87.createElement(
|
|
6218
6364
|
CardMedia3,
|
|
6219
6365
|
{
|
|
6220
6366
|
sx: {
|
|
@@ -6229,8 +6375,8 @@ var VideoMediaControl = createControl(() => {
|
|
|
6229
6375
|
alignItems: "center"
|
|
6230
6376
|
}
|
|
6231
6377
|
},
|
|
6232
|
-
/* @__PURE__ */
|
|
6233
|
-
), /* @__PURE__ */
|
|
6378
|
+
/* @__PURE__ */ React87.createElement(VideoPreview, { isFetching, videoUrl })
|
|
6379
|
+
), /* @__PURE__ */ React87.createElement(CardOverlay3, null, /* @__PURE__ */ React87.createElement(Stack17, { gap: 1 }, /* @__PURE__ */ React87.createElement(
|
|
6234
6380
|
Button6,
|
|
6235
6381
|
{
|
|
6236
6382
|
size: "tiny",
|
|
@@ -6238,18 +6384,18 @@ var VideoMediaControl = createControl(() => {
|
|
|
6238
6384
|
variant: "outlined",
|
|
6239
6385
|
onClick: () => open({ mode: "browse" })
|
|
6240
6386
|
},
|
|
6241
|
-
|
|
6242
|
-
), /* @__PURE__ */
|
|
6387
|
+
__37("Select video", "elementor")
|
|
6388
|
+
), /* @__PURE__ */ React87.createElement(
|
|
6243
6389
|
Button6,
|
|
6244
6390
|
{
|
|
6245
6391
|
size: "tiny",
|
|
6246
6392
|
variant: "text",
|
|
6247
6393
|
color: "inherit",
|
|
6248
|
-
startIcon: /* @__PURE__ */
|
|
6394
|
+
startIcon: /* @__PURE__ */ React87.createElement(UploadIcon3, null),
|
|
6249
6395
|
onClick: () => open({ mode: "upload" })
|
|
6250
6396
|
},
|
|
6251
|
-
|
|
6252
|
-
), /* @__PURE__ */
|
|
6397
|
+
__37("Upload", "elementor")
|
|
6398
|
+
), /* @__PURE__ */ React87.createElement(
|
|
6253
6399
|
Button6,
|
|
6254
6400
|
{
|
|
6255
6401
|
size: "tiny",
|
|
@@ -6257,18 +6403,18 @@ var VideoMediaControl = createControl(() => {
|
|
|
6257
6403
|
color: "inherit",
|
|
6258
6404
|
onClick: () => open({ mode: "url", currentUrl: currentUrlForModal })
|
|
6259
6405
|
},
|
|
6260
|
-
|
|
6406
|
+
__37("Insert from URL", "elementor")
|
|
6261
6407
|
)))));
|
|
6262
6408
|
});
|
|
6263
6409
|
var VideoPreview = ({ isFetching = false, videoUrl }) => {
|
|
6264
6410
|
if (isFetching) {
|
|
6265
|
-
return /* @__PURE__ */
|
|
6411
|
+
return /* @__PURE__ */ React87.createElement(CircularProgress5, null);
|
|
6266
6412
|
}
|
|
6267
6413
|
if (videoUrl) {
|
|
6268
|
-
return /* @__PURE__ */
|
|
6414
|
+
return /* @__PURE__ */ React87.createElement(
|
|
6269
6415
|
"video",
|
|
6270
6416
|
{
|
|
6271
|
-
"aria-label":
|
|
6417
|
+
"aria-label": __37("Video preview", "elementor"),
|
|
6272
6418
|
src: videoUrl,
|
|
6273
6419
|
muted: true,
|
|
6274
6420
|
preload: "metadata",
|
|
@@ -6281,33 +6427,33 @@ var VideoPreview = ({ isFetching = false, videoUrl }) => {
|
|
|
6281
6427
|
}
|
|
6282
6428
|
);
|
|
6283
6429
|
}
|
|
6284
|
-
return /* @__PURE__ */
|
|
6430
|
+
return /* @__PURE__ */ React87.createElement("img", { src: PLACEHOLDER_IMAGE, alt: "No video selected" });
|
|
6285
6431
|
};
|
|
6286
6432
|
|
|
6287
6433
|
// src/controls/background-control/background-control.tsx
|
|
6288
|
-
import * as
|
|
6434
|
+
import * as React94 from "react";
|
|
6289
6435
|
import { backgroundPropTypeUtil } from "@elementor/editor-props";
|
|
6290
6436
|
import { Grid as Grid18 } from "@elementor/ui";
|
|
6291
|
-
import { __ as
|
|
6437
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
6292
6438
|
|
|
6293
6439
|
// src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx
|
|
6294
|
-
import * as
|
|
6440
|
+
import * as React93 from "react";
|
|
6295
6441
|
import {
|
|
6296
6442
|
backgroundColorOverlayPropTypeUtil as backgroundColorOverlayPropTypeUtil2,
|
|
6297
6443
|
backgroundImageOverlayPropTypeUtil as backgroundImageOverlayPropTypeUtil2,
|
|
6298
6444
|
backgroundOverlayPropTypeUtil,
|
|
6299
6445
|
colorPropTypeUtil as colorPropTypeUtil3
|
|
6300
6446
|
} from "@elementor/editor-props";
|
|
6301
|
-
import { Box as
|
|
6447
|
+
import { Box as Box20, CardMedia as CardMedia4, styled as styled12, Tab, TabPanel, Tabs, UnstableColorIndicator as UnstableColorIndicator3 } from "@elementor/ui";
|
|
6302
6448
|
import { useWpMediaAttachment as useWpMediaAttachment4 } from "@elementor/wp-media";
|
|
6303
|
-
import { __ as
|
|
6449
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
6304
6450
|
|
|
6305
6451
|
// src/env.ts
|
|
6306
6452
|
import { parseEnv } from "@elementor/env";
|
|
6307
6453
|
var { env } = parseEnv("@elementor/editor-controls");
|
|
6308
6454
|
|
|
6309
6455
|
// src/controls/background-control/background-gradient-color-control.tsx
|
|
6310
|
-
import * as
|
|
6456
|
+
import * as React88 from "react";
|
|
6311
6457
|
import {
|
|
6312
6458
|
backgroundGradientOverlayPropTypeUtil,
|
|
6313
6459
|
colorPropTypeUtil as colorPropTypeUtil2,
|
|
@@ -6354,7 +6500,7 @@ var BackgroundGradientColorControl = createControl(() => {
|
|
|
6354
6500
|
positions: positions?.value.split(" ")
|
|
6355
6501
|
};
|
|
6356
6502
|
};
|
|
6357
|
-
return /* @__PURE__ */
|
|
6503
|
+
return /* @__PURE__ */ React88.createElement(
|
|
6358
6504
|
UnstableGradientBox,
|
|
6359
6505
|
{
|
|
6360
6506
|
sx: { width: "auto", padding: 1.5 },
|
|
@@ -6379,47 +6525,47 @@ var initialBackgroundGradientOverlay = backgroundGradientOverlayPropTypeUtil.cre
|
|
|
6379
6525
|
});
|
|
6380
6526
|
|
|
6381
6527
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-attachment.tsx
|
|
6382
|
-
import * as
|
|
6528
|
+
import * as React89 from "react";
|
|
6383
6529
|
import { PinIcon, PinnedOffIcon } from "@elementor/icons";
|
|
6384
6530
|
import { Grid as Grid14 } from "@elementor/ui";
|
|
6385
|
-
import { __ as
|
|
6531
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
6386
6532
|
var attachmentControlOptions = [
|
|
6387
6533
|
{
|
|
6388
6534
|
value: "fixed",
|
|
6389
|
-
label:
|
|
6390
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6535
|
+
label: __38("Fixed", "elementor"),
|
|
6536
|
+
renderContent: ({ size }) => /* @__PURE__ */ React89.createElement(PinIcon, { fontSize: size }),
|
|
6391
6537
|
showTooltip: true
|
|
6392
6538
|
},
|
|
6393
6539
|
{
|
|
6394
6540
|
value: "scroll",
|
|
6395
|
-
label:
|
|
6396
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6541
|
+
label: __38("Scroll", "elementor"),
|
|
6542
|
+
renderContent: ({ size }) => /* @__PURE__ */ React89.createElement(PinnedOffIcon, { fontSize: size }),
|
|
6397
6543
|
showTooltip: true
|
|
6398
6544
|
}
|
|
6399
6545
|
];
|
|
6400
6546
|
var BackgroundImageOverlayAttachment = () => {
|
|
6401
|
-
return /* @__PURE__ */
|
|
6547
|
+
return /* @__PURE__ */ React89.createElement(PopoverGridContainer, null, /* @__PURE__ */ React89.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React89.createElement(ControlFormLabel, null, __38("Attachment", "elementor"))), /* @__PURE__ */ React89.createElement(Grid14, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React89.createElement(ToggleControl, { options: attachmentControlOptions })));
|
|
6402
6548
|
};
|
|
6403
6549
|
|
|
6404
6550
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-position.tsx
|
|
6405
|
-
import * as
|
|
6551
|
+
import * as React90 from "react";
|
|
6406
6552
|
import { useRef as useRef16 } from "react";
|
|
6407
6553
|
import { backgroundImagePositionOffsetPropTypeUtil, stringPropTypeUtil as stringPropTypeUtil16 } from "@elementor/editor-props";
|
|
6408
6554
|
import { MenuListItem as MenuListItem6 } from "@elementor/editor-ui";
|
|
6409
6555
|
import { LetterXIcon, LetterYIcon } from "@elementor/icons";
|
|
6410
6556
|
import { Grid as Grid15, Select as Select4 } from "@elementor/ui";
|
|
6411
|
-
import { __ as
|
|
6557
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
6412
6558
|
var backgroundPositionOptions = [
|
|
6413
|
-
{ label:
|
|
6414
|
-
{ label:
|
|
6415
|
-
{ label:
|
|
6416
|
-
{ label:
|
|
6417
|
-
{ label:
|
|
6418
|
-
{ label:
|
|
6419
|
-
{ label:
|
|
6420
|
-
{ label:
|
|
6421
|
-
{ label:
|
|
6422
|
-
{ label:
|
|
6559
|
+
{ label: __39("Center center", "elementor"), value: "center center" },
|
|
6560
|
+
{ label: __39("Center left", "elementor"), value: "center left" },
|
|
6561
|
+
{ label: __39("Center right", "elementor"), value: "center right" },
|
|
6562
|
+
{ label: __39("Top center", "elementor"), value: "top center" },
|
|
6563
|
+
{ label: __39("Top left", "elementor"), value: "top left" },
|
|
6564
|
+
{ label: __39("Top right", "elementor"), value: "top right" },
|
|
6565
|
+
{ label: __39("Bottom center", "elementor"), value: "bottom center" },
|
|
6566
|
+
{ label: __39("Bottom left", "elementor"), value: "bottom left" },
|
|
6567
|
+
{ label: __39("Bottom right", "elementor"), value: "bottom right" },
|
|
6568
|
+
{ label: __39("Custom", "elementor"), value: "custom" }
|
|
6423
6569
|
];
|
|
6424
6570
|
var BackgroundImageOverlayPosition = () => {
|
|
6425
6571
|
const backgroundImageOffsetContext = useBoundProp(backgroundImagePositionOffsetPropTypeUtil);
|
|
@@ -6434,7 +6580,7 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
6434
6580
|
stringPropContext.setValue(value);
|
|
6435
6581
|
}
|
|
6436
6582
|
};
|
|
6437
|
-
return /* @__PURE__ */
|
|
6583
|
+
return /* @__PURE__ */ React90.createElement(Grid15, { container: true, spacing: 1.5 }, /* @__PURE__ */ React90.createElement(Grid15, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(PopoverGridContainer, null, /* @__PURE__ */ React90.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React90.createElement(ControlFormLabel, null, __39("Position", "elementor"))), /* @__PURE__ */ React90.createElement(Grid15, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React90.createElement(ControlActions, null, /* @__PURE__ */ React90.createElement(
|
|
6438
6584
|
Select4,
|
|
6439
6585
|
{
|
|
6440
6586
|
fullWidth: true,
|
|
@@ -6443,18 +6589,18 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
6443
6589
|
disabled: stringPropContext.disabled,
|
|
6444
6590
|
value: (backgroundImageOffsetContext.value ? "custom" : stringPropContext.value) ?? ""
|
|
6445
6591
|
},
|
|
6446
|
-
backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */
|
|
6447
|
-
))))), isCustom ? /* @__PURE__ */
|
|
6592
|
+
backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React90.createElement(MenuListItem6, { key: value, value: value ?? "" }, label))
|
|
6593
|
+
))))), isCustom ? /* @__PURE__ */ React90.createElement(PropProvider, { ...backgroundImageOffsetContext }, /* @__PURE__ */ React90.createElement(Grid15, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(Grid15, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React90.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React90.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React90.createElement(
|
|
6448
6594
|
SizeControl,
|
|
6449
6595
|
{
|
|
6450
|
-
startIcon: /* @__PURE__ */
|
|
6596
|
+
startIcon: /* @__PURE__ */ React90.createElement(LetterXIcon, { fontSize: "tiny" }),
|
|
6451
6597
|
anchorRef: rowRef,
|
|
6452
6598
|
min: -Number.MAX_SAFE_INTEGER
|
|
6453
6599
|
}
|
|
6454
|
-
))), /* @__PURE__ */
|
|
6600
|
+
))), /* @__PURE__ */ React90.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React90.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React90.createElement(
|
|
6455
6601
|
SizeControl,
|
|
6456
6602
|
{
|
|
6457
|
-
startIcon: /* @__PURE__ */
|
|
6603
|
+
startIcon: /* @__PURE__ */ React90.createElement(LetterYIcon, { fontSize: "tiny" }),
|
|
6458
6604
|
anchorRef: rowRef,
|
|
6459
6605
|
min: -Number.MAX_SAFE_INTEGER
|
|
6460
6606
|
}
|
|
@@ -6462,42 +6608,42 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
6462
6608
|
};
|
|
6463
6609
|
|
|
6464
6610
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-repeat.tsx
|
|
6465
|
-
import * as
|
|
6611
|
+
import * as React91 from "react";
|
|
6466
6612
|
import { DotsHorizontalIcon, DotsVerticalIcon, GridDotsIcon, XIcon as XIcon3 } from "@elementor/icons";
|
|
6467
6613
|
import { Grid as Grid16 } from "@elementor/ui";
|
|
6468
|
-
import { __ as
|
|
6614
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
6469
6615
|
var repeatControlOptions = [
|
|
6470
6616
|
{
|
|
6471
6617
|
value: "repeat",
|
|
6472
|
-
label:
|
|
6473
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6618
|
+
label: __40("Repeat", "elementor"),
|
|
6619
|
+
renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(GridDotsIcon, { fontSize: size }),
|
|
6474
6620
|
showTooltip: true
|
|
6475
6621
|
},
|
|
6476
6622
|
{
|
|
6477
6623
|
value: "repeat-x",
|
|
6478
|
-
label:
|
|
6479
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6624
|
+
label: __40("Repeat-x", "elementor"),
|
|
6625
|
+
renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(DotsHorizontalIcon, { fontSize: size }),
|
|
6480
6626
|
showTooltip: true
|
|
6481
6627
|
},
|
|
6482
6628
|
{
|
|
6483
6629
|
value: "repeat-y",
|
|
6484
|
-
label:
|
|
6485
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6630
|
+
label: __40("Repeat-y", "elementor"),
|
|
6631
|
+
renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(DotsVerticalIcon, { fontSize: size }),
|
|
6486
6632
|
showTooltip: true
|
|
6487
6633
|
},
|
|
6488
6634
|
{
|
|
6489
6635
|
value: "no-repeat",
|
|
6490
|
-
label:
|
|
6491
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6636
|
+
label: __40("No-repeat", "elementor"),
|
|
6637
|
+
renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(XIcon3, { fontSize: size }),
|
|
6492
6638
|
showTooltip: true
|
|
6493
6639
|
}
|
|
6494
6640
|
];
|
|
6495
6641
|
var BackgroundImageOverlayRepeat = () => {
|
|
6496
|
-
return /* @__PURE__ */
|
|
6642
|
+
return /* @__PURE__ */ React91.createElement(PopoverGridContainer, null, /* @__PURE__ */ React91.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React91.createElement(ControlFormLabel, null, __40("Repeat", "elementor"))), /* @__PURE__ */ React91.createElement(Grid16, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React91.createElement(ToggleControl, { options: repeatControlOptions })));
|
|
6497
6643
|
};
|
|
6498
6644
|
|
|
6499
6645
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-size.tsx
|
|
6500
|
-
import * as
|
|
6646
|
+
import * as React92 from "react";
|
|
6501
6647
|
import { useRef as useRef17 } from "react";
|
|
6502
6648
|
import { backgroundImageSizeScalePropTypeUtil, stringPropTypeUtil as stringPropTypeUtil17 } from "@elementor/editor-props";
|
|
6503
6649
|
import {
|
|
@@ -6509,30 +6655,30 @@ import {
|
|
|
6509
6655
|
PencilIcon
|
|
6510
6656
|
} from "@elementor/icons";
|
|
6511
6657
|
import { Grid as Grid17 } from "@elementor/ui";
|
|
6512
|
-
import { __ as
|
|
6658
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
6513
6659
|
var sizeControlOptions = [
|
|
6514
6660
|
{
|
|
6515
6661
|
value: "auto",
|
|
6516
|
-
label:
|
|
6517
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6662
|
+
label: __41("Auto", "elementor"),
|
|
6663
|
+
renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(LetterAIcon, { fontSize: size }),
|
|
6518
6664
|
showTooltip: true
|
|
6519
6665
|
},
|
|
6520
6666
|
{
|
|
6521
6667
|
value: "cover",
|
|
6522
|
-
label:
|
|
6523
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6668
|
+
label: __41("Cover", "elementor"),
|
|
6669
|
+
renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(ArrowsMaximizeIcon, { fontSize: size }),
|
|
6524
6670
|
showTooltip: true
|
|
6525
6671
|
},
|
|
6526
6672
|
{
|
|
6527
6673
|
value: "contain",
|
|
6528
|
-
label:
|
|
6529
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6674
|
+
label: __41("Contain", "elementor"),
|
|
6675
|
+
renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(ArrowBarBothIcon, { fontSize: size }),
|
|
6530
6676
|
showTooltip: true
|
|
6531
6677
|
},
|
|
6532
6678
|
{
|
|
6533
6679
|
value: "custom",
|
|
6534
|
-
label:
|
|
6535
|
-
renderContent: ({ size }) => /* @__PURE__ */
|
|
6680
|
+
label: __41("Custom", "elementor"),
|
|
6681
|
+
renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(PencilIcon, { fontSize: size }),
|
|
6536
6682
|
showTooltip: true
|
|
6537
6683
|
}
|
|
6538
6684
|
];
|
|
@@ -6548,7 +6694,7 @@ var BackgroundImageOverlaySize = () => {
|
|
|
6548
6694
|
stringPropContext.setValue(size);
|
|
6549
6695
|
}
|
|
6550
6696
|
};
|
|
6551
|
-
return /* @__PURE__ */
|
|
6697
|
+
return /* @__PURE__ */ React92.createElement(Grid17, { container: true, spacing: 1.5 }, /* @__PURE__ */ React92.createElement(Grid17, { item: true, xs: 12 }, /* @__PURE__ */ React92.createElement(PopoverGridContainer, null, /* @__PURE__ */ React92.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(ControlFormLabel, null, __41("Size", "elementor"))), /* @__PURE__ */ React92.createElement(Grid17, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React92.createElement(
|
|
6552
6698
|
ControlToggleButtonGroup,
|
|
6553
6699
|
{
|
|
6554
6700
|
exclusive: true,
|
|
@@ -6557,17 +6703,17 @@ var BackgroundImageOverlaySize = () => {
|
|
|
6557
6703
|
disabled: stringPropContext.disabled,
|
|
6558
6704
|
value: backgroundImageScaleContext.value ? "custom" : stringPropContext.value
|
|
6559
6705
|
}
|
|
6560
|
-
)))), isCustom ? /* @__PURE__ */
|
|
6706
|
+
)))), isCustom ? /* @__PURE__ */ React92.createElement(PropProvider, { ...backgroundImageScaleContext }, /* @__PURE__ */ React92.createElement(Grid17, { item: true, xs: 12, ref: rowRef }, /* @__PURE__ */ React92.createElement(PopoverGridContainer, null, /* @__PURE__ */ React92.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(PropKeyProvider, { bind: "width" }, /* @__PURE__ */ React92.createElement(
|
|
6561
6707
|
SizeControl,
|
|
6562
6708
|
{
|
|
6563
|
-
startIcon: /* @__PURE__ */
|
|
6709
|
+
startIcon: /* @__PURE__ */ React92.createElement(ArrowsMoveHorizontalIcon2, { fontSize: "tiny" }),
|
|
6564
6710
|
extendedOptions: ["auto"],
|
|
6565
6711
|
anchorRef: rowRef
|
|
6566
6712
|
}
|
|
6567
|
-
))), /* @__PURE__ */
|
|
6713
|
+
))), /* @__PURE__ */ React92.createElement(Grid17, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(PropKeyProvider, { bind: "height" }, /* @__PURE__ */ React92.createElement(
|
|
6568
6714
|
SizeControl,
|
|
6569
6715
|
{
|
|
6570
|
-
startIcon: /* @__PURE__ */
|
|
6716
|
+
startIcon: /* @__PURE__ */ React92.createElement(ArrowsMoveVerticalIcon2, { fontSize: "tiny" }),
|
|
6571
6717
|
extendedOptions: ["auto"],
|
|
6572
6718
|
anchorRef: rowRef
|
|
6573
6719
|
}
|
|
@@ -6668,29 +6814,29 @@ var getInitialBackgroundOverlay = () => ({
|
|
|
6668
6814
|
}
|
|
6669
6815
|
});
|
|
6670
6816
|
var backgroundResolutionOptions = [
|
|
6671
|
-
{ label:
|
|
6672
|
-
{ label:
|
|
6673
|
-
{ label:
|
|
6674
|
-
{ label:
|
|
6817
|
+
{ label: __42("Thumbnail - 150 x 150", "elementor"), value: "thumbnail" },
|
|
6818
|
+
{ label: __42("Medium - 300 x 300", "elementor"), value: "medium" },
|
|
6819
|
+
{ label: __42("Large 1024 x 1024", "elementor"), value: "large" },
|
|
6820
|
+
{ label: __42("Full", "elementor"), value: "full" }
|
|
6675
6821
|
];
|
|
6676
6822
|
var BackgroundOverlayRepeaterControl = createControl(() => {
|
|
6677
6823
|
const { propType, value: overlayValues, setValue } = useBoundProp(backgroundOverlayPropTypeUtil);
|
|
6678
|
-
return /* @__PURE__ */
|
|
6824
|
+
return /* @__PURE__ */ React93.createElement(PropProvider, { propType, value: overlayValues, setValue }, /* @__PURE__ */ React93.createElement(
|
|
6679
6825
|
ControlRepeater,
|
|
6680
6826
|
{
|
|
6681
6827
|
initial: getInitialBackgroundOverlay(),
|
|
6682
6828
|
propTypeUtil: backgroundOverlayPropTypeUtil
|
|
6683
6829
|
},
|
|
6684
|
-
/* @__PURE__ */
|
|
6685
|
-
/* @__PURE__ */
|
|
6830
|
+
/* @__PURE__ */ React93.createElement(RepeaterHeader, { label: __42("Overlay", "elementor") }, /* @__PURE__ */ React93.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
|
|
6831
|
+
/* @__PURE__ */ React93.createElement(ItemsContainer, null, /* @__PURE__ */ React93.createElement(
|
|
6686
6832
|
Item,
|
|
6687
6833
|
{
|
|
6688
6834
|
Icon: ItemIcon2,
|
|
6689
6835
|
Label: ItemLabel3,
|
|
6690
|
-
actions: /* @__PURE__ */
|
|
6836
|
+
actions: /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(DuplicateItemAction, null), /* @__PURE__ */ React93.createElement(DisableItemAction, null), /* @__PURE__ */ React93.createElement(RemoveItemAction, null))
|
|
6691
6837
|
}
|
|
6692
6838
|
)),
|
|
6693
|
-
/* @__PURE__ */
|
|
6839
|
+
/* @__PURE__ */ React93.createElement(EditItemPopover, null, /* @__PURE__ */ React93.createElement(ItemContent2, null))
|
|
6694
6840
|
));
|
|
6695
6841
|
});
|
|
6696
6842
|
var ItemContent2 = () => {
|
|
@@ -6700,27 +6846,27 @@ var ItemContent2 = () => {
|
|
|
6700
6846
|
gradient: initialBackgroundGradientOverlay.value
|
|
6701
6847
|
});
|
|
6702
6848
|
const { rowRef } = useRepeaterContext();
|
|
6703
|
-
return /* @__PURE__ */
|
|
6849
|
+
return /* @__PURE__ */ React93.createElement(Box20, { sx: { width: "100%" } }, /* @__PURE__ */ React93.createElement(Box20, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React93.createElement(
|
|
6704
6850
|
Tabs,
|
|
6705
6851
|
{
|
|
6706
6852
|
size: "small",
|
|
6707
6853
|
variant: "fullWidth",
|
|
6708
6854
|
...getTabsProps(),
|
|
6709
|
-
"aria-label":
|
|
6855
|
+
"aria-label": __42("Background Overlay", "elementor")
|
|
6710
6856
|
},
|
|
6711
|
-
/* @__PURE__ */
|
|
6712
|
-
/* @__PURE__ */
|
|
6713
|
-
/* @__PURE__ */
|
|
6714
|
-
)), /* @__PURE__ */
|
|
6857
|
+
/* @__PURE__ */ React93.createElement(Tab, { label: __42("Image", "elementor"), ...getTabProps("image") }),
|
|
6858
|
+
/* @__PURE__ */ React93.createElement(Tab, { label: __42("Gradient", "elementor"), ...getTabProps("gradient") }),
|
|
6859
|
+
/* @__PURE__ */ React93.createElement(Tab, { label: __42("Color", "elementor"), ...getTabProps("color") })
|
|
6860
|
+
)), /* @__PURE__ */ React93.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React93.createElement(PopoverContent, null, /* @__PURE__ */ React93.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React93.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React93.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React93.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React93.createElement(PopoverContent, null, /* @__PURE__ */ React93.createElement(ColorOverlayContent, { anchorEl: rowRef }))));
|
|
6715
6861
|
};
|
|
6716
6862
|
var ItemIcon2 = ({ value }) => {
|
|
6717
6863
|
switch (value.$$type) {
|
|
6718
6864
|
case "background-image-overlay":
|
|
6719
|
-
return /* @__PURE__ */
|
|
6865
|
+
return /* @__PURE__ */ React93.createElement(ItemIconImage, { value });
|
|
6720
6866
|
case "background-color-overlay":
|
|
6721
|
-
return /* @__PURE__ */
|
|
6867
|
+
return /* @__PURE__ */ React93.createElement(ItemIconColor, { value });
|
|
6722
6868
|
case "background-gradient-overlay":
|
|
6723
|
-
return /* @__PURE__ */
|
|
6869
|
+
return /* @__PURE__ */ React93.createElement(ItemIconGradient, { value });
|
|
6724
6870
|
default:
|
|
6725
6871
|
return null;
|
|
6726
6872
|
}
|
|
@@ -6733,11 +6879,11 @@ var extractColorFrom = (prop) => {
|
|
|
6733
6879
|
};
|
|
6734
6880
|
var ItemIconColor = ({ value: prop }) => {
|
|
6735
6881
|
const color = extractColorFrom(prop);
|
|
6736
|
-
return /* @__PURE__ */
|
|
6882
|
+
return /* @__PURE__ */ React93.createElement(StyledUnstableColorIndicator3, { size: "inherit", component: "span", value: color });
|
|
6737
6883
|
};
|
|
6738
6884
|
var ItemIconImage = ({ value }) => {
|
|
6739
6885
|
const { imageUrl } = useImage(value);
|
|
6740
|
-
return /* @__PURE__ */
|
|
6886
|
+
return /* @__PURE__ */ React93.createElement(
|
|
6741
6887
|
CardMedia4,
|
|
6742
6888
|
{
|
|
6743
6889
|
image: imageUrl,
|
|
@@ -6752,41 +6898,41 @@ var ItemIconImage = ({ value }) => {
|
|
|
6752
6898
|
};
|
|
6753
6899
|
var ItemIconGradient = ({ value }) => {
|
|
6754
6900
|
const gradient = getGradientValue(value);
|
|
6755
|
-
return /* @__PURE__ */
|
|
6901
|
+
return /* @__PURE__ */ React93.createElement(StyledUnstableColorIndicator3, { size: "inherit", component: "span", value: gradient });
|
|
6756
6902
|
};
|
|
6757
6903
|
var ItemLabel3 = ({ value }) => {
|
|
6758
6904
|
switch (value.$$type) {
|
|
6759
6905
|
case "background-image-overlay":
|
|
6760
|
-
return /* @__PURE__ */
|
|
6906
|
+
return /* @__PURE__ */ React93.createElement(ItemLabelImage, { value });
|
|
6761
6907
|
case "background-color-overlay":
|
|
6762
|
-
return /* @__PURE__ */
|
|
6908
|
+
return /* @__PURE__ */ React93.createElement(ItemLabelColor, { value });
|
|
6763
6909
|
case "background-gradient-overlay":
|
|
6764
|
-
return /* @__PURE__ */
|
|
6910
|
+
return /* @__PURE__ */ React93.createElement(ItemLabelGradient, { value });
|
|
6765
6911
|
default:
|
|
6766
6912
|
return null;
|
|
6767
6913
|
}
|
|
6768
6914
|
};
|
|
6769
6915
|
var ItemLabelColor = ({ value: prop }) => {
|
|
6770
6916
|
const color = extractColorFrom(prop);
|
|
6771
|
-
return /* @__PURE__ */
|
|
6917
|
+
return /* @__PURE__ */ React93.createElement("span", null, color);
|
|
6772
6918
|
};
|
|
6773
6919
|
var ItemLabelImage = ({ value }) => {
|
|
6774
6920
|
const { imageTitle } = useImage(value);
|
|
6775
|
-
return /* @__PURE__ */
|
|
6921
|
+
return /* @__PURE__ */ React93.createElement("span", null, imageTitle);
|
|
6776
6922
|
};
|
|
6777
6923
|
var ItemLabelGradient = ({ value }) => {
|
|
6778
6924
|
if (value.value.type.value === "linear") {
|
|
6779
|
-
return /* @__PURE__ */
|
|
6925
|
+
return /* @__PURE__ */ React93.createElement("span", null, __42("Linear Gradient", "elementor"));
|
|
6780
6926
|
}
|
|
6781
|
-
return /* @__PURE__ */
|
|
6927
|
+
return /* @__PURE__ */ React93.createElement("span", null, __42("Radial Gradient", "elementor"));
|
|
6782
6928
|
};
|
|
6783
6929
|
var ColorOverlayContent = ({ anchorEl }) => {
|
|
6784
6930
|
const propContext = useBoundProp(backgroundColorOverlayPropTypeUtil2);
|
|
6785
|
-
return /* @__PURE__ */
|
|
6931
|
+
return /* @__PURE__ */ React93.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React93.createElement(ColorControl, { anchorEl })));
|
|
6786
6932
|
};
|
|
6787
6933
|
var ImageOverlayContent = () => {
|
|
6788
6934
|
const propContext = useBoundProp(backgroundImageOverlayPropTypeUtil2);
|
|
6789
|
-
return /* @__PURE__ */
|
|
6935
|
+
return /* @__PURE__ */ React93.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React93.createElement(ImageControl, { sizes: backgroundResolutionOptions })), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "position" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlayPosition, null)), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "repeat" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlayRepeat, null)), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlaySize, null)), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "attachment" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlayAttachment, null)));
|
|
6790
6936
|
};
|
|
6791
6937
|
var StyledUnstableColorIndicator3 = styled12(UnstableColorIndicator3)(({ theme }) => ({
|
|
6792
6938
|
height: "1rem",
|
|
@@ -6827,29 +6973,29 @@ var getGradientValue = (value) => {
|
|
|
6827
6973
|
|
|
6828
6974
|
// src/controls/background-control/background-control.tsx
|
|
6829
6975
|
var clipOptions = [
|
|
6830
|
-
{ label:
|
|
6831
|
-
{ label:
|
|
6832
|
-
{ label:
|
|
6833
|
-
{ label:
|
|
6976
|
+
{ label: __43("Full element", "elementor"), value: "border-box" },
|
|
6977
|
+
{ label: __43("Padding edges", "elementor"), value: "padding-box" },
|
|
6978
|
+
{ label: __43("Content edges", "elementor"), value: "content-box" },
|
|
6979
|
+
{ label: __43("Text", "elementor"), value: "text" }
|
|
6834
6980
|
];
|
|
6835
|
-
var colorLabel =
|
|
6836
|
-
var clipLabel =
|
|
6981
|
+
var colorLabel = __43("Color", "elementor");
|
|
6982
|
+
var clipLabel = __43("Clipping", "elementor");
|
|
6837
6983
|
var BackgroundControl = createControl(() => {
|
|
6838
6984
|
const propContext = useBoundProp(backgroundPropTypeUtil);
|
|
6839
|
-
return /* @__PURE__ */
|
|
6985
|
+
return /* @__PURE__ */ React94.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "background-overlay" }, /* @__PURE__ */ React94.createElement(BackgroundOverlayRepeaterControl, null)), /* @__PURE__ */ React94.createElement(BackgroundColorField, null), /* @__PURE__ */ React94.createElement(BackgroundClipField, null));
|
|
6840
6986
|
});
|
|
6841
6987
|
var BackgroundColorField = () => {
|
|
6842
|
-
return /* @__PURE__ */
|
|
6988
|
+
return /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React94.createElement(Grid18, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React94.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ControlLabel, null, colorLabel)), /* @__PURE__ */ React94.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ColorControl, null))));
|
|
6843
6989
|
};
|
|
6844
6990
|
var BackgroundClipField = () => {
|
|
6845
|
-
return /* @__PURE__ */
|
|
6991
|
+
return /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "clip" }, /* @__PURE__ */ React94.createElement(Grid18, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React94.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ControlLabel, null, clipLabel)), /* @__PURE__ */ React94.createElement(Grid18, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(SelectControl, { options: clipOptions }))));
|
|
6846
6992
|
};
|
|
6847
6993
|
|
|
6848
6994
|
// src/controls/repeatable-control.tsx
|
|
6849
|
-
import * as
|
|
6995
|
+
import * as React95 from "react";
|
|
6850
6996
|
import { useMemo as useMemo13 } from "react";
|
|
6851
6997
|
import { createArrayPropUtils as createArrayPropUtils2 } from "@elementor/editor-props";
|
|
6852
|
-
import { Box as
|
|
6998
|
+
import { Box as Box21 } from "@elementor/ui";
|
|
6853
6999
|
var PLACEHOLDER_REGEX = /\$\{([^}]+)\}/g;
|
|
6854
7000
|
var RepeatableControl = createControl(
|
|
6855
7001
|
({
|
|
@@ -6882,14 +7028,14 @@ var RepeatableControl = createControl(
|
|
|
6882
7028
|
);
|
|
6883
7029
|
const { propType, value, setValue } = useBoundProp(childArrayPropTypeUtil2);
|
|
6884
7030
|
const newItemIndex = addItemTooltipProps?.newItemIndex === null ? void 0 : 0;
|
|
6885
|
-
return /* @__PURE__ */
|
|
7031
|
+
return /* @__PURE__ */ React95.createElement(PropProvider, { propType, value, setValue }, /* @__PURE__ */ React95.createElement(RepeatableControlContext.Provider, { value: contextValue }, /* @__PURE__ */ React95.createElement(
|
|
6886
7032
|
ControlRepeater,
|
|
6887
7033
|
{
|
|
6888
7034
|
initial: childPropTypeUtil.create(initialValues || null),
|
|
6889
7035
|
propTypeUtil: childArrayPropTypeUtil2,
|
|
6890
7036
|
isItemDisabled: isItemDisabled2
|
|
6891
7037
|
},
|
|
6892
|
-
/* @__PURE__ */
|
|
7038
|
+
/* @__PURE__ */ React95.createElement(RepeaterHeader, { label: repeaterLabel }, /* @__PURE__ */ React95.createElement(
|
|
6893
7039
|
TooltipAddItemAction,
|
|
6894
7040
|
{
|
|
6895
7041
|
...addItemTooltipProps,
|
|
@@ -6897,22 +7043,22 @@ var RepeatableControl = createControl(
|
|
|
6897
7043
|
ariaLabel: repeaterLabel
|
|
6898
7044
|
}
|
|
6899
7045
|
)),
|
|
6900
|
-
/* @__PURE__ */
|
|
7046
|
+
/* @__PURE__ */ React95.createElement(ItemsContainer, { isSortable }, /* @__PURE__ */ React95.createElement(
|
|
6901
7047
|
Item,
|
|
6902
7048
|
{
|
|
6903
7049
|
Icon: ItemIcon3,
|
|
6904
7050
|
Label: ItemLabel4,
|
|
6905
|
-
actions: /* @__PURE__ */
|
|
7051
|
+
actions: /* @__PURE__ */ React95.createElement(React95.Fragment, null, showDuplicate && /* @__PURE__ */ React95.createElement(DuplicateItemAction, null), showToggle && /* @__PURE__ */ React95.createElement(DisableItemAction, null), /* @__PURE__ */ React95.createElement(RemoveItemAction, null))
|
|
6906
7052
|
}
|
|
6907
7053
|
)),
|
|
6908
|
-
/* @__PURE__ */
|
|
7054
|
+
/* @__PURE__ */ React95.createElement(EditItemPopover, null, /* @__PURE__ */ React95.createElement(Content2, null))
|
|
6909
7055
|
)));
|
|
6910
7056
|
}
|
|
6911
7057
|
);
|
|
6912
|
-
var ItemIcon3 = () => /* @__PURE__ */
|
|
7058
|
+
var ItemIcon3 = () => /* @__PURE__ */ React95.createElement(React95.Fragment, null);
|
|
6913
7059
|
var Content2 = () => {
|
|
6914
7060
|
const { component: ChildControl, props = {} } = useRepeatableControlContext();
|
|
6915
|
-
return /* @__PURE__ */
|
|
7061
|
+
return /* @__PURE__ */ React95.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React95.createElement(PopoverGridContainer, null, /* @__PURE__ */ React95.createElement(ChildControl, { ...props })));
|
|
6916
7062
|
};
|
|
6917
7063
|
var interpolate = (template, data) => {
|
|
6918
7064
|
if (!data) {
|
|
@@ -6995,7 +7141,7 @@ var ItemLabel4 = ({ value }) => {
|
|
|
6995
7141
|
const label = showPlaceholder ? placeholder : interpolate(patternLabel, value);
|
|
6996
7142
|
const isReadOnly = !!childProps?.readOnly;
|
|
6997
7143
|
const color = getTextColor(isReadOnly, showPlaceholder);
|
|
6998
|
-
return /* @__PURE__ */
|
|
7144
|
+
return /* @__PURE__ */ React95.createElement(Box21, { component: "span", color }, label);
|
|
6999
7145
|
};
|
|
7000
7146
|
var getAllProperties = (pattern) => {
|
|
7001
7147
|
const properties = pattern.match(PLACEHOLDER_REGEX)?.map((match) => match.slice(2, -1)) || [];
|
|
@@ -7003,15 +7149,15 @@ var getAllProperties = (pattern) => {
|
|
|
7003
7149
|
};
|
|
7004
7150
|
|
|
7005
7151
|
// src/controls/key-value-control.tsx
|
|
7006
|
-
import * as
|
|
7007
|
-
import { useMemo as useMemo14, useState as
|
|
7152
|
+
import * as React96 from "react";
|
|
7153
|
+
import { useMemo as useMemo14, useState as useState18 } from "react";
|
|
7008
7154
|
import {
|
|
7009
7155
|
isTransformable,
|
|
7010
7156
|
keyValuePropTypeUtil,
|
|
7011
7157
|
stringPropTypeUtil as stringPropTypeUtil18
|
|
7012
7158
|
} from "@elementor/editor-props";
|
|
7013
7159
|
import { FormHelperText, FormLabel as FormLabel3, Grid as Grid19 } from "@elementor/ui";
|
|
7014
|
-
import { __ as
|
|
7160
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
7015
7161
|
|
|
7016
7162
|
// src/utils/escape-html-attr.ts
|
|
7017
7163
|
var escapeHtmlAttr = (value) => {
|
|
@@ -7035,14 +7181,14 @@ var getInitialFieldValue = (fieldValue) => {
|
|
|
7035
7181
|
};
|
|
7036
7182
|
var KeyValueControl = createControl((props = {}) => {
|
|
7037
7183
|
const { value, setValue, ...propContext } = useBoundProp(keyValuePropTypeUtil);
|
|
7038
|
-
const [keyError, setKeyError] =
|
|
7039
|
-
const [valueError, setValueError] =
|
|
7040
|
-
const [sessionState, setSessionState] =
|
|
7184
|
+
const [keyError, setKeyError] = useState18("");
|
|
7185
|
+
const [valueError, setValueError] = useState18("");
|
|
7186
|
+
const [sessionState, setSessionState] = useState18({
|
|
7041
7187
|
key: getInitialFieldValue(value?.key),
|
|
7042
7188
|
value: getInitialFieldValue(value?.value)
|
|
7043
7189
|
});
|
|
7044
|
-
const keyLabel = props.keyName ||
|
|
7045
|
-
const valueLabel = props.valueName ||
|
|
7190
|
+
const keyLabel = props.keyName || __44("Key", "elementor");
|
|
7191
|
+
const valueLabel = props.valueName || __44("Value", "elementor");
|
|
7046
7192
|
const { keyHelper, valueHelper } = props.getHelperText?.(sessionState.key, sessionState.value) || {
|
|
7047
7193
|
keyHelper: void 0,
|
|
7048
7194
|
valueHelper: void 0
|
|
@@ -7051,7 +7197,7 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
7051
7197
|
() => [
|
|
7052
7198
|
props.regexKey ? new RegExp(props.regexKey) : void 0,
|
|
7053
7199
|
props.regexValue ? new RegExp(props.regexValue) : void 0,
|
|
7054
|
-
props.validationErrorMessage ||
|
|
7200
|
+
props.validationErrorMessage || __44("Invalid Format", "elementor")
|
|
7055
7201
|
],
|
|
7056
7202
|
[props.regexKey, props.regexValue, props.validationErrorMessage]
|
|
7057
7203
|
);
|
|
@@ -7100,14 +7246,14 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
7100
7246
|
});
|
|
7101
7247
|
}
|
|
7102
7248
|
};
|
|
7103
|
-
return /* @__PURE__ */
|
|
7249
|
+
return /* @__PURE__ */ React96.createElement(PropProvider, { ...propContext, value, setValue: handleChange }, /* @__PURE__ */ React96.createElement(Grid19, { container: true, gap: 1.5 }, /* @__PURE__ */ React96.createElement(Grid19, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React96.createElement(FormLabel3, { size: "tiny", sx: { pb: 1 } }, keyLabel), /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "key" }, /* @__PURE__ */ React96.createElement(
|
|
7104
7250
|
TextControl,
|
|
7105
7251
|
{
|
|
7106
7252
|
inputValue: props.escapeHtml ? escapeHtmlAttr(sessionState.key) : sessionState.key,
|
|
7107
7253
|
error: !!keyError,
|
|
7108
7254
|
helperText: keyHelper
|
|
7109
7255
|
}
|
|
7110
|
-
)), !!keyError && /* @__PURE__ */
|
|
7256
|
+
)), !!keyError && /* @__PURE__ */ React96.createElement(FormHelperText, { error: true }, keyError)), /* @__PURE__ */ React96.createElement(Grid19, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React96.createElement(FormLabel3, { size: "tiny", sx: { pb: 1 } }, valueLabel), /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "value" }, /* @__PURE__ */ React96.createElement(
|
|
7111
7257
|
TextControl,
|
|
7112
7258
|
{
|
|
7113
7259
|
inputValue: props.escapeHtml ? escapeHtmlAttr(sessionState.value) : sessionState.value,
|
|
@@ -7115,27 +7261,27 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
7115
7261
|
inputDisabled: !!keyError,
|
|
7116
7262
|
helperText: valueHelper
|
|
7117
7263
|
}
|
|
7118
|
-
)), !!valueError && /* @__PURE__ */
|
|
7264
|
+
)), !!valueError && /* @__PURE__ */ React96.createElement(FormHelperText, { error: true }, valueError))));
|
|
7119
7265
|
});
|
|
7120
7266
|
|
|
7121
7267
|
// src/controls/position-control.tsx
|
|
7122
|
-
import * as
|
|
7268
|
+
import * as React97 from "react";
|
|
7123
7269
|
import { positionPropTypeUtil, stringPropTypeUtil as stringPropTypeUtil19 } from "@elementor/editor-props";
|
|
7124
7270
|
import { MenuListItem as MenuListItem7 } from "@elementor/editor-ui";
|
|
7125
7271
|
import { LetterXIcon as LetterXIcon2, LetterYIcon as LetterYIcon2 } from "@elementor/icons";
|
|
7126
7272
|
import { Grid as Grid20, Select as Select5 } from "@elementor/ui";
|
|
7127
|
-
import { __ as
|
|
7273
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
7128
7274
|
var positionOptions = [
|
|
7129
|
-
{ label:
|
|
7130
|
-
{ label:
|
|
7131
|
-
{ label:
|
|
7132
|
-
{ label:
|
|
7133
|
-
{ label:
|
|
7134
|
-
{ label:
|
|
7135
|
-
{ label:
|
|
7136
|
-
{ label:
|
|
7137
|
-
{ label:
|
|
7138
|
-
{ label:
|
|
7275
|
+
{ label: __45("Center center", "elementor"), value: "center center" },
|
|
7276
|
+
{ label: __45("Center left", "elementor"), value: "center left" },
|
|
7277
|
+
{ label: __45("Center right", "elementor"), value: "center right" },
|
|
7278
|
+
{ label: __45("Top center", "elementor"), value: "top center" },
|
|
7279
|
+
{ label: __45("Top left", "elementor"), value: "top left" },
|
|
7280
|
+
{ label: __45("Top right", "elementor"), value: "top right" },
|
|
7281
|
+
{ label: __45("Bottom center", "elementor"), value: "bottom center" },
|
|
7282
|
+
{ label: __45("Bottom left", "elementor"), value: "bottom left" },
|
|
7283
|
+
{ label: __45("Bottom right", "elementor"), value: "bottom right" },
|
|
7284
|
+
{ label: __45("Custom", "elementor"), value: "custom" }
|
|
7139
7285
|
];
|
|
7140
7286
|
var PositionControl = () => {
|
|
7141
7287
|
const positionContext = useBoundProp(positionPropTypeUtil);
|
|
@@ -7150,7 +7296,7 @@ var PositionControl = () => {
|
|
|
7150
7296
|
stringPropContext.setValue(value);
|
|
7151
7297
|
}
|
|
7152
7298
|
};
|
|
7153
|
-
return /* @__PURE__ */
|
|
7299
|
+
return /* @__PURE__ */ React97.createElement(Grid20, { container: true, spacing: 1.5 }, /* @__PURE__ */ React97.createElement(Grid20, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(Grid20, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React97.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(ControlFormLabel, null, __45("Object position", "elementor"))), /* @__PURE__ */ React97.createElement(Grid20, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React97.createElement(
|
|
7154
7300
|
Select5,
|
|
7155
7301
|
{
|
|
7156
7302
|
size: "tiny",
|
|
@@ -7161,29 +7307,29 @@ var PositionControl = () => {
|
|
|
7161
7307
|
renderValue: (selectedValue) => getSelectRenderValue(positionOptions, placeholder, selectedValue),
|
|
7162
7308
|
fullWidth: true
|
|
7163
7309
|
},
|
|
7164
|
-
positionOptions.map(({ label, value }) => /* @__PURE__ */
|
|
7165
|
-
)))), isCustom && /* @__PURE__ */
|
|
7310
|
+
positionOptions.map(({ label, value }) => /* @__PURE__ */ React97.createElement(MenuListItem7, { key: value, value: value ?? "" }, label))
|
|
7311
|
+
)))), isCustom && /* @__PURE__ */ React97.createElement(PropProvider, { ...positionContext }, /* @__PURE__ */ React97.createElement(Grid20, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(Grid20, { container: true, spacing: 1.5 }, /* @__PURE__ */ React97.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React97.createElement(
|
|
7166
7312
|
SizeControl,
|
|
7167
7313
|
{
|
|
7168
|
-
startIcon: /* @__PURE__ */
|
|
7314
|
+
startIcon: /* @__PURE__ */ React97.createElement(LetterXIcon2, { fontSize: "tiny" }),
|
|
7169
7315
|
min: -Number.MAX_SAFE_INTEGER
|
|
7170
7316
|
}
|
|
7171
|
-
))), /* @__PURE__ */
|
|
7317
|
+
))), /* @__PURE__ */ React97.createElement(Grid20, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React97.createElement(
|
|
7172
7318
|
SizeControl,
|
|
7173
7319
|
{
|
|
7174
|
-
startIcon: /* @__PURE__ */
|
|
7320
|
+
startIcon: /* @__PURE__ */ React97.createElement(LetterYIcon2, { fontSize: "tiny" }),
|
|
7175
7321
|
min: -Number.MAX_SAFE_INTEGER
|
|
7176
7322
|
}
|
|
7177
7323
|
)))))));
|
|
7178
7324
|
};
|
|
7179
7325
|
|
|
7180
7326
|
// src/controls/transform-control/transform-repeater-control.tsx
|
|
7181
|
-
import * as
|
|
7327
|
+
import * as React110 from "react";
|
|
7182
7328
|
import { useRef as useRef26 } from "react";
|
|
7183
7329
|
import { transformFunctionsPropTypeUtil, transformPropTypeUtil } from "@elementor/editor-props";
|
|
7184
7330
|
import { AdjustmentsIcon as AdjustmentsIcon2, InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
7185
|
-
import { bindTrigger as bindTrigger5, Box as
|
|
7186
|
-
import { __ as
|
|
7331
|
+
import { bindTrigger as bindTrigger5, Box as Box25, IconButton as IconButton8, Tooltip as Tooltip9, Typography as Typography10, usePopupState as usePopupState10 } from "@elementor/ui";
|
|
7332
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
7187
7333
|
|
|
7188
7334
|
// src/controls/transform-control/initial-values.ts
|
|
7189
7335
|
import {
|
|
@@ -7237,24 +7383,24 @@ var initialSkewValue = skewTransformPropTypeUtil.create({
|
|
|
7237
7383
|
});
|
|
7238
7384
|
|
|
7239
7385
|
// src/controls/transform-control/transform-content.tsx
|
|
7240
|
-
import * as
|
|
7241
|
-
import { Box as
|
|
7242
|
-
import { __ as
|
|
7386
|
+
import * as React104 from "react";
|
|
7387
|
+
import { Box as Box22, Tab as Tab2, TabPanel as TabPanel2, Tabs as Tabs2 } from "@elementor/ui";
|
|
7388
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
7243
7389
|
|
|
7244
7390
|
// src/controls/transform-control/functions/move.tsx
|
|
7245
|
-
import * as
|
|
7391
|
+
import * as React99 from "react";
|
|
7246
7392
|
import { useRef as useRef19 } from "react";
|
|
7247
7393
|
import { moveTransformPropTypeUtil } from "@elementor/editor-props";
|
|
7248
7394
|
import { ArrowDownLeftIcon, ArrowDownSmallIcon, ArrowRightIcon } from "@elementor/icons";
|
|
7249
7395
|
import { Grid as Grid22 } from "@elementor/ui";
|
|
7250
|
-
import { __ as
|
|
7396
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
7251
7397
|
|
|
7252
7398
|
// src/controls/transform-control/functions/axis-row.tsx
|
|
7253
|
-
import * as
|
|
7399
|
+
import * as React98 from "react";
|
|
7254
7400
|
import { Grid as Grid21 } from "@elementor/ui";
|
|
7255
7401
|
var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "angle" }) => {
|
|
7256
7402
|
const safeId = label.replace(/\s+/g, "-").toLowerCase();
|
|
7257
|
-
return /* @__PURE__ */
|
|
7403
|
+
return /* @__PURE__ */ React98.createElement(Grid21, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React98.createElement(Grid21, { item: true, xs: 6 }, /* @__PURE__ */ React98.createElement(ControlLabel, { htmlFor: safeId }, label)), /* @__PURE__ */ React98.createElement(Grid21, { item: true, xs: 6 }, /* @__PURE__ */ React98.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React98.createElement(
|
|
7258
7404
|
SizeControl,
|
|
7259
7405
|
{
|
|
7260
7406
|
anchorRef,
|
|
@@ -7270,28 +7416,28 @@ var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "an
|
|
|
7270
7416
|
// src/controls/transform-control/functions/move.tsx
|
|
7271
7417
|
var moveAxisControls = [
|
|
7272
7418
|
{
|
|
7273
|
-
label:
|
|
7419
|
+
label: __46("Move X", "elementor"),
|
|
7274
7420
|
bind: "x",
|
|
7275
|
-
startIcon: /* @__PURE__ */
|
|
7421
|
+
startIcon: /* @__PURE__ */ React99.createElement(ArrowRightIcon, { fontSize: "tiny" }),
|
|
7276
7422
|
units: ["px", "%", "em", "rem", "vw"]
|
|
7277
7423
|
},
|
|
7278
7424
|
{
|
|
7279
|
-
label:
|
|
7425
|
+
label: __46("Move Y", "elementor"),
|
|
7280
7426
|
bind: "y",
|
|
7281
|
-
startIcon: /* @__PURE__ */
|
|
7427
|
+
startIcon: /* @__PURE__ */ React99.createElement(ArrowDownSmallIcon, { fontSize: "tiny" }),
|
|
7282
7428
|
units: ["px", "%", "em", "rem", "vh"]
|
|
7283
7429
|
},
|
|
7284
7430
|
{
|
|
7285
|
-
label:
|
|
7431
|
+
label: __46("Move Z", "elementor"),
|
|
7286
7432
|
bind: "z",
|
|
7287
|
-
startIcon: /* @__PURE__ */
|
|
7433
|
+
startIcon: /* @__PURE__ */ React99.createElement(ArrowDownLeftIcon, { fontSize: "tiny" }),
|
|
7288
7434
|
units: ["px", "%", "em", "rem", "vw", "vh"]
|
|
7289
7435
|
}
|
|
7290
7436
|
];
|
|
7291
7437
|
var Move = () => {
|
|
7292
7438
|
const context = useBoundProp(moveTransformPropTypeUtil);
|
|
7293
7439
|
const rowRefs = [useRef19(null), useRef19(null), useRef19(null)];
|
|
7294
|
-
return /* @__PURE__ */
|
|
7440
|
+
return /* @__PURE__ */ React99.createElement(Grid22, { container: true, spacing: 1.5 }, /* @__PURE__ */ React99.createElement(PropProvider, { ...context }, /* @__PURE__ */ React99.createElement(PropKeyProvider, { bind: TransformFunctionKeys.move }, moveAxisControls.map((control, index) => /* @__PURE__ */ React99.createElement(
|
|
7295
7441
|
AxisRow,
|
|
7296
7442
|
{
|
|
7297
7443
|
key: control.bind,
|
|
@@ -7304,34 +7450,34 @@ var Move = () => {
|
|
|
7304
7450
|
};
|
|
7305
7451
|
|
|
7306
7452
|
// src/controls/transform-control/functions/rotate.tsx
|
|
7307
|
-
import * as
|
|
7453
|
+
import * as React100 from "react";
|
|
7308
7454
|
import { useRef as useRef20 } from "react";
|
|
7309
7455
|
import { rotateTransformPropTypeUtil as rotateTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
7310
7456
|
import { Arrow360Icon, RotateClockwiseIcon } from "@elementor/icons";
|
|
7311
7457
|
import { Grid as Grid23 } from "@elementor/ui";
|
|
7312
|
-
import { __ as
|
|
7458
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
7313
7459
|
var rotateAxisControls = [
|
|
7314
7460
|
{
|
|
7315
|
-
label:
|
|
7461
|
+
label: __47("Rotate X", "elementor"),
|
|
7316
7462
|
bind: "x",
|
|
7317
|
-
startIcon: /* @__PURE__ */
|
|
7463
|
+
startIcon: /* @__PURE__ */ React100.createElement(Arrow360Icon, { fontSize: "tiny" })
|
|
7318
7464
|
},
|
|
7319
7465
|
{
|
|
7320
|
-
label:
|
|
7466
|
+
label: __47("Rotate Y", "elementor"),
|
|
7321
7467
|
bind: "y",
|
|
7322
|
-
startIcon: /* @__PURE__ */
|
|
7468
|
+
startIcon: /* @__PURE__ */ React100.createElement(Arrow360Icon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
|
|
7323
7469
|
},
|
|
7324
7470
|
{
|
|
7325
|
-
label:
|
|
7471
|
+
label: __47("Rotate Z", "elementor"),
|
|
7326
7472
|
bind: "z",
|
|
7327
|
-
startIcon: /* @__PURE__ */
|
|
7473
|
+
startIcon: /* @__PURE__ */ React100.createElement(RotateClockwiseIcon, { fontSize: "tiny" })
|
|
7328
7474
|
}
|
|
7329
7475
|
];
|
|
7330
7476
|
var rotateUnits = ["deg", "rad", "grad", "turn"];
|
|
7331
7477
|
var Rotate = () => {
|
|
7332
7478
|
const context = useBoundProp(rotateTransformPropTypeUtil2);
|
|
7333
7479
|
const rowRefs = [useRef20(null), useRef20(null), useRef20(null)];
|
|
7334
|
-
return /* @__PURE__ */
|
|
7480
|
+
return /* @__PURE__ */ React100.createElement(Grid23, { container: true, spacing: 1.5 }, /* @__PURE__ */ React100.createElement(PropProvider, { ...context }, /* @__PURE__ */ React100.createElement(PropKeyProvider, { bind: TransformFunctionKeys.rotate }, rotateAxisControls.map((control, index) => /* @__PURE__ */ React100.createElement(
|
|
7335
7481
|
AxisRow,
|
|
7336
7482
|
{
|
|
7337
7483
|
key: control.bind,
|
|
@@ -7343,68 +7489,68 @@ var Rotate = () => {
|
|
|
7343
7489
|
};
|
|
7344
7490
|
|
|
7345
7491
|
// src/controls/transform-control/functions/scale.tsx
|
|
7346
|
-
import * as
|
|
7492
|
+
import * as React102 from "react";
|
|
7347
7493
|
import { useRef as useRef21 } from "react";
|
|
7348
7494
|
import { scaleTransformPropTypeUtil as scaleTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
7349
7495
|
import { ArrowDownLeftIcon as ArrowDownLeftIcon2, ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
7350
7496
|
import { Grid as Grid25 } from "@elementor/ui";
|
|
7351
|
-
import { __ as
|
|
7497
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
7352
7498
|
|
|
7353
7499
|
// src/controls/transform-control/functions/scale-axis-row.tsx
|
|
7354
|
-
import * as
|
|
7500
|
+
import * as React101 from "react";
|
|
7355
7501
|
import { Grid as Grid24 } from "@elementor/ui";
|
|
7356
7502
|
var ScaleAxisRow = ({ label, bind, startIcon, anchorRef }) => {
|
|
7357
|
-
return /* @__PURE__ */
|
|
7503
|
+
return /* @__PURE__ */ React101.createElement(Grid24, { item: true, xs: 12 }, /* @__PURE__ */ React101.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React101.createElement(Grid24, { item: true, xs: 6 }, /* @__PURE__ */ React101.createElement(ControlLabel, null, label)), /* @__PURE__ */ React101.createElement(Grid24, { item: true, xs: 6 }, /* @__PURE__ */ React101.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React101.createElement(NumberControl, { step: 0.1, placeholder: "1", startIcon })))));
|
|
7358
7504
|
};
|
|
7359
7505
|
|
|
7360
7506
|
// src/controls/transform-control/functions/scale.tsx
|
|
7361
7507
|
var scaleAxisControls = [
|
|
7362
7508
|
{
|
|
7363
|
-
label:
|
|
7509
|
+
label: __48("Scale X", "elementor"),
|
|
7364
7510
|
bind: "x",
|
|
7365
|
-
startIcon: /* @__PURE__ */
|
|
7511
|
+
startIcon: /* @__PURE__ */ React102.createElement(ArrowRightIcon2, { fontSize: "tiny" })
|
|
7366
7512
|
},
|
|
7367
7513
|
{
|
|
7368
|
-
label:
|
|
7514
|
+
label: __48("Scale Y", "elementor"),
|
|
7369
7515
|
bind: "y",
|
|
7370
|
-
startIcon: /* @__PURE__ */
|
|
7516
|
+
startIcon: /* @__PURE__ */ React102.createElement(ArrowDownSmallIcon2, { fontSize: "tiny" })
|
|
7371
7517
|
},
|
|
7372
7518
|
{
|
|
7373
|
-
label:
|
|
7519
|
+
label: __48("Scale Z", "elementor"),
|
|
7374
7520
|
bind: "z",
|
|
7375
|
-
startIcon: /* @__PURE__ */
|
|
7521
|
+
startIcon: /* @__PURE__ */ React102.createElement(ArrowDownLeftIcon2, { fontSize: "tiny" })
|
|
7376
7522
|
}
|
|
7377
7523
|
];
|
|
7378
7524
|
var Scale = () => {
|
|
7379
7525
|
const context = useBoundProp(scaleTransformPropTypeUtil2);
|
|
7380
7526
|
const rowRefs = [useRef21(null), useRef21(null), useRef21(null)];
|
|
7381
|
-
return /* @__PURE__ */
|
|
7527
|
+
return /* @__PURE__ */ React102.createElement(Grid25, { container: true, spacing: 1.5 }, /* @__PURE__ */ React102.createElement(PropProvider, { ...context }, /* @__PURE__ */ React102.createElement(PropKeyProvider, { bind: TransformFunctionKeys.scale }, scaleAxisControls.map((control, index) => /* @__PURE__ */ React102.createElement(ScaleAxisRow, { key: control.bind, ...control, anchorRef: rowRefs[index] })))));
|
|
7382
7528
|
};
|
|
7383
7529
|
|
|
7384
7530
|
// src/controls/transform-control/functions/skew.tsx
|
|
7385
|
-
import * as
|
|
7531
|
+
import * as React103 from "react";
|
|
7386
7532
|
import { useRef as useRef22 } from "react";
|
|
7387
7533
|
import { skewTransformPropTypeUtil as skewTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
7388
7534
|
import { ArrowLeftIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
7389
7535
|
import { Grid as Grid26 } from "@elementor/ui";
|
|
7390
|
-
import { __ as
|
|
7536
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
7391
7537
|
var skewAxisControls = [
|
|
7392
7538
|
{
|
|
7393
|
-
label:
|
|
7539
|
+
label: __49("Skew X", "elementor"),
|
|
7394
7540
|
bind: "x",
|
|
7395
|
-
startIcon: /* @__PURE__ */
|
|
7541
|
+
startIcon: /* @__PURE__ */ React103.createElement(ArrowRightIcon3, { fontSize: "tiny" })
|
|
7396
7542
|
},
|
|
7397
7543
|
{
|
|
7398
|
-
label:
|
|
7544
|
+
label: __49("Skew Y", "elementor"),
|
|
7399
7545
|
bind: "y",
|
|
7400
|
-
startIcon: /* @__PURE__ */
|
|
7546
|
+
startIcon: /* @__PURE__ */ React103.createElement(ArrowLeftIcon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
|
|
7401
7547
|
}
|
|
7402
7548
|
];
|
|
7403
7549
|
var skewUnits = ["deg", "rad", "grad", "turn"];
|
|
7404
7550
|
var Skew = () => {
|
|
7405
7551
|
const context = useBoundProp(skewTransformPropTypeUtil2);
|
|
7406
7552
|
const rowRefs = [useRef22(null), useRef22(null), useRef22(null)];
|
|
7407
|
-
return /* @__PURE__ */
|
|
7553
|
+
return /* @__PURE__ */ React103.createElement(Grid26, { container: true, spacing: 1.5 }, /* @__PURE__ */ React103.createElement(PropProvider, { ...context }, /* @__PURE__ */ React103.createElement(PropKeyProvider, { bind: TransformFunctionKeys.skew }, skewAxisControls.map((control, index) => /* @__PURE__ */ React103.createElement(
|
|
7408
7554
|
AxisRow,
|
|
7409
7555
|
{
|
|
7410
7556
|
key: control.bind,
|
|
@@ -7509,7 +7655,7 @@ var TransformContent = () => {
|
|
|
7509
7655
|
rotate: initialRotateValue.value,
|
|
7510
7656
|
skew: initialSkewValue.value
|
|
7511
7657
|
});
|
|
7512
|
-
return /* @__PURE__ */
|
|
7658
|
+
return /* @__PURE__ */ React104.createElement(PopoverContent, null, /* @__PURE__ */ React104.createElement(Box22, { sx: { width: "100%" } }, /* @__PURE__ */ React104.createElement(Box22, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React104.createElement(
|
|
7513
7659
|
Tabs2,
|
|
7514
7660
|
{
|
|
7515
7661
|
size: "small",
|
|
@@ -7520,37 +7666,37 @@ var TransformContent = () => {
|
|
|
7520
7666
|
}
|
|
7521
7667
|
},
|
|
7522
7668
|
...getTabsProps(),
|
|
7523
|
-
"aria-label":
|
|
7669
|
+
"aria-label": __50("Transform", "elementor")
|
|
7524
7670
|
},
|
|
7525
|
-
/* @__PURE__ */
|
|
7526
|
-
/* @__PURE__ */
|
|
7527
|
-
/* @__PURE__ */
|
|
7528
|
-
/* @__PURE__ */
|
|
7529
|
-
)), /* @__PURE__ */
|
|
7671
|
+
/* @__PURE__ */ React104.createElement(Tab2, { label: __50("Move", "elementor"), ...getTabProps(TransformFunctionKeys.move) }),
|
|
7672
|
+
/* @__PURE__ */ React104.createElement(Tab2, { label: __50("Scale", "elementor"), ...getTabProps(TransformFunctionKeys.scale) }),
|
|
7673
|
+
/* @__PURE__ */ React104.createElement(Tab2, { label: __50("Rotate", "elementor"), ...getTabProps(TransformFunctionKeys.rotate) }),
|
|
7674
|
+
/* @__PURE__ */ React104.createElement(Tab2, { label: __50("Skew", "elementor"), ...getTabProps(TransformFunctionKeys.skew) })
|
|
7675
|
+
)), /* @__PURE__ */ React104.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.move) }, /* @__PURE__ */ React104.createElement(Move, null)), /* @__PURE__ */ React104.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.scale) }, /* @__PURE__ */ React104.createElement(Scale, null)), /* @__PURE__ */ React104.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.rotate) }, /* @__PURE__ */ React104.createElement(Rotate, null)), /* @__PURE__ */ React104.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.skew) }, /* @__PURE__ */ React104.createElement(Skew, null))));
|
|
7530
7676
|
};
|
|
7531
7677
|
|
|
7532
7678
|
// src/controls/transform-control/transform-icon.tsx
|
|
7533
|
-
import * as
|
|
7679
|
+
import * as React105 from "react";
|
|
7534
7680
|
import { ArrowAutofitHeightIcon, ArrowsMaximizeIcon as ArrowsMaximizeIcon2, RotateClockwise2Icon, SkewXIcon } from "@elementor/icons";
|
|
7535
7681
|
var TransformIcon = ({ value }) => {
|
|
7536
7682
|
switch (value.$$type) {
|
|
7537
7683
|
case TransformFunctionKeys.move:
|
|
7538
|
-
return /* @__PURE__ */
|
|
7684
|
+
return /* @__PURE__ */ React105.createElement(ArrowsMaximizeIcon2, { fontSize: "tiny" });
|
|
7539
7685
|
case TransformFunctionKeys.scale:
|
|
7540
|
-
return /* @__PURE__ */
|
|
7686
|
+
return /* @__PURE__ */ React105.createElement(ArrowAutofitHeightIcon, { fontSize: "tiny" });
|
|
7541
7687
|
case TransformFunctionKeys.rotate:
|
|
7542
|
-
return /* @__PURE__ */
|
|
7688
|
+
return /* @__PURE__ */ React105.createElement(RotateClockwise2Icon, { fontSize: "tiny" });
|
|
7543
7689
|
case TransformFunctionKeys.skew:
|
|
7544
|
-
return /* @__PURE__ */
|
|
7690
|
+
return /* @__PURE__ */ React105.createElement(SkewXIcon, { fontSize: "tiny" });
|
|
7545
7691
|
default:
|
|
7546
7692
|
return null;
|
|
7547
7693
|
}
|
|
7548
7694
|
};
|
|
7549
7695
|
|
|
7550
7696
|
// src/controls/transform-control/transform-label.tsx
|
|
7551
|
-
import * as
|
|
7552
|
-
import { Box as
|
|
7553
|
-
import { __ as
|
|
7697
|
+
import * as React106 from "react";
|
|
7698
|
+
import { Box as Box23 } from "@elementor/ui";
|
|
7699
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
7554
7700
|
var orderedAxis = ["x", "y", "z"];
|
|
7555
7701
|
var formatLabel = (value, functionType) => {
|
|
7556
7702
|
return orderedAxis.map((axisKey) => {
|
|
@@ -7568,98 +7714,98 @@ var TransformLabel = (props) => {
|
|
|
7568
7714
|
const { $$type, value } = props.value;
|
|
7569
7715
|
switch ($$type) {
|
|
7570
7716
|
case TransformFunctionKeys.move:
|
|
7571
|
-
return /* @__PURE__ */
|
|
7717
|
+
return /* @__PURE__ */ React106.createElement(Label2, { label: __51("Move", "elementor"), value: formatLabel(value, "move") });
|
|
7572
7718
|
case TransformFunctionKeys.scale:
|
|
7573
|
-
return /* @__PURE__ */
|
|
7719
|
+
return /* @__PURE__ */ React106.createElement(Label2, { label: __51("Scale", "elementor"), value: formatLabel(value, "scale") });
|
|
7574
7720
|
case TransformFunctionKeys.rotate:
|
|
7575
|
-
return /* @__PURE__ */
|
|
7721
|
+
return /* @__PURE__ */ React106.createElement(Label2, { label: __51("Rotate", "elementor"), value: formatLabel(value, "rotate") });
|
|
7576
7722
|
case TransformFunctionKeys.skew:
|
|
7577
|
-
return /* @__PURE__ */
|
|
7723
|
+
return /* @__PURE__ */ React106.createElement(Label2, { label: __51("Skew", "elementor"), value: formatLabel(value, "skew") });
|
|
7578
7724
|
default:
|
|
7579
7725
|
return "";
|
|
7580
7726
|
}
|
|
7581
7727
|
};
|
|
7582
7728
|
var Label2 = ({ label, value }) => {
|
|
7583
|
-
return /* @__PURE__ */
|
|
7729
|
+
return /* @__PURE__ */ React106.createElement(Box23, { component: "span" }, label, ": ", value);
|
|
7584
7730
|
};
|
|
7585
7731
|
|
|
7586
7732
|
// src/controls/transform-control/transform-settings-control.tsx
|
|
7587
|
-
import * as
|
|
7733
|
+
import * as React109 from "react";
|
|
7588
7734
|
import { PopoverHeader as PopoverHeader5 } from "@elementor/editor-ui";
|
|
7589
7735
|
import { AdjustmentsIcon } from "@elementor/icons";
|
|
7590
|
-
import { bindPopover as bindPopover6, Box as
|
|
7591
|
-
import { __ as
|
|
7736
|
+
import { bindPopover as bindPopover6, Box as Box24, Divider as Divider5, Popover as Popover7 } from "@elementor/ui";
|
|
7737
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
7592
7738
|
|
|
7593
7739
|
// src/controls/transform-control/transform-base-controls/children-perspective-control.tsx
|
|
7594
|
-
import * as
|
|
7740
|
+
import * as React107 from "react";
|
|
7595
7741
|
import { useRef as useRef24 } from "react";
|
|
7596
7742
|
import { perspectiveOriginPropTypeUtil } from "@elementor/editor-props";
|
|
7597
|
-
import { Grid as Grid27, Stack as
|
|
7598
|
-
import { __ as
|
|
7743
|
+
import { Grid as Grid27, Stack as Stack18 } from "@elementor/ui";
|
|
7744
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
7599
7745
|
var ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
7600
7746
|
var PERSPECTIVE_CONTROL_FIELD = {
|
|
7601
|
-
label:
|
|
7747
|
+
label: __52("Perspective", "elementor"),
|
|
7602
7748
|
bind: "perspective",
|
|
7603
7749
|
units: ["px", "em", "rem", "vw", "vh"]
|
|
7604
7750
|
};
|
|
7605
7751
|
var CHILDREN_PERSPECTIVE_FIELDS = [
|
|
7606
7752
|
{
|
|
7607
|
-
label:
|
|
7753
|
+
label: __52("Origin X", "elementor"),
|
|
7608
7754
|
bind: "x",
|
|
7609
7755
|
units: ORIGIN_UNITS
|
|
7610
7756
|
},
|
|
7611
7757
|
{
|
|
7612
|
-
label:
|
|
7758
|
+
label: __52("Origin Y", "elementor"),
|
|
7613
7759
|
bind: "y",
|
|
7614
7760
|
units: ORIGIN_UNITS
|
|
7615
7761
|
}
|
|
7616
7762
|
];
|
|
7617
7763
|
var ChildrenPerspectiveControl = () => {
|
|
7618
|
-
return /* @__PURE__ */
|
|
7764
|
+
return /* @__PURE__ */ React107.createElement(Stack18, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React107.createElement(ControlFormLabel, null, __52("Children perspective", "elementor")), /* @__PURE__ */ React107.createElement(PerspectiveControl, null), /* @__PURE__ */ React107.createElement(PerspectiveOriginControl, null));
|
|
7619
7765
|
};
|
|
7620
|
-
var PerspectiveControl = () => /* @__PURE__ */
|
|
7621
|
-
var PerspectiveOriginControl = () => /* @__PURE__ */
|
|
7766
|
+
var PerspectiveControl = () => /* @__PURE__ */ React107.createElement(PropKeyProvider, { bind: "perspective" }, /* @__PURE__ */ React107.createElement(ControlFields, { control: PERSPECTIVE_CONTROL_FIELD, key: PERSPECTIVE_CONTROL_FIELD.bind }));
|
|
7767
|
+
var PerspectiveOriginControl = () => /* @__PURE__ */ React107.createElement(PropKeyProvider, { bind: "perspective-origin" }, /* @__PURE__ */ React107.createElement(PerspectiveOriginControlProvider, null));
|
|
7622
7768
|
var PerspectiveOriginControlProvider = () => {
|
|
7623
7769
|
const context = useBoundProp(perspectiveOriginPropTypeUtil);
|
|
7624
|
-
return /* @__PURE__ */
|
|
7770
|
+
return /* @__PURE__ */ React107.createElement(PropProvider, { ...context }, CHILDREN_PERSPECTIVE_FIELDS.map((control) => /* @__PURE__ */ React107.createElement(PropKeyProvider, { bind: control.bind, key: control.bind }, /* @__PURE__ */ React107.createElement(ControlFields, { control }))));
|
|
7625
7771
|
};
|
|
7626
7772
|
var ControlFields = ({ control }) => {
|
|
7627
7773
|
const rowRef = useRef24(null);
|
|
7628
|
-
return /* @__PURE__ */
|
|
7774
|
+
return /* @__PURE__ */ React107.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React107.createElement(Grid27, { item: true, xs: 6 }, /* @__PURE__ */ React107.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React107.createElement(Grid27, { item: true, xs: 6 }, /* @__PURE__ */ React107.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef, disableCustom: true })));
|
|
7629
7775
|
};
|
|
7630
7776
|
|
|
7631
7777
|
// src/controls/transform-control/transform-base-controls/transform-origin-control.tsx
|
|
7632
|
-
import * as
|
|
7778
|
+
import * as React108 from "react";
|
|
7633
7779
|
import { useRef as useRef25 } from "react";
|
|
7634
7780
|
import { transformOriginPropTypeUtil } from "@elementor/editor-props";
|
|
7635
|
-
import { Grid as Grid28, Stack as
|
|
7636
|
-
import { __ as
|
|
7781
|
+
import { Grid as Grid28, Stack as Stack19 } from "@elementor/ui";
|
|
7782
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
7637
7783
|
var TRANSFORM_ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
7638
7784
|
var TRANSFORM_ORIGIN_UNITS_Z_AXIS = TRANSFORM_ORIGIN_UNITS.filter((unit) => unit !== "%");
|
|
7639
7785
|
var TRANSFORM_ORIGIN_FIELDS = [
|
|
7640
7786
|
{
|
|
7641
|
-
label:
|
|
7787
|
+
label: __53("Origin X", "elementor"),
|
|
7642
7788
|
bind: "x",
|
|
7643
7789
|
units: TRANSFORM_ORIGIN_UNITS
|
|
7644
7790
|
},
|
|
7645
7791
|
{
|
|
7646
|
-
label:
|
|
7792
|
+
label: __53("Origin Y", "elementor"),
|
|
7647
7793
|
bind: "y",
|
|
7648
7794
|
units: TRANSFORM_ORIGIN_UNITS
|
|
7649
7795
|
},
|
|
7650
7796
|
{
|
|
7651
|
-
label:
|
|
7797
|
+
label: __53("Origin Z", "elementor"),
|
|
7652
7798
|
bind: "z",
|
|
7653
7799
|
units: TRANSFORM_ORIGIN_UNITS_Z_AXIS
|
|
7654
7800
|
}
|
|
7655
7801
|
];
|
|
7656
7802
|
var TransformOriginControl = () => {
|
|
7657
|
-
return /* @__PURE__ */
|
|
7803
|
+
return /* @__PURE__ */ React108.createElement(Stack19, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React108.createElement(ControlFormLabel, null, __53("Transform", "elementor")), TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React108.createElement(ControlFields2, { control, key: control.bind })));
|
|
7658
7804
|
};
|
|
7659
7805
|
var ControlFields2 = ({ control }) => {
|
|
7660
7806
|
const context = useBoundProp(transformOriginPropTypeUtil);
|
|
7661
7807
|
const rowRef = useRef25(null);
|
|
7662
|
-
return /* @__PURE__ */
|
|
7808
|
+
return /* @__PURE__ */ React108.createElement(PropProvider, { ...context }, /* @__PURE__ */ React108.createElement(PropKeyProvider, { bind: control.bind }, /* @__PURE__ */ React108.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React108.createElement(Grid28, { item: true, xs: 6 }, /* @__PURE__ */ React108.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React108.createElement(Grid28, { item: true, xs: 6 }, /* @__PURE__ */ React108.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef })))));
|
|
7663
7809
|
};
|
|
7664
7810
|
|
|
7665
7811
|
// src/controls/transform-control/transform-settings-control.tsx
|
|
@@ -7673,7 +7819,7 @@ var TransformSettingsControl = ({
|
|
|
7673
7819
|
...popupState,
|
|
7674
7820
|
anchorEl: anchorRef.current ?? void 0
|
|
7675
7821
|
});
|
|
7676
|
-
return /* @__PURE__ */
|
|
7822
|
+
return /* @__PURE__ */ React109.createElement(
|
|
7677
7823
|
Popover7,
|
|
7678
7824
|
{
|
|
7679
7825
|
disablePortal: true,
|
|
@@ -7688,16 +7834,16 @@ var TransformSettingsControl = ({
|
|
|
7688
7834
|
},
|
|
7689
7835
|
...popupProps
|
|
7690
7836
|
},
|
|
7691
|
-
/* @__PURE__ */
|
|
7837
|
+
/* @__PURE__ */ React109.createElement(
|
|
7692
7838
|
PopoverHeader5,
|
|
7693
7839
|
{
|
|
7694
|
-
title:
|
|
7840
|
+
title: __54("Transform settings", "elementor"),
|
|
7695
7841
|
onClose: popupState.close,
|
|
7696
|
-
icon: /* @__PURE__ */
|
|
7842
|
+
icon: /* @__PURE__ */ React109.createElement(AdjustmentsIcon, { fontSize: SIZE10 })
|
|
7697
7843
|
}
|
|
7698
7844
|
),
|
|
7699
|
-
/* @__PURE__ */
|
|
7700
|
-
/* @__PURE__ */
|
|
7845
|
+
/* @__PURE__ */ React109.createElement(Divider5, null),
|
|
7846
|
+
/* @__PURE__ */ React109.createElement(PopoverContent, { sx: { px: 2, py: 1.5 } }, /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "transform-origin" }, /* @__PURE__ */ React109.createElement(TransformOriginControl, null)), showChildrenPerspective && /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(Box24, { sx: { my: 0.5 } }, /* @__PURE__ */ React109.createElement(Divider5, null)), /* @__PURE__ */ React109.createElement(ChildrenPerspectiveControl, null)))
|
|
7701
7847
|
);
|
|
7702
7848
|
};
|
|
7703
7849
|
|
|
@@ -7707,26 +7853,26 @@ var TransformRepeaterControl = createControl(
|
|
|
7707
7853
|
({ showChildrenPerspective }) => {
|
|
7708
7854
|
const context = useBoundProp(transformPropTypeUtil);
|
|
7709
7855
|
const headerRef = useRef26(null);
|
|
7710
|
-
const popupState =
|
|
7711
|
-
return /* @__PURE__ */
|
|
7856
|
+
const popupState = usePopupState10({ variant: "popover" });
|
|
7857
|
+
return /* @__PURE__ */ React110.createElement(PropProvider, { ...context }, /* @__PURE__ */ React110.createElement(
|
|
7712
7858
|
TransformSettingsControl,
|
|
7713
7859
|
{
|
|
7714
7860
|
popupState,
|
|
7715
7861
|
anchorRef: headerRef,
|
|
7716
7862
|
showChildrenPerspective
|
|
7717
7863
|
}
|
|
7718
|
-
), /* @__PURE__ */
|
|
7864
|
+
), /* @__PURE__ */ React110.createElement(PropKeyProvider, { bind: "transform-functions" }, /* @__PURE__ */ React110.createElement(Repeater2, { headerRef, propType: context.propType, popupState })));
|
|
7719
7865
|
}
|
|
7720
7866
|
);
|
|
7721
|
-
var ToolTip = /* @__PURE__ */
|
|
7722
|
-
|
|
7867
|
+
var ToolTip = /* @__PURE__ */ React110.createElement(
|
|
7868
|
+
Box25,
|
|
7723
7869
|
{
|
|
7724
7870
|
component: "span",
|
|
7725
7871
|
"aria-label": void 0,
|
|
7726
7872
|
sx: { display: "flex", gap: 0.5, p: 2, width: 320, borderRadius: 1 }
|
|
7727
7873
|
},
|
|
7728
|
-
/* @__PURE__ */
|
|
7729
|
-
/* @__PURE__ */
|
|
7874
|
+
/* @__PURE__ */ React110.createElement(InfoCircleFilledIcon2, { sx: { color: "secondary.main" } }),
|
|
7875
|
+
/* @__PURE__ */ React110.createElement(Typography10, { variant: "body2", color: "text.secondary", fontSize: "14px" }, __55("You can use each kind of transform only once per element.", "elementor"))
|
|
7730
7876
|
);
|
|
7731
7877
|
var Repeater2 = ({
|
|
7732
7878
|
headerRef,
|
|
@@ -7740,21 +7886,21 @@ var Repeater2 = ({
|
|
|
7740
7886
|
return availableValues.find((value) => !transformValues?.some((item) => item.$$type === value.$$type));
|
|
7741
7887
|
};
|
|
7742
7888
|
const shouldDisableAddItem = !getInitialValue2();
|
|
7743
|
-
return /* @__PURE__ */
|
|
7889
|
+
return /* @__PURE__ */ React110.createElement(PropProvider, { ...transformFunctionsContext }, /* @__PURE__ */ React110.createElement(
|
|
7744
7890
|
ControlRepeater,
|
|
7745
7891
|
{
|
|
7746
7892
|
initial: getInitialValue2() ?? initialTransformValue,
|
|
7747
7893
|
propTypeUtil: transformFunctionsPropTypeUtil
|
|
7748
7894
|
},
|
|
7749
|
-
/* @__PURE__ */
|
|
7895
|
+
/* @__PURE__ */ React110.createElement(
|
|
7750
7896
|
RepeaterHeader,
|
|
7751
7897
|
{
|
|
7752
|
-
label:
|
|
7753
|
-
adornment: () => /* @__PURE__ */
|
|
7898
|
+
label: __55("Transform", "elementor"),
|
|
7899
|
+
adornment: () => /* @__PURE__ */ React110.createElement(ControlAdornments, { customContext: { path: ["transform"], propType } }),
|
|
7754
7900
|
ref: headerRef
|
|
7755
7901
|
},
|
|
7756
|
-
/* @__PURE__ */
|
|
7757
|
-
/* @__PURE__ */
|
|
7902
|
+
/* @__PURE__ */ React110.createElement(TransformBasePopoverTrigger, { popupState, repeaterBindKey: bind }),
|
|
7903
|
+
/* @__PURE__ */ React110.createElement(
|
|
7758
7904
|
TooltipAddItemAction,
|
|
7759
7905
|
{
|
|
7760
7906
|
disabled: shouldDisableAddItem,
|
|
@@ -7764,15 +7910,15 @@ var Repeater2 = ({
|
|
|
7764
7910
|
}
|
|
7765
7911
|
)
|
|
7766
7912
|
),
|
|
7767
|
-
/* @__PURE__ */
|
|
7913
|
+
/* @__PURE__ */ React110.createElement(ItemsContainer, null, /* @__PURE__ */ React110.createElement(
|
|
7768
7914
|
Item,
|
|
7769
7915
|
{
|
|
7770
7916
|
Icon: TransformIcon,
|
|
7771
7917
|
Label: TransformLabel,
|
|
7772
|
-
actions: /* @__PURE__ */
|
|
7918
|
+
actions: /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(DisableItemAction, null), /* @__PURE__ */ React110.createElement(RemoveItemAction, null))
|
|
7773
7919
|
}
|
|
7774
7920
|
)),
|
|
7775
|
-
/* @__PURE__ */
|
|
7921
|
+
/* @__PURE__ */ React110.createElement(EditItemPopover, null, /* @__PURE__ */ React110.createElement(TransformContent, null))
|
|
7776
7922
|
));
|
|
7777
7923
|
};
|
|
7778
7924
|
var TransformBasePopoverTrigger = ({
|
|
@@ -7780,24 +7926,24 @@ var TransformBasePopoverTrigger = ({
|
|
|
7780
7926
|
repeaterBindKey
|
|
7781
7927
|
}) => {
|
|
7782
7928
|
const { bind } = useBoundProp();
|
|
7783
|
-
const titleLabel =
|
|
7784
|
-
return bind !== repeaterBindKey ? null : /* @__PURE__ */
|
|
7929
|
+
const titleLabel = __55("Transform settings", "elementor");
|
|
7930
|
+
return bind !== repeaterBindKey ? null : /* @__PURE__ */ React110.createElement(Tooltip9, { title: titleLabel, placement: "top" }, /* @__PURE__ */ React110.createElement(IconButton8, { size: SIZE11, "aria-label": titleLabel, ...bindTrigger5(popupState) }, /* @__PURE__ */ React110.createElement(AdjustmentsIcon2, { fontSize: SIZE11 })));
|
|
7785
7931
|
};
|
|
7786
7932
|
|
|
7787
7933
|
// src/controls/transition-control/transition-repeater-control.tsx
|
|
7788
|
-
import * as
|
|
7789
|
-
import { useEffect as useEffect17, useMemo as useMemo17, useState as
|
|
7934
|
+
import * as React113 from "react";
|
|
7935
|
+
import { useEffect as useEffect17, useMemo as useMemo17, useState as useState19 } from "react";
|
|
7790
7936
|
import {
|
|
7791
7937
|
createArrayPropUtils as createArrayPropUtils3,
|
|
7792
7938
|
selectionSizePropTypeUtil as selectionSizePropTypeUtil2
|
|
7793
7939
|
} from "@elementor/editor-props";
|
|
7794
7940
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
7795
|
-
import { Alert as Alert2, AlertTitle as AlertTitle3, Box as
|
|
7941
|
+
import { Alert as Alert2, AlertTitle as AlertTitle3, Box as Box27, Typography as Typography11 } from "@elementor/ui";
|
|
7796
7942
|
import { hasProInstalled as hasProInstalled2 } from "@elementor/utils";
|
|
7797
|
-
import { __ as
|
|
7943
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
7798
7944
|
|
|
7799
7945
|
// src/controls/selection-size-control.tsx
|
|
7800
|
-
import * as
|
|
7946
|
+
import * as React111 from "react";
|
|
7801
7947
|
import { useMemo as useMemo15, useRef as useRef27 } from "react";
|
|
7802
7948
|
import { selectionSizePropTypeUtil } from "@elementor/editor-props";
|
|
7803
7949
|
import { Grid as Grid29 } from "@elementor/ui";
|
|
@@ -7817,7 +7963,7 @@ var SelectionSizeControl = createControl(
|
|
|
7817
7963
|
}
|
|
7818
7964
|
}, [value, sizeConfigMap]);
|
|
7819
7965
|
const SelectionComponent = selectionConfig.component;
|
|
7820
|
-
return /* @__PURE__ */
|
|
7966
|
+
return /* @__PURE__ */ React111.createElement(PropProvider, { value, setValue, propType }, /* @__PURE__ */ React111.createElement(Grid29, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React111.createElement(Grid29, { item: true, xs: 6, sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, selectionLabel)), /* @__PURE__ */ React111.createElement(Grid29, { item: true, xs: 6 }, /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "selection" }, /* @__PURE__ */ React111.createElement(SelectionComponent, { ...selectionConfig.props }))), currentSizeConfig && /* @__PURE__ */ React111.createElement(React111.Fragment, null, /* @__PURE__ */ React111.createElement(Grid29, { item: true, xs: 6, sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React111.createElement(ControlFormLabel, { htmlFor: sizeFieldId }, sizeLabel)), /* @__PURE__ */ React111.createElement(Grid29, { item: true, xs: 6 }, /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React111.createElement(
|
|
7821
7967
|
SizeControl,
|
|
7822
7968
|
{
|
|
7823
7969
|
anchorRef: rowRef,
|
|
@@ -7832,12 +7978,12 @@ var SelectionSizeControl = createControl(
|
|
|
7832
7978
|
|
|
7833
7979
|
// src/controls/transition-control/data.ts
|
|
7834
7980
|
import { hasProInstalled, isVersionGreaterOrEqual } from "@elementor/utils";
|
|
7835
|
-
import { __ as
|
|
7981
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
7836
7982
|
var initialTransitionValue = {
|
|
7837
7983
|
selection: {
|
|
7838
7984
|
$$type: "key-value",
|
|
7839
7985
|
value: {
|
|
7840
|
-
key: { value:
|
|
7986
|
+
key: { value: __56("All properties", "elementor"), $$type: "string" },
|
|
7841
7987
|
value: { value: "all", $$type: "string" }
|
|
7842
7988
|
}
|
|
7843
7989
|
},
|
|
@@ -7861,128 +8007,128 @@ var createTransitionPropertiesList = () => {
|
|
|
7861
8007
|
const isSiteRtl = getIsSiteRtl();
|
|
7862
8008
|
const baseProperties = [
|
|
7863
8009
|
{
|
|
7864
|
-
label:
|
|
8010
|
+
label: __56("Default", "elementor"),
|
|
7865
8011
|
type: "category",
|
|
7866
|
-
properties: [{ label:
|
|
8012
|
+
properties: [{ label: __56("All properties", "elementor"), value: "all" }]
|
|
7867
8013
|
},
|
|
7868
8014
|
{
|
|
7869
|
-
label:
|
|
8015
|
+
label: __56("Margin", "elementor"),
|
|
7870
8016
|
type: "category",
|
|
7871
8017
|
properties: [
|
|
7872
|
-
{ label:
|
|
7873
|
-
{ label:
|
|
8018
|
+
{ label: __56("Margin (all)", "elementor"), value: "margin", isDisabled: true },
|
|
8019
|
+
{ label: __56("Margin bottom", "elementor"), value: "margin-block-end", isDisabled: true },
|
|
7874
8020
|
{
|
|
7875
|
-
label: isSiteRtl ?
|
|
8021
|
+
label: isSiteRtl ? __56("Margin right", "elementor") : __56("Margin left", "elementor"),
|
|
7876
8022
|
value: "margin-inline-start",
|
|
7877
8023
|
isDisabled: true
|
|
7878
8024
|
},
|
|
7879
8025
|
{
|
|
7880
|
-
label: isSiteRtl ?
|
|
8026
|
+
label: isSiteRtl ? __56("Margin left", "elementor") : __56("Margin right", "elementor"),
|
|
7881
8027
|
value: "margin-inline-end",
|
|
7882
8028
|
isDisabled: true
|
|
7883
8029
|
},
|
|
7884
|
-
{ label:
|
|
8030
|
+
{ label: __56("Margin top", "elementor"), value: "margin-block-start", isDisabled: true }
|
|
7885
8031
|
]
|
|
7886
8032
|
},
|
|
7887
8033
|
{
|
|
7888
|
-
label:
|
|
8034
|
+
label: __56("Padding", "elementor"),
|
|
7889
8035
|
type: "category",
|
|
7890
8036
|
properties: [
|
|
7891
|
-
{ label:
|
|
7892
|
-
{ label:
|
|
8037
|
+
{ label: __56("Padding (all)", "elementor"), value: "padding", isDisabled: true },
|
|
8038
|
+
{ label: __56("Padding bottom", "elementor"), value: "padding-block-end", isDisabled: true },
|
|
7893
8039
|
{
|
|
7894
|
-
label: isSiteRtl ?
|
|
8040
|
+
label: isSiteRtl ? __56("Padding right", "elementor") : __56("Padding left", "elementor"),
|
|
7895
8041
|
value: "padding-inline-start",
|
|
7896
8042
|
isDisabled: true
|
|
7897
8043
|
},
|
|
7898
8044
|
{
|
|
7899
|
-
label: isSiteRtl ?
|
|
8045
|
+
label: isSiteRtl ? __56("Padding left", "elementor") : __56("Padding right", "elementor"),
|
|
7900
8046
|
value: "padding-inline-end",
|
|
7901
8047
|
isDisabled: true
|
|
7902
8048
|
},
|
|
7903
|
-
{ label:
|
|
8049
|
+
{ label: __56("Padding top", "elementor"), value: "padding-block-start", isDisabled: true }
|
|
7904
8050
|
]
|
|
7905
8051
|
},
|
|
7906
8052
|
{
|
|
7907
|
-
label:
|
|
8053
|
+
label: __56("Flex", "elementor"),
|
|
7908
8054
|
type: "category",
|
|
7909
8055
|
properties: [
|
|
7910
|
-
{ label:
|
|
7911
|
-
{ label:
|
|
7912
|
-
{ label:
|
|
7913
|
-
{ label:
|
|
8056
|
+
{ label: __56("Flex (all)", "elementor"), value: "flex", isDisabled: true },
|
|
8057
|
+
{ label: __56("Flex grow", "elementor"), value: "flex-grow", isDisabled: true },
|
|
8058
|
+
{ label: __56("Flex shrink", "elementor"), value: "flex-shrink", isDisabled: true },
|
|
8059
|
+
{ label: __56("Flex basis", "elementor"), value: "flex-basis", isDisabled: true }
|
|
7914
8060
|
]
|
|
7915
8061
|
},
|
|
7916
8062
|
{
|
|
7917
|
-
label:
|
|
8063
|
+
label: __56("Size", "elementor"),
|
|
7918
8064
|
type: "category",
|
|
7919
8065
|
properties: [
|
|
7920
|
-
{ label:
|
|
7921
|
-
{ label:
|
|
7922
|
-
{ label:
|
|
7923
|
-
{ label:
|
|
7924
|
-
{ label:
|
|
7925
|
-
{ label:
|
|
8066
|
+
{ label: __56("Width", "elementor"), value: "width", isDisabled: true },
|
|
8067
|
+
{ label: __56("Height", "elementor"), value: "height", isDisabled: true },
|
|
8068
|
+
{ label: __56("Max height", "elementor"), value: "max-height", isDisabled: true },
|
|
8069
|
+
{ label: __56("Max width", "elementor"), value: "max-width", isDisabled: true },
|
|
8070
|
+
{ label: __56("Min height", "elementor"), value: "min-height", isDisabled: true },
|
|
8071
|
+
{ label: __56("Min width", "elementor"), value: "min-width", isDisabled: true }
|
|
7926
8072
|
]
|
|
7927
8073
|
},
|
|
7928
8074
|
{
|
|
7929
|
-
label:
|
|
8075
|
+
label: __56("Position", "elementor"),
|
|
7930
8076
|
type: "category",
|
|
7931
8077
|
properties: [
|
|
7932
|
-
{ label:
|
|
8078
|
+
{ label: __56("Top", "elementor"), value: "inset-block-start", isDisabled: true },
|
|
7933
8079
|
{
|
|
7934
|
-
label: isSiteRtl ?
|
|
8080
|
+
label: isSiteRtl ? __56("Right", "elementor") : __56("Left", "elementor"),
|
|
7935
8081
|
value: "inset-inline-start",
|
|
7936
8082
|
isDisabled: true
|
|
7937
8083
|
},
|
|
7938
8084
|
{
|
|
7939
|
-
label: isSiteRtl ?
|
|
8085
|
+
label: isSiteRtl ? __56("Left", "elementor") : __56("Right", "elementor"),
|
|
7940
8086
|
value: "inset-inline-end",
|
|
7941
8087
|
isDisabled: true
|
|
7942
8088
|
},
|
|
7943
|
-
{ label:
|
|
7944
|
-
{ label:
|
|
8089
|
+
{ label: __56("Bottom", "elementor"), value: "inset-block-end", isDisabled: true },
|
|
8090
|
+
{ label: __56("Z-index", "elementor"), value: "z-index", isDisabled: true }
|
|
7945
8091
|
]
|
|
7946
8092
|
},
|
|
7947
8093
|
{
|
|
7948
|
-
label:
|
|
8094
|
+
label: __56("Typography", "elementor"),
|
|
7949
8095
|
type: "category",
|
|
7950
8096
|
properties: [
|
|
7951
|
-
{ label:
|
|
7952
|
-
{ label:
|
|
7953
|
-
{ label:
|
|
7954
|
-
{ label:
|
|
7955
|
-
{ label:
|
|
7956
|
-
{ label:
|
|
7957
|
-
{ label:
|
|
8097
|
+
{ label: __56("Font color", "elementor"), value: "color", isDisabled: true },
|
|
8098
|
+
{ label: __56("Font size", "elementor"), value: "font-size", isDisabled: true },
|
|
8099
|
+
{ label: __56("Line height", "elementor"), value: "line-height", isDisabled: true },
|
|
8100
|
+
{ label: __56("Letter spacing", "elementor"), value: "letter-spacing", isDisabled: true },
|
|
8101
|
+
{ label: __56("Word spacing", "elementor"), value: "word-spacing", isDisabled: true },
|
|
8102
|
+
{ label: __56("Font variations", "elementor"), value: "font-variation-settings", isDisabled: true },
|
|
8103
|
+
{ label: __56("Text stroke color", "elementor"), value: "-webkit-text-stroke-color", isDisabled: true }
|
|
7958
8104
|
]
|
|
7959
8105
|
},
|
|
7960
8106
|
{
|
|
7961
|
-
label:
|
|
8107
|
+
label: __56("Background", "elementor"),
|
|
7962
8108
|
type: "category",
|
|
7963
8109
|
properties: [
|
|
7964
|
-
{ label:
|
|
7965
|
-
{ label:
|
|
7966
|
-
{ label:
|
|
8110
|
+
{ label: __56("Background color", "elementor"), value: "background-color", isDisabled: true },
|
|
8111
|
+
{ label: __56("Background position", "elementor"), value: "background-position", isDisabled: true },
|
|
8112
|
+
{ label: __56("Box shadow", "elementor"), value: "box-shadow", isDisabled: true }
|
|
7967
8113
|
]
|
|
7968
8114
|
},
|
|
7969
8115
|
{
|
|
7970
|
-
label:
|
|
8116
|
+
label: __56("Border", "elementor"),
|
|
7971
8117
|
type: "category",
|
|
7972
8118
|
properties: [
|
|
7973
|
-
{ label:
|
|
7974
|
-
{ label:
|
|
7975
|
-
{ label:
|
|
7976
|
-
{ label:
|
|
8119
|
+
{ label: __56("Border (all)", "elementor"), value: "border", isDisabled: true },
|
|
8120
|
+
{ label: __56("Border radius", "elementor"), value: "border-radius", isDisabled: true },
|
|
8121
|
+
{ label: __56("Border color", "elementor"), value: "border-color", isDisabled: true },
|
|
8122
|
+
{ label: __56("Border width", "elementor"), value: "border-width", isDisabled: true }
|
|
7977
8123
|
]
|
|
7978
8124
|
},
|
|
7979
8125
|
{
|
|
7980
|
-
label:
|
|
8126
|
+
label: __56("Effects", "elementor"),
|
|
7981
8127
|
type: "category",
|
|
7982
8128
|
properties: [
|
|
7983
|
-
{ label:
|
|
7984
|
-
{ label:
|
|
7985
|
-
{ label:
|
|
8129
|
+
{ label: __56("Opacity", "elementor"), value: "opacity", isDisabled: true },
|
|
8130
|
+
{ label: __56("Transform (all)", "elementor"), value: "transform", isDisabled: true },
|
|
8131
|
+
{ label: __56("Filter (all)", "elementor"), value: "filter", isDisabled: true }
|
|
7986
8132
|
]
|
|
7987
8133
|
}
|
|
7988
8134
|
];
|
|
@@ -8018,13 +8164,13 @@ function subscribeToTransitionEvent() {
|
|
|
8018
8164
|
}
|
|
8019
8165
|
|
|
8020
8166
|
// src/controls/transition-control/transition-selector.tsx
|
|
8021
|
-
import * as
|
|
8167
|
+
import * as React112 from "react";
|
|
8022
8168
|
import { useMemo as useMemo16, useRef as useRef28 } from "react";
|
|
8023
8169
|
import { keyValuePropTypeUtil as keyValuePropTypeUtil2 } from "@elementor/editor-props";
|
|
8024
8170
|
import { PromotionAlert, PromotionChip } from "@elementor/editor-ui";
|
|
8025
8171
|
import { ChevronDownIcon as ChevronDownIcon3, VariationsIcon } from "@elementor/icons";
|
|
8026
|
-
import { bindPopover as bindPopover7, bindTrigger as bindTrigger6, Box as
|
|
8027
|
-
import { __ as
|
|
8172
|
+
import { bindPopover as bindPopover7, bindTrigger as bindTrigger6, Box as Box26, Popover as Popover8, UnstableTag as UnstableTag3, usePopupState as usePopupState11 } from "@elementor/ui";
|
|
8173
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
8028
8174
|
|
|
8029
8175
|
// src/utils/tracking.ts
|
|
8030
8176
|
import { getSelectedElements as getSelectedElements2 } from "@elementor/editor-elements";
|
|
@@ -8106,7 +8252,7 @@ var TransitionSelector = ({
|
|
|
8106
8252
|
key: { value: transitionLabel }
|
|
8107
8253
|
} = value;
|
|
8108
8254
|
const defaultRef = useRef28(null);
|
|
8109
|
-
const popoverState =
|
|
8255
|
+
const popoverState = usePopupState11({ variant: "popover" });
|
|
8110
8256
|
const disabledCategories = useMemo16(() => {
|
|
8111
8257
|
return new Set(
|
|
8112
8258
|
transitionProperties.filter((cat) => cat.properties.some((prop) => prop.isDisabled)).map((cat) => cat.label)
|
|
@@ -8127,7 +8273,7 @@ var TransitionSelector = ({
|
|
|
8127
8273
|
return [
|
|
8128
8274
|
first,
|
|
8129
8275
|
{
|
|
8130
|
-
label:
|
|
8276
|
+
label: __57("Recently Used", "elementor"),
|
|
8131
8277
|
items: recentItems
|
|
8132
8278
|
},
|
|
8133
8279
|
...rest
|
|
@@ -8151,16 +8297,16 @@ var TransitionSelector = ({
|
|
|
8151
8297
|
left: rect.right + 36
|
|
8152
8298
|
};
|
|
8153
8299
|
};
|
|
8154
|
-
return /* @__PURE__ */
|
|
8300
|
+
return /* @__PURE__ */ React112.createElement(Box26, { ref: defaultRef }, /* @__PURE__ */ React112.createElement(ControlActions, null, /* @__PURE__ */ React112.createElement(
|
|
8155
8301
|
UnstableTag3,
|
|
8156
8302
|
{
|
|
8157
8303
|
variant: "outlined",
|
|
8158
8304
|
label: transitionLabel,
|
|
8159
|
-
endIcon: /* @__PURE__ */
|
|
8305
|
+
endIcon: /* @__PURE__ */ React112.createElement(ChevronDownIcon3, { fontSize: "tiny" }),
|
|
8160
8306
|
...bindTrigger6(popoverState),
|
|
8161
8307
|
fullWidth: true
|
|
8162
8308
|
}
|
|
8163
|
-
)), /* @__PURE__ */
|
|
8309
|
+
)), /* @__PURE__ */ React112.createElement(
|
|
8164
8310
|
Popover8,
|
|
8165
8311
|
{
|
|
8166
8312
|
disablePortal: true,
|
|
@@ -8171,7 +8317,7 @@ var TransitionSelector = ({
|
|
|
8171
8317
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8172
8318
|
transformOrigin: { vertical: "top", horizontal: "left" }
|
|
8173
8319
|
},
|
|
8174
|
-
/* @__PURE__ */
|
|
8320
|
+
/* @__PURE__ */ React112.createElement(
|
|
8175
8321
|
ItemSelector,
|
|
8176
8322
|
{
|
|
8177
8323
|
itemsList: getItemList(),
|
|
@@ -8179,11 +8325,11 @@ var TransitionSelector = ({
|
|
|
8179
8325
|
onItemChange: handleTransitionPropertyChange,
|
|
8180
8326
|
onClose: popoverState.close,
|
|
8181
8327
|
sectionWidth: 268,
|
|
8182
|
-
title:
|
|
8328
|
+
title: __57("Transition Property", "elementor"),
|
|
8183
8329
|
icon: VariationsIcon,
|
|
8184
8330
|
disabledItems: includeCurrentValueInOptions(value, disabledItems),
|
|
8185
|
-
categoryItemContentTemplate: (item) => /* @__PURE__ */
|
|
8186
|
-
|
|
8331
|
+
categoryItemContentTemplate: (item) => /* @__PURE__ */ React112.createElement(
|
|
8332
|
+
Box26,
|
|
8187
8333
|
{
|
|
8188
8334
|
sx: {
|
|
8189
8335
|
display: "flex",
|
|
@@ -8192,13 +8338,13 @@ var TransitionSelector = ({
|
|
|
8192
8338
|
width: "100%"
|
|
8193
8339
|
}
|
|
8194
8340
|
},
|
|
8195
|
-
/* @__PURE__ */
|
|
8196
|
-
showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */
|
|
8341
|
+
/* @__PURE__ */ React112.createElement("span", null, item.value),
|
|
8342
|
+
showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React112.createElement(PromotionChip, null)
|
|
8197
8343
|
),
|
|
8198
|
-
footer: showPromotion ? /* @__PURE__ */
|
|
8344
|
+
footer: showPromotion ? /* @__PURE__ */ React112.createElement(
|
|
8199
8345
|
PromotionAlert,
|
|
8200
8346
|
{
|
|
8201
|
-
message:
|
|
8347
|
+
message: __57(
|
|
8202
8348
|
"Upgrade to customize transition properties and control effects.",
|
|
8203
8349
|
"elementor"
|
|
8204
8350
|
),
|
|
@@ -8237,8 +8383,8 @@ var areAllPropertiesUsed = (value = []) => {
|
|
|
8237
8383
|
};
|
|
8238
8384
|
var getSelectionSizeProps = (recentlyUsedList, disabledItems, showPromotion) => {
|
|
8239
8385
|
return {
|
|
8240
|
-
selectionLabel:
|
|
8241
|
-
sizeLabel:
|
|
8386
|
+
selectionLabel: __58("Type", "elementor"),
|
|
8387
|
+
sizeLabel: __58("Duration", "elementor"),
|
|
8242
8388
|
selectionConfig: {
|
|
8243
8389
|
component: TransitionSelector,
|
|
8244
8390
|
props: {
|
|
@@ -8314,7 +8460,7 @@ var getInitialValue = (values = []) => {
|
|
|
8314
8460
|
}
|
|
8315
8461
|
return initialTransitionValue;
|
|
8316
8462
|
};
|
|
8317
|
-
var disableAddItemTooltipContent = /* @__PURE__ */
|
|
8463
|
+
var disableAddItemTooltipContent = /* @__PURE__ */ React113.createElement(
|
|
8318
8464
|
Alert2,
|
|
8319
8465
|
{
|
|
8320
8466
|
sx: {
|
|
@@ -8322,10 +8468,10 @@ var disableAddItemTooltipContent = /* @__PURE__ */ React112.createElement(
|
|
|
8322
8468
|
gap: 0.5
|
|
8323
8469
|
},
|
|
8324
8470
|
color: "secondary",
|
|
8325
|
-
icon: /* @__PURE__ */
|
|
8471
|
+
icon: /* @__PURE__ */ React113.createElement(InfoCircleFilledIcon3, null)
|
|
8326
8472
|
},
|
|
8327
|
-
/* @__PURE__ */
|
|
8328
|
-
/* @__PURE__ */
|
|
8473
|
+
/* @__PURE__ */ React113.createElement(AlertTitle3, null, __58("Transitions", "elementor")),
|
|
8474
|
+
/* @__PURE__ */ React113.createElement(Box27, { component: "span" }, /* @__PURE__ */ React113.createElement(Typography11, { variant: "body2" }, __58("Switch to 'Normal' state to add a transition.", "elementor")))
|
|
8329
8475
|
);
|
|
8330
8476
|
var TransitionRepeaterControl = createControl(
|
|
8331
8477
|
({
|
|
@@ -8333,7 +8479,7 @@ var TransitionRepeaterControl = createControl(
|
|
|
8333
8479
|
currentStyleState
|
|
8334
8480
|
}) => {
|
|
8335
8481
|
const currentStyleIsNormal = currentStyleState === null;
|
|
8336
|
-
const [recentlyUsedList, setRecentlyUsedList] =
|
|
8482
|
+
const [recentlyUsedList, setRecentlyUsedList] = useState19([]);
|
|
8337
8483
|
const proInstalled = hasProInstalled2();
|
|
8338
8484
|
const { value, setValue } = useBoundProp(childArrayPropTypeUtil);
|
|
8339
8485
|
const { allDisabled: disabledItems, proDisabled: proDisabledItems } = useMemo17(
|
|
@@ -8368,13 +8514,13 @@ var TransitionRepeaterControl = createControl(
|
|
|
8368
8514
|
}, [recentlyUsedListGetter]);
|
|
8369
8515
|
const allPropertiesUsed = useMemo17(() => areAllPropertiesUsed(value), [value]);
|
|
8370
8516
|
const isAddItemDisabled = !currentStyleIsNormal || allPropertiesUsed;
|
|
8371
|
-
return /* @__PURE__ */
|
|
8517
|
+
return /* @__PURE__ */ React113.createElement(
|
|
8372
8518
|
RepeatableControl,
|
|
8373
8519
|
{
|
|
8374
|
-
label:
|
|
8375
|
-
repeaterLabel:
|
|
8520
|
+
label: __58("Transitions", "elementor"),
|
|
8521
|
+
repeaterLabel: __58("Transitions", "elementor"),
|
|
8376
8522
|
patternLabel: "${value.selection.value.key.value}: ${value.size.value.size}${value.size.value.unit}",
|
|
8377
|
-
placeholder:
|
|
8523
|
+
placeholder: __58("Empty Transition", "elementor"),
|
|
8378
8524
|
showDuplicate: false,
|
|
8379
8525
|
showToggle: true,
|
|
8380
8526
|
initialValues: getInitialValue(value),
|
|
@@ -8395,11 +8541,11 @@ var TransitionRepeaterControl = createControl(
|
|
|
8395
8541
|
);
|
|
8396
8542
|
|
|
8397
8543
|
// src/controls/date-time-control.tsx
|
|
8398
|
-
import * as
|
|
8544
|
+
import * as React114 from "react";
|
|
8399
8545
|
import * as dayjs from "dayjs";
|
|
8400
8546
|
import { isTransformable as isTransformable2, stringPropTypeUtil as stringPropTypeUtil20 } from "@elementor/editor-props";
|
|
8401
8547
|
import { DateTimePropTypeUtil } from "@elementor/editor-props";
|
|
8402
|
-
import { Box as
|
|
8548
|
+
import { Box as Box28, DatePicker, LocalizationProvider, TimePicker } from "@elementor/ui";
|
|
8403
8549
|
var DATE_FORMAT = "YYYY-MM-DD";
|
|
8404
8550
|
var TIME_FORMAT = "HH:mm";
|
|
8405
8551
|
var DateTimeControl = createControl(({ inputDisabled }) => {
|
|
@@ -8443,7 +8589,7 @@ var DateTimeControl = createControl(({ inputDisabled }) => {
|
|
|
8443
8589
|
const base = dayjs.default();
|
|
8444
8590
|
return base.hour(h).minute(m).second(0).millisecond(0);
|
|
8445
8591
|
};
|
|
8446
|
-
return /* @__PURE__ */
|
|
8592
|
+
return /* @__PURE__ */ React114.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React114.createElement(ControlActions, null, /* @__PURE__ */ React114.createElement(LocalizationProvider, null, /* @__PURE__ */ React114.createElement(Box28, { display: "flex", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(PropKeyProvider, { bind: "date" }, /* @__PURE__ */ React114.createElement(
|
|
8447
8593
|
DatePicker,
|
|
8448
8594
|
{
|
|
8449
8595
|
value: parseDateValue(stringPropTypeUtil20.extract(value?.date)),
|
|
@@ -8455,7 +8601,7 @@ var DateTimeControl = createControl(({ inputDisabled }) => {
|
|
|
8455
8601
|
openPickerIcon: { fontSize: "tiny" }
|
|
8456
8602
|
}
|
|
8457
8603
|
}
|
|
8458
|
-
)), /* @__PURE__ */
|
|
8604
|
+
)), /* @__PURE__ */ React114.createElement(PropKeyProvider, { bind: "time" }, /* @__PURE__ */ React114.createElement(
|
|
8459
8605
|
TimePicker,
|
|
8460
8606
|
{
|
|
8461
8607
|
value: parseTimeValue(stringPropTypeUtil20.extract(value?.time)),
|
|
@@ -8471,13 +8617,13 @@ var DateTimeControl = createControl(({ inputDisabled }) => {
|
|
|
8471
8617
|
});
|
|
8472
8618
|
|
|
8473
8619
|
// src/controls/date-range-control.tsx
|
|
8474
|
-
import * as
|
|
8620
|
+
import * as React116 from "react";
|
|
8475
8621
|
import { dateRangePropTypeUtil, dateStringPropTypeUtil as dateStringPropTypeUtil2 } from "@elementor/editor-props";
|
|
8476
|
-
import { FormHelperText as FormHelperText2, Grid as Grid30, Stack as
|
|
8477
|
-
import { __ as
|
|
8622
|
+
import { FormHelperText as FormHelperText2, Grid as Grid30, Stack as Stack20 } from "@elementor/ui";
|
|
8623
|
+
import { __ as __59 } from "@wordpress/i18n";
|
|
8478
8624
|
|
|
8479
8625
|
// src/controls/date-string-control.tsx
|
|
8480
|
-
import * as
|
|
8626
|
+
import * as React115 from "react";
|
|
8481
8627
|
import { dateStringPropTypeUtil } from "@elementor/editor-props";
|
|
8482
8628
|
import { DatePicker as DatePicker2, LocalizationProvider as LocalizationProvider2 } from "@elementor/ui";
|
|
8483
8629
|
|
|
@@ -8536,7 +8682,7 @@ var DateStringControl = createControl(
|
|
|
8536
8682
|
}
|
|
8537
8683
|
setValue(newValue.format(format));
|
|
8538
8684
|
};
|
|
8539
|
-
return /* @__PURE__ */
|
|
8685
|
+
return /* @__PURE__ */ React115.createElement(LocalizationProvider2, null, /* @__PURE__ */ React115.createElement(ControlActions, null, /* @__PURE__ */ React115.createElement(
|
|
8540
8686
|
DatePicker2,
|
|
8541
8687
|
{
|
|
8542
8688
|
value: parseDateString(value ?? ""),
|
|
@@ -8550,8 +8696,8 @@ var DateStringControl = createControl(
|
|
|
8550
8696
|
|
|
8551
8697
|
// src/controls/date-range-control.tsx
|
|
8552
8698
|
var RANGE_LABELS = {
|
|
8553
|
-
min:
|
|
8554
|
-
max:
|
|
8699
|
+
min: __59("Min date", "elementor"),
|
|
8700
|
+
max: __59("Max date", "elementor")
|
|
8555
8701
|
};
|
|
8556
8702
|
var isMaxBeforeMin = (minIso, maxIso) => {
|
|
8557
8703
|
if (!minIso || !maxIso) {
|
|
@@ -8559,38 +8705,38 @@ var isMaxBeforeMin = (minIso, maxIso) => {
|
|
|
8559
8705
|
}
|
|
8560
8706
|
return maxIso < minIso;
|
|
8561
8707
|
};
|
|
8562
|
-
var RANGE_ERROR_MESSAGE =
|
|
8708
|
+
var RANGE_ERROR_MESSAGE = __59("Max date must be on or after Min date", "elementor");
|
|
8563
8709
|
var DateRangeControl = createControl(() => {
|
|
8564
8710
|
const { value, setValue, ...propContext } = useBoundProp(dateRangePropTypeUtil);
|
|
8565
8711
|
const minString = dateStringPropTypeUtil2.extract(value?.min);
|
|
8566
8712
|
const maxString = dateStringPropTypeUtil2.extract(value?.max);
|
|
8567
8713
|
const hasInvalidRange = isMaxBeforeMin(minString, maxString);
|
|
8568
|
-
return /* @__PURE__ */
|
|
8714
|
+
return /* @__PURE__ */ React116.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React116.createElement(Stack20, { gap: 0.75 }, /* @__PURE__ */ React116.createElement(Stack20, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React116.createElement(Grid30, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React116.createElement(Grid30, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(ControlFormLabel, null, RANGE_LABELS.min)), /* @__PURE__ */ React116.createElement(Grid30, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(
|
|
8569
8715
|
BoundDateStringControl,
|
|
8570
8716
|
{
|
|
8571
8717
|
bind: "min",
|
|
8572
8718
|
ariaLabel: RANGE_LABELS.min,
|
|
8573
8719
|
error: hasInvalidRange
|
|
8574
8720
|
}
|
|
8575
|
-
))), /* @__PURE__ */
|
|
8721
|
+
))), /* @__PURE__ */ React116.createElement(Grid30, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React116.createElement(Grid30, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(ControlFormLabel, null, RANGE_LABELS.max)), /* @__PURE__ */ React116.createElement(Grid30, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(
|
|
8576
8722
|
BoundDateStringControl,
|
|
8577
8723
|
{
|
|
8578
8724
|
bind: "max",
|
|
8579
8725
|
ariaLabel: RANGE_LABELS.max,
|
|
8580
8726
|
error: hasInvalidRange
|
|
8581
8727
|
}
|
|
8582
|
-
)))), hasInvalidRange && /* @__PURE__ */
|
|
8728
|
+
)))), hasInvalidRange && /* @__PURE__ */ React116.createElement(FormHelperText2, { error: true }, RANGE_ERROR_MESSAGE)));
|
|
8583
8729
|
});
|
|
8584
8730
|
var BoundDateStringControl = ({
|
|
8585
8731
|
bind,
|
|
8586
8732
|
ariaLabel,
|
|
8587
8733
|
error
|
|
8588
8734
|
}) => {
|
|
8589
|
-
return /* @__PURE__ */
|
|
8735
|
+
return /* @__PURE__ */ React116.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React116.createElement(DateStringControl, { ariaLabel, error, coerceInvalidToNull: true }));
|
|
8590
8736
|
};
|
|
8591
8737
|
|
|
8592
8738
|
// src/controls/time-string-control.tsx
|
|
8593
|
-
import * as
|
|
8739
|
+
import * as React117 from "react";
|
|
8594
8740
|
import { timeStringPropTypeUtil } from "@elementor/editor-props";
|
|
8595
8741
|
import { LocalizationProvider as LocalizationProvider3, TimePicker as TimePicker2 } from "@elementor/ui";
|
|
8596
8742
|
var TimeStringControl = createControl(
|
|
@@ -8618,7 +8764,7 @@ var TimeStringControl = createControl(
|
|
|
8618
8764
|
}
|
|
8619
8765
|
setValue(newValue.format(format));
|
|
8620
8766
|
};
|
|
8621
|
-
return /* @__PURE__ */
|
|
8767
|
+
return /* @__PURE__ */ React117.createElement(LocalizationProvider3, null, /* @__PURE__ */ React117.createElement(ControlActions, null, /* @__PURE__ */ React117.createElement(
|
|
8622
8768
|
TimePicker2,
|
|
8623
8769
|
{
|
|
8624
8770
|
value: parseTimeString(value ?? ""),
|
|
@@ -8631,32 +8777,32 @@ var TimeStringControl = createControl(
|
|
|
8631
8777
|
);
|
|
8632
8778
|
|
|
8633
8779
|
// src/controls/time-range-control.tsx
|
|
8634
|
-
import * as
|
|
8780
|
+
import * as React118 from "react";
|
|
8635
8781
|
import { timeRangePropTypeUtil } from "@elementor/editor-props";
|
|
8636
|
-
import { Grid as Grid31, Stack as
|
|
8637
|
-
import { __ as
|
|
8782
|
+
import { Grid as Grid31, Stack as Stack21 } from "@elementor/ui";
|
|
8783
|
+
import { __ as __60 } from "@wordpress/i18n";
|
|
8638
8784
|
var RANGE_LABELS2 = {
|
|
8639
|
-
min:
|
|
8640
|
-
max:
|
|
8785
|
+
min: __60("Start time", "elementor"),
|
|
8786
|
+
max: __60("End time", "elementor")
|
|
8641
8787
|
};
|
|
8642
8788
|
var TimeRangeControl = createControl(() => {
|
|
8643
8789
|
const { value, setValue, ...propContext } = useBoundProp(timeRangePropTypeUtil);
|
|
8644
|
-
return /* @__PURE__ */
|
|
8790
|
+
return /* @__PURE__ */ React118.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React118.createElement(Stack21, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React118.createElement(Grid31, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React118.createElement(Grid31, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(ControlFormLabel, null, RANGE_LABELS2.min)), /* @__PURE__ */ React118.createElement(Grid31, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(BoundTimeStringControl, { bind: "min", ariaLabel: RANGE_LABELS2.min }))), /* @__PURE__ */ React118.createElement(Grid31, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React118.createElement(Grid31, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(ControlFormLabel, null, RANGE_LABELS2.max)), /* @__PURE__ */ React118.createElement(Grid31, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(BoundTimeStringControl, { bind: "max", ariaLabel: RANGE_LABELS2.max })))));
|
|
8645
8791
|
});
|
|
8646
8792
|
var BoundTimeStringControl = ({ bind, ariaLabel }) => {
|
|
8647
|
-
return /* @__PURE__ */
|
|
8793
|
+
return /* @__PURE__ */ React118.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React118.createElement(TimeStringControl, { ariaLabel, coerceInvalidToNull: true }));
|
|
8648
8794
|
};
|
|
8649
8795
|
|
|
8650
8796
|
// src/controls/inline-editing-control.tsx
|
|
8651
|
-
import * as
|
|
8652
|
-
import { useCallback as useCallback4, useState as
|
|
8797
|
+
import * as React122 from "react";
|
|
8798
|
+
import { useCallback as useCallback4, useState as useState21 } from "react";
|
|
8653
8799
|
import { escapedHtmlPropTypeUtil as escapedHtmlPropTypeUtil2 } from "@elementor/editor-props";
|
|
8654
|
-
import { Box as
|
|
8800
|
+
import { Box as Box31 } from "@elementor/ui";
|
|
8655
8801
|
|
|
8656
8802
|
// src/components/inline-editor.tsx
|
|
8657
|
-
import * as
|
|
8803
|
+
import * as React119 from "react";
|
|
8658
8804
|
import { useEffect as useEffect18, useRef as useRef29 } from "react";
|
|
8659
|
-
import { Box as
|
|
8805
|
+
import { Box as Box29 } from "@elementor/ui";
|
|
8660
8806
|
import Bold from "@tiptap/extension-bold";
|
|
8661
8807
|
import Document from "@tiptap/extension-document";
|
|
8662
8808
|
import HardBreak from "@tiptap/extension-hard-break";
|
|
@@ -8701,7 +8847,7 @@ function extractInlineHtmlContent(propValue) {
|
|
|
8701
8847
|
var ITALIC_KEYBOARD_SHORTCUT = "i";
|
|
8702
8848
|
var BOLD_KEYBOARD_SHORTCUT = "b";
|
|
8703
8849
|
var UNDERLINE_KEYBOARD_SHORTCUT = "u";
|
|
8704
|
-
var InlineEditor =
|
|
8850
|
+
var InlineEditor = React119.forwardRef((props, ref) => {
|
|
8705
8851
|
const {
|
|
8706
8852
|
value,
|
|
8707
8853
|
setValue,
|
|
@@ -8814,7 +8960,7 @@ var InlineEditor = React118.forwardRef((props, ref) => {
|
|
|
8814
8960
|
if (mountElement) {
|
|
8815
8961
|
return null;
|
|
8816
8962
|
}
|
|
8817
|
-
return /* @__PURE__ */
|
|
8963
|
+
return /* @__PURE__ */ React119.createElement(Box29, { ref: containerRef, sx, className: wrapperClassName }, /* @__PURE__ */ React119.createElement(EditorContent, { ref, editor }));
|
|
8818
8964
|
});
|
|
8819
8965
|
var useOnUpdate = (callback, dependencies) => {
|
|
8820
8966
|
const hasMounted = useRef29(false);
|
|
@@ -8828,8 +8974,8 @@ var useOnUpdate = (callback, dependencies) => {
|
|
|
8828
8974
|
};
|
|
8829
8975
|
|
|
8830
8976
|
// src/components/inline-editor-toolbar.tsx
|
|
8831
|
-
import * as
|
|
8832
|
-
import { useEffect as useEffect20, useMemo as useMemo18, useRef as useRef31, useState as
|
|
8977
|
+
import * as React121 from "react";
|
|
8978
|
+
import { useEffect as useEffect20, useMemo as useMemo18, useRef as useRef31, useState as useState20 } from "react";
|
|
8833
8979
|
import { getContainer as getContainer2, getElementSetting } from "@elementor/editor-elements";
|
|
8834
8980
|
import {
|
|
8835
8981
|
BoldIcon,
|
|
@@ -8842,23 +8988,23 @@ import {
|
|
|
8842
8988
|
UnderlineIcon
|
|
8843
8989
|
} from "@elementor/icons";
|
|
8844
8990
|
import {
|
|
8845
|
-
Box as
|
|
8991
|
+
Box as Box30,
|
|
8846
8992
|
IconButton as IconButton9,
|
|
8847
|
-
ToggleButton as
|
|
8993
|
+
ToggleButton as ToggleButton4,
|
|
8848
8994
|
ToggleButtonGroup as ToggleButtonGroup2,
|
|
8849
8995
|
toggleButtonGroupClasses,
|
|
8850
|
-
Tooltip as
|
|
8851
|
-
usePopupState as
|
|
8996
|
+
Tooltip as Tooltip11,
|
|
8997
|
+
usePopupState as usePopupState12
|
|
8852
8998
|
} from "@elementor/ui";
|
|
8853
8999
|
import { useEditorState } from "@tiptap/react";
|
|
8854
|
-
import { __ as
|
|
9000
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
8855
9001
|
|
|
8856
9002
|
// src/components/url-popover.tsx
|
|
8857
|
-
import * as
|
|
9003
|
+
import * as React120 from "react";
|
|
8858
9004
|
import { useEffect as useEffect19, useRef as useRef30 } from "react";
|
|
8859
9005
|
import { ExternalLinkIcon } from "@elementor/icons";
|
|
8860
|
-
import { bindPopover as bindPopover8, Popover as Popover9, Stack as
|
|
8861
|
-
import { __ as
|
|
9006
|
+
import { bindPopover as bindPopover8, Popover as Popover9, Stack as Stack22, TextField as TextField11, ToggleButton as ToggleButton3, Tooltip as Tooltip10 } from "@elementor/ui";
|
|
9007
|
+
import { __ as __61 } from "@wordpress/i18n";
|
|
8862
9008
|
var UrlPopover = ({
|
|
8863
9009
|
popupState,
|
|
8864
9010
|
restoreValue,
|
|
@@ -8878,7 +9024,7 @@ var UrlPopover = ({
|
|
|
8878
9024
|
restoreValue();
|
|
8879
9025
|
popupState.close();
|
|
8880
9026
|
};
|
|
8881
|
-
return /* @__PURE__ */
|
|
9027
|
+
return /* @__PURE__ */ React120.createElement(
|
|
8882
9028
|
Popover9,
|
|
8883
9029
|
{
|
|
8884
9030
|
slotProps: {
|
|
@@ -8889,30 +9035,30 @@ var UrlPopover = ({
|
|
|
8889
9035
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
8890
9036
|
onClose: handleClose
|
|
8891
9037
|
},
|
|
8892
|
-
/* @__PURE__ */
|
|
9038
|
+
/* @__PURE__ */ React120.createElement(Stack22, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React120.createElement(
|
|
8893
9039
|
TextField11,
|
|
8894
9040
|
{
|
|
8895
9041
|
value,
|
|
8896
9042
|
onChange,
|
|
8897
9043
|
size: "tiny",
|
|
8898
9044
|
fullWidth: true,
|
|
8899
|
-
placeholder:
|
|
9045
|
+
placeholder: __61("Type a URL", "elementor"),
|
|
8900
9046
|
inputProps: { ref: inputRef },
|
|
8901
9047
|
color: "secondary",
|
|
8902
9048
|
InputProps: { sx: { borderRadius: "8px" } },
|
|
8903
9049
|
onKeyUp: (event) => event.key === "Enter" && handleClose()
|
|
8904
9050
|
}
|
|
8905
|
-
), /* @__PURE__ */
|
|
8906
|
-
|
|
9051
|
+
), /* @__PURE__ */ React120.createElement(Tooltip10, { title: __61("Open in a new tab", "elementor") }, /* @__PURE__ */ React120.createElement(
|
|
9052
|
+
ToggleButton3,
|
|
8907
9053
|
{
|
|
8908
9054
|
size: "tiny",
|
|
8909
9055
|
value: "newTab",
|
|
8910
9056
|
selected: openInNewTab,
|
|
8911
9057
|
onClick: onToggleNewTab,
|
|
8912
|
-
"aria-label":
|
|
9058
|
+
"aria-label": __61("Open in a new tab", "elementor"),
|
|
8913
9059
|
sx: { borderRadius: "8px" }
|
|
8914
9060
|
},
|
|
8915
|
-
/* @__PURE__ */
|
|
9061
|
+
/* @__PURE__ */ React120.createElement(ExternalLinkIcon, { fontSize: "tiny" })
|
|
8916
9062
|
)))
|
|
8917
9063
|
);
|
|
8918
9064
|
};
|
|
@@ -8924,10 +9070,10 @@ var InlineEditorToolbar = ({
|
|
|
8924
9070
|
sx = {},
|
|
8925
9071
|
inControlPanel = false
|
|
8926
9072
|
}) => {
|
|
8927
|
-
const [urlValue, setUrlValue] =
|
|
8928
|
-
const [openInNewTab, setOpenInNewTab] =
|
|
9073
|
+
const [urlValue, setUrlValue] = useState20("");
|
|
9074
|
+
const [openInNewTab, setOpenInNewTab] = useState20(false);
|
|
8929
9075
|
const toolbarRef = useRef31(null);
|
|
8930
|
-
const linkPopupState =
|
|
9076
|
+
const linkPopupState = usePopupState12({ variant: "popover" });
|
|
8931
9077
|
const isElementClickable = elementId ? checkIfElementIsClickable(elementId) : false;
|
|
8932
9078
|
const editorState = useEditorState({
|
|
8933
9079
|
editor,
|
|
@@ -8975,8 +9121,8 @@ var InlineEditorToolbar = ({
|
|
|
8975
9121
|
editor?.commands?.focus();
|
|
8976
9122
|
}
|
|
8977
9123
|
}, [editor, inControlPanel]);
|
|
8978
|
-
return /* @__PURE__ */
|
|
8979
|
-
|
|
9124
|
+
return /* @__PURE__ */ React121.createElement(
|
|
9125
|
+
Box30,
|
|
8980
9126
|
{
|
|
8981
9127
|
ref: toolbarRef,
|
|
8982
9128
|
sx: {
|
|
@@ -9009,8 +9155,8 @@ var InlineEditorToolbar = ({
|
|
|
9009
9155
|
}
|
|
9010
9156
|
}
|
|
9011
9157
|
},
|
|
9012
|
-
/* @__PURE__ */
|
|
9013
|
-
/* @__PURE__ */
|
|
9158
|
+
/* @__PURE__ */ React121.createElement(Tooltip11, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React121.createElement(IconButton9, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
|
|
9159
|
+
/* @__PURE__ */ React121.createElement(
|
|
9014
9160
|
ToggleButtonGroup2,
|
|
9015
9161
|
{
|
|
9016
9162
|
value: editorState,
|
|
@@ -9040,8 +9186,8 @@ var InlineEditorToolbar = ({
|
|
|
9040
9186
|
}
|
|
9041
9187
|
}
|
|
9042
9188
|
},
|
|
9043
|
-
formatButtonsList.map((button) => /* @__PURE__ */
|
|
9044
|
-
|
|
9189
|
+
formatButtonsList.map((button) => /* @__PURE__ */ React121.createElement(Tooltip11, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React121.createElement(
|
|
9190
|
+
ToggleButton4,
|
|
9045
9191
|
{
|
|
9046
9192
|
value: button.action,
|
|
9047
9193
|
"aria-label": button.label,
|
|
@@ -9058,7 +9204,7 @@ var InlineEditorToolbar = ({
|
|
|
9058
9204
|
button.icon
|
|
9059
9205
|
)))
|
|
9060
9206
|
),
|
|
9061
|
-
/* @__PURE__ */
|
|
9207
|
+
/* @__PURE__ */ React121.createElement(
|
|
9062
9208
|
UrlPopover,
|
|
9063
9209
|
{
|
|
9064
9210
|
popupState: linkPopupState,
|
|
@@ -9081,64 +9227,64 @@ var checkIfElementIsClickable = (elementId) => {
|
|
|
9081
9227
|
};
|
|
9082
9228
|
var toolbarButtons = {
|
|
9083
9229
|
clear: {
|
|
9084
|
-
label:
|
|
9085
|
-
icon: /* @__PURE__ */
|
|
9230
|
+
label: __62("Clear", "elementor"),
|
|
9231
|
+
icon: /* @__PURE__ */ React121.createElement(MinusIcon2, { fontSize: "tiny" }),
|
|
9086
9232
|
action: "clear",
|
|
9087
9233
|
method: (editor) => {
|
|
9088
9234
|
editor.chain().focus().clearNodes().unsetAllMarks().run();
|
|
9089
9235
|
}
|
|
9090
9236
|
},
|
|
9091
9237
|
bold: {
|
|
9092
|
-
label:
|
|
9093
|
-
icon: /* @__PURE__ */
|
|
9238
|
+
label: __62("Bold", "elementor"),
|
|
9239
|
+
icon: /* @__PURE__ */ React121.createElement(BoldIcon, { fontSize: "tiny" }),
|
|
9094
9240
|
action: "bold",
|
|
9095
9241
|
method: (editor) => {
|
|
9096
9242
|
editor.chain().focus().toggleBold().run();
|
|
9097
9243
|
}
|
|
9098
9244
|
},
|
|
9099
9245
|
italic: {
|
|
9100
|
-
label:
|
|
9101
|
-
icon: /* @__PURE__ */
|
|
9246
|
+
label: __62("Italic", "elementor"),
|
|
9247
|
+
icon: /* @__PURE__ */ React121.createElement(ItalicIcon, { fontSize: "tiny" }),
|
|
9102
9248
|
action: "italic",
|
|
9103
9249
|
method: (editor) => {
|
|
9104
9250
|
editor.chain().focus().toggleItalic().run();
|
|
9105
9251
|
}
|
|
9106
9252
|
},
|
|
9107
9253
|
underline: {
|
|
9108
|
-
label:
|
|
9109
|
-
icon: /* @__PURE__ */
|
|
9254
|
+
label: __62("Underline", "elementor"),
|
|
9255
|
+
icon: /* @__PURE__ */ React121.createElement(UnderlineIcon, { fontSize: "tiny" }),
|
|
9110
9256
|
action: "underline",
|
|
9111
9257
|
method: (editor) => {
|
|
9112
9258
|
editor.chain().focus().toggleUnderline().run();
|
|
9113
9259
|
}
|
|
9114
9260
|
},
|
|
9115
9261
|
strike: {
|
|
9116
|
-
label:
|
|
9117
|
-
icon: /* @__PURE__ */
|
|
9262
|
+
label: __62("Strikethrough", "elementor"),
|
|
9263
|
+
icon: /* @__PURE__ */ React121.createElement(StrikethroughIcon, { fontSize: "tiny" }),
|
|
9118
9264
|
action: "strike",
|
|
9119
9265
|
method: (editor) => {
|
|
9120
9266
|
editor.chain().focus().toggleStrike().run();
|
|
9121
9267
|
}
|
|
9122
9268
|
},
|
|
9123
9269
|
superscript: {
|
|
9124
|
-
label:
|
|
9125
|
-
icon: /* @__PURE__ */
|
|
9270
|
+
label: __62("Superscript", "elementor"),
|
|
9271
|
+
icon: /* @__PURE__ */ React121.createElement(SuperscriptIcon, { fontSize: "tiny" }),
|
|
9126
9272
|
action: "superscript",
|
|
9127
9273
|
method: (editor) => {
|
|
9128
9274
|
editor.chain().focus().toggleSuperscript().run();
|
|
9129
9275
|
}
|
|
9130
9276
|
},
|
|
9131
9277
|
subscript: {
|
|
9132
|
-
label:
|
|
9133
|
-
icon: /* @__PURE__ */
|
|
9278
|
+
label: __62("Subscript", "elementor"),
|
|
9279
|
+
icon: /* @__PURE__ */ React121.createElement(SubscriptIcon, { fontSize: "tiny" }),
|
|
9134
9280
|
action: "subscript",
|
|
9135
9281
|
method: (editor) => {
|
|
9136
9282
|
editor.chain().focus().toggleSubscript().run();
|
|
9137
9283
|
}
|
|
9138
9284
|
},
|
|
9139
9285
|
link: {
|
|
9140
|
-
label:
|
|
9141
|
-
icon: /* @__PURE__ */
|
|
9286
|
+
label: __62("Link", "elementor"),
|
|
9287
|
+
icon: /* @__PURE__ */ React121.createElement(LinkIcon3, { fontSize: "tiny" }),
|
|
9142
9288
|
action: "link",
|
|
9143
9289
|
method: null
|
|
9144
9290
|
}
|
|
@@ -9151,7 +9297,7 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
|
|
|
9151
9297
|
const { setValue, placeholder, value } = useBoundProp(escapedHtmlPropTypeUtil2);
|
|
9152
9298
|
const { value: rawValue } = usePropKeyContext();
|
|
9153
9299
|
const content = value ?? extractInlineHtmlContent(rawValue);
|
|
9154
|
-
const [editor, setEditor] =
|
|
9300
|
+
const [editor, setEditor] = useState21(null);
|
|
9155
9301
|
const handleChange = useCallback4(
|
|
9156
9302
|
(newValue) => {
|
|
9157
9303
|
const html = newValue ?? "";
|
|
@@ -9159,7 +9305,7 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
|
|
|
9159
9305
|
},
|
|
9160
9306
|
[setValue]
|
|
9161
9307
|
);
|
|
9162
|
-
return /* @__PURE__ */
|
|
9308
|
+
return /* @__PURE__ */ React122.createElement(ControlActions, null, /* @__PURE__ */ React122.createElement(Box31, { sx: { position: "relative" } }, editor && editor.isEditable && /* @__PURE__ */ React122.createElement(
|
|
9163
9309
|
InlineEditorToolbar,
|
|
9164
9310
|
{
|
|
9165
9311
|
editor,
|
|
@@ -9172,8 +9318,8 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
|
|
|
9172
9318
|
}),
|
|
9173
9319
|
inControlPanel: true
|
|
9174
9320
|
}
|
|
9175
|
-
), /* @__PURE__ */
|
|
9176
|
-
|
|
9321
|
+
), /* @__PURE__ */ React122.createElement(
|
|
9322
|
+
Box31,
|
|
9177
9323
|
{
|
|
9178
9324
|
sx: (theme) => ({
|
|
9179
9325
|
p: 0.8,
|
|
@@ -9217,7 +9363,7 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
|
|
|
9217
9363
|
...attributes,
|
|
9218
9364
|
...props
|
|
9219
9365
|
},
|
|
9220
|
-
/* @__PURE__ */
|
|
9366
|
+
/* @__PURE__ */ React122.createElement(
|
|
9221
9367
|
InlineEditor,
|
|
9222
9368
|
{
|
|
9223
9369
|
value: content,
|
|
@@ -9234,17 +9380,17 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
|
|
|
9234
9380
|
});
|
|
9235
9381
|
|
|
9236
9382
|
// src/controls/email-form-action-control/index.tsx
|
|
9237
|
-
import * as
|
|
9383
|
+
import * as React126 from "react";
|
|
9238
9384
|
import { emailsPropTypeUtil } from "@elementor/editor-props";
|
|
9239
9385
|
import { CollapsibleContent } from "@elementor/editor-ui";
|
|
9240
|
-
import { Box as
|
|
9241
|
-
import { __ as
|
|
9386
|
+
import { Box as Box32, Divider as Divider6, Stack as Stack24 } from "@elementor/ui";
|
|
9387
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
9242
9388
|
|
|
9243
9389
|
// src/controls/email-form-action-control/fields.tsx
|
|
9244
|
-
import * as
|
|
9390
|
+
import * as React125 from "react";
|
|
9245
9391
|
import { InfoAlert as InfoAlert2 } from "@elementor/editor-ui";
|
|
9246
|
-
import { Grid as Grid34, Stack as
|
|
9247
|
-
import { __ as
|
|
9392
|
+
import { Grid as Grid34, Stack as Stack23 } from "@elementor/ui";
|
|
9393
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
9248
9394
|
|
|
9249
9395
|
// src/hooks/use-form-field-suggestions.ts
|
|
9250
9396
|
import { getContainer as getContainer3, getSelectedElements as getSelectedElements3, getWidgetsCache } from "@elementor/editor-elements";
|
|
@@ -9333,8 +9479,8 @@ function useFormFieldSuggestions(options) {
|
|
|
9333
9479
|
}
|
|
9334
9480
|
|
|
9335
9481
|
// src/controls/email-form-action-control/email-chips-field.tsx
|
|
9336
|
-
import * as
|
|
9337
|
-
import { useMemo as useMemo19, useState as
|
|
9482
|
+
import * as React123 from "react";
|
|
9483
|
+
import { useMemo as useMemo19, useState as useState22 } from "react";
|
|
9338
9484
|
import { stringArrayPropTypeUtil as stringArrayPropTypeUtil3, stringPropTypeUtil as stringPropTypeUtil23 } from "@elementor/editor-props";
|
|
9339
9485
|
import { Autocomplete as Autocomplete4, Grid as Grid32, TextField as TextField12 } from "@elementor/ui";
|
|
9340
9486
|
|
|
@@ -9372,7 +9518,7 @@ function resolveMention(raw, suggestions) {
|
|
|
9372
9518
|
}
|
|
9373
9519
|
var EmailChipsControl = createControl(({ placeholder, suggestions = [] }) => {
|
|
9374
9520
|
const { value, setValue, disabled } = useBoundProp(stringArrayPropTypeUtil3);
|
|
9375
|
-
const [inputValue, setInputValue] =
|
|
9521
|
+
const [inputValue, setInputValue] = useState22("");
|
|
9376
9522
|
const items2 = value || [];
|
|
9377
9523
|
const selectedValues = items2.map((item) => stringPropTypeUtil23.extract(item)).filter((val) => val !== null);
|
|
9378
9524
|
const suggestionOptions = useMemo19(
|
|
@@ -9410,7 +9556,7 @@ var EmailChipsControl = createControl(({ placeholder, suggestions = [] }) => {
|
|
|
9410
9556
|
tryAddChip(inputValue);
|
|
9411
9557
|
}
|
|
9412
9558
|
};
|
|
9413
|
-
return /* @__PURE__ */
|
|
9559
|
+
return /* @__PURE__ */ React123.createElement(ControlActions, null, /* @__PURE__ */ React123.createElement(
|
|
9414
9560
|
Autocomplete4,
|
|
9415
9561
|
{
|
|
9416
9562
|
fullWidth: true,
|
|
@@ -9435,99 +9581,99 @@ var EmailChipsControl = createControl(({ placeholder, suggestions = [] }) => {
|
|
|
9435
9581
|
onBlur: handleBlur,
|
|
9436
9582
|
getOptionLabel: (option) => option,
|
|
9437
9583
|
isOptionEqualToValue: (option, val) => option === val,
|
|
9438
|
-
renderInput: (params) => /* @__PURE__ */
|
|
9439
|
-
renderTags: (tagValues, getTagProps) => /* @__PURE__ */
|
|
9584
|
+
renderInput: (params) => /* @__PURE__ */ React123.createElement(TextField12, { ...params, placeholder, onKeyDown: handleKeyDown }),
|
|
9585
|
+
renderTags: (tagValues, getTagProps) => /* @__PURE__ */ React123.createElement(ChipsList, { getLabel: (option) => option, getTagProps, values: tagValues })
|
|
9440
9586
|
}
|
|
9441
9587
|
));
|
|
9442
9588
|
});
|
|
9443
|
-
var EmailChipsField = ({ fieldLabel, placeholder, suggestions }) => /* @__PURE__ */
|
|
9589
|
+
var EmailChipsField = ({ fieldLabel, placeholder, suggestions }) => /* @__PURE__ */ React123.createElement(Grid32, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React123.createElement(Grid32, { item: true }, /* @__PURE__ */ React123.createElement(ControlFormLabel, null, fieldLabel)), /* @__PURE__ */ React123.createElement(Grid32, { item: true }, /* @__PURE__ */ React123.createElement(EmailChipsControl, { placeholder, suggestions })));
|
|
9444
9590
|
|
|
9445
9591
|
// src/controls/email-form-action-control/email-field.tsx
|
|
9446
|
-
import * as
|
|
9592
|
+
import * as React124 from "react";
|
|
9447
9593
|
import { Grid as Grid33 } from "@elementor/ui";
|
|
9448
|
-
var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */
|
|
9594
|
+
var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React124.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React124.createElement(Grid33, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React124.createElement(Grid33, { item: true }, /* @__PURE__ */ React124.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React124.createElement(Grid33, { item: true }, /* @__PURE__ */ React124.createElement(TextControl, { placeholder }))));
|
|
9449
9595
|
|
|
9450
9596
|
// src/controls/email-form-action-control/fields.tsx
|
|
9451
9597
|
var SendToField = ({ placeholder }) => {
|
|
9452
9598
|
const suggestions = useFormFieldSuggestions({ inputType: "email" });
|
|
9453
|
-
return /* @__PURE__ */
|
|
9599
|
+
return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "to" }, /* @__PURE__ */ React125.createElement(Stack23, { gap: 0.5 }, /* @__PURE__ */ React125.createElement(
|
|
9454
9600
|
EmailChipsField,
|
|
9455
9601
|
{
|
|
9456
|
-
fieldLabel:
|
|
9602
|
+
fieldLabel: __63("Send to", "elementor"),
|
|
9457
9603
|
placeholder,
|
|
9458
9604
|
suggestions
|
|
9459
9605
|
}
|
|
9460
|
-
), shouldShowMentionsInfo() && /* @__PURE__ */
|
|
9606
|
+
), shouldShowMentionsInfo() && /* @__PURE__ */ React125.createElement(InfoAlert2, null, __63("Type @ or an email field name to insert its submitted value.", "elementor"))));
|
|
9461
9607
|
};
|
|
9462
|
-
var SubjectField = () => /* @__PURE__ */
|
|
9608
|
+
var SubjectField = () => /* @__PURE__ */ React125.createElement(
|
|
9463
9609
|
EmailField,
|
|
9464
9610
|
{
|
|
9465
9611
|
bind: "subject",
|
|
9466
|
-
label:
|
|
9467
|
-
placeholder:
|
|
9612
|
+
label: __63("Email subject", "elementor"),
|
|
9613
|
+
placeholder: __63("New form submission", "elementor")
|
|
9468
9614
|
}
|
|
9469
9615
|
);
|
|
9470
9616
|
var MessageField = () => {
|
|
9471
9617
|
const suggestions = useFormFieldSuggestions();
|
|
9472
|
-
return /* @__PURE__ */
|
|
9618
|
+
return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React125.createElement(Grid34, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, __63("Message", "elementor"))), /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(InfoAlert2, null, shouldShowMentionsInfo() ? __63(
|
|
9473
9619
|
"[all-fields] shortcode sends all fields. Type @ to insert specific fields and customize your message.",
|
|
9474
9620
|
"elementor"
|
|
9475
|
-
) :
|
|
9621
|
+
) : __63("[all-fields] shortcode sends all fields.", "elementor")))));
|
|
9476
9622
|
};
|
|
9477
|
-
var FromEmailField = () => /* @__PURE__ */
|
|
9623
|
+
var FromEmailField = () => /* @__PURE__ */ React125.createElement(
|
|
9478
9624
|
EmailField,
|
|
9479
9625
|
{
|
|
9480
9626
|
bind: "from",
|
|
9481
|
-
label:
|
|
9482
|
-
placeholder:
|
|
9627
|
+
label: __63("From email", "elementor"),
|
|
9628
|
+
placeholder: __63("What email should appear as the sender?", "elementor")
|
|
9483
9629
|
}
|
|
9484
9630
|
);
|
|
9485
|
-
var FromNameField = () => /* @__PURE__ */
|
|
9631
|
+
var FromNameField = () => /* @__PURE__ */ React125.createElement(
|
|
9486
9632
|
EmailField,
|
|
9487
9633
|
{
|
|
9488
9634
|
bind: "from-name",
|
|
9489
|
-
label:
|
|
9490
|
-
placeholder:
|
|
9635
|
+
label: __63("From name", "elementor"),
|
|
9636
|
+
placeholder: __63("What name should appear as the sender?", "elementor")
|
|
9491
9637
|
}
|
|
9492
9638
|
);
|
|
9493
9639
|
var ReplyToField = () => {
|
|
9494
9640
|
const emailSuggestions = useFormFieldSuggestions({ inputType: "email" });
|
|
9495
|
-
return /* @__PURE__ */
|
|
9641
|
+
return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "reply-to" }, /* @__PURE__ */ React125.createElement(Grid34, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, __63("Reply-to", "elementor"))), /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(
|
|
9496
9642
|
MentionTextAreaControl,
|
|
9497
9643
|
{
|
|
9498
9644
|
suggestions: emailSuggestions,
|
|
9499
9645
|
rows: 1,
|
|
9500
9646
|
triggerPosition: "start",
|
|
9501
|
-
placeholder:
|
|
9647
|
+
placeholder: __63("You can type @ to insert an email field", "elementor")
|
|
9502
9648
|
}
|
|
9503
9649
|
))));
|
|
9504
9650
|
};
|
|
9505
9651
|
var CcField = () => {
|
|
9506
9652
|
const suggestions = useFormFieldSuggestions({ inputType: "email" });
|
|
9507
|
-
return /* @__PURE__ */
|
|
9653
|
+
return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "cc" }, /* @__PURE__ */ React125.createElement(EmailChipsField, { fieldLabel: __63("Cc", "elementor"), suggestions }));
|
|
9508
9654
|
};
|
|
9509
9655
|
var BccField = () => {
|
|
9510
9656
|
const suggestions = useFormFieldSuggestions({ inputType: "email" });
|
|
9511
|
-
return /* @__PURE__ */
|
|
9657
|
+
return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "bcc" }, /* @__PURE__ */ React125.createElement(EmailChipsField, { fieldLabel: __63("Bcc", "elementor"), suggestions }));
|
|
9512
9658
|
};
|
|
9513
|
-
var MetaDataField = () => /* @__PURE__ */
|
|
9659
|
+
var MetaDataField = () => /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React125.createElement(Stack23, { gap: 0.5 }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, __63("Metadata", "elementor")), /* @__PURE__ */ React125.createElement(
|
|
9514
9660
|
ChipsControl,
|
|
9515
9661
|
{
|
|
9516
9662
|
options: [
|
|
9517
|
-
{ label:
|
|
9518
|
-
{ label:
|
|
9519
|
-
{ label:
|
|
9520
|
-
{ label:
|
|
9521
|
-
{ label:
|
|
9663
|
+
{ label: __63("Date", "elementor"), value: "date" },
|
|
9664
|
+
{ label: __63("Time", "elementor"), value: "time" },
|
|
9665
|
+
{ label: __63("Page URL", "elementor"), value: "page-url" },
|
|
9666
|
+
{ label: __63("User agent", "elementor"), value: "user-agent" },
|
|
9667
|
+
{ label: __63("Credit", "elementor"), value: "credit" }
|
|
9522
9668
|
]
|
|
9523
9669
|
}
|
|
9524
9670
|
)));
|
|
9525
|
-
var SendAsField = () => /* @__PURE__ */
|
|
9671
|
+
var SendAsField = () => /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React125.createElement(Grid34, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, __63("Send as", "elementor"))), /* @__PURE__ */ React125.createElement(Grid34, { item: true }, /* @__PURE__ */ React125.createElement(
|
|
9526
9672
|
SelectControl,
|
|
9527
9673
|
{
|
|
9528
9674
|
options: [
|
|
9529
|
-
{ label:
|
|
9530
|
-
{ label:
|
|
9675
|
+
{ label: __63("HTML", "elementor"), value: "html" },
|
|
9676
|
+
{ label: __63("Plain Text", "elementor"), value: "plain" }
|
|
9531
9677
|
]
|
|
9532
9678
|
}
|
|
9533
9679
|
))));
|
|
@@ -9536,25 +9682,25 @@ var SendAsField = () => /* @__PURE__ */ React124.createElement(PropKeyProvider,
|
|
|
9536
9682
|
var EmailFormActionControl = createControl(
|
|
9537
9683
|
({ toPlaceholder, label }) => {
|
|
9538
9684
|
const { value, setValue, ...propContext } = useBoundProp(emailsPropTypeUtil);
|
|
9539
|
-
return /* @__PURE__ */
|
|
9685
|
+
return /* @__PURE__ */ React126.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React126.createElement(Stack24, { gap: 2 }, /* @__PURE__ */ React126.createElement(ControlLabel, null, label ? label + " " + __64("settings", "elementor") : __64("Email settings", "elementor")), /* @__PURE__ */ React126.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React126.createElement(SubjectField, null), /* @__PURE__ */ React126.createElement(MessageField, null), /* @__PURE__ */ React126.createElement(FromEmailField, null), /* @__PURE__ */ React126.createElement(AdvancedSettings, null)));
|
|
9540
9686
|
}
|
|
9541
9687
|
);
|
|
9542
|
-
var AdvancedSettings = () => /* @__PURE__ */
|
|
9688
|
+
var AdvancedSettings = () => /* @__PURE__ */ React126.createElement(CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React126.createElement(Box32, { sx: { pt: 2 } }, /* @__PURE__ */ React126.createElement(Stack24, { gap: 2 }, /* @__PURE__ */ React126.createElement(FromNameField, null), /* @__PURE__ */ React126.createElement(ReplyToField, null), /* @__PURE__ */ React126.createElement(CcField, null), /* @__PURE__ */ React126.createElement(BccField, null), /* @__PURE__ */ React126.createElement(Divider6, null), /* @__PURE__ */ React126.createElement(MetaDataField, null), /* @__PURE__ */ React126.createElement(SendAsField, null))));
|
|
9543
9689
|
|
|
9544
9690
|
// src/controls/attachment-type-control.tsx
|
|
9545
|
-
import * as
|
|
9691
|
+
import * as React127 from "react";
|
|
9546
9692
|
import { InfoAlert as InfoAlert3 } from "@elementor/editor-ui";
|
|
9547
9693
|
import { Grid as Grid35 } from "@elementor/ui";
|
|
9548
|
-
import { __ as
|
|
9694
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
9549
9695
|
var AttachmentTypeControl = createControl(({ label, options }) => {
|
|
9550
|
-
return /* @__PURE__ */
|
|
9696
|
+
return /* @__PURE__ */ React127.createElement(Grid35, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React127.createElement(Grid35, { item: true }, /* @__PURE__ */ React127.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React127.createElement(Grid35, { item: true }, /* @__PURE__ */ React127.createElement(SelectControl, { options })), /* @__PURE__ */ React127.createElement(Grid35, { item: true }, /* @__PURE__ */ React127.createElement(InfoAlert3, null, __65(
|
|
9551
9697
|
"Linked uploads are saved to the server. Direct attachments will not appear under Submissions.",
|
|
9552
9698
|
"elementor"
|
|
9553
9699
|
))));
|
|
9554
9700
|
});
|
|
9555
9701
|
|
|
9556
9702
|
// src/controls/grid-span-control.tsx
|
|
9557
|
-
import * as
|
|
9703
|
+
import * as React128 from "react";
|
|
9558
9704
|
import { spanPropTypeUtil } from "@elementor/editor-props";
|
|
9559
9705
|
import { TextField as TextField13 } from "@elementor/ui";
|
|
9560
9706
|
var GridSpanControl = createControl(
|
|
@@ -9573,7 +9719,7 @@ var GridSpanControl = createControl(
|
|
|
9573
9719
|
setValue(next === "" ? null : next);
|
|
9574
9720
|
};
|
|
9575
9721
|
const placeholder = propPlaceholder ?? boundPlaceholder ?? `e.g: 'span 2' or '1 / 3'`;
|
|
9576
|
-
return /* @__PURE__ */
|
|
9722
|
+
return /* @__PURE__ */ React128.createElement(ControlActions, null, /* @__PURE__ */ React128.createElement(
|
|
9577
9723
|
TextField13,
|
|
9578
9724
|
{
|
|
9579
9725
|
size: "tiny",
|
|
@@ -9594,23 +9740,23 @@ var GridSpanControl = createControl(
|
|
|
9594
9740
|
);
|
|
9595
9741
|
|
|
9596
9742
|
// src/components/promotions/display-conditions-control.tsx
|
|
9597
|
-
import * as
|
|
9743
|
+
import * as React130 from "react";
|
|
9598
9744
|
import { useRef as useRef32 } from "react";
|
|
9599
9745
|
import { SitemapIcon } from "@elementor/icons";
|
|
9600
|
-
import { IconButton as IconButton10, Stack as
|
|
9601
|
-
import { __ as
|
|
9746
|
+
import { IconButton as IconButton10, Stack as Stack25, Tooltip as Tooltip12 } from "@elementor/ui";
|
|
9747
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
9602
9748
|
|
|
9603
9749
|
// src/components/promotions/promotion-trigger.tsx
|
|
9604
|
-
import * as
|
|
9605
|
-
import { forwardRef as forwardRef12, useCallback as useCallback5, useImperativeHandle, useState as
|
|
9750
|
+
import * as React129 from "react";
|
|
9751
|
+
import { forwardRef as forwardRef12, useCallback as useCallback5, useImperativeHandle, useState as useState23 } from "react";
|
|
9606
9752
|
import { PromotionChip as PromotionChip2, PromotionInfotip } from "@elementor/editor-ui";
|
|
9607
|
-
import { Box as
|
|
9753
|
+
import { Box as Box33 } from "@elementor/ui";
|
|
9608
9754
|
function getV4Promotion(key) {
|
|
9609
9755
|
return window.elementor?.config?.v4Promotions?.[key];
|
|
9610
9756
|
}
|
|
9611
9757
|
var PromotionTrigger = forwardRef12(
|
|
9612
9758
|
({ promotionKey, children, trackingData }, ref) => {
|
|
9613
|
-
const [isOpen, setIsOpen] =
|
|
9759
|
+
const [isOpen, setIsOpen] = useState23(false);
|
|
9614
9760
|
const promotion = getV4Promotion(promotionKey);
|
|
9615
9761
|
const toggle = useCallback5(() => {
|
|
9616
9762
|
setIsOpen((prev) => {
|
|
@@ -9621,7 +9767,7 @@ var PromotionTrigger = forwardRef12(
|
|
|
9621
9767
|
});
|
|
9622
9768
|
}, [trackingData]);
|
|
9623
9769
|
useImperativeHandle(ref, () => ({ toggle }), [toggle]);
|
|
9624
|
-
return /* @__PURE__ */
|
|
9770
|
+
return /* @__PURE__ */ React129.createElement(React129.Fragment, null, promotion && /* @__PURE__ */ React129.createElement(
|
|
9625
9771
|
PromotionInfotip,
|
|
9626
9772
|
{
|
|
9627
9773
|
title: promotion.title,
|
|
@@ -9635,8 +9781,8 @@ var PromotionTrigger = forwardRef12(
|
|
|
9635
9781
|
},
|
|
9636
9782
|
onCtaClick: () => trackUpgradePromotionClick(trackingData)
|
|
9637
9783
|
},
|
|
9638
|
-
/* @__PURE__ */
|
|
9639
|
-
|
|
9784
|
+
/* @__PURE__ */ React129.createElement(
|
|
9785
|
+
Box33,
|
|
9640
9786
|
{
|
|
9641
9787
|
onClick: (e) => {
|
|
9642
9788
|
e.stopPropagation();
|
|
@@ -9644,19 +9790,19 @@ var PromotionTrigger = forwardRef12(
|
|
|
9644
9790
|
},
|
|
9645
9791
|
sx: { cursor: "pointer", display: "inline-flex" }
|
|
9646
9792
|
},
|
|
9647
|
-
children ?? /* @__PURE__ */
|
|
9793
|
+
children ?? /* @__PURE__ */ React129.createElement(PromotionChip2, null)
|
|
9648
9794
|
)
|
|
9649
9795
|
));
|
|
9650
9796
|
}
|
|
9651
9797
|
);
|
|
9652
9798
|
|
|
9653
9799
|
// src/components/promotions/display-conditions-control.tsx
|
|
9654
|
-
var ARIA_LABEL =
|
|
9800
|
+
var ARIA_LABEL = __66("Display Conditions", "elementor");
|
|
9655
9801
|
var TRACKING_DATA = { target_name: "display_conditions", location_l2: "general" };
|
|
9656
9802
|
var DisplayConditionsControl = createControl(() => {
|
|
9657
9803
|
const triggerRef = useRef32(null);
|
|
9658
|
-
return /* @__PURE__ */
|
|
9659
|
-
|
|
9804
|
+
return /* @__PURE__ */ React130.createElement(
|
|
9805
|
+
Stack25,
|
|
9660
9806
|
{
|
|
9661
9807
|
direction: "row",
|
|
9662
9808
|
spacing: 2,
|
|
@@ -9665,8 +9811,8 @@ var DisplayConditionsControl = createControl(() => {
|
|
|
9665
9811
|
alignItems: "center"
|
|
9666
9812
|
}
|
|
9667
9813
|
},
|
|
9668
|
-
/* @__PURE__ */
|
|
9669
|
-
/* @__PURE__ */
|
|
9814
|
+
/* @__PURE__ */ React130.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
|
|
9815
|
+
/* @__PURE__ */ React130.createElement(Tooltip12, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React130.createElement(
|
|
9670
9816
|
IconButton10,
|
|
9671
9817
|
{
|
|
9672
9818
|
size: "tiny",
|
|
@@ -9679,23 +9825,23 @@ var DisplayConditionsControl = createControl(() => {
|
|
|
9679
9825
|
borderRadius: 1
|
|
9680
9826
|
}
|
|
9681
9827
|
},
|
|
9682
|
-
/* @__PURE__ */
|
|
9828
|
+
/* @__PURE__ */ React130.createElement(SitemapIcon, { fontSize: "tiny", color: "disabled" })
|
|
9683
9829
|
))
|
|
9684
9830
|
);
|
|
9685
9831
|
});
|
|
9686
9832
|
|
|
9687
9833
|
// src/components/promotions/attributes-control.tsx
|
|
9688
|
-
import * as
|
|
9834
|
+
import * as React131 from "react";
|
|
9689
9835
|
import { useRef as useRef33 } from "react";
|
|
9690
9836
|
import { PlusIcon as PlusIcon4 } from "@elementor/icons";
|
|
9691
|
-
import { Stack as
|
|
9692
|
-
import { __ as
|
|
9693
|
-
var ARIA_LABEL2 =
|
|
9837
|
+
import { Stack as Stack26, Tooltip as Tooltip13 } from "@elementor/ui";
|
|
9838
|
+
import { __ as __67 } from "@wordpress/i18n";
|
|
9839
|
+
var ARIA_LABEL2 = __67("Attributes", "elementor");
|
|
9694
9840
|
var TRACKING_DATA2 = { target_name: "attributes", location_l2: "general" };
|
|
9695
9841
|
var AttributesControl = createControl(() => {
|
|
9696
9842
|
const triggerRef = useRef33(null);
|
|
9697
|
-
return /* @__PURE__ */
|
|
9698
|
-
|
|
9843
|
+
return /* @__PURE__ */ React131.createElement(
|
|
9844
|
+
Stack26,
|
|
9699
9845
|
{
|
|
9700
9846
|
direction: "row",
|
|
9701
9847
|
spacing: 2,
|
|
@@ -9704,8 +9850,8 @@ var AttributesControl = createControl(() => {
|
|
|
9704
9850
|
alignItems: "center"
|
|
9705
9851
|
}
|
|
9706
9852
|
},
|
|
9707
|
-
/* @__PURE__ */
|
|
9708
|
-
/* @__PURE__ */
|
|
9853
|
+
/* @__PURE__ */ React131.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
|
|
9854
|
+
/* @__PURE__ */ React131.createElement(Tooltip13, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React131.createElement(
|
|
9709
9855
|
PlusIcon4,
|
|
9710
9856
|
{
|
|
9711
9857
|
"aria-label": ARIA_LABEL2,
|
|
@@ -9719,29 +9865,29 @@ var AttributesControl = createControl(() => {
|
|
|
9719
9865
|
});
|
|
9720
9866
|
|
|
9721
9867
|
// src/components/icon-buttons/clear-icon-button.tsx
|
|
9722
|
-
import * as
|
|
9868
|
+
import * as React132 from "react";
|
|
9723
9869
|
import { BrushBigIcon } from "@elementor/icons";
|
|
9724
|
-
import { IconButton as IconButton11, styled as styled13, Tooltip as
|
|
9870
|
+
import { IconButton as IconButton11, styled as styled13, Tooltip as Tooltip14 } from "@elementor/ui";
|
|
9725
9871
|
var CustomIconButton = styled13(IconButton11)(({ theme }) => ({
|
|
9726
9872
|
width: theme.spacing(2.5),
|
|
9727
9873
|
height: theme.spacing(2.5)
|
|
9728
9874
|
}));
|
|
9729
|
-
var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */
|
|
9875
|
+
var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React132.createElement(Tooltip14, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React132.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React132.createElement(BrushBigIcon, { fontSize: size })));
|
|
9730
9876
|
|
|
9731
9877
|
// src/components/repeater/repeater.tsx
|
|
9732
|
-
import * as
|
|
9733
|
-
import { useEffect as useEffect21, useState as
|
|
9878
|
+
import * as React133 from "react";
|
|
9879
|
+
import { useEffect as useEffect21, useState as useState24 } from "react";
|
|
9734
9880
|
import { CopyIcon as CopyIcon2, EyeIcon as EyeIcon2, EyeOffIcon as EyeOffIcon2, PlusIcon as PlusIcon5, XIcon as XIcon4 } from "@elementor/icons";
|
|
9735
9881
|
import {
|
|
9736
9882
|
bindPopover as bindPopover9,
|
|
9737
9883
|
bindTrigger as bindTrigger7,
|
|
9738
|
-
Box as
|
|
9884
|
+
Box as Box34,
|
|
9739
9885
|
IconButton as IconButton12,
|
|
9740
9886
|
Infotip as Infotip4,
|
|
9741
|
-
Tooltip as
|
|
9742
|
-
usePopupState as
|
|
9887
|
+
Tooltip as Tooltip15,
|
|
9888
|
+
usePopupState as usePopupState13
|
|
9743
9889
|
} from "@elementor/ui";
|
|
9744
|
-
import { __ as
|
|
9890
|
+
import { __ as __68 } from "@wordpress/i18n";
|
|
9745
9891
|
var SIZE12 = "tiny";
|
|
9746
9892
|
var EMPTY_OPEN_ITEM2 = -1;
|
|
9747
9893
|
var Repeater3 = ({
|
|
@@ -9760,7 +9906,7 @@ var Repeater3 = ({
|
|
|
9760
9906
|
isSortable = true,
|
|
9761
9907
|
adornment = ControlAdornments
|
|
9762
9908
|
}) => {
|
|
9763
|
-
const [openItem, setOpenItem] =
|
|
9909
|
+
const [openItem, setOpenItem] = useState24(initialOpenItem);
|
|
9764
9910
|
const uniqueKeys = items2.map(
|
|
9765
9911
|
(item, index) => isSortable && "getId" in itemSettings ? itemSettings.getId({ item, index }) : String(index)
|
|
9766
9912
|
);
|
|
@@ -9823,7 +9969,7 @@ var Repeater3 = ({
|
|
|
9823
9969
|
};
|
|
9824
9970
|
const isButtonDisabled = disabled || disableAddItemButton;
|
|
9825
9971
|
const shouldShowInfotip = isButtonDisabled && addButtonInfotipContent;
|
|
9826
|
-
const addButton = /* @__PURE__ */
|
|
9972
|
+
const addButton = /* @__PURE__ */ React133.createElement(
|
|
9827
9973
|
IconButton12,
|
|
9828
9974
|
{
|
|
9829
9975
|
size: SIZE12,
|
|
@@ -9832,11 +9978,11 @@ var Repeater3 = ({
|
|
|
9832
9978
|
},
|
|
9833
9979
|
disabled: isButtonDisabled,
|
|
9834
9980
|
onClick: addRepeaterItem,
|
|
9835
|
-
"aria-label":
|
|
9981
|
+
"aria-label": __68("Add item", "elementor")
|
|
9836
9982
|
},
|
|
9837
|
-
/* @__PURE__ */
|
|
9983
|
+
/* @__PURE__ */ React133.createElement(PlusIcon5, { fontSize: SIZE12 })
|
|
9838
9984
|
);
|
|
9839
|
-
return /* @__PURE__ */
|
|
9985
|
+
return /* @__PURE__ */ React133.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React133.createElement(RepeaterHeader, { label, adornment }, shouldShowInfotip ? /* @__PURE__ */ React133.createElement(
|
|
9840
9986
|
Infotip4,
|
|
9841
9987
|
{
|
|
9842
9988
|
placement: "right",
|
|
@@ -9844,20 +9990,20 @@ var Repeater3 = ({
|
|
|
9844
9990
|
color: "secondary",
|
|
9845
9991
|
slotProps: { popper: { sx: { width: 300 } } }
|
|
9846
9992
|
},
|
|
9847
|
-
/* @__PURE__ */
|
|
9848
|
-
) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */
|
|
9993
|
+
/* @__PURE__ */ React133.createElement(Box34, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
|
|
9994
|
+
) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React133.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
|
|
9849
9995
|
const index = uniqueKeys.indexOf(key);
|
|
9850
9996
|
const value = items2[index];
|
|
9851
9997
|
if (!value) {
|
|
9852
9998
|
return null;
|
|
9853
9999
|
}
|
|
9854
|
-
return /* @__PURE__ */
|
|
10000
|
+
return /* @__PURE__ */ React133.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React133.createElement(
|
|
9855
10001
|
RepeaterItem,
|
|
9856
10002
|
{
|
|
9857
10003
|
disabled,
|
|
9858
10004
|
propDisabled: value?.disabled,
|
|
9859
|
-
label: /* @__PURE__ */
|
|
9860
|
-
startIcon: /* @__PURE__ */
|
|
10005
|
+
label: /* @__PURE__ */ React133.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React133.createElement(itemSettings.Label, { value, index })),
|
|
10006
|
+
startIcon: /* @__PURE__ */ React133.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React133.createElement(itemSettings.Icon, { value })),
|
|
9861
10007
|
removeItem: () => removeRepeaterItem(index),
|
|
9862
10008
|
duplicateItem: () => duplicateRepeaterItem(index),
|
|
9863
10009
|
toggleDisableItem: () => toggleDisableRepeaterItem(index),
|
|
@@ -9871,7 +10017,7 @@ var Repeater3 = ({
|
|
|
9871
10017
|
actions: itemSettings.actions,
|
|
9872
10018
|
value
|
|
9873
10019
|
},
|
|
9874
|
-
(props) => /* @__PURE__ */
|
|
10020
|
+
(props) => /* @__PURE__ */ React133.createElement(
|
|
9875
10021
|
itemSettings.Content,
|
|
9876
10022
|
{
|
|
9877
10023
|
...props,
|
|
@@ -9913,16 +10059,16 @@ var RepeaterItem = ({
|
|
|
9913
10059
|
);
|
|
9914
10060
|
const triggerProps = bindTrigger7(popoverState);
|
|
9915
10061
|
usePopoverDismiss({ isOpen: popoverState.isOpen, onClose: popoverProps.onClose });
|
|
9916
|
-
const duplicateLabel =
|
|
9917
|
-
const toggleLabel = propDisabled ?
|
|
9918
|
-
const removeLabel =
|
|
9919
|
-
return /* @__PURE__ */
|
|
10062
|
+
const duplicateLabel = __68("Duplicate", "elementor");
|
|
10063
|
+
const toggleLabel = propDisabled ? __68("Show", "elementor") : __68("Hide", "elementor");
|
|
10064
|
+
const removeLabel = __68("Remove", "elementor");
|
|
10065
|
+
return /* @__PURE__ */ React133.createElement(Box34, { sx: { display: "contents" } }, /* @__PURE__ */ React133.createElement(
|
|
9920
10066
|
RepeaterTag,
|
|
9921
10067
|
{
|
|
9922
10068
|
disabled,
|
|
9923
10069
|
label,
|
|
9924
10070
|
ref: setRef,
|
|
9925
|
-
"aria-label":
|
|
10071
|
+
"aria-label": __68("Open item", "elementor"),
|
|
9926
10072
|
...triggerProps,
|
|
9927
10073
|
onClick: (e) => {
|
|
9928
10074
|
triggerProps.onClick(e);
|
|
@@ -9931,13 +10077,13 @@ var RepeaterItem = ({
|
|
|
9931
10077
|
}
|
|
9932
10078
|
},
|
|
9933
10079
|
startIcon,
|
|
9934
|
-
actions: /* @__PURE__ */
|
|
10080
|
+
actions: /* @__PURE__ */ React133.createElement(React133.Fragment, null, showDuplicate && /* @__PURE__ */ React133.createElement(Tooltip15, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React133.createElement(IconButton12, { size: SIZE12, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React133.createElement(CopyIcon2, { fontSize: SIZE12 }))), showToggle && /* @__PURE__ */ React133.createElement(Tooltip15, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React133.createElement(IconButton12, { size: SIZE12, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React133.createElement(EyeOffIcon2, { fontSize: SIZE12 }) : /* @__PURE__ */ React133.createElement(EyeIcon2, { fontSize: SIZE12 }))), actions?.(value), showRemove && /* @__PURE__ */ React133.createElement(Tooltip15, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React133.createElement(IconButton12, { size: SIZE12, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React133.createElement(XIcon4, { fontSize: SIZE12 }))))
|
|
9935
10081
|
}
|
|
9936
|
-
), /* @__PURE__ */
|
|
10082
|
+
), /* @__PURE__ */ React133.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React133.createElement(Box34, null, children({ anchorEl: ref }))));
|
|
9937
10083
|
};
|
|
9938
10084
|
var usePopover = (openOnMount, onOpen, onPopoverClose) => {
|
|
9939
|
-
const [ref, setRef] =
|
|
9940
|
-
const popoverState =
|
|
10085
|
+
const [ref, setRef] = useState24(null);
|
|
10086
|
+
const popoverState = usePopupState13({ variant: "popover" });
|
|
9941
10087
|
const popoverProps = bindPopover9(popoverState);
|
|
9942
10088
|
useEffect21(() => {
|
|
9943
10089
|
if (openOnMount && ref) {
|
|
@@ -9958,7 +10104,7 @@ var usePopover = (openOnMount, onOpen, onPopoverClose) => {
|
|
|
9958
10104
|
};
|
|
9959
10105
|
|
|
9960
10106
|
// src/components/size/unstable-size-field.tsx
|
|
9961
|
-
import * as
|
|
10107
|
+
import * as React136 from "react";
|
|
9962
10108
|
import { InputAdornment as InputAdornment6 } from "@elementor/ui";
|
|
9963
10109
|
|
|
9964
10110
|
// src/hooks/use-size-value.ts
|
|
@@ -10001,25 +10147,25 @@ var differsFromExternal = (newState, externalState) => {
|
|
|
10001
10147
|
};
|
|
10002
10148
|
|
|
10003
10149
|
// src/components/size/unit-select.tsx
|
|
10004
|
-
import * as
|
|
10005
|
-
import { useId as
|
|
10150
|
+
import * as React134 from "react";
|
|
10151
|
+
import { useId as useId5 } from "react";
|
|
10006
10152
|
import { MenuListItem as MenuListItem8 } from "@elementor/editor-ui";
|
|
10007
|
-
import { bindMenu as
|
|
10153
|
+
import { bindMenu as bindMenu4, bindTrigger as bindTrigger8, Button as Button7, Menu as Menu5, styled as styled14, usePopupState as usePopupState14 } from "@elementor/ui";
|
|
10008
10154
|
var menuItemContentStyles2 = {
|
|
10009
10155
|
display: "flex",
|
|
10010
10156
|
flexDirection: "column",
|
|
10011
10157
|
justifyContent: "center"
|
|
10012
10158
|
};
|
|
10013
10159
|
var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
|
|
10014
|
-
const popupState =
|
|
10160
|
+
const popupState = usePopupState14({
|
|
10015
10161
|
variant: "popover",
|
|
10016
|
-
popupId:
|
|
10162
|
+
popupId: useId5()
|
|
10017
10163
|
});
|
|
10018
10164
|
const handleMenuItemClick = (index) => {
|
|
10019
10165
|
onClick(options[index]);
|
|
10020
10166
|
popupState.close();
|
|
10021
10167
|
};
|
|
10022
|
-
return /* @__PURE__ */
|
|
10168
|
+
return /* @__PURE__ */ React134.createElement(React134.Fragment, null, /* @__PURE__ */ React134.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...bindTrigger8(popupState) }, value), /* @__PURE__ */ React134.createElement(Menu5, { MenuListProps: { dense: true }, ...bindMenu4(popupState) }, options.map((option, index) => /* @__PURE__ */ React134.createElement(
|
|
10023
10169
|
MenuListItem8,
|
|
10024
10170
|
{
|
|
10025
10171
|
key: option,
|
|
@@ -10048,11 +10194,11 @@ var StyledButton3 = styled14(Button7, {
|
|
|
10048
10194
|
}));
|
|
10049
10195
|
|
|
10050
10196
|
// src/components/size/unstable-size-input.tsx
|
|
10051
|
-
import * as
|
|
10197
|
+
import * as React135 from "react";
|
|
10052
10198
|
import { forwardRef as forwardRef13 } from "react";
|
|
10053
10199
|
var UnstableSizeInput = forwardRef13(
|
|
10054
10200
|
({ type, value, onChange, onKeyDown, onKeyUp, InputProps, onBlur, focused, disabled }, ref) => {
|
|
10055
|
-
return /* @__PURE__ */
|
|
10201
|
+
return /* @__PURE__ */ React135.createElement(
|
|
10056
10202
|
NumberInput,
|
|
10057
10203
|
{
|
|
10058
10204
|
ref,
|
|
@@ -10090,7 +10236,7 @@ var UnstableSizeField = ({
|
|
|
10090
10236
|
const shouldHighlightUnit2 = () => {
|
|
10091
10237
|
return hasValue(size);
|
|
10092
10238
|
};
|
|
10093
|
-
return /* @__PURE__ */
|
|
10239
|
+
return /* @__PURE__ */ React136.createElement(
|
|
10094
10240
|
UnstableSizeInput,
|
|
10095
10241
|
{
|
|
10096
10242
|
type: "number",
|
|
@@ -10099,8 +10245,8 @@ var UnstableSizeField = ({
|
|
|
10099
10245
|
onChange: (event) => setSize(event.target.value),
|
|
10100
10246
|
InputProps: {
|
|
10101
10247
|
...InputProps,
|
|
10102
|
-
startAdornment: startIcon && /* @__PURE__ */
|
|
10103
|
-
endAdornment: /* @__PURE__ */
|
|
10248
|
+
startAdornment: startIcon && /* @__PURE__ */ React136.createElement(InputAdornment6, { position: "start" }, startIcon),
|
|
10249
|
+
endAdornment: /* @__PURE__ */ React136.createElement(InputAdornment6, { position: "end" }, /* @__PURE__ */ React136.createElement(
|
|
10104
10250
|
UnitSelect,
|
|
10105
10251
|
{
|
|
10106
10252
|
options: units2,
|