@elementor/editor-controls 3.35.0-372 → 3.35.0-373
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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/svg-media-control.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -4001,7 +4001,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
4001
4001
|
description: /* @__PURE__ */ React71.createElement(React71.Fragment, null, (0, import_i18n28.__)("To upload them anyway, ask the site administrator to enable unfiltered", "elementor"), /* @__PURE__ */ React71.createElement("br", null), (0, import_i18n28.__)("file uploads.", "elementor")),
|
|
4002
4002
|
isEnabled: !canManageOptions
|
|
4003
4003
|
};
|
|
4004
|
-
return /* @__PURE__ */ React71.createElement(import_ui56.Stack, { gap: 1 }, /* @__PURE__ */ React71.createElement(EnableUnfilteredModal, { open: unfilteredModalOpenState, onClose: onCloseUnfilteredModal }), /* @__PURE__ */ React71.createElement(ControlActions, null, /* @__PURE__ */ React71.createElement(StyledCard, { variant: "outlined" }, /* @__PURE__ */ React71.createElement(StyledCardMediaContainer, null, isFetching ? /* @__PURE__ */ React71.createElement(import_ui56.CircularProgress, { role: "progressbar" }) : /* @__PURE__ */ React71.createElement(
|
|
4004
|
+
return /* @__PURE__ */ React71.createElement(import_ui56.Stack, { gap: 1, "aria-label": "SVG Control" }, /* @__PURE__ */ React71.createElement(EnableUnfilteredModal, { open: unfilteredModalOpenState, onClose: onCloseUnfilteredModal }), /* @__PURE__ */ React71.createElement(ControlActions, null, /* @__PURE__ */ React71.createElement(StyledCard, { variant: "outlined" }, /* @__PURE__ */ React71.createElement(StyledCardMediaContainer, null, isFetching ? /* @__PURE__ */ React71.createElement(import_ui56.CircularProgress, { role: "progressbar" }) : /* @__PURE__ */ React71.createElement(
|
|
4005
4005
|
import_ui56.CardMedia,
|
|
4006
4006
|
{
|
|
4007
4007
|
component: "img",
|
|
@@ -4024,7 +4024,8 @@ var SvgMediaControl = createControl(() => {
|
|
|
4024
4024
|
size: "tiny",
|
|
4025
4025
|
color: "inherit",
|
|
4026
4026
|
variant: "outlined",
|
|
4027
|
-
onClick: () => handleClick(MODE_BROWSE)
|
|
4027
|
+
onClick: () => handleClick(MODE_BROWSE),
|
|
4028
|
+
"aria-label": "Select SVG"
|
|
4028
4029
|
},
|
|
4029
4030
|
(0, import_i18n28.__)("Select SVG", "elementor")
|
|
4030
4031
|
), /* @__PURE__ */ React71.createElement(ConditionalControlInfotip, { ...infotipProps }, /* @__PURE__ */ React71.createElement("span", null, /* @__PURE__ */ React71.createElement(import_ui56.ThemeProvider, { colorScheme: canManageOptions ? "light" : "dark" }, /* @__PURE__ */ React71.createElement(
|
|
@@ -4035,7 +4036,8 @@ var SvgMediaControl = createControl(() => {
|
|
|
4035
4036
|
color: "inherit",
|
|
4036
4037
|
startIcon: /* @__PURE__ */ React71.createElement(import_icons18.UploadIcon, null),
|
|
4037
4038
|
disabled: canManageOptions ? false : true,
|
|
4038
|
-
onClick: () => canManageOptions && handleClick(MODE_UPLOAD)
|
|
4039
|
+
onClick: () => canManageOptions && handleClick(MODE_UPLOAD),
|
|
4040
|
+
"aria-label": "Upload SVG"
|
|
4039
4041
|
},
|
|
4040
4042
|
(0, import_i18n28.__)("Upload", "elementor")
|
|
4041
4043
|
)))))
|