@elementor/editor-global-classes 3.35.0-427 → 3.35.0-428

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 CHANGED
@@ -563,7 +563,7 @@ var import_store26 = require("@elementor/store");
563
563
  var React19 = __toESM(require("react"));
564
564
  var import_editor_documents5 = require("@elementor/editor-documents");
565
565
  var import_editor_styles_repository3 = require("@elementor/editor-styles-repository");
566
- var import_editor_ui9 = require("@elementor/editor-ui");
566
+ var import_editor_ui10 = require("@elementor/editor-ui");
567
567
  var import_ui16 = require("@elementor/ui");
568
568
  var import_i18n15 = require("@wordpress/i18n");
569
569
 
@@ -593,9 +593,9 @@ var React18 = __toESM(require("react"));
593
593
  var import_react8 = require("react");
594
594
  var import_editor_documents4 = require("@elementor/editor-documents");
595
595
  var import_editor_panels = require("@elementor/editor-panels");
596
- var import_editor_ui8 = require("@elementor/editor-ui");
596
+ var import_editor_ui9 = require("@elementor/editor-ui");
597
597
  var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
598
- var import_icons12 = require("@elementor/icons");
598
+ var import_icons11 = require("@elementor/icons");
599
599
  var import_query3 = require("@elementor/query");
600
600
  var import_store20 = require("@elementor/store");
601
601
  var import_ui15 = require("@elementor/ui");
