@elementor/editor-components 3.35.0-480 → 3.35.0-481
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 +54 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
- package/src/components/component-panel-header/component-panel-header.tsx +17 -21
- package/src/components/component-properties-panel/properties-group.tsx +10 -6
package/dist/index.mjs
CHANGED
|
@@ -357,9 +357,11 @@ var componentOverrideTransformer = createTransformer3((override) => {
|
|
|
357
357
|
import * as React10 from "react";
|
|
358
358
|
import { useSuppressedMessage } from "@elementor/editor-current-user";
|
|
359
359
|
import { getV1DocumentsManager as getV1DocumentsManager3 } from "@elementor/editor-documents";
|
|
360
|
+
import { PanelHeader as PanelHeader2 } from "@elementor/editor-panels";
|
|
361
|
+
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
360
362
|
import { ArrowLeftIcon, ComponentsFilledIcon } from "@elementor/icons";
|
|
361
363
|
import { __getState as getState11 } from "@elementor/store";
|
|
362
|
-
import { Box as Box7, Divider as Divider2, IconButton as IconButton4,
|
|
364
|
+
import { Box as Box7, Divider as Divider2, IconButton as IconButton4, Tooltip as Tooltip4, Typography as Typography6 } from "@elementor/ui";
|
|
363
365
|
import { __ as __13 } from "@wordpress/i18n";
|
|
364
366
|
|
|
365
367
|
// src/hooks/use-navigate-back.ts
|
|
@@ -1301,7 +1303,7 @@ function PropertiesEmptyState({ introductionRef }) {
|
|
|
1301
1303
|
|
|
1302
1304
|
// src/components/component-properties-panel/properties-group.tsx
|
|
1303
1305
|
import * as React6 from "react";
|
|
1304
|
-
import { EditableField, MenuListItem as MenuListItem2 } from "@elementor/editor-ui";
|
|
1306
|
+
import { EditableField, EllipsisWithTooltip, MenuListItem as MenuListItem2 } from "@elementor/editor-ui";
|
|
1305
1307
|
import { DotsVerticalIcon } from "@elementor/icons";
|
|
1306
1308
|
import {
|
|
1307
1309
|
bindMenu,
|
|
@@ -1666,14 +1668,18 @@ function PropertiesGroup({
|
|
|
1666
1668
|
Box4,
|
|
1667
1669
|
{
|
|
1668
1670
|
sx: {
|
|
1669
|
-
flex: 1,
|
|
1670
1671
|
height: 28,
|
|
1671
1672
|
display: "flex",
|
|
1672
1673
|
alignItems: "center",
|
|
1673
1674
|
border: 2,
|
|
1674
1675
|
borderColor: "text.secondary",
|
|
1675
1676
|
borderRadius: 1,
|
|
1676
|
-
pl: 0.5
|
|
1677
|
+
pl: 0.5,
|
|
1678
|
+
flexGrow: 1,
|
|
1679
|
+
overflow: "hidden",
|
|
1680
|
+
textOverflow: "ellipsis",
|
|
1681
|
+
whiteSpace: "nowrap",
|
|
1682
|
+
width: "100%"
|
|
1677
1683
|
}
|
|
1678
1684
|
},
|
|
1679
1685
|
/* @__PURE__ */ React6.createElement(
|
|
@@ -1688,12 +1694,13 @@ function PropertiesGroup({
|
|
|
1688
1694
|
}
|
|
1689
1695
|
)
|
|
1690
1696
|
) : /* @__PURE__ */ React6.createElement(
|
|
1691
|
-
|
|
1697
|
+
EllipsisWithTooltip,
|
|
1692
1698
|
{
|
|
1699
|
+
title: group.label,
|
|
1700
|
+
as: Typography5,
|
|
1693
1701
|
variant: "caption",
|
|
1694
1702
|
sx: { color: "text.primary", fontWeight: 400, lineHeight: 1.66 }
|
|
1695
|
-
}
|
|
1696
|
-
group.label
|
|
1703
|
+
}
|
|
1697
1704
|
), /* @__PURE__ */ React6.createElement(
|
|
1698
1705
|
IconButton2,
|
|
1699
1706
|
{
|
|
@@ -2070,24 +2077,22 @@ var ComponentPanelHeader = () => {
|
|
|
2070
2077
|
properties_count: overridablePropsCount
|
|
2071
2078
|
});
|
|
2072
2079
|
};
|
|
2073
|
-
return /* @__PURE__ */ React10.createElement(Box7, null, /* @__PURE__ */ React10.createElement(
|
|
2074
|
-
|
|
2080
|
+
return /* @__PURE__ */ React10.createElement(Box7, null, /* @__PURE__ */ React10.createElement(PanelHeader2, { sx: { justifyContent: "start", px: 2 } }, /* @__PURE__ */ React10.createElement(Tooltip4, { title: __13("Back", "elementor") }, /* @__PURE__ */ React10.createElement(IconButton4, { size: "tiny", onClick: onBack, "aria-label": __13("Back", "elementor") }, /* @__PURE__ */ React10.createElement(ArrowLeftIcon, { fontSize: "tiny" }))), /* @__PURE__ */ React10.createElement(ComponentsFilledIcon, { fontSize: "tiny", stroke: "currentColor" }), /* @__PURE__ */ React10.createElement(
|
|
2081
|
+
EllipsisWithTooltip2,
|
|
2075
2082
|
{
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
sx: {
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
)
|
|
2090
|
-
), /* @__PURE__ */ React10.createElement(Divider2, null), /* @__PURE__ */ React10.createElement(
|
|
2083
|
+
title: componentName,
|
|
2084
|
+
as: Typography6,
|
|
2085
|
+
variant: "caption",
|
|
2086
|
+
sx: { fontWeight: 500, flexGrow: 1 }
|
|
2087
|
+
}
|
|
2088
|
+
), /* @__PURE__ */ React10.createElement(
|
|
2089
|
+
ComponentsBadge,
|
|
2090
|
+
{
|
|
2091
|
+
overridablePropsCount,
|
|
2092
|
+
ref: anchorRef,
|
|
2093
|
+
onClick: handleOpenPropertiesPanel
|
|
2094
|
+
}
|
|
2095
|
+
)), /* @__PURE__ */ React10.createElement(Divider2, null), /* @__PURE__ */ React10.createElement(
|
|
2091
2096
|
ComponentIntroduction,
|
|
2092
2097
|
{
|
|
2093
2098
|
anchorRef,
|
|
@@ -2134,7 +2139,7 @@ function isProUser() {
|
|
|
2134
2139
|
// src/components/components-tab/component-search.tsx
|
|
2135
2140
|
import * as React12 from "react";
|
|
2136
2141
|
import { SearchIcon } from "@elementor/icons";
|
|
2137
|
-
import { Box as Box8, InputAdornment, Stack as
|
|
2142
|
+
import { Box as Box8, InputAdornment, Stack as Stack6, TextField as TextField2 } from "@elementor/ui";
|
|
2138
2143
|
import { __ as __14 } from "@wordpress/i18n";
|
|
2139
2144
|
|
|
2140
2145
|
// src/components/components-tab/search-provider.tsx
|
|
@@ -2163,7 +2168,7 @@ var useSearch = () => {
|
|
|
2163
2168
|
// src/components/components-tab/component-search.tsx
|
|
2164
2169
|
var ComponentSearch = () => {
|
|
2165
2170
|
const { inputValue, handleChange } = useSearch();
|
|
2166
|
-
return /* @__PURE__ */ React12.createElement(
|
|
2171
|
+
return /* @__PURE__ */ React12.createElement(Stack6, { direction: "row", gap: 0.5, sx: { width: "100%", px: 2, py: 1.5 } }, /* @__PURE__ */ React12.createElement(Box8, { sx: { flexGrow: 1 } }, /* @__PURE__ */ React12.createElement(
|
|
2167
2172
|
TextField2,
|
|
2168
2173
|
{
|
|
2169
2174
|
role: "search",
|
|
@@ -2184,7 +2189,7 @@ import * as React17 from "react";
|
|
|
2184
2189
|
import { useState as useState7 } from "react";
|
|
2185
2190
|
import { getAngieSdk } from "@elementor/editor-mcp";
|
|
2186
2191
|
import { AIIcon, ComponentsIcon as ComponentsIcon2 } from "@elementor/icons";
|
|
2187
|
-
import { Box as Box11, Button as Button4, Divider as Divider3, Link as Link3, List as List3, Stack as
|
|
2192
|
+
import { Box as Box11, Button as Button4, Divider as Divider3, Link as Link3, List as List3, Stack as Stack9, Typography as Typography9 } from "@elementor/ui";
|
|
2188
2193
|
import { __ as __20 } from "@wordpress/i18n";
|
|
2189
2194
|
|
|
2190
2195
|
// src/hooks/use-components-permissions.ts
|
|
@@ -2284,7 +2289,7 @@ import * as React15 from "react";
|
|
|
2284
2289
|
import { useRef as useRef4, useState as useState6 } from "react";
|
|
2285
2290
|
import { endDragElementFromPanel, startDragElementFromPanel } from "@elementor/editor-canvas";
|
|
2286
2291
|
import { dropElement } from "@elementor/editor-elements";
|
|
2287
|
-
import { EditableField as EditableField2, EllipsisWithTooltip, MenuListItem as MenuListItem3, useEditable as useEditable2, WarningInfotip } from "@elementor/editor-ui";
|
|
2292
|
+
import { EditableField as EditableField2, EllipsisWithTooltip as EllipsisWithTooltip3, MenuListItem as MenuListItem3, useEditable as useEditable2, WarningInfotip } from "@elementor/editor-ui";
|
|
2288
2293
|
import { ComponentsIcon, DotsVerticalIcon as DotsVerticalIcon2 } from "@elementor/icons";
|
|
2289
2294
|
import {
|
|
2290
2295
|
bindMenu as bindMenu2,
|
|
@@ -2294,7 +2299,7 @@ import {
|
|
|
2294
2299
|
ListItemButton,
|
|
2295
2300
|
ListItemIcon,
|
|
2296
2301
|
Menu as Menu2,
|
|
2297
|
-
Stack as
|
|
2302
|
+
Stack as Stack7,
|
|
2298
2303
|
styled as styled3,
|
|
2299
2304
|
Typography as Typography8,
|
|
2300
2305
|
usePopupState as usePopupState3
|
|
@@ -2607,7 +2612,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2607
2612
|
const handleDeleteDialogClose = () => {
|
|
2608
2613
|
setIsDeleteDialogOpen(false);
|
|
2609
2614
|
};
|
|
2610
|
-
return /* @__PURE__ */ React15.createElement(
|
|
2615
|
+
return /* @__PURE__ */ React15.createElement(Stack7, null, /* @__PURE__ */ React15.createElement(
|
|
2611
2616
|
WarningInfotip,
|
|
2612
2617
|
{
|
|
2613
2618
|
open: Boolean(error),
|
|
@@ -2655,7 +2660,7 @@ var ComponentItem = ({ component, renameComponent: renameComponent2 }) => {
|
|
|
2655
2660
|
...getEditableProps()
|
|
2656
2661
|
}
|
|
2657
2662
|
) : /* @__PURE__ */ React15.createElement(
|
|
2658
|
-
|
|
2663
|
+
EllipsisWithTooltip3,
|
|
2659
2664
|
{
|
|
2660
2665
|
title: component.name,
|
|
2661
2666
|
as: Typography8,
|
|
@@ -2752,12 +2757,12 @@ var getIndicatorBorder = ({ isActive, isError, theme }) => {
|
|
|
2752
2757
|
|
|
2753
2758
|
// src/components/components-tab/loading-components.tsx
|
|
2754
2759
|
import * as React16 from "react";
|
|
2755
|
-
import { Box as Box10, ListItemButton as ListItemButton2, Skeleton, Stack as
|
|
2760
|
+
import { Box as Box10, ListItemButton as ListItemButton2, Skeleton, Stack as Stack8 } from "@elementor/ui";
|
|
2756
2761
|
var ROWS_COUNT = 6;
|
|
2757
2762
|
var rows = Array.from({ length: ROWS_COUNT }, (_, index) => index);
|
|
2758
2763
|
var LoadingComponents = () => {
|
|
2759
2764
|
return /* @__PURE__ */ React16.createElement(
|
|
2760
|
-
|
|
2765
|
+
Stack8,
|
|
2761
2766
|
{
|
|
2762
2767
|
"aria-label": "Loading components",
|
|
2763
2768
|
gap: 1,
|
|
@@ -2837,7 +2842,7 @@ var EmptyState = () => {
|
|
|
2837
2842
|
}
|
|
2838
2843
|
};
|
|
2839
2844
|
return /* @__PURE__ */ React17.createElement(
|
|
2840
|
-
|
|
2845
|
+
Stack9,
|
|
2841
2846
|
{
|
|
2842
2847
|
alignItems: "center",
|
|
2843
2848
|
justifyContent: "start",
|
|
@@ -2846,7 +2851,7 @@ var EmptyState = () => {
|
|
|
2846
2851
|
gap: 2,
|
|
2847
2852
|
overflow: "hidden"
|
|
2848
2853
|
},
|
|
2849
|
-
/* @__PURE__ */ React17.createElement(
|
|
2854
|
+
/* @__PURE__ */ React17.createElement(Stack9, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React17.createElement(ComponentsIcon2, { fontSize: "large", sx: { color: "text.secondary" } }), /* @__PURE__ */ React17.createElement(Typography9, { align: "center", variant: "subtitle2", color: "text.secondary", sx: SUBTITLE_OVERRIDE_SX }, __20("No components yet", "elementor")), /* @__PURE__ */ React17.createElement(Typography9, { align: "center", variant: "caption", color: "secondary", sx: { maxWidth: 200 } }, __20("Components are reusable blocks that sync across your site.", "elementor"), /* @__PURE__ */ React17.createElement("br", null), canCreate ? __20("Create once, use everywhere.", "elementor") : __20(
|
|
2850
2855
|
"With your current role, you cannot create components. Contact an administrator to create one.",
|
|
2851
2856
|
"elementor"
|
|
2852
2857
|
)), /* @__PURE__ */ React17.createElement(
|
|
@@ -2860,7 +2865,7 @@ var EmptyState = () => {
|
|
|
2860
2865
|
},
|
|
2861
2866
|
__20("Learn more about components", "elementor")
|
|
2862
2867
|
)),
|
|
2863
|
-
canCreate && /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(Divider3, { sx: { width: "100%" } }), /* @__PURE__ */ React17.createElement(
|
|
2868
|
+
canCreate && /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(Divider3, { sx: { width: "100%" } }), /* @__PURE__ */ React17.createElement(Stack9, { alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React17.createElement(
|
|
2864
2869
|
Typography9,
|
|
2865
2870
|
{
|
|
2866
2871
|
align: "center",
|
|
@@ -2888,7 +2893,7 @@ var EmptyState = () => {
|
|
|
2888
2893
|
var EmptySearchResult = () => {
|
|
2889
2894
|
const { searchValue, clearSearch } = useSearch();
|
|
2890
2895
|
return /* @__PURE__ */ React17.createElement(
|
|
2891
|
-
|
|
2896
|
+
Stack9,
|
|
2892
2897
|
{
|
|
2893
2898
|
color: "text.secondary",
|
|
2894
2899
|
pt: 5,
|
|
@@ -2983,7 +2988,7 @@ import { notify as notify3 } from "@elementor/editor-notifications";
|
|
|
2983
2988
|
import { Form as FormElement, ThemeProvider as ThemeProvider3 } from "@elementor/editor-ui";
|
|
2984
2989
|
import { ComponentsIcon as ComponentsIcon3 } from "@elementor/icons";
|
|
2985
2990
|
import { __getState as getState15 } from "@elementor/store";
|
|
2986
|
-
import { Button as Button5, FormLabel as FormLabel2, Grid as Grid2, Popover as Popover3, Stack as
|
|
2991
|
+
import { Button as Button5, FormLabel as FormLabel2, Grid as Grid2, Popover as Popover3, Stack as Stack10, TextField as TextField3, Typography as Typography11 } from "@elementor/ui";
|
|
2987
2992
|
import { __ as __23 } from "@wordpress/i18n";
|
|
2988
2993
|
|
|
2989
2994
|
// src/prevent-non-atomic-nesting.ts
|
|
@@ -3344,8 +3349,8 @@ var Form2 = ({
|
|
|
3344
3349
|
create: __23("Create", "elementor")
|
|
3345
3350
|
};
|
|
3346
3351
|
const nameInputId = "component-name";
|
|
3347
|
-
return /* @__PURE__ */ React20.createElement(FormElement, { onSubmit: handleSubmit }, /* @__PURE__ */ React20.createElement(
|
|
3348
|
-
|
|
3352
|
+
return /* @__PURE__ */ React20.createElement(FormElement, { onSubmit: handleSubmit }, /* @__PURE__ */ React20.createElement(Stack10, { alignItems: "start", width: "268px" }, /* @__PURE__ */ React20.createElement(
|
|
3353
|
+
Stack10,
|
|
3349
3354
|
{
|
|
3350
3355
|
direction: "row",
|
|
3351
3356
|
alignItems: "center",
|
|
@@ -3367,7 +3372,7 @@ var Form2 = ({
|
|
|
3367
3372
|
error: Boolean(errors.componentName),
|
|
3368
3373
|
helperText: errors.componentName
|
|
3369
3374
|
}
|
|
3370
|
-
))), /* @__PURE__ */ React20.createElement(
|
|
3375
|
+
))), /* @__PURE__ */ React20.createElement(Stack10, { direction: "row", justifyContent: "flex-end", alignSelf: "end", py: 1, px: 1.5 }, /* @__PURE__ */ React20.createElement(Button5, { onClick: closePopup, color: "secondary", variant: "text", size: "small" }, texts.cancel), /* @__PURE__ */ React20.createElement(Button5, { type: "submit", disabled: !isValid, variant: "contained", color: "primary", size: "small" }, texts.create))));
|
|
3371
3376
|
};
|
|
3372
3377
|
|
|
3373
3378
|
// src/components/edit-component/edit-component.tsx
|
|
@@ -3674,7 +3679,7 @@ function getComponentDOMElements(id2) {
|
|
|
3674
3679
|
import * as React23 from "react";
|
|
3675
3680
|
import { closeDialog, openDialog } from "@elementor/editor-ui";
|
|
3676
3681
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
3677
|
-
import { Box as Box13, Button as Button6, DialogActions, DialogContent, DialogHeader, Icon, Stack as
|
|
3682
|
+
import { Box as Box13, Button as Button6, DialogActions, DialogContent, DialogHeader, Icon, Stack as Stack11, Typography as Typography12 } from "@elementor/ui";
|
|
3678
3683
|
import { __ as __25 } from "@wordpress/i18n";
|
|
3679
3684
|
var openEditModeDialog = (lockedBy) => {
|
|
3680
3685
|
openDialog({
|
|
@@ -3683,7 +3688,7 @@ var openEditModeDialog = (lockedBy) => {
|
|
|
3683
3688
|
};
|
|
3684
3689
|
var EditModeDialog = ({ lockedBy }) => {
|
|
3685
3690
|
const content = __25("%s is currently editing this document", "elementor").replace("%s", lockedBy);
|
|
3686
|
-
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React23.createElement(Box13, { display: "flex", alignItems: "center", gap: 1 }, /* @__PURE__ */ React23.createElement(Icon, { color: "secondary" }, /* @__PURE__ */ React23.createElement(InfoCircleFilledIcon, { fontSize: "medium" })), /* @__PURE__ */ React23.createElement(Typography12, { variant: "subtitle1" }, content))), /* @__PURE__ */ React23.createElement(DialogContent, null, /* @__PURE__ */ React23.createElement(
|
|
3691
|
+
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React23.createElement(Box13, { display: "flex", alignItems: "center", gap: 1 }, /* @__PURE__ */ React23.createElement(Icon, { color: "secondary" }, /* @__PURE__ */ React23.createElement(InfoCircleFilledIcon, { fontSize: "medium" })), /* @__PURE__ */ React23.createElement(Typography12, { variant: "subtitle1" }, content))), /* @__PURE__ */ React23.createElement(DialogContent, null, /* @__PURE__ */ React23.createElement(Stack11, { spacing: 2, direction: "column" }, /* @__PURE__ */ React23.createElement(Typography12, { variant: "body2" }, __25(
|
|
3687
3692
|
"You can wait for them to finish or reach out to coordinate your changes together.",
|
|
3688
3693
|
"elementor"
|
|
3689
3694
|
)), /* @__PURE__ */ React23.createElement(DialogActions, null, /* @__PURE__ */ React23.createElement(Button6, { color: "secondary", variant: "contained", onClick: closeDialog }, __25("Close", "elementor"))))));
|
|
@@ -3694,10 +3699,10 @@ import * as React29 from "react";
|
|
|
3694
3699
|
import { ControlAdornmentsProvider } from "@elementor/editor-controls";
|
|
3695
3700
|
import { getFieldIndicators } from "@elementor/editor-editing-panel";
|
|
3696
3701
|
import { useSelectedElement as useSelectedElement2 } from "@elementor/editor-elements";
|
|
3697
|
-
import { PanelBody as PanelBody2, PanelHeader as
|
|
3698
|
-
import { EllipsisWithTooltip as
|
|
3702
|
+
import { PanelBody as PanelBody2, PanelHeader as PanelHeader3, PanelHeaderTitle as PanelHeaderTitle2 } from "@elementor/editor-panels";
|
|
3703
|
+
import { EllipsisWithTooltip as EllipsisWithTooltip4 } from "@elementor/editor-ui";
|
|
3699
3704
|
import { ComponentsIcon as ComponentsIcon4, PencilIcon as PencilIcon2 } from "@elementor/icons";
|
|
3700
|
-
import { Divider as Divider4, IconButton as IconButton6, Stack as
|
|
3705
|
+
import { Divider as Divider4, IconButton as IconButton6, Stack as Stack16, Tooltip as Tooltip5 } from "@elementor/ui";
|
|
3701
3706
|
import { __ as __27 } from "@wordpress/i18n";
|
|
3702
3707
|
|
|
3703
3708
|
// src/hooks/use-component-instance-settings.ts
|
|
@@ -3712,7 +3717,7 @@ function useComponentInstanceSettings() {
|
|
|
3712
3717
|
// src/components/instance-editing-panel/empty-state.tsx
|
|
3713
3718
|
import * as React24 from "react";
|
|
3714
3719
|
import { ComponentPropListIcon as ComponentPropListIcon4, PencilIcon } from "@elementor/icons";
|
|
3715
|
-
import { Button as Button7, Stack as
|
|
3720
|
+
import { Button as Button7, Stack as Stack12, Typography as Typography13 } from "@elementor/ui";
|
|
3716
3721
|
import { __ as __26 } from "@wordpress/i18n";
|
|
3717
3722
|
var EmptyState2 = ({ onEditComponent }) => {
|
|
3718
3723
|
const { canEdit } = useComponentsPermissions();
|
|
@@ -3724,7 +3729,7 @@ var EmptyState2 = ({ onEditComponent }) => {
|
|
|
3724
3729
|
"elementor"
|
|
3725
3730
|
);
|
|
3726
3731
|
return /* @__PURE__ */ React24.createElement(
|
|
3727
|
-
|
|
3732
|
+
Stack12,
|
|
3728
3733
|
{
|
|
3729
3734
|
alignItems: "center",
|
|
3730
3735
|
justifyContent: "start",
|
|
@@ -3745,7 +3750,7 @@ import * as React28 from "react";
|
|
|
3745
3750
|
import { useId } from "react";
|
|
3746
3751
|
import { useStateByElement } from "@elementor/editor-editing-panel";
|
|
3747
3752
|
import { CollapseIcon } from "@elementor/editor-ui";
|
|
3748
|
-
import { Box as Box14, Collapse, ListItemButton as ListItemButton3, ListItemText, Stack as
|
|
3753
|
+
import { Box as Box14, Collapse, ListItemButton as ListItemButton3, ListItemText, Stack as Stack15 } from "@elementor/ui";
|
|
3749
3754
|
|
|
3750
3755
|
// src/components/instance-editing-panel/override-prop-control.tsx
|
|
3751
3756
|
import * as React27 from "react";
|
|
@@ -3760,7 +3765,7 @@ import {
|
|
|
3760
3765
|
useElement as useElement2
|
|
3761
3766
|
} from "@elementor/editor-editing-panel";
|
|
3762
3767
|
import { getContainer as getContainer3, getElementType as getElementType3 } from "@elementor/editor-elements";
|
|
3763
|
-
import { Stack as
|
|
3768
|
+
import { Stack as Stack14 } from "@elementor/ui";
|
|
3764
3769
|
|
|
3765
3770
|
// src/hooks/use-controls-by-widget-type.ts
|
|
3766
3771
|
import { getElementType as getElementType2 } from "@elementor/editor-elements";
|
|
@@ -3894,9 +3899,9 @@ function getPropType({ widgetType, propKey }) {
|
|
|
3894
3899
|
// src/components/control-label.tsx
|
|
3895
3900
|
import * as React26 from "react";
|
|
3896
3901
|
import { ControlAdornments, ControlFormLabel } from "@elementor/editor-controls";
|
|
3897
|
-
import { Stack as
|
|
3902
|
+
import { Stack as Stack13 } from "@elementor/ui";
|
|
3898
3903
|
var ControlLabel = ({ children, ...props }) => {
|
|
3899
|
-
return /* @__PURE__ */ React26.createElement(
|
|
3904
|
+
return /* @__PURE__ */ React26.createElement(Stack13, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React26.createElement(ControlFormLabel, { ...props }, children), /* @__PURE__ */ React26.createElement(ControlAdornments, null));
|
|
3900
3905
|
};
|
|
3901
3906
|
|
|
3902
3907
|
// src/components/errors.ts
|
|
@@ -3995,7 +4000,7 @@ function OverrideControl({ overridableProp, overrides }) {
|
|
|
3995
4000
|
return false;
|
|
3996
4001
|
}
|
|
3997
4002
|
},
|
|
3998
|
-
/* @__PURE__ */ React27.createElement(PropKeyProvider, { bind: overridableProp.overrideKey }, /* @__PURE__ */ React27.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React27.createElement(
|
|
4003
|
+
/* @__PURE__ */ React27.createElement(PropKeyProvider, { bind: overridableProp.overrideKey }, /* @__PURE__ */ React27.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React27.createElement(Stack14, { direction: "column", gap: 1, mb: 1.5 }, layout !== "custom" && /* @__PURE__ */ React27.createElement(ControlLabel, null, overridableProp.label), /* @__PURE__ */ React27.createElement(OriginalControl, { control, controlProps }))))
|
|
3999
4004
|
)))
|
|
4000
4005
|
);
|
|
4001
4006
|
}
|
|
@@ -4100,7 +4105,7 @@ function OverridePropsGroup({ group, props, overrides }) {
|
|
|
4100
4105
|
p: 0,
|
|
4101
4106
|
sx: { "&:hover": { backgroundColor: "transparent" } }
|
|
4102
4107
|
},
|
|
4103
|
-
/* @__PURE__ */ React28.createElement(
|
|
4108
|
+
/* @__PURE__ */ React28.createElement(Stack15, { direction: "row", alignItems: "center", justifyItems: "start", flexGrow: 1, gap: 0.5 }, /* @__PURE__ */ React28.createElement(
|
|
4104
4109
|
ListItemText,
|
|
4105
4110
|
{
|
|
4106
4111
|
secondary: title,
|
|
@@ -4109,7 +4114,7 @@ function OverridePropsGroup({ group, props, overrides }) {
|
|
|
4109
4114
|
}
|
|
4110
4115
|
)),
|
|
4111
4116
|
/* @__PURE__ */ React28.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
4112
|
-
), /* @__PURE__ */ React28.createElement(Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto" }, /* @__PURE__ */ React28.createElement(
|
|
4117
|
+
), /* @__PURE__ */ React28.createElement(Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto" }, /* @__PURE__ */ React28.createElement(Stack15, { direction: "column", gap: 1, p: 2 }, group.props.map((overrideKey) => /* @__PURE__ */ React28.createElement(
|
|
4113
4118
|
OverridePropControl,
|
|
4114
4119
|
{
|
|
4115
4120
|
key: overrideKey,
|
|
@@ -4136,7 +4141,7 @@ function InstanceEditingPanel() {
|
|
|
4136
4141
|
const isNonEmptyGroup = (group) => group !== null && group.props.length > 0;
|
|
4137
4142
|
const groups = overridableProps.groups.order.map((groupId) => overridableProps.groups.items[groupId] ?? null).filter(isNonEmptyGroup);
|
|
4138
4143
|
const isEmpty = groups.length === 0 || Object.keys(overridableProps.props).length === 0;
|
|
4139
|
-
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
|
|
4144
|
+
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(PanelHeader3, { sx: { justifyContent: "start", px: 2 } }, /* @__PURE__ */ React29.createElement(Stack16, { direction: "row", alignItems: "center", flexGrow: 1, gap: 1, maxWidth: "100%" }, /* @__PURE__ */ React29.createElement(ComponentsIcon4, { fontSize: "small", sx: { color: "text.tertiary" } }), /* @__PURE__ */ React29.createElement(EllipsisWithTooltip4, { title: component.name, as: PanelHeaderTitle2, sx: { flexGrow: 1 } }), canEdit && /* @__PURE__ */ React29.createElement(Tooltip5, { title: panelTitle }, /* @__PURE__ */ React29.createElement(IconButton6, { size: "tiny", onClick: handleEditComponent, "aria-label": panelTitle }, /* @__PURE__ */ React29.createElement(PencilIcon2, { fontSize: "tiny" }))))), /* @__PURE__ */ React29.createElement(PanelBody2, null, /* @__PURE__ */ React29.createElement(ControlAdornmentsProvider, { items: getFieldIndicators("settings") }, isEmpty ? /* @__PURE__ */ React29.createElement(EmptyState2, { onEditComponent: handleEditComponent }) : /* @__PURE__ */ React29.createElement(Stack16, { direction: "column", alignItems: "stretch" }, groups.map((group) => /* @__PURE__ */ React29.createElement(React29.Fragment, { key: group.id }, /* @__PURE__ */ React29.createElement(
|
|
4140
4145
|
OverridePropsGroup,
|
|
4141
4146
|
{
|
|
4142
4147
|
group,
|