@elementor/editor-editing-panel 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/css-classes/css-class-menu.tsx +12 -15
- package/src/components/section.tsx +1 -1
- package/src/components/style-sections/layout-section/utils/rotated-icon.tsx +2 -0
- package/src/dynamics/components/dynamic-selection-control.tsx +1 -1
- package/src/dynamics/components/dynamic-selection.tsx +3 -3
- package/src/dynamics/hooks/use-prop-dynamic-tags.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -235,7 +235,8 @@ import { __ as __2 } from "@wordpress/i18n";
|
|
|
235
235
|
// src/components/css-classes/css-class-menu.tsx
|
|
236
236
|
import * as React5 from "react";
|
|
237
237
|
import { stylesRepository as stylesRepository2 } from "@elementor/editor-styles-repository";
|
|
238
|
-
import {
|
|
238
|
+
import { MenuListItem } from "@elementor/editor-ui";
|
|
239
|
+
import { bindMenu, Divider, Menu, MenuSubheader } from "@elementor/ui";
|
|
239
240
|
import { __ } from "@wordpress/i18n";
|
|
240
241
|
|
|
241
242
|
// src/hooks/use-unapply-class.ts
|
|
@@ -283,7 +284,7 @@ function CssClassMenu({ styleId, provider, popupState, handleRename, anchorEl })
|
|
|
283
284
|
onKeyDown: handleKeyDown
|
|
284
285
|
},
|
|
285
286
|
getMenuItemsByProvider({ provider, styleId, handleRename, closeMenu: popupState.close }),
|
|
286
|
-
/* @__PURE__ */ React5.createElement(
|
|
287
|
+
/* @__PURE__ */ React5.createElement(MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } }, __("Pseudo classes", "elementor")),
|
|
287
288
|
/* @__PURE__ */ React5.createElement(StateMenuItem, { key: "normal", state: null, styleId, closeMenu: popupState.close }),
|
|
288
289
|
STATES.map((state) => {
|
|
289
290
|
return /* @__PURE__ */ React5.createElement(StateMenuItem, { key: state, state, styleId, closeMenu: popupState.close });
|
|
@@ -309,7 +310,7 @@ function getMenuItemsByProvider({
|
|
|
309
310
|
if (actions.length) {
|
|
310
311
|
actions.unshift(
|
|
311
312
|
/* @__PURE__ */ React5.createElement(
|
|
312
|
-
|
|
313
|
+
MenuSubheader,
|
|
313
314
|
{
|
|
314
315
|
key: "provider-label",
|
|
315
316
|
sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 }
|
|
@@ -327,7 +328,7 @@ function StateMenuItem({ state, styleId, closeMenu, ...props }) {
|
|
|
327
328
|
const isActive = styleId === activeId;
|
|
328
329
|
const isSelected = state === activeState && isActive;
|
|
329
330
|
return /* @__PURE__ */ React5.createElement(
|
|
330
|
-
|
|
331
|
+
MenuListItem,
|
|
331
332
|
{
|
|
332
333
|
...props,
|
|
333
334
|
selected: isSelected,
|
|
@@ -346,7 +347,7 @@ function StateMenuItem({ state, styleId, closeMenu, ...props }) {
|
|
|
346
347
|
function UnapplyClassMenuItem({ styleId, closeMenu, ...props }) {
|
|
347
348
|
const unapplyClass = useUnapplyClass(styleId);
|
|
348
349
|
return /* @__PURE__ */ React5.createElement(
|
|
349
|
-
|
|
350
|
+
MenuListItem,
|
|
350
351
|
{
|
|
351
352
|
...props,
|
|
352
353
|
onClick: () => {
|
|
@@ -363,7 +364,7 @@ function RenameClassMenuItem({
|
|
|
363
364
|
...props
|
|
364
365
|
}) {
|
|
365
366
|
return /* @__PURE__ */ React5.createElement(
|
|
366
|
-
|
|
367
|
+
MenuListItem,
|
|
367
368
|
{
|
|
368
369
|
...props,
|
|
369
370
|
onClick: () => {
|
|
@@ -374,7 +375,6 @@ function RenameClassMenuItem({
|
|
|
374
375
|
__("Rename", "elementor")
|
|
375
376
|
);
|
|
376
377
|
}
|
|
377
|
-
var StyledMenuItem = ({ ...props }) => /* @__PURE__ */ React5.createElement(MenuItem, { ...props, sx: { ...props.sx ?? {}, typography: "caption", color: "text.primary" } });
|
|
378
378
|
|
|
379
379
|
// src/components/css-classes/css-class-item.tsx
|
|
380
380
|
var CHIP_SIZE = "tiny";
|
|
@@ -855,7 +855,7 @@ function Section({ title, children, defaultExpanded = false }) {
|
|
|
855
855
|
ListItemText,
|
|
856
856
|
{
|
|
857
857
|
secondary: title,
|
|
858
|
-
secondaryTypographyProps: {
|
|
858
|
+
secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" }
|
|
859
859
|
}
|
|
860
860
|
),
|
|
861
861
|
/* @__PURE__ */ React13.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
|
|
@@ -2936,9 +2936,9 @@ import {
|
|
|
2936
2936
|
Divider as Divider6,
|
|
2937
2937
|
InputAdornment,
|
|
2938
2938
|
Link,
|
|
2939
|
-
|
|
2940
|
-
MenuItem as MenuItem2,
|
|
2939
|
+
MenuItem,
|
|
2941
2940
|
MenuList,
|
|
2941
|
+
MenuSubheader as MenuSubheader2,
|
|
2942
2942
|
Stack as Stack16,
|
|
2943
2943
|
TextField as TextField2,
|
|
2944
2944
|
Typography as Typography4
|
|
@@ -2977,7 +2977,7 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2977
2977
|
}
|
|
2978
2978
|
}
|
|
2979
2979
|
)), /* @__PURE__ */ React69.createElement(Divider6, null), /* @__PURE__ */ React69.createElement(Box4, { sx: { overflowY: "auto", height: 260, width: 220 } }, options13.length > 0 ? /* @__PURE__ */ React69.createElement(MenuList, { role: "listbox", tabIndex: 0 }, options13.map(([category, items3], index) => /* @__PURE__ */ React69.createElement(Fragment9, { key: index }, /* @__PURE__ */ React69.createElement(
|
|
2980
|
-
|
|
2980
|
+
MenuSubheader2,
|
|
2981
2981
|
{
|
|
2982
2982
|
sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
|
|
2983
2983
|
},
|
|
@@ -2985,7 +2985,7 @@ var DynamicSelection = ({ onSelect }) => {
|
|
|
2985
2985
|
), items3.map(({ value, label: tagLabel }) => {
|
|
2986
2986
|
const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
|
|
2987
2987
|
return /* @__PURE__ */ React69.createElement(
|
|
2988
|
-
|
|
2988
|
+
MenuItem,
|
|
2989
2989
|
{
|
|
2990
2990
|
key: value,
|
|
2991
2991
|
selected: isSelected,
|
|
@@ -3120,7 +3120,7 @@ var DynamicSettings = ({ controls }) => {
|
|
|
3120
3120
|
return null;
|
|
3121
3121
|
}
|
|
3122
3122
|
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React70.createElement(Tab2, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React70.createElement(Divider7, null), tabs.map(({ value }, index) => {
|
|
3123
|
-
return /* @__PURE__ */ React70.createElement(TabPanel2, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React70.createElement(PopoverContent, { p:
|
|
3123
|
+
return /* @__PURE__ */ React70.createElement(TabPanel2, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React70.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
|
|
3124
3124
|
if (item.type === "control") {
|
|
3125
3125
|
return /* @__PURE__ */ React70.createElement(Control3, { key: item.value.bind, control: item.value });
|
|
3126
3126
|
}
|