@@ -1255,8 +1255,8 @@ var useOrderedClasses = () => {
1255
1255
  var React15 = __toESM(require("react"));
1256
1256
  var import_react6 = require("react");
1257
1257
  var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
1258
- var import_editor_ui7 = require("@elementor/editor-ui");
1259
- var import_icons10 = require("@elementor/icons");
1258
+ var import_editor_ui8 = require("@elementor/editor-ui");
1259
+ var import_icons9 = require("@elementor/icons");
1260
1260
  var import_ui12 = require("@elementor/ui");
1261
1261
  var import_i18n11 = require("@wordpress/i18n");
1262
1262
 
@@ -1511,7 +1511,7 @@ var InfoAlertMessage = ({ children }) => /* @__PURE__ */ React12.createElement(
1511
1511
  // src/components/class-manager/delete-confirmation-dialog.tsx
1512
1512
  var React13 = __toESM(require("react"));
1513
1513
  var import_react5 = require("react");
1514
- var import_icons8 = require("@elementor/icons");
1514
+ var import_editor_ui7 = require("@elementor/editor-ui");
1515
1515
  var import_ui10 = require("@elementor/ui");
1516
1516
  var import_i18n10 = require("@wordpress/i18n");
1517
1517
  var context = (0, import_react5.createContext)(null);
@@ -1523,15 +1523,14 @@ var DeleteConfirmationProvider = ({ children }) => {
1523
1523
  const closeDialog2 = () => {
1524
1524
  setDialogProps(null);
1525
1525
  };
1526
- return /* @__PURE__ */ React13.createElement(context.Provider, { value: { openDialog: openDialog2, closeDialog: closeDialog2, dialogProps } }, children, !!dialogProps && /* @__PURE__ */ React13.createElement(DeleteConfirmationDialog, { ...dialogProps }));
1526
+ return /* @__PURE__ */ React13.createElement(context.Provider, { value: { openDialog: openDialog2, closeDialog: closeDialog2, dialogProps } }, children, !!dialogProps && /* @__PURE__ */ React13.createElement(DeleteClassDialog, { ...dialogProps }));
1527
1527
  };
1528
- var TITLE_ID = "delete-class-dialog";
1529
- var DeleteConfirmationDialog = ({ label, id: id2 }) => {
1528
+ var DeleteClassDialog = ({ label, id: id2 }) => {
1530
1529
  const { closeDialog: closeDialog2 } = useDeleteConfirmation();
1531
1530
  const {
1532
1531
  data: { total, content }
1533
1532
  } = useCssClassUsageByID(id2);
1534
- const onConfirm = () => {
1533
+ const handleConfirm = () => {
1535
1534
  closeDialog2();
1536
1535
  deleteClass(id2);
1537
1536
  };
@@ -1542,16 +1541,7 @@ var DeleteConfirmationDialog = ({ label, id: id2 }) => {
1542
1541
  "Will permanently remove it from your project and may affect the design across all elements using it. This action cannot be undone.",
1543
1542
  "elementor"
1544
1543
  );
1545
- return /* @__PURE__ */ React13.createElement(import_ui10.Dialog, { open: true, onClose: closeDialog2, "aria-labelledby": TITLE_ID, maxWidth: "xs" }, /* @__PURE__ */ React13.createElement(import_ui10.DialogTitle, { id: TITLE_ID, display: "flex", alignItems: "center", gap: 1, sx: { lineHeight: 1 } }, /* @__PURE__ */ React13.createElement(import_icons8.AlertOctagonFilledIcon, { color: "error" }), (0, import_i18n10.__)("Delete this class?", "elementor")), /* @__PURE__ */ React13.createElement(import_ui10.DialogContent, null, /* @__PURE__ */ React13.createElement(import_ui10.DialogContentText, { variant: "body2", color: "textPrimary" }, (0, import_i18n10.__)("Deleting", "elementor"), /* @__PURE__ */ React13.createElement(import_ui10.Typography, { variant: "subtitle2", component: "span" }, "\xA0", label, "\xA0"), text)), /* @__PURE__ */ React13.createElement(import_ui10.DialogActions, null, /* @__PURE__ */ React13.createElement(import_ui10.Button, { color: "secondary", onClick: closeDialog2 }, (0, import_i18n10.__)("Not now", "elementor")), /* @__PURE__ */ React13.createElement(
1546
- import_ui10.Button,
1547
- {
1548
- autoFocus: true,
1549
- variant: "contained",
1550
- color: "error",
1551
- onClick: onConfirm
1552
- },
1553
- (0, import_i18n10.__)("Delete", "elementor")
1554
- )));
1544
+ return /* @__PURE__ */ React13.createElement(import_editor_ui7.ConfirmationDialog, { open: true, onClose: closeDialog2 }, /* @__PURE__ */ React13.createElement(import_editor_ui7.ConfirmationDialog.Title, null, (0, import_i18n10.__)("Delete this class?", "elementor")), /* @__PURE__ */ React13.createElement(import_editor_ui7.ConfirmationDialog.Content, null, /* @__PURE__ */ React13.createElement(import_editor_ui7.ConfirmationDialog.ContentText, null, (0, import_i18n10.__)("Deleting", "elementor"), /* @__PURE__ */ React13.createElement(import_ui10.Typography, { variant: "subtitle2", component: "span" }, "\xA0", label, "\xA0"), text)), /* @__PURE__ */ React13.createElement(import_editor_ui7.ConfirmationDialog.Actions, { onClose: closeDialog2, onConfirm: handleConfirm }));
1555
1545
  };
1556
1546
  var useDeleteConfirmation = () => {
1557
1547
  const contextValue = (0, import_react5.useContext)(context);
@@ -1563,10 +1553,10 @@ var useDeleteConfirmation = () => {
1563
1553
 
1564
1554
  // src/components/class-manager/sortable.tsx
1565
1555
  var React14 = __toESM(require("react"));
1566
- var import_icons9 = require("@elementor/icons");
1556
+ var import_icons8 = require("@elementor/icons");
1567
1557
  var import_ui11 = require("@elementor/ui");
1568
1558
  var SortableProvider = (props) => /* @__PURE__ */ React14.createElement(import_ui11.UnstableSortableProvider, { restrictAxis: true, variant: "static", dragPlaceholderStyle: { opacity: "1" }, ...props });
1569
- var SortableTrigger = (props) => /* @__PURE__ */ React14.createElement(StyledSortableTrigger, { ...props, role: "button", className: "class-item-sortable-trigger", "aria-label": "sort" }, /* @__PURE__ */ React14.createElement(import_icons9.GripVerticalIcon, { fontSize: "tiny" }));
1559
+ var SortableTrigger = (props) => /* @__PURE__ */ React14.createElement(StyledSortableTrigger, { ...props, role: "button", className: "class-item-sortable-trigger", "aria-label": "sort" }, /* @__PURE__ */ React14.createElement(import_icons8.GripVerticalIcon, { fontSize: "tiny" }));
1570
1560
  var SortableItem = ({ children, id: id2, ...props }) => {
1571
1561
  return /* @__PURE__ */ React14.createElement(
1572
1562
  import_ui11.UnstableSortableItem,
@@ -1639,7 +1629,7 @@ var ClassItem = ({
1639
1629
  isEditing,
1640
1630
  error,
1641
1631
  getProps: getEditableProps
1642
- } = (0, import_editor_ui7.useEditable)({
1632
+ } = (0, import_editor_ui8.useEditable)({
1643
1633
  value: label,
1644
1634
  onSubmit: renameClass,
1645
1635
  validation: validateLabel
@@ -1652,7 +1642,7 @@ var ClassItem = ({
1652
1642
  });
1653
1643
  const isSelected = (selectedCssUsage === id2 || selected || popupState.isOpen) && !disabled;
1654
1644
  return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(import_ui12.Stack, { p: 0 }, /* @__PURE__ */ React15.createElement(
1655
- import_editor_ui7.WarningInfotip,
1645
+ import_editor_ui8.WarningInfotip,
1656
1646
  {
1657
1647
  open: Boolean(error),
1658
1648
  text: error ?? "",
@@ -1676,14 +1666,14 @@ var ClassItem = ({
1676
1666
  },
1677
1667
  /* @__PURE__ */ React15.createElement(SortableTrigger, { ...sortableTriggerProps }),
1678
1668
  /* @__PURE__ */ React15.createElement(Indicator, { isActive: isEditing, isError: !!error }, isEditing ? /* @__PURE__ */ React15.createElement(
1679
- import_editor_ui7.EditableField,
1669
+ import_editor_ui8.EditableField,
1680
1670
  {
1681
1671
  ref: editableRef,
1682
1672
  as: import_ui12.Typography,
1683
1673
  variant: "caption",
1684
1674
  ...getEditableProps()
1685
1675
  }
1686
- ) : /* @__PURE__ */ React15.createElement(import_editor_ui7.EllipsisWithTooltip, { title: label, as: import_ui12.Typography, variant: "caption" })),
1676
+ ) : /* @__PURE__ */ React15.createElement(import_editor_ui8.EllipsisWithTooltip, { title: label, as: import_ui12.Typography, variant: "caption" })),
1687
1677
  /* @__PURE__ */ React15.createElement(import_ui12.Box, { className: "class-item-locator" }, /* @__PURE__ */ React15.createElement(CssClassUsageTrigger, { id: id2, onClick: setSelectedCssUsage })),
1688
1678
  /* @__PURE__ */ React15.createElement(
1689
1679
  import_ui12.Tooltip,
@@ -1692,7 +1682,7 @@ var ClassItem = ({
1692
1682
  className: "class-item-more-actions",
1693
1683
  title: (0, import_i18n11.__)("More actions", "elementor")
1694
1684
  },
1695
- /* @__PURE__ */ React15.createElement(import_ui12.IconButton, { size: "tiny", ...(0, import_ui12.bindTrigger)(popupState), "aria-label": "More actions" }, /* @__PURE__ */ React15.createElement(import_icons10.DotsVerticalIcon, { fontSize: "tiny" }))
1685
+ /* @__PURE__ */ React15.createElement(import_ui12.IconButton, { size: "tiny", ...(0, import_ui12.bindTrigger)(popupState), "aria-label": "More actions" }, /* @__PURE__ */ React15.createElement(import_icons9.DotsVerticalIcon, { fontSize: "tiny" }))
1696
1686
  )
1697
1687
  )
1698
1688
  )), /* @__PURE__ */ React15.createElement(
@@ -1709,7 +1699,7 @@ var ClassItem = ({
1709
1699
  }
1710
1700
  },
1711
1701
  /* @__PURE__ */ React15.createElement(
1712
- import_editor_ui7.MenuListItem,
1702
+ import_editor_ui8.MenuListItem,
1713
1703
  {
1714
1704
  sx: { minWidth: "160px" },
1715
1705
  onClick: () => {
@@ -1720,7 +1710,7 @@ var ClassItem = ({
1720
1710
  /* @__PURE__ */ React15.createElement(import_ui12.Typography, { variant: "caption", sx: { color: "text.primary" } }, (0, import_i18n11.__)("Rename", "elementor"))
1721
1711
  ),
1722
1712
  /* @__PURE__ */ React15.createElement(
1723
- import_editor_ui7.MenuListItem,
1713
+ import_editor_ui8.MenuListItem,
1724
1714
  {
1725
1715
  onClick: () => {
1726
1716
  popupState.close();
@@ -1791,7 +1781,7 @@ var validateLabel = (newLabel) => {
1791
1781
 
1792
1782
  // src/components/class-manager/not-found.tsx
1793
1783
  var React16 = __toESM(require("react"));
1794
- var import_icons11 = require("@elementor/icons");
1784
+ var import_icons10 = require("@elementor/icons");
1795
1785
  var import_ui13 = require("@elementor/ui");
1796
1786
  var import_i18n12 = require("@wordpress/i18n");
1797
1787
  var getNotFoundType = (searchValue, filters, filteredClasses) => {
@@ -1813,17 +1803,17 @@ var notFound = {
1813
1803
  filterAndSearch: {
1814
1804
  mainText: (0, import_i18n12.__)("Sorry, nothing matched.", "elementor"),
1815
1805
  sceneryText: (0, import_i18n12.__)("Try something else.", "elementor"),
1816
- icon: /* @__PURE__ */ React16.createElement(import_icons11.PhotoIcon, { color: "inherit", fontSize: "large" })
1806
+ icon: /* @__PURE__ */ React16.createElement(import_icons10.PhotoIcon, { color: "inherit", fontSize: "large" })
1817
1807
  },
1818
1808
  search: {
1819
1809
  mainText: (0, import_i18n12.__)("Sorry, nothing matched", "elementor"),
1820
1810
  sceneryText: (0, import_i18n12.__)("Clear your input and try something else.", "elementor"),
1821
- icon: /* @__PURE__ */ React16.createElement(import_icons11.PhotoIcon, { color: "inherit", fontSize: "large" })
1811
+ icon: /* @__PURE__ */ React16.createElement(import_icons10.PhotoIcon, { color: "inherit", fontSize: "large" })
1822
1812
  },
1823
1813
  filter: {
1824
1814
  mainText: (0, import_i18n12.__)("Sorry, nothing matched that search.", "elementor"),
1825
1815
  sceneryText: (0, import_i18n12.__)("Clear the filters and try something else.", "elementor"),
1826
- icon: /* @__PURE__ */ React16.createElement(import_icons11.ColorSwatchIcon, { color: "inherit", fontSize: "large" })
1816
+ icon: /* @__PURE__ */ React16.createElement(import_icons10.ColorSwatchIcon, { color: "inherit", fontSize: "large" })
1827
1817
  }
1828
1818
  };
1829
1819
  var NotFound = ({ notFoundType }) => {
@@ -2062,14 +2052,14 @@ var { panel, usePanelActions } = (0, import_editor_panels.__createPanel)({
2062
2052
  function ClassManagerPanel() {
2063
2053
  const isDirty2 = useDirtyState();
2064
2054
  const { close: closePanel } = usePanelActions();
2065
- const { open: openSaveChangesDialog, close: closeSaveChangesDialog, isOpen: isSaveChangesDialogOpen } = (0, import_editor_ui8.useDialog)();
2055
+ const { open: openSaveChangesDialog, close: closeSaveChangesDialog, isOpen: isSaveChangesDialogOpen } = (0, import_editor_ui9.useDialog)();
2066
2056
  const { mutateAsync: publish, isPending: isPublishing } = usePublish();
2067
2057
  const resetAndClosePanel = () => {
2068
2058
  (0, import_store20.__dispatch)(slice.actions.resetToInitialState({ context: "frontend" }));
2069
2059
  closeSaveChangesDialog();
2070
2060
  };
2071
2061
  usePreventUnload();
2072
- return /* @__PURE__ */ React18.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React18.createElement(import_ui15.ErrorBoundary, { fallback: /* @__PURE__ */ React18.createElement(ErrorBoundaryFallback, null) }, /* @__PURE__ */ React18.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React18.createElement(SearchAndFilterProvider, null, /* @__PURE__ */ React18.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React18.createElement(import_ui15.Stack, { p: 1, pl: 2, width: "100%", direction: "row", alignItems: "center" }, /* @__PURE__ */ React18.createElement(import_ui15.Stack, { width: "100%", direction: "row", gap: 1 }, /* @__PURE__ */ React18.createElement(import_editor_panels.PanelHeaderTitle, { sx: { display: "flex", alignItems: "center", gap: 0.5 } }, /* @__PURE__ */ React18.createElement(FlippedColorSwatchIcon, { fontSize: "inherit" }), (0, import_i18n14.__)("Class Manager", "elementor")), /* @__PURE__ */ React18.createElement(TotalCssClassCounter, null)), /* @__PURE__ */ React18.createElement(
2062
+ return /* @__PURE__ */ React18.createElement(import_editor_ui9.ThemeProvider, null, /* @__PURE__ */ React18.createElement(import_ui15.ErrorBoundary, { fallback: /* @__PURE__ */ React18.createElement(ErrorBoundaryFallback, null) }, /* @__PURE__ */ React18.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React18.createElement(SearchAndFilterProvider, null, /* @__PURE__ */ React18.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React18.createElement(import_ui15.Stack, { p: 1, pl: 2, width: "100%", direction: "row", alignItems: "center" }, /* @__PURE__ */ React18.createElement(import_ui15.Stack, { width: "100%", direction: "row", gap: 1 }, /* @__PURE__ */ React18.createElement(import_editor_panels.PanelHeaderTitle, { sx: { display: "flex", alignItems: "center", gap: 0.5 } }, /* @__PURE__ */ React18.createElement(FlippedColorSwatchIcon, { fontSize: "inherit" }), (0, import_i18n14.__)("Class Manager", "elementor")), /* @__PURE__ */ React18.createElement(TotalCssClassCounter, null)), /* @__PURE__ */ React18.createElement(
2073
2063
  CloseButton,
2074
2064
  {
2075
2065
  sx: { marginLeft: "auto" },
@@ -2116,8 +2106,8 @@ function ClassManagerPanel() {
2116
2106
  loading: isPublishing
2117
2107
  },
2118
2108
  (0, import_i18n14.__)("Save changes", "elementor")
2119
- ))))), /* @__PURE__ */ React18.createElement(ClassManagerIntroduction, null), isSaveChangesDialogOpen && /* @__PURE__ */ React18.createElement(import_editor_ui8.SaveChangesDialog, null, /* @__PURE__ */ React18.createElement(import_ui15.DialogHeader, { onClose: closeSaveChangesDialog, logo: false }, /* @__PURE__ */ React18.createElement(import_editor_ui8.SaveChangesDialog.Title, null, (0, import_i18n14.__)("You have unsaved changes", "elementor"))), /* @__PURE__ */ React18.createElement(import_editor_ui8.SaveChangesDialog.Content, null, /* @__PURE__ */ React18.createElement(import_editor_ui8.SaveChangesDialog.ContentText, null, (0, import_i18n14.__)("You have unsaved changes in the Class Manager.", "elementor")), /* @__PURE__ */ React18.createElement(import_editor_ui8.SaveChangesDialog.ContentText, null, (0, import_i18n14.__)("To avoid losing your updates, save your changes before leaving.", "elementor"))), /* @__PURE__ */ React18.createElement(
2120
- import_editor_ui8.SaveChangesDialog.Actions,
2109
+ ))))), /* @__PURE__ */ React18.createElement(ClassManagerIntroduction, null), isSaveChangesDialogOpen && /* @__PURE__ */ React18.createElement(import_editor_ui9.SaveChangesDialog, null, /* @__PURE__ */ React18.createElement(import_ui15.DialogHeader, { onClose: closeSaveChangesDialog, logo: false }, /* @__PURE__ */ React18.createElement(import_editor_ui9.SaveChangesDialog.Title, null, (0, import_i18n14.__)("You have unsaved changes", "elementor"))), /* @__PURE__ */ React18.createElement(import_editor_ui9.SaveChangesDialog.Content, null, /* @__PURE__ */ React18.createElement(import_editor_ui9.SaveChangesDialog.ContentText, null, (0, import_i18n14.__)("You have unsaved changes in the Class Manager.", "elementor")), /* @__PURE__ */ React18.createElement(import_editor_ui9.SaveChangesDialog.ContentText, null, (0, import_i18n14.__)("To avoid losing your updates, save your changes before leaving.", "elementor"))), /* @__PURE__ */ React18.createElement(
2110
+ import_editor_ui9.SaveChangesDialog.Actions,
2121
2111
  {
2122
2112
  actions: {
2123
2113
  discard: {
@@ -2138,7 +2128,7 @@ function ClassManagerPanel() {
2138
2128
  }
2139
2129
  )));
2140
2130
  }
2141
- var CloseButton = ({ onClose, ...props }) => /* @__PURE__ */ React18.createElement(import_ui15.IconButton, { size: "small", color: "secondary", onClick: onClose, "aria-label": "Close", ...props }, /* @__PURE__ */ React18.createElement(import_icons12.XIcon, { fontSize: "small" }));
2131
+ var CloseButton = ({ onClose, ...props }) => /* @__PURE__ */ React18.createElement(import_ui15.IconButton, { size: "small", color: "secondary", onClick: onClose, "aria-label": "Close", ...props }, /* @__PURE__ */ React18.createElement(import_icons11.XIcon, { fontSize: "small" }));
2142
2132
  var ErrorBoundaryFallback = () => /* @__PURE__ */ React18.createElement(import_ui15.Box, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React18.createElement(import_ui15.Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React18.createElement("strong", null, (0, import_i18n14.__)("Something went wrong", "elementor"))));
2143
2133
  var usePreventUnload = () => {
2144
2134
  const isDirty2 = useDirtyState();
@@ -2188,7 +2178,7 @@ var ClassManagerButton = () => {
2188
2178
  const document = (0, import_editor_documents5.__useActiveDocument)();
2189
2179
  const { open: openPanel } = usePanelActions();
2190
2180
  const { save: saveDocument } = (0, import_editor_documents5.__useActiveDocumentActions)();
2191
- const { open: openSaveChangesDialog, close: closeSaveChangesDialog, isOpen: isSaveChangesDialogOpen } = (0, import_editor_ui9.useDialog)();
2181
+ const { open: openSaveChangesDialog, close: closeSaveChangesDialog, isOpen: isSaveChangesDialogOpen } = (0, import_editor_ui10.useDialog)();
2192
2182
  const { prefetchClassesUsage } = usePrefetchCssClassUsage();
2193
2183
  const { userCan } = (0, import_editor_styles_repository3.useUserStylesCapability)();
2194
2184
  const isUserAllowedToUpdateClass = userCan(globalClassesStylesProvider.getKey()).update;
@@ -2208,11 +2198,11 @@ var ClassManagerButton = () => {
2208
2198
  });
2209
2199
  prefetchClassesUsage();
2210
2200
  };
2211
- return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(import_ui16.Tooltip, { title: (0, import_i18n15.__)("Class Manager", "elementor"), placement: "top" }, /* @__PURE__ */ React19.createElement(import_ui16.IconButton, { size: "tiny", onClick: handleOpenPanel, sx: { marginInlineEnd: -0.75 } }, /* @__PURE__ */ React19.createElement(FlippedColorSwatchIcon, { fontSize: "tiny" }))), isSaveChangesDialogOpen && /* @__PURE__ */ React19.createElement(import_editor_ui9.SaveChangesDialog, null, /* @__PURE__ */ React19.createElement(import_editor_ui9.SaveChangesDialog.Title, null, (0, import_i18n15.__)("You have unsaved changes", "elementor")), /* @__PURE__ */ React19.createElement(import_editor_ui9.SaveChangesDialog.Content, null, /* @__PURE__ */ React19.createElement(import_editor_ui9.SaveChangesDialog.ContentText, { sx: { mb: 2 } }, (0, import_i18n15.__)(
2201
+ return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(import_ui16.Tooltip, { title: (0, import_i18n15.__)("Class Manager", "elementor"), placement: "top" }, /* @__PURE__ */ React19.createElement(import_ui16.IconButton, { size: "tiny", onClick: handleOpenPanel, sx: { marginInlineEnd: -0.75 } }, /* @__PURE__ */ React19.createElement(FlippedColorSwatchIcon, { fontSize: "tiny" }))), isSaveChangesDialogOpen && /* @__PURE__ */ React19.createElement(import_editor_ui10.SaveChangesDialog, null, /* @__PURE__ */ React19.createElement(import_editor_ui10.SaveChangesDialog.Title, null, (0, import_i18n15.__)("You have unsaved changes", "elementor")), /* @__PURE__ */ React19.createElement(import_editor_ui10.SaveChangesDialog.Content, null, /* @__PURE__ */ React19.createElement(import_editor_ui10.SaveChangesDialog.ContentText, { sx: { mb: 2 } }, (0, import_i18n15.__)(
2212
2202
  "To open the Class Manager, save your page first. You can't continue without saving.",
2213
2203
  "elementor"
2214
2204
  ))), /* @__PURE__ */ React19.createElement(
2215
- import_editor_ui9.SaveChangesDialog.Actions,
2205
+ import_editor_ui10.SaveChangesDialog.Actions,
2216
2206
  {
2217
2207
  actions: {
2218
2208
  cancel: {
@@ -2237,7 +2227,7 @@ var ClassManagerButton = () => {
2237
2227
  // src/components/convert-local-class-to-global-class.tsx
2238
2228
  var React20 = __toESM(require("react"));
2239
2229
  var import_editor_styles_repository4 = require("@elementor/editor-styles-repository");
2240
- var import_editor_ui10 = require("@elementor/editor-ui");
2230
+ var import_editor_ui11 = require("@elementor/editor-ui");
2241
2231
  var import_ui17 = require("@elementor/ui");
2242
2232
  var import_i18n16 = require("@wordpress/i18n");
2243
2233
  var ConvertLocalClassToGlobalClass = (props) => {
@@ -2259,7 +2249,7 @@ var ConvertLocalClassToGlobalClass = (props) => {
2259
2249
  }
2260
2250
  };
2261
2251
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
2262
- import_editor_ui10.MenuListItem,
2252
+ import_editor_ui11.MenuListItem,
2263
2253
  {
2264
2254
  disabled: !props.canConvert,
2265
2255
  onClick: handleConversion